summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-15 17:05:10 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-15 17:05:10 -0400
commit67b25fe0a8947de93e3eddd36dae24a9fec12ade (patch)
tree6de28fda32fd8bf399cd6f6b154d54bd030f1f2e
parenta68af229266d1a937a98fc7474ebe09b7c3c72b3 (diff)
downloadmusl-67b25fe0a8947de93e3eddd36dae24a9fec12ade.tar.gz
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.
-rw-r--r--arch/arm/bits/fcntl.h2
-rw-r--r--arch/i386/bits/fcntl.h2
-rw-r--r--arch/x86_64/bits/fcntl.h2
-rw-r--r--include/fcntl.h2
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