summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/unixLabels.mli
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2013-08-01 12:14:57 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2013-08-01 12:14:57 +0000
commit1c58683353103cab7835e94d24baa33bd6c931ba (patch)
treeb6be10a3b1b00ee1a7a0b7c523fea4fa9d8da4b7 /otherlibs/unix/unixLabels.mli
parent5e78d37215f673f0b8d90ee760206f8f169b1b7d (diff)
PR#5568: add O_CLOEXEC flag to Unix.openfile, so that the returned
file descriptor is created in close-on-exec mode. (Reflecting commit r13961 on version/4.01) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13962 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/unixLabels.mli')
-rw-r--r--otherlibs/unix/unixLabels.mli2
1 files changed, 2 insertions, 0 deletions
diff --git a/otherlibs/unix/unixLabels.mli b/otherlibs/unix/unixLabels.mli
index 91636c6a8..7494d4f7b 100644
--- a/otherlibs/unix/unixLabels.mli
+++ b/otherlibs/unix/unixLabels.mli
@@ -239,6 +239,8 @@ type open_flag = Unix.open_flag =
| O_SYNC (** Writes complete as `Synchronised I/O file integrity completion' *)
| O_RSYNC (** Reads complete as writes (depending on O_SYNC/O_DSYNC) *)
| O_SHARE_DELETE (** Windows only: allow the file to be deleted while still open *)
+ | O_CLOEXEC (** Set the close-on-exec flag on the
+ descriptor returned by {!openfile} *)
(** The flags to {!UnixLabels.openfile}. *)