diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:33:55 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 16:33:55 +0000 |
commit | a95b158e60a1b9ea3ee39e786c0afae59fe94f5e (patch) | |
tree | e7e41ebf97f726b55ee71232b0ebb271d5c6340c /sys/compat | |
parent | 6c949662c545dd9a7ca7b073ff0569710cd03772 (diff) | |
download | FreeBSD-src-a95b158e60a1b9ea3ee39e786c0afae59fe94f5e.zip FreeBSD-src-a95b158e60a1b9ea3ee39e786c0afae59fe94f5e.tar.gz |
MFC r283439:
Implement F_DUPFD_CLOEXEC fcntl flag.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 9c49cbc..2279111 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1384,6 +1384,9 @@ fcntl_common(struct thread *td, struct linux_fcntl_args *args) fdrop(fp, td); return (kern_fcntl(td, args->fd, F_SETOWN, args->arg)); + + case LINUX_F_DUPFD_CLOEXEC: + return (kern_fcntl(td, args->fd, F_DUPFD_CLOEXEC, args->arg)); } return (EINVAL); |