[klibc] [PATCH] bring mips archfcntl.h closer to the generic one

Thorsten Glaser tg at mirbsd.org
Thu May 17 10:49:10 PDT 2012


Signed-off-by: Thorsten Glaser <tg at mirbsd.org>
---
 usr/include/arch/mips/klibc/archfcntl.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/usr/include/arch/mips/klibc/archfcntl.h b/usr/include/arch/mips/klibc/archfcntl.h
index 1f61822..affdd2d 100644
--- a/usr/include/arch/mips/klibc/archfcntl.h
+++ b/usr/include/arch/mips/klibc/archfcntl.h
@@ -19,18 +19,20 @@
 #define O_WRONLY	0x0001
 #define O_RDWR		0x0002
 #define O_APPEND	0x0008
-#define O_SYNC		0x0010
+#define O_SYNC		0x0010		/* 0x4010 in eglibc */
 #define O_NONBLOCK	0x0080
 #define O_CREAT         0x0100
 #define O_TRUNC		0x0200
 #define O_EXCL		0x0400
 #define O_NOCTTY	0x0800
-#define FASYNC		0x1000
+#define FASYNC		0x1000		/* called O_ASYNC in eglibc */
 #define O_LARGEFILE	0x2000
+/* eglibc has O_FSYNC = O_SYNC here */
 #define O_DIRECT	0x8000
 #define O_DIRECTORY	0x10000
 #define O_NOFOLLOW	0x20000
 #define O_NOATIME	0x40000
+#define O_CLOEXEC	0x80000
 
 #define O_NDELAY	O_NONBLOCK
 
-- 
1.7.10



More information about the klibc mailing list