Implement F_DUPFD_CLOEXEC fcntl flag.

Differential Revision:	https://reviews.freebsd.org/D1089
Reviewed by:	trasz
This commit is contained in:
Dmitry Chagin 2015-05-24 16:34:57 +00:00
parent bfa4d74baf
commit d2b6dbc06f

View File

@ -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);