aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/fcntl.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-03-25 14:00:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-03-25 14:00:36 +0000
commit246d35ec91ef2599ee1127315612933368acdd37 (patch)
treeb38a121140636385de89e7dedcbbafed47879d2c /sys/sys/fcntl.h
parentbfac1583db9c8e7c5c83e2364c0003cd58a45611 (diff)
downloadsrc-246d35ec91ef2599ee1127315612933368acdd37.tar.gz
src-246d35ec91ef2599ee1127315612933368acdd37.zip
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
Notes
Notes: svn path=/head/; revision=219999
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 ef394a3fe660..6f6e348a1379 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
/*