From f7d348ec39ce31efdc4963eb4a8f16f48e5ef095 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 23 Nov 2013 23:47:48 +0000 Subject: add O_TMPFILE flag, new in linux 3.11 definition in linux: #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) where __O_TMPFILE and O_DIRECTORY are arch specific --- arch/arm/bits/fcntl.h | 1 + arch/i386/bits/fcntl.h | 1 + arch/microblaze/bits/fcntl.h | 1 + arch/mips/bits/fcntl.h | 1 + arch/powerpc/bits/fcntl.h | 1 + arch/x86_64/bits/fcntl.h | 1 + 6 files changed, 6 insertions(+) (limited to 'arch') diff --git a/arch/arm/bits/fcntl.h b/arch/arm/bits/fcntl.h index 98e91d53..eba10ffc 100644 --- a/arch/arm/bits/fcntl.h +++ b/arch/arm/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 0200000 #define O_LARGEFILE 0400000 #define O_NOATIME 01000000 +#define O_TMPFILE 020040000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 diff --git a/arch/i386/bits/fcntl.h b/arch/i386/bits/fcntl.h index 4cc0312d..0fa8e19c 100644 --- a/arch/i386/bits/fcntl.h +++ b/arch/i386/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 040000 #define O_LARGEFILE 0100000 #define O_NOATIME 01000000 +#define O_TMPFILE 020200000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 diff --git a/arch/microblaze/bits/fcntl.h b/arch/microblaze/bits/fcntl.h index 4cc0312d..0fa8e19c 100644 --- a/arch/microblaze/bits/fcntl.h +++ b/arch/microblaze/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 040000 #define O_LARGEFILE 0100000 #define O_NOATIME 01000000 +#define O_TMPFILE 020200000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 diff --git a/arch/mips/bits/fcntl.h b/arch/mips/bits/fcntl.h index c51ee7e7..5e33f11a 100644 --- a/arch/mips/bits/fcntl.h +++ b/arch/mips/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 0100000 #define O_LARGEFILE 020000 #define O_NOATIME 01000000 +#define O_TMPFILE 020200000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 diff --git a/arch/powerpc/bits/fcntl.h b/arch/powerpc/bits/fcntl.h index b57bd57d..548e5741 100644 --- a/arch/powerpc/bits/fcntl.h +++ b/arch/powerpc/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 0400000 #define O_LARGEFILE 0200000 #define O_NOATIME 01000000 +#define O_TMPFILE 020040000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 diff --git a/arch/x86_64/bits/fcntl.h b/arch/x86_64/bits/fcntl.h index 0949f31d..99777139 100644 --- a/arch/x86_64/bits/fcntl.h +++ b/arch/x86_64/bits/fcntl.h @@ -15,6 +15,7 @@ #define O_DIRECT 040000 #define O_LARGEFILE 0 #define O_NOATIME 01000000 +#define O_TMPFILE 020200000 #define O_NDELAY O_NONBLOCK #define F_DUPFD 0 -- cgit v1.2.3-70-g09d2