From 5351e066994a3d70d5c9b6c7a9d290bd517a8966 Mon Sep 17 00:00:00 2001 From: dchagin Date: Sat, 16 May 2009 18:48:41 +0000 Subject: 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 --- sys/i386/linux/linux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/i386') 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 -- cgit v1.1