/[anubis]/anubis/testsuite/mta.c
ViewVC logotype

Diff of /anubis/testsuite/mta.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by polak, Fri Jun 6 06:52:40 2003 UTC revision 1.6 by gray, Fri Jun 20 15:10:41 2003 UTC
# Line 216  static void *in, *out; Line 216  static void *in, *out;
216  static const char *  static const char *
217  _def_strerror(int rc)  _def_strerror(int rc)
218  {  {
219          return strerror(rc);          return rc == -1 ? "end of file reached" : strerror(rc);
220  }  }
221    
222  static int  static int
# Line 235  _def_read(void *sd, char *data, size_t s Line 235  _def_read(void *sd, char *data, size_t s
235  {  {
236          int n = read((int)sd, data, size);          int n = read((int)sd, data, size);
237          if (n != size)          if (n != size)
238                  return errno;                  return errno ? errno : -1;
239          if (nbytes)          if (nbytes)
240                  *nbytes = n;                  *nbytes = n;
241          return 0;          return 0;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26