summaryrefslogtreecommitdiffstats
path: root/sys/sys/fcntl.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-03-25 14:00:36 +0000
committerkib <kib@FreeBSD.org>2011-03-25 14:00:36 +0000
commitfc2bd01611a5db99f84b5d7f3109b9f9274f548d (patch)
treeb38a121140636385de89e7dedcbbafed47879d2c /sys/sys/fcntl.h
parent948b7589fcf961fe76d3f86de580dccb0814fdb7 (diff)
downloadFreeBSD-src-fc2bd01611a5db99f84b5d7f3109b9f9274f548d.zip
FreeBSD-src-fc2bd01611a5db99f84b5d7f3109b9f9274f548d.tar.gz
Add O_CLOEXEC flag to open(2) and fhopen(2).
The new function fallocf(9), that is renamed falloc(9) with added flag argument, is provided to facilitate the merge to stable branch. Reviewed by: jhb MFC after: 1 week
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r--sys/sys/fcntl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index ef394a3..6f6e348 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -123,9 +123,11 @@ typedef __pid_t pid_t;
#define FEXEC O_EXEC
#endif
-/* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */
#if __POSIX_VISIBLE >= 200809
+/* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */
#define O_TTY_INIT 0x00080000 /* Restore default termios attributes */
+
+#define O_CLOEXEC 0x00100000
#endif
/*
OpenPOWER on IntegriCloud