diff options
author | Alain Frisch <alain@frisch.fr> | 2011-12-13 16:21:10 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2011-12-13 16:21:10 +0000 |
commit | 14b778db900cd768455b1879465c51e1538b971d (patch) | |
tree | bc95a081799486cadd011054e9d8c02861e34540 /otherlibs/win32unix/open.c | |
parent | 84dd8601e0f37301b82aa035ceac32b0264b4748 (diff) |
#5420: fix.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11305 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/open.c')
-rw-r--r-- | otherlibs/win32unix/open.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/open.c b/otherlibs/win32unix/open.c index 1e3e09a70..74fe8fc92 100644 --- a/otherlibs/win32unix/open.c +++ b/otherlibs/win32unix/open.c @@ -18,18 +18,18 @@ #include "unixsupport.h" #include <fcntl.h> -static int open_access_flags[12] = { +static int open_access_flags[13] = { GENERIC_READ, GENERIC_WRITE, GENERIC_READ|GENERIC_WRITE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -static int open_create_flags[12] = { +static int open_create_flags[13] = { 0, 0, 0, 0, 0, O_CREAT, O_TRUNC, O_EXCL, 0, 0, 0, 0, 0 }; -static int open_share_flags[12] = { +static int open_share_flags[13] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FILE_SHARE_DELETE -} +}; CAMLprim value unix_open(value path, value flags, value perm) { |