summaryrefslogtreecommitdiff
path: root/file_io/unix/open.c
diff options
context:
space:
mode:
authorjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-06-27 19:40:53 +0000
committerjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-06-27 19:40:53 +0000
commit72ca7b58d638167d6cd29066a782212d734bcf35 (patch)
tree9fde80bba271a4ee79734a0809bb5b7223215314 /file_io/unix/open.c
parent556da97ac6014cb611e34e73ae2df2db9d098c00 (diff)
downloadlibapr-72ca7b58d638167d6cd29066a782212d734bcf35.tar.gz
*) Add apr_file_flags_get() which returns the flags that were originally
passed in to apr_file_open(). *) Added APR_HAS_XTHREAD_FILES macro that indicates whether or not the platform handles files opened in APR_XTHREAD mode natively. Currently only Win32 has such native support. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61804 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/open.c')
-rw-r--r--file_io/unix/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/open.c b/file_io/unix/open.c
index 87ee1b3a0..f3b9f9600 100644
--- a/file_io/unix/open.c
+++ b/file_io/unix/open.c
@@ -90,7 +90,7 @@ apr_status_t apr_file_open(apr_file_t **new, const char *fname, apr_int32_t flag
(*new) = (apr_file_t *)apr_pcalloc(cont, sizeof(apr_file_t));
(*new)->cntxt = cont;
- (*new)->oflags = oflags;
+ (*new)->flags = flag;
(*new)->filedes = -1;
if ((flag & APR_READ) && (flag & APR_WRITE)) {