summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-06-04 02:41:30 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-06-04 02:41:30 +0000
commit68f2b06dcd786d1b1e5c7b885a94a2feb9d78977 (patch)
tree1970f43654ddc099d4f534fcedf486c0eabe081d /file_io
parent99a24550512240becd395cd097a6fa531a41ef4f (diff)
downloadlibapr-68f2b06dcd786d1b1e5c7b885a94a2feb9d78977.tar.gz
Answer half the questions.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/open.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c
index 2ec0ee727..2303a4db2 100644
--- a/file_io/win32/open.c
+++ b/file_io/win32/open.c
@@ -518,13 +518,15 @@ APR_DECLARE(apr_status_t) apr_os_file_put(apr_file_t **file,
(*file)->pool = pool;
(*file)->filehand = *thefile;
(*file)->ungetchar = -1; /* no char avail */
-
- /* XXX... we pcalloc above so these are zeroed. Is zero really
- * the right answer when we passed flags into os_file_put?
- * Should we be testing if thefile is a handle to a PIPE and
- * set up the mechanics appropriately?
+ (*file)->timeout = -1;
+ (*file)->flags = flags;
+ if (flags & APR_APPEND)
+ (*file)->append = 1;
+
+ /* XXX... we pcalloc above so all others are zeroed.
+ * Should we be testing if thefile is a handle to
+ * a PIPE and set up the mechanics appropriately?
*
- * (*file)->flags;
* (*file)->pipe;
*/
return APR_SUCCESS;