Implement F_DUPFD_CLOEXEC fcntl flag.
Differential Revision: https://reviews.freebsd.org/D1089 Reviewed by: trasz
This commit is contained in:
parent
bfa4d74baf
commit
d2b6dbc06f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user