From 67b25fe0a8947de93e3eddd36dae24a9fec12ade Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 15 Apr 2012 17:05:10 -0400 Subject: [PATCH] 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. --- arch/arm/bits/fcntl.h | 2 -- arch/i386/bits/fcntl.h | 2 -- arch/x86_64/bits/fcntl.h | 2 -- include/fcntl.h | 2 ++ 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/bits/fcntl.h b/arch/arm/bits/fcntl.h index da36c2f8..fc65ebcc 100644 --- a/arch/arm/bits/fcntl.h +++ b/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 diff --git a/arch/i386/bits/fcntl.h b/arch/i386/bits/fcntl.h index ab146525..7f09b95c 100644 --- a/arch/i386/bits/fcntl.h +++ b/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 diff --git a/arch/x86_64/bits/fcntl.h b/arch/x86_64/bits/fcntl.h index 40062b5d..7b300210 100644 --- a/arch/x86_64/bits/fcntl.h +++ b/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 diff --git a/include/fcntl.h b/include/fcntl.h index 1c18c6e2..24678b21 100644 --- a/include/fcntl.h +++ b/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 -- 2.25.1