Date: Fri, 15 Nov 2019 16:21:47 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354732 - head/sys/compat/linux Message-ID: <201911151621.xAFGLl4Z007415@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Fri Nov 15 16:21:46 2019 New Revision: 354732 URL: https://svnweb.freebsd.org/changeset/base/354732 Log: 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 Modified: head/sys/compat/linux/linux_file.c Modified: head/sys/compat/linux/linux_file.c ============================================================================== --- head/sys/compat/linux/linux_file.c Fri Nov 15 13:45:38 2019 (r354731) +++ head/sys/compat/linux/linux_file.c Fri Nov 15 16:21:46 2019 (r354732) @@ -109,6 +109,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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911151621.xAFGLl4Z007415>