cvs commit: apache-2.0/src/lib/apr/file_io/unix dir.c open.c

1999-09-03 Thread rbb
rbb 99/09/03 05:22:28

  Modified:src/lib/apr/file_io/unix dir.c open.c
  Log:
  Fix some APR documentation.
  Submitted by:  Paul Reder
  
  Revision  ChangesPath
  1.2   +3 -3  apache-2.0/src/lib/apr/file_io/unix/dir.c
  
  Index: dir.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/dir.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dir.c 1999/08/17 15:59:36 1.1
  +++ dir.c 1999/09/03 12:22:27 1.2
  @@ -132,7 +132,7 @@
   }
   
   /* ***APRDOC
  - * ap_status_t ap_readdir(ap_dir_t *)
  + * ap_status_t ap_rewinddir(ap_dir_t *)
*Rewind the directory to the first entry. 
* arg 1) the directory descriptor to rewind.
*/
  @@ -270,7 +270,7 @@
   }
   
   /* ***APRDOC
  - * ap_status_t ap_dir_entry_filename(ap_dir_t *, char **) 
  + * ap_status_t ap_get_dir_filename(ap_dir_t *, char **) 
*Get the file name of the current directory entry. 
* arg 1) the currently open directory.
* arg 2) the file name of the directory entry. 
  @@ -297,7 +297,7 @@
   }
   
   /* ***APRDOC
  - * ap_status_t ap_get_os_dir(ap_dir_t *, ap_os_dir_t *)
  + * ap_status_t ap_put_os_dir(ap_dir_t *, ap_os_dir_t *)
*convert the dir from os specific type to apr type.
* arg 1) The os specific dir to convert
* arg 2) The apr dir we are converting to.
  
  
  
  1.4   +1 -1  apache-2.0/src/lib/apr/file_io/unix/open.c
  
  Index: open.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- open.c1999/09/01 19:01:52 1.3
  +++ open.c1999/09/03 12:22:27 1.4
  @@ -95,7 +95,7 @@
*  APR_CREATE   create the file if not there
*  APR_APPEND   file ptr is set to end prior to all writes
*  APR_TRUNCATE set length to zero if file exists
  - *  APR_BINARY   not a text file
  + *  APR_BINARY   not a text file (This flag is ignored on 
UNIX because it has no meaning)
*  APR_BUFFERED buffer the data.  Default is non-buffered
*  APR_EXCL return error if APR_CREATE and file exists
* arg 4) Access permissions for file.
  
  
  


cvs commit: apache-2.0/src/lib/apr/test Makefile.in ab_apr.c client.c server.c

1999-09-03 Thread rbb
rbb 99/09/03 07:33:13

  Modified:src/lib/apr/network_io/unix sockets.c
   src/lib/apr/test Makefile.in ab_apr.c client.c server.c
  Log:
  Fix the test programs to use the new timeout API's in network I/O.  Also, fix
  a minor bug in the new timeout code.  I forgot to initialize the timeout.
  
  Revision  ChangesPath
  1.3   +1 -0  apache-2.0/src/lib/apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockets.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sockets.c 1999/09/02 20:33:36 1.2
  +++ sockets.c 1999/09/03 14:33:11 1.3
  @@ -108,6 +108,7 @@
   if ((*new)-socketdes  0) {
   return errno;
   }
  +(*new)-timeout = -1;
   ap_register_cleanup((*new)-cntxt, (void *)(*new), 
   socket_cleanup, NULL);
   return APR_SUCCESS;
  
  
  
  1.3   +1 -1  apache-2.0/src/lib/apr/test/Makefile.in
  
  Index: Makefile.in
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/Makefile.in,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Makefile.in   1999/08/18 20:18:59 1.2
  +++ Makefile.in   1999/09/03 14:33:11 1.3
  @@ -8,7 +8,7 @@
   [EMAIL PROTECTED]@
   [EMAIL PROTECTED]@
   [EMAIL PROTECTED]@ @OPTIM@ 
  -LIBS=-L../network_io -lnetwork -L../threadproc -lthreadproc -L../file_io 
-lfile -L../misc -lmisc -L../lib -lapr -L../time -ltime -L../locks -llock 
-L../signal -lsig -lcrypt @LIBS@ 
  +LIBS=-L../libs -lnetwork -lthreadproc -lfile -lmisc -lapr -ltime -llock 
-lsig -lcrypt @LIBS@ 
   [EMAIL PROTECTED]@ $(LIBS)
   INCDIR=../include
   INCDIR1=../../inc
  
  
  
  1.3   +5 -3  apache-2.0/src/lib/apr/test/ab_apr.c
  
  Index: ab_apr.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/ab_apr.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ab_apr.c  1999/08/31 05:32:51 1.2
  +++ ab_apr.c  1999/09/03 14:33:12 1.3
  @@ -219,12 +219,13 @@
   {
   ap_ssize_t len = reqlen;
   ap_current_time(c-connect);
  -if (ap_send(c-aprsock, request, reqlen, 30) != APR_SUCCESS 
  +ap_setsocketopt(c-aprsock, APR_SO_TIMEOUT, 30);
  +if (ap_send(c-aprsock, request, reqlen) != APR_SUCCESS 
   reqlen != len) {
   printf(Send request failed!\n);
   }
   if (posting) {
  -ap_send(c-aprsock, postdata, postlen, 30);
  +ap_send(c-aprsock, postdata, postlen);
   totalposted += (reqlen + postlen);
   }
   
  @@ -518,7 +519,8 @@
   char respcode[4];/* 3 digits and null */
   
   r = sizeof(buffer);
  -ap_recv(c-aprsock, buffer, r, aprtimeout);
  +ap_setsocketopt(c-aprsock, APR_SO_TIMEOUT, aprtimeout);
  +ap_recv(c-aprsock, buffer, r);
   if (r == 0 || (r  0  errno != EAGAIN)) {
   good++;
   close_connection(c);
  
  
  
  1.2   +3 -3  apache-2.0/src/lib/apr/test/client.c
  
  Index: client.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/client.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- client.c  1999/08/17 15:59:46 1.1
  +++ client.c  1999/09/03 14:33:12 1.2
  @@ -113,7 +113,7 @@
   
   fprintf(stdout, \tClient:  Trying to send data over socket...);
   length = STRLEN;
  -if (ap_send(sock, datasend, length, 5) != APR_SUCCESS) {
  +if (ap_send(sock, datasend, length) != APR_SUCCESS) {
   ap_close_socket(sock);
   fprintf(stderr, Problem sending data\n);
   exit(-1);
  @@ -122,7 +122,7 @@
  
   length = STRLEN; 
   fprintf(stdout, \tClient:  Trying to receive data over socket...);
  -if (ap_recv(sock, datarecv, length, 5) != APR_SUCCESS) {
  +if (ap_recv(sock, datarecv, length) != APR_SUCCESS) {
   ap_close_socket(sock);
   fprintf(stderr, Problem receiving data\n);
   exit(-1);
  @@ -150,4 +150,4 @@
   fprintf(stdout, OK\n);
   
   return 1;
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2   +2 -2  apache-2.0/src/lib/apr/test/server.c
  
  Index: server.c
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/server.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- server.c  1999/08/17 15:59:46 1.1
  +++ server.c  1999/09/03 14:33:12 1.2
  @@ -145,7 +145,7 @@
   
   length = STRLEN;
   fprintf(stdout, \tServer:  Trying to recv data from socket...);
  -if (ap_recv(sock2, datasend, length, 5) != APR_SUCCESS) {
  +if (ap_recv(sock2, datasend, length) != 

cvs commit: apache-2.0/src/lib/apr Makefile.in

1999-09-03 Thread rse
rse 99/09/03 11:40:40

  Modified:src/lib/apr Makefile.in
  Log:
  The distclean target has to remove some config.* files.
  
  Revision  ChangesPath
  1.6   +1 -0  apache-2.0/src/lib/apr/Makefile.in
  
  Index: Makefile.in
  ===
  RCS file: /home/cvs/apache-2.0/src/lib/apr/Makefile.in,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Makefile.in   1999/08/28 08:05:42 1.5
  +++ Makefile.in   1999/09/03 18:40:39 1.6
  @@ -51,6 +51,7 @@
   
   distclean: clean
-$(RM) -f Makefile
  + -$(RM) -f config.log config.status config.cache
   
   subdirs:
@for i in $(SUBDIRS); do \