summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2009-05-16 18:48:41 +0000
committerdchagin <dchagin@FreeBSD.org>2009-05-16 18:48:41 +0000
commit5351e066994a3d70d5c9b6c7a9d290bd517a8966 (patch)
tree4a61d560f65b84512f56bd4994c667b74585cb37 /sys/i386/linux/linux.h
parenta0c026b20b499c61df6fa4153a626efb7ccb0e59 (diff)
downloadFreeBSD-src-5351e066994a3d70d5c9b6c7a9d290bd517a8966.zip
FreeBSD-src-5351e066994a3d70d5c9b6c7a9d290bd517a8966.tar.gz
Somewhere between 2.6.23 and 2.6.27, Linux added SOCK_CLOEXEC and
SOCK_NONBLOCK flags, that allow to save fcntl() calls. Implement a variation of the socket() syscall which takes a flags in addition to the type argument. Approved by: kib (mentor) MFC after: 1 month
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 132e431..b7a8830 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -547,6 +547,7 @@ int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h);
#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */
#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */
#define LINUX_O_NOATIME 01000000
+#define LINUX_O_CLOEXEC 02000000
#define LINUX_F_DUPFD 0
#define LINUX_F_GETFD 1
OpenPOWER on IntegriCloud