Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common We have O_CLOEXEC now



details:   https://anonhg.NetBSD.org/src/rev/8a3f8b91c3d4
branches:  trunk
changeset: 764024:8a3f8b91c3d4
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 10 15:49:56 2011 +0000

description:
We have O_CLOEXEC now

diffstat:

 sys/compat/linux/common/linux_file.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a8f2aebd23d3 -r 8a3f8b91c3d4 sys/compat/linux/common/linux_file.c
--- a/sys/compat/linux/common/linux_file.c      Sun Apr 10 15:49:23 2011 +0000
+++ b/sys/compat/linux/common/linux_file.c      Sun Apr 10 15:49:56 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_file.c,v 1.101 2010/11/19 06:44:37 dholland Exp $        */
+/*     $NetBSD: linux_file.c,v 1.102 2011/04/10 15:49:56 christos Exp $        */
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.101 2010/11/19 06:44:37 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.102 2011/04/10 15:49:56 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -102,6 +102,7 @@
        res |= cvtto_bsd_mask(lflags, LINUX_FASYNC, O_ASYNC);
        res |= cvtto_bsd_mask(lflags, LINUX_O_APPEND, O_APPEND);
        res |= cvtto_bsd_mask(lflags, LINUX_O_DIRECTORY, O_DIRECTORY);
+       res |= cvtto_bsd_mask(lflags, LINUX_O_CLOEXEC, O_CLOEXEC);
 
        return res;
 }
@@ -123,6 +124,7 @@
        res |= cvtto_linux_mask(bflags, O_ASYNC, LINUX_FASYNC);
        res |= cvtto_linux_mask(bflags, O_APPEND, LINUX_O_APPEND);
        res |= cvtto_linux_mask(bflags, O_DIRECTORY, LINUX_O_DIRECTORY);
+       res |= cvtto_linux_mask(bflags, O_CLOEXEC, LINUX_O_CLOEXEC);
 
        return res;
 }



Home | Main Index | Thread Index | Old Index