httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/include apr_file_io.h
Date Sat, 17 Jun 2000 17:04:18 GMT
trawick     00/06/17 10:04:17

  Modified:    src/lib/apr/file_io/os2 readwrite.c pipe.c
               src/lib/apr/file_io/unix readwrite.c pipe.c
               src/lib/apr/file_io/win32 readwrite.c
               src/lib/apr/include apr_file_io.h
  Log:
  ap_puts(), ap_write(): make input buffer ptr const * instead of *
  ap_create_namedpipe(): make input path name ptr const * instead of *
  
  Revision  Changes    Path
  1.28      +2 -2      apache-2.0/src/lib/apr/file_io/os2/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/readwrite.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- readwrite.c	2000/05/27 18:01:00	1.27
  +++ readwrite.c	2000/06/17 17:04:15	1.28
  @@ -138,7 +138,7 @@
   
   
   
  -ap_status_t ap_write(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes)
  +ap_status_t ap_write(ap_file_t *thefile, const void *buf, ap_ssize_t *nbytes)
   {
       ULONG rc = 0;
       ULONG byteswritten;
  @@ -264,7 +264,7 @@
   
   
   
  -ap_status_t ap_puts(char *str, ap_file_t *thefile)
  +ap_status_t ap_puts(const char *str, ap_file_t *thefile)
   {
       ap_ssize_t len;
   
  
  
  
  1.21      +1 -1      apache-2.0/src/lib/apr/file_io/os2/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/pipe.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- pipe.c	2000/04/28 18:27:35	1.20
  +++ pipe.c	2000/06/17 17:04:16	1.21
  @@ -134,7 +134,7 @@
   
   
   
  -ap_status_t ap_create_namedpipe(char *filename, ap_fileperms_t perm, ap_pool_t *cont)
  +ap_status_t ap_create_namedpipe(const char *filename, ap_fileperms_t perm, ap_pool_t *cont)
   {
       /* Not yet implemented, interface not suitable */
       return APR_ENOTIMPL;
  
  
  
  1.56      +2 -2      apache-2.0/src/lib/apr/file_io/unix/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/readwrite.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- readwrite.c	2000/06/16 16:40:50	1.55
  +++ readwrite.c	2000/06/17 17:04:16	1.56
  @@ -205,7 +205,7 @@
       }
   }
   
  -ap_status_t ap_write(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes)
  +ap_status_t ap_write(ap_file_t *thefile, const void *buf, ap_ssize_t *nbytes)
   {
       ap_size_t rv;
   
  @@ -317,7 +317,7 @@
       return ap_read(thefile, ch, &nbytes);
   }
   
  -ap_status_t ap_puts(char *str, ap_file_t *thefile)
  +ap_status_t ap_puts(const char *str, ap_file_t *thefile)
   {
       ssize_t rv;
       int len;
  
  
  
  1.34      +1 -1      apache-2.0/src/lib/apr/file_io/unix/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/pipe.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- pipe.c	2000/06/13 19:44:16	1.33
  +++ pipe.c	2000/06/17 17:04:16	1.34
  @@ -131,7 +131,7 @@
       return APR_SUCCESS;
   }
   
  -ap_status_t ap_create_namedpipe(char *filename, 
  +ap_status_t ap_create_namedpipe(const char *filename, 
                                   ap_fileperms_t perm, ap_pool_t *cont)
   {
       mode_t mode = ap_unix_get_fileperms(perm);
  
  
  
  1.37      +2 -2      apache-2.0/src/lib/apr/file_io/win32/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/readwrite.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- readwrite.c	2000/06/14 16:31:43	1.36
  +++ readwrite.c	2000/06/17 17:04:17	1.37
  @@ -124,7 +124,7 @@
       return lasterror;
   }
   
  -ap_status_t ap_write(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes)
  +ap_status_t ap_write(ap_file_t *thefile, const void *buf, ap_ssize_t *nbytes)
   {
       ap_status_t rv;
       DWORD bwrote;
  @@ -262,7 +262,7 @@
       return APR_SUCCESS; 
   }
   
  -ap_status_t ap_puts(char *str, ap_file_t *thefile)
  +ap_status_t ap_puts(const char *str, ap_file_t *thefile)
   {
       DWORD len = strlen(str);
   
  
  
  
  1.55      +6 -6      apache-2.0/src/lib/apr/include/apr_file_io.h
  
  Index: apr_file_io.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/include/apr_file_io.h,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- apr_file_io.h	2000/06/15 17:39:10	1.54
  +++ apr_file_io.h	2000/06/17 17:04:17	1.55
  @@ -253,7 +253,7 @@
   
   /*
   
  -=head1 ap_status_t ap_write(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes)
  +=head1 ap_status_t ap_write(ap_file_t *thefile, const void *buf, ap_ssize_t *nbytes)
   
   B<Write data to the specified file.>
   
  @@ -274,7 +274,7 @@
   
   =cut
    */
  -ap_status_t ap_write(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes);
  +ap_status_t ap_write(ap_file_t *thefile, const void *buf, ap_ssize_t *nbytes);
   
   /*
   
  @@ -357,7 +357,7 @@
   
   /*
   
  -=head1 ap_status_t ap_puts(char *str, ap_file_t *thefile)
  +=head1 ap_status_t ap_puts(const char *str, ap_file_t *thefile)
   
   B<Put the string into a specified file.>
   
  @@ -366,7 +366,7 @@
   
   =cut
    */
  -ap_status_t ap_puts(char *str, ap_file_t *thefile);
  +ap_status_t ap_puts(const char *str, ap_file_t *thefile);
   
   /*
   
  @@ -555,7 +555,7 @@
   
   /*
   
  -=head1 ap_status_t ap_create_namedpipe(char *filename, ap_fileperms_t perm, ap_pool_t *cont)
  +=head1 ap_status_t ap_create_namedpipe(const char *filename, ap_fileperms_t perm, ap_pool_t
*cont)
   
   B<Create a named pipe.>
   
  @@ -565,7 +565,7 @@
   
   =cut
    */
  -ap_status_t ap_create_namedpipe(char *filename, ap_fileperms_t perm, 
  +ap_status_t ap_create_namedpipe(const char *filename, ap_fileperms_t perm, 
                                   ap_pool_t *cont);
   
   /*
  
  
  

Mime
View raw message