Commit ca074a33 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Fix value of O_TRUNC

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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1bef7dc0
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#define O_SYNC 0x0010 #define O_SYNC 0x0010
#define O_NONBLOCK 0x0080 #define O_NONBLOCK 0x0080
#define O_CREAT 0x0100 /* not fcntl */ #define O_CREAT 0x0100 /* not fcntl */
#define O_TRUNC 0x0200 /* not fcntl */
#define O_EXCL 0x0400 /* not fcntl */ #define O_EXCL 0x0400 /* not fcntl */
#define O_NOCTTY 0x0800 /* not fcntl */ #define O_NOCTTY 0x0800 /* not fcntl */
#define FASYNC 0x1000 /* fcntl, for BSD compatibility */ #define FASYNC 0x1000 /* fcntl, for BSD compatibility */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment