[klibc] [klibc:master] MIPS: Update archfcntl.h

klibc-bot for Ben Hutchings ben at decadent.org.uk
Tue Jan 5 17:54:04 PST 2016


Commit-ID:  3fefc6a404a970a911417d0345618a7e9abfef70
Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=3fefc6a404a970a911417d0345618a7e9abfef70
Author:     Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Wed, 6 Jan 2016 00:43:25 +0000
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Tue, 5 Jan 2016 17:45:36 -0800

[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 at decadent.org.uk>
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

---
 usr/include/arch/mips/klibc/archfcntl.h | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/usr/include/arch/mips/klibc/archfcntl.h b/usr/include/arch/mips/klibc/archfcntl.h
index 2e57116..586afb4 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


More information about the klibc mailing list