OSDN Git Service

nios2: Update fcntl.h from m68k
authorTobias Klauser <tklauser@distanz.ch>
Thu, 18 Mar 2010 11:24:07 +0000 (12:24 +0100)
committerAustin Foxley <austinf@cetoncorp.com>
Thu, 18 Mar 2010 16:48:29 +0000 (09:48 -0700)
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libc/sysdeps/linux/nios2/bits/fcntl.h

index 7d0bcf9..e564b42 100644 (file)
@@ -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