diff options
| author | Dmitry Chagin <dchagin@FreeBSD.org> | 2009-06-16 05:10:21 +0000 |
|---|---|---|
| committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2009-06-16 05:10:21 +0000 |
| commit | 83211503bddce283c23f44f7d254b702ff0b9451 (patch) | |
| tree | bb3cb91ee99259bfee784da6f630ba8a1430b080 /sys/amd64/linux32 | |
| parent | a6d69399a0b52c1c43eac249585419778703691f (diff) | |
MFC r192206:
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)
Notes
svn path=/stable/7/; revision=194284
Diffstat (limited to 'sys/amd64/linux32')
| -rw-r--r-- | sys/amd64/linux32/linux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 27b7d53441d0..dc3e5e0d87f0 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -563,6 +563,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 |
