]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[MIPS] Fix value of O_TRUNC
authorRalf Baechle <ralf@linux-mips.org>
Sat, 29 Sep 2007 23:45:08 +0000 (00:45 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 1 Oct 2007 13:17:50 +0000 (14:17 +0100)
A "cleanup" almost two years ago deleted the old definition from
<asm/fcntl.h>, so asm-generic/fcntl.h defaulted it to the the same
value as FASYNC ...   which happened to be the wrong thing.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/fcntl.h

index 00a50ec1c19fd6426bd57732aad5e2bdd64e7807..2a52333a062d1879d6b06cc2ab1bb44fc67d95b4 100644 (file)
@@ -13,6 +13,7 @@
 #define O_SYNC         0x0010
 #define O_NONBLOCK     0x0080
 #define O_CREAT         0x0100 /* not fcntl */
+#define O_TRUNC                0x0200  /* not fcntl */
 #define O_EXCL         0x0400  /* not fcntl */
 #define O_NOCTTY       0x0800  /* not fcntl */
 #define FASYNC         0x1000  /* fcntl, for BSD compatibility */