aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-01-06 00:43:25 +0000
committerH. Peter Anvin <hpa@linux.intel.com>2016-01-05 17:45:36 -0800
commit3fefc6a404a970a911417d0345618a7e9abfef70 (patch)
treed2020627c7733863bb76b266525d7e856c109a01
parent6e2976b9d103fb37a6a06e5bccb323fa5ab1c53b (diff)
downloadklibc-3fefc6a404a970a911417d0345618a7e9abfef70.tar.gz
[klibc] MIPS: Update archfcntl.h
Update usr/include/arch/mips/archfcntl.h from kernel headers: - Add definitions of O_PATH, O_TMPFILE - Update value of O_SYNC to include __O_SYNC - Add definitions of F_{SET,GET}OWN_EX, F_GETOWNER_UIDS, F_OFD_{GETLK,SETLK,SETLKW}, F_OWNER_{TID,PID,PGRP} Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--usr/include/arch/mips/klibc/archfcntl.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/usr/include/arch/mips/klibc/archfcntl.h b/usr/include/arch/mips/klibc/archfcntl.h
index 2e5711651fb59e..586afb4a59911c 100644
--- a/usr/include/arch/mips/klibc/archfcntl.h
+++ b/usr/include/arch/mips/klibc/archfcntl.h
@@ -19,7 +19,6 @@
#define O_WRONLY 0x0001
#define O_RDWR 0x0002
#define O_APPEND 0x0008
-#define O_SYNC 0x0010
#define O_NONBLOCK 0x0080
#define O_CREAT 0x0100
#define O_TRUNC 0x0200
@@ -27,11 +26,14 @@
#define O_NOCTTY 0x0800
#define FASYNC 0x1000
#define O_LARGEFILE 0x2000
+#define O_SYNC 0x4010
#define O_DIRECT 0x8000
#define O_DIRECTORY 0x10000
#define O_NOFOLLOW 0x20000
#define O_NOATIME 0x40000
#define O_CLOEXEC 0x80000
+#define O_PATH 0x200000
+#define O_TMPFILE 0x410000
#define O_NDELAY O_NONBLOCK
@@ -53,6 +55,24 @@
#define F_SETLK64 34
#define F_SETLKW64 35
+#define F_SETOWN_EX 15
+#define F_GETOWN_EX 16
+
+#define F_GETOWNER_UIDS 17
+
+#define F_OFD_GETLK 36
+#define F_OFD_SETLK 37
+#define F_OFD_SETLKW 38
+
+#define F_OWNER_TID 0
+#define F_OWNER_PID 1
+#define F_OWNER_PGRP 2
+
+struct f_owner_ex {
+ int type;
+ pid_t pid;
+};
+
#define FD_CLOEXEC 1
#define F_RDLCK 0