]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/uapi/asm-generic/fcntl.h
serial: icom: move array overflow checks earlier
[karo-tx-linux.git] / include / uapi / asm-generic / fcntl.h
index 06632beaa6d515d80fc2a62c5ddca455c964e0a3..95e46c8e05f90db319b2828eb53aa93bdca0629d 100644 (file)
 #define O_PATH         010000000
 #endif
 
-#ifndef O_TMPFILE
-#define O_TMPFILE      020000000
+#ifndef __O_TMPFILE
+#define __O_TMPFILE    020000000
 #endif
 
+/* a horrid kludge trying to make sure that this will fail on old kernels */
+#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
+#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)      
+
 #ifndef O_NDELAY
 #define O_NDELAY       O_NONBLOCK
 #endif