[c5c522c] | 1 | From: Ben Hutchings <ben@decadent.org.uk> |
---|
| 2 | Date: Sun, 05 Oct 2014 01:08:21 +0100 |
---|
| 3 | Subject: [klibc] MIPS: Update archfcntl.h |
---|
| 4 | Bug-Debian: https://bugs.debian.org/763049 |
---|
| 5 | Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003879.html |
---|
| 6 | |
---|
| 7 | Update usr/include/arch/mips/archfcntl.h from kernel headers: |
---|
| 8 | |
---|
| 9 | - Add definitions of O_PATH, O_TMPFILE |
---|
| 10 | - Update value of O_SYNC to include __O_SYNC |
---|
| 11 | - Add definitions of F_{SET,GET}OWN_EX, F_GETOWNER_UIDS, |
---|
| 12 | F_OFD_{GETLK,SETLK,SETLKW}, F_OWNER_{TID,PID,PGRP} |
---|
| 13 | |
---|
| 14 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> |
---|
| 15 | --- |
---|
| 16 | --- a/usr/include/arch/mips/klibc/archfcntl.h |
---|
| 17 | +++ b/usr/include/arch/mips/klibc/archfcntl.h |
---|
| 18 | @@ -19,7 +19,6 @@ |
---|
| 19 | #define O_WRONLY 0x0001 |
---|
| 20 | #define O_RDWR 0x0002 |
---|
| 21 | #define O_APPEND 0x0008 |
---|
| 22 | -#define O_SYNC 0x0010 |
---|
| 23 | #define O_NONBLOCK 0x0080 |
---|
| 24 | #define O_CREAT 0x0100 |
---|
| 25 | #define O_TRUNC 0x0200 |
---|
| 26 | @@ -27,11 +26,14 @@ |
---|
| 27 | #define O_NOCTTY 0x0800 |
---|
| 28 | #define FASYNC 0x1000 |
---|
| 29 | #define O_LARGEFILE 0x2000 |
---|
| 30 | +#define O_SYNC 0x4010 |
---|
| 31 | #define O_DIRECT 0x8000 |
---|
| 32 | #define O_DIRECTORY 0x10000 |
---|
| 33 | #define O_NOFOLLOW 0x20000 |
---|
| 34 | #define O_NOATIME 0x40000 |
---|
| 35 | #define O_CLOEXEC 0x80000 |
---|
| 36 | +#define O_PATH 0x200000 |
---|
| 37 | +#define O_TMPFILE 0x410000 |
---|
| 38 | |
---|
| 39 | #define O_NDELAY O_NONBLOCK |
---|
| 40 | |
---|
| 41 | @@ -53,6 +55,24 @@ |
---|
| 42 | #define F_SETLK64 34 |
---|
| 43 | #define F_SETLKW64 35 |
---|
| 44 | |
---|
| 45 | +#define F_SETOWN_EX 15 |
---|
| 46 | +#define F_GETOWN_EX 16 |
---|
| 47 | + |
---|
| 48 | +#define F_GETOWNER_UIDS 17 |
---|
| 49 | + |
---|
| 50 | +#define F_OFD_GETLK 36 |
---|
| 51 | +#define F_OFD_SETLK 37 |
---|
| 52 | +#define F_OFD_SETLKW 38 |
---|
| 53 | + |
---|
| 54 | +#define F_OWNER_TID 0 |
---|
| 55 | +#define F_OWNER_PID 1 |
---|
| 56 | +#define F_OWNER_PGRP 2 |
---|
| 57 | + |
---|
| 58 | +struct f_owner_ex { |
---|
| 59 | + int type; |
---|
| 60 | + pid_t pid; |
---|
| 61 | +}; |
---|
| 62 | + |
---|
| 63 | #define FD_CLOEXEC 1 |
---|
| 64 | |
---|
| 65 | #define F_RDLCK 0 |
---|