bjh 99/12/19 00:05:07
Modified: src/lib/apr/file_io/os2 open.c
Log:
OS/2: Implement ap_open_stderr()
Revision Changes Path
1.12 +19 -0 apache-2.0/src/lib/apr/file_io/os2/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/open.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- open.c 1999/12/19 08:03:28 1.11
+++ open.c 1999/12/19 08:05:07 1.12
@@ -211,3 +211,22 @@
}
return APR_SUCCESS;
}
+
+
+
+ap_status_t ap_open_stderr(struct file_t **thefile, ap_context_t *cont)
+{
+ (*thefile) = ap_palloc(cont, sizeof(ap_file_t *));
+ if ((*thefile) == NULL) {
+ return APR_ENOMEM;
+ }
+ (*thefile)->cntxt = cont;
+ (*thefile)->filedes = 2;
+ (*thefile)->fname = NULL;
+ (*thefile)->isopen = TRUE;
+ (*thefile)->buffered = FALSE;
+ (*thefile)->validstatus = FALSE;
+ (*thefile)->eof_hit = FALSE;
+
+ return APR_SUCCESS;
+}