about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/bits
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2007-07-22 22:43:02 +0000
committerRoland McGrath <roland@gnu.org>2007-07-22 22:43:02 +0000
commit626a51fd5ca2e497c1202de4406414cba2401cd5 (patch)
tree06947086536e39c9808479b1055d46a874abd1cd /sysdeps/mach/hurd/bits
parentc942388dad906c5384837a09477ac743fffed157 (diff)
downloadglibc-626a51fd5ca2e497c1202de4406414cba2401cd5.tar.gz
glibc-626a51fd5ca2e497c1202de4406414cba2401cd5.tar.xz
glibc-626a51fd5ca2e497c1202de4406414cba2401cd5.zip
2007-07-22 Roland McGrath <roland@frob.com>
	* sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
	* hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
Diffstat (limited to 'sysdeps/mach/hurd/bits')
-rw-r--r--sysdeps/mach/hurd/bits/fcntl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h
index e709cc6fb1..34e6baa049 100644
--- a/sysdeps/mach/hurd/bits/fcntl.h
+++ b/sysdeps/mach/hurd/bits/fcntl.h
@@ -1,5 +1,6 @@
 /* O_*, F_*, FD_* bit values for GNU.
-   Copyright (C) 1993,94,96,97,98,99,2000,01,04 Free Software Foundation, Inc.
+   Copyright (C) 1993,1994,1996,1997,1998,1999,2000,2001,2004,2007
+	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -70,6 +71,7 @@
 #define O_SYNC		O_FSYNC
 #ifdef __USE_GNU
 # define O_NOATIME	0x0800	/* Don't set access time on read (owner).  */
+# define O_CLOEXEC	0x00010000 /* Set FD_CLOEXEC.  */
 #endif
 #ifdef	__USE_MISC
 # define O_SHLOCK	0x00020000 /* Open with shared file lock.  */