svn commit: r364677 - stable/12/sys/compat/linux
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Aug 24 13:52:48 UTC 2020
Author: trasz
Date: Mon Aug 24 13:52:47 2020
New Revision: 364677
URL: https://svnweb.freebsd.org/changeset/base/364677
Log:
MFC r354732:
Support O_CLOEXEC in linux(4) open(2) and openat(2).
Sponsored by: The FreeBSD Foundation
Modified:
stable/12/sys/compat/linux/linux_file.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linux/linux_file.c
==============================================================================
--- stable/12/sys/compat/linux/linux_file.c Mon Aug 24 13:50:55 2020 (r364676)
+++ stable/12/sys/compat/linux/linux_file.c Mon Aug 24 13:52:47 2020 (r364677)
@@ -112,6 +112,8 @@ linux_common_open(struct thread *td, int dirfd, char *
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)
More information about the svn-src-all
mailing list