fielding    99/04/07 19:36:28

  Modified:    include  apr_file_io.h apr_general.h
  Log:
  ssize_t is the correct return value for read/write.
  Default to the ANSI C values instead of a funky fixed bit size.
  
  Revision  Changes    Path
  1.9       +2 -2      apache-apr/include/apr_file_io.h
  
  Index: apr_file_io.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/include/apr_file_io.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- apr_file_io.h     1999/04/07 20:42:09     1.8
  +++ apr_file_io.h     1999/04/08 02:36:26     1.9
  @@ -102,8 +102,8 @@
   apr_file_t *apr_open(char *, apr_int32_t, apr_fileperms_t);
   apr_status_t apr_close(apr_file_t *);
   
  -apr_size_t apr_read(apr_file_t *, void *, apr_size_t);
  -apr_size_t apr_write(apr_file_t *, void *, apr_size_t);
  +apr_ssize_t apr_read(apr_file_t *, void *, apr_size_t);
  +apr_ssize_t apr_write(apr_file_t *, void *, apr_size_t);
   
   apr_file_t *apr_dupfile(apr_file_t *);
   apr_status_t apr_getfileinfo(char *, apr_file_t *);
  
  
  
  1.7       +3 -2      apache-apr/include/apr_general.h
  
  Index: apr_general.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/include/apr_general.h,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- apr_general.h     1999/04/07 20:42:09     1.6
  +++ apr_general.h     1999/04/08 02:36:26     1.7
  @@ -66,8 +66,9 @@
   typedef long              apr_int64_t;
   typedef unsigned long     apr_uint64_t;
   
  -typedef apr_int32_t       apr_size_t; 
  +typedef size_t            apr_size_t; 
  +typedef ssize_t           apr_ssize_t; 
   
  -typedef apr_int32_t         apr_off_t;
  +typedef off_t             apr_off_t;
   
   #endif  /* ! APR_GENERAL_H */
  
  
  

Reply via email to