httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/win32 open.c
Date Tue, 14 Dec 1999 18:25:53 GMT
rbb         99/12/14 10:25:51

  Modified:    src/lib/apr/file_io/win32 open.c
  Log:
  Add support for ap_open_stderr
  
  Revision  Changes    Path
  1.13      +19 -0     apache-2.0/src/lib/apr/file_io/win32/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/open.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- open.c	1999/12/09 21:00:09	1.12
  +++ open.c	1999/12/14 18:25:48	1.13
  @@ -199,3 +199,22 @@
       }
       APR_SUCCESS;
   }   
  +
  +ap_status_t ap_open_stderr(struct file_t **thefile, ap_context_t *cont)
  +{
  +    (*thefile) = ap_pcalloc(cont, sizeof(ap_os_file_t *));
  +    if ((*thefile) == NULL) {
  +        return APR_ENOMEM;
  +    }
  +
  +    (*thefile)->filehand = GetStdHandle(STD_ERROR_HANDLE);
  +    (*thefile)->cntxt = cont;
  +    (*thefile)->fname = NULL;
  +    (*thefile)->filehand = NULL;
  +    (*thefile)->stated = 0;
  +    (*thefile)->buffered = 0;
  +    (*thefile)->eof_hit = 0;
  +
  +    return APR_SUCCESS;
  +}
  +
  
  
  

Mime
View raw message