summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/bits/fcntl.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-03-18 12:24:07 +0100
committerAustin Foxley <austinf@cetoncorp.com>2010-03-18 09:48:29 -0700
commitbfb15be4e65cdcd214794060b154baeca57d8338 (patch)
treed11e5d3436a7f493a08a184276c084d894646cb1 /libc/sysdeps/linux/nios2/bits/fcntl.h
parent266aaaf46e136d63532a797fd8604e30d4350443 (diff)
nios2: Update fcntl.h from m68k
Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/nios2/bits/fcntl.h')
-rw-r--r--libc/sysdeps/linux/nios2/bits/fcntl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/nios2/bits/fcntl.h b/libc/sysdeps/linux/nios2/bits/fcntl.h
index 7d0bcf946..e564b4217 100644
--- a/libc/sysdeps/linux/nios2/bits/fcntl.h
+++ b/libc/sysdeps/linux/nios2/bits/fcntl.h
@@ -1,5 +1,5 @@
/* O_*, F_*, FD_* bit values for Linux.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2004 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
@@ -48,6 +48,8 @@
# define O_DIRECTORY 040000 /* Must be a directory. */
# define O_NOFOLLOW 0100000 /* Do not follow links. */
# define O_DIRECT 0200000 /* Direct disk access. */
+# define O_NOATIME 01000000 /* Do not set atime. */
+# define O_CLOEXEC 02000000 /* set close_on_exec */
#endif
/* For now Linux has synchronisity options for data and read operations.
@@ -81,7 +83,7 @@
#define F_SETLK64 13 /* Set record locking info (non-blocking). */
#define F_SETLKW64 14 /* Set record locking info (blocking). */
-#if defined __USE_BSD || defined __USE_XOPEN2K
+#if defined __USE_BSD || defined __USE_UNIX98
# define F_SETOWN 8 /* Get owner of socket (receiver of SIGIO). */
# define F_GETOWN 9 /* Set owner of socket (receiver of SIGIO). */
#endif