Support O_CLOEXEC in linux(4) open(2) and openat(2).

Reviewed by:	emaste
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21966
This commit is contained in:
trasz 2019-11-15 16:21:46 +00:00
parent 3db97aba48
commit 9044e67b6e

View File

@ -109,6 +109,8 @@ linux_common_open(struct thread *td, int dirfd, char *path, int l_flags, int mod
bsd_flags |= O_APPEND;
if (l_flags & LINUX_O_SYNC)
bsd_flags |= O_FSYNC;
if (l_flags & LINUX_O_CLOEXEC)
bsd_flags |= O_CLOEXEC;
if (l_flags & LINUX_O_NONBLOCK)
bsd_flags |= O_NONBLOCK;
if (l_flags & LINUX_FASYNC)