diff options
author | kib <kib@FreeBSD.org> | 2012-07-19 10:22:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-07-19 10:22:54 +0000 |
commit | fb0ee769bd9aa180616ea0ffdb18d9c7bd7a7dfa (patch) | |
tree | 4e8cf53490b792520f6380caf057e1c5a1f293e4 /sys/sys/fcntl.h | |
parent | 97b9555773b8be7411fcf9ffaf0d3f72986eb4d9 (diff) | |
download | FreeBSD-src-fb0ee769bd9aa180616ea0ffdb18d9c7bd7a7dfa.zip FreeBSD-src-fb0ee769bd9aa180616ea0ffdb18d9c7bd7a7dfa.tar.gz |
Implement F_DUPFD_CLOEXEC command for fcntl(2), specified by SUSv4.
PR: standards/169962
Submitted by: Jukka A. Ukkonen <jau iki fi>
MFC after: 1 week
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r-- | sys/sys/fcntl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 29b2a0c..d78d35d 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -225,6 +225,9 @@ typedef __pid_t pid_t; #define F_SETLK_REMOTE 14 /* debugging support for remote locks */ #define F_READAHEAD 15 /* read ahead */ #define F_RDAHEAD 16 /* Darwin compatible read ahead */ +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 +#define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ +#endif /* file descriptor flags (F_GETFD, F_SETFD) */ #define FD_CLOEXEC 1 /* close-on-exec flag */ |