1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283439

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