Fix Alpha O_CLOEXEC definition
authorRichard Henderson <rth@twiddle.net>
Wed, 8 Aug 2007 20:17:08 +0000 (13:17 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 9 Aug 2007 15:39:22 +0000 (08:39 -0700)
The default definition in asm-generic conflicts with Alpha's O_DIRECT,
so, like several other arches, it needs to be redefined.

Signed-off-by: Richard Hendersion <rth@twiddle.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-alpha/fcntl.h

index 87f2cf4..25da001 100644 (file)
@@ -16,6 +16,7 @@
 #define O_LARGEFILE    0400000 /* will be set by the kernel on every open */
 #define O_DIRECT       02000000 /* direct disk access - should check with OSF/1 */
 #define O_NOATIME      04000000
+#define O_CLOEXEC      010000000 /* set close_on_exec */
 
 #define F_GETLK                7
 #define F_SETLK                8