rbb 99/04/07 12:38:41
Modified: apr/file_io/unix readwrite.c Log: Correcting some mistakes in the apr_read and apr_write calls. They need to be able to reutrn negative numbers. I have also added an apr_size_t type to help make the code more portable. Revision Changes Path 1.2 +4 -4 apache-apr/apr/file_io/unix/readwrite.c Index: readwrite.c =================================================================== RCS file: /home/cvs/apache-apr/apr/file_io/unix/readwrite.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- readwrite.c 1999/02/25 19:58:41 1.1 +++ readwrite.c 1999/04/07 19:38:41 1.2 @@ -59,9 +59,9 @@ #include <errno.h> #include <unistd.h> -apr_uint64_t apr_read(apr_file_t *thefile, void *buf, apr_uint64_t nbytes) +apr_size_t apr_read(apr_file_t *thefile, void *buf, apr_size_t nbytes) { - apr_int64_t rv; + apr_size_t rv; if (thefile->filedes < 0) { errno = EBADF; @@ -73,9 +73,9 @@ return rv; } -apr_uint64_t apr_write(apr_file_t *thefile, void * buf, apr_uint64_t nbytes) +apr_size_t apr_write(apr_file_t *thefile, void * buf, apr_size_t nbytes) { - apr_int64_t rv; + apr_size_t rv; struct stat info; if (thefile->filedes < 0) {