MIPS: Update archfcntl.h
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 Oct 2014 00:08:21 +0000 (01:08 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 5 Oct 2014 00:13:31 +0000 (00:13 +0000)
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>
Gbp-Pq: Name mips-update-archfcntl-h.patch

usr/include/arch/mips/klibc/archfcntl.h

index 2e5711651fb59eb1670ae93c7265c6a5466813c5..586afb4a59911ce34d308e52a155247849306222 100644 (file)
@@ -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
 #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
 
 #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