Browse Source

move F_DUPFD_CLOEXEC out of bits

fcntl values 1024 and up are universal, arch-independent. later I'll
add some of the other linux-specific ones for notify, leases, pipe
size, etc. here too.
Rich Felker 13 years ago
parent
commit
67b25fe0a8
4 changed files with 2 additions and 6 deletions
  1. 0 2
      arch/arm/bits/fcntl.h
  2. 0 2
      arch/i386/bits/fcntl.h
  3. 0 2
      arch/x86_64/bits/fcntl.h
  4. 2 0
      include/fcntl.h

+ 0 - 2
arch/arm/bits/fcntl.h

@@ -31,5 +31,3 @@
 #define F_GETLK 12
 #define F_SETLK 13
 #define F_SETLKW 14
-
-#define F_DUPFD_CLOEXEC 1030

+ 0 - 2
arch/i386/bits/fcntl.h

@@ -31,5 +31,3 @@
 #define F_GETLK 12
 #define F_SETLK 13
 #define F_SETLKW 14
-
-#define F_DUPFD_CLOEXEC 1030

+ 0 - 2
arch/x86_64/bits/fcntl.h

@@ -31,5 +31,3 @@
 #define F_GETLK 5
 #define F_SETLK 6
 #define F_SETLKW 7
-
-#define F_DUPFD_CLOEXEC 1030

+ 2 - 0
include/fcntl.h

@@ -34,6 +34,8 @@ int posix_fallocate(int, off_t, off_t);
 #define O_WRONLY  01
 #define O_RDWR    02
 
+#define F_DUPFD_CLOEXEC 1030
+
 #define F_RDLCK 0
 #define F_WRLCK 1
 #define F_UNLCK 2