summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/channels.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1998-07-02 09:52:57 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1998-07-02 09:52:57 +0000
commit6ba0586e3e91773d0308020d01dd92587fa2b8d1 (patch)
tree072006d2e8d05cc3f4aea3d20a8350b0b3c66101 /otherlibs/win32unix/channels.c
parent45ddaf9eca68a3283236d122e1359b797d88d5b0 (diff)
Suppression de _channel_of_descr_bin, rendu inutile par set_binary_mode_
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2008 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/channels.c')
-rw-r--r--otherlibs/win32unix/channels.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/otherlibs/win32unix/channels.c b/otherlibs/win32unix/channels.c
index cd2878c76..a91149ab4 100644
--- a/otherlibs/win32unix/channels.c
+++ b/otherlibs/win32unix/channels.c
@@ -16,14 +16,9 @@
#include "unixsupport.h"
#include <fcntl.h>
-static int open_descr_flags[3] = {
- O_BINARY, O_TEXT, O_APPEND
-};
-
-value win_fd_handle(value handle, value flags) /* ML */
+value win_fd_handle(value handle) /* ML */
{
- int fd = _open_osfhandle((long) Handle_val(handle),
- convert_flag_list(flags, open_descr_flags));
+ int fd = _open_osfhandle((long) Handle_val(handle), O_BINARY);
if (fd == -1) uerror("channel_of_descr", Nothing);
return Val_int(fd);
}