From: Rich Felker Date: Sun, 15 Apr 2012 21:05:10 +0000 (-0400) Subject: move F_DUPFD_CLOEXEC out of bits X-Git-Tag: v0.8.8~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67b25fe0a8947de93e3eddd36dae24a9fec12ade;p=oweals%2Fmusl.git 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. --- 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