diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:34:57 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:34:57 +0000 |
commit | afc381ebf7b04eda681277d22c1f70390d1405b1 (patch) | |
tree | 632f08c66807e7c058098d6eebbea0c00dc6f8fc /sys/compat/linux/linux_file.c | |
parent | c7d93122437ca8f979aa0170746081b0e5cc4c4f (diff) | |
download | FreeBSD-src-afc381ebf7b04eda681277d22c1f70390d1405b1.zip FreeBSD-src-afc381ebf7b04eda681277d22c1f70390d1405b1.tar.gz |
Implement F_DUPFD_CLOEXEC fcntl flag.
Differential Revision: https://reviews.freebsd.org/D1089
Reviewed by: trasz
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-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 0ae149a..b2cc8d2 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1390,6 +1390,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); |