add O_TMPFILE flag, new in linux 3.11
authorSzabolcs Nagy <nsz@port70.net>
Sat, 23 Nov 2013 23:47:48 +0000 (23:47 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sat, 23 Nov 2013 23:47:48 +0000 (23:47 +0000)
definition in linux:
 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
where __O_TMPFILE and O_DIRECTORY are arch specific

arch/arm/bits/fcntl.h
arch/i386/bits/fcntl.h
arch/microblaze/bits/fcntl.h
arch/mips/bits/fcntl.h
arch/powerpc/bits/fcntl.h
arch/x86_64/bits/fcntl.h

index 98e91d5..eba10ff 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT    0200000
 #define O_LARGEFILE 0400000
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0
index 4cc0312..0fa8e19 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0
index 4cc0312..0fa8e19 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE 0100000
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0
index c51ee7e..5e33f11 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT    0100000
 #define O_LARGEFILE  020000
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0
index b57bd57..548e574 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT    0400000
 #define O_LARGEFILE 0200000
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0
index 0949f31..9977713 100644 (file)
@@ -15,6 +15,7 @@
 #define O_DIRECT     040000
 #define O_LARGEFILE       0
 #define O_NOATIME  01000000
 #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
 #define O_NDELAY O_NONBLOCK
 
 #define F_DUPFD  0