aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/bits
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2007-10-17 22:32:35 +0000
committerRoland McGrath <roland@gnu.org>2007-10-17 22:32:35 +0000
commitbd92328d5eb04b1d0dd24a4bdbfcfd1e607a6163 (patch)
treee1dfb3f26d2ea64557ec90f7410cb3d32ff6955f /sysdeps/mach/hurd/bits
parentf71cda6a38e5f116041c08399b62c6dd4f210306 (diff)
downloadglibc-bd92328d5eb04b1d0dd24a4bdbfcfd1e607a6163.tar
glibc-bd92328d5eb04b1d0dd24a4bdbfcfd1e607a6163.tar.gz
glibc-bd92328d5eb04b1d0dd24a4bdbfcfd1e607a6163.tar.bz2
glibc-bd92328d5eb04b1d0dd24a4bdbfcfd1e607a6163.zip
2007-10-17 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New. * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
Diffstat (limited to 'sysdeps/mach/hurd/bits')
-rw-r--r--sysdeps/mach/hurd/bits/fcntl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h
index 34e6baa049..8ed786d256 100644
--- a/sysdeps/mach/hurd/bits/fcntl.h
+++ b/sysdeps/mach/hurd/bits/fcntl.h
@@ -163,6 +163,11 @@
#define F_SETLK 8 /* Set record locking info (non-blocking). */
#define F_SETLKW 9 /* Set record locking info (blocking). */
+#ifdef __USE_GNU
+# define F_DUPFD_CLOEXEC 1030 /* Duplicate, set FD_CLOEXEC on new one. */
+#endif
+
+
/* File descriptor flags used with F_GETFD and F_SETFD. */
#define FD_CLOEXEC 1 /* Close on exec. */