linux-user: implement F_[GS]ETOWN_EX
PATCH 1/1 linux-user: implement F_[GS]ETOWN_EX
F_[GS]ETOWN is replaced by F_[GS]ETOWN_EX inside the glibc fcntl wrapper.
Signed-off-by Andreas Schwab <[email protected]>
--- linux-user/syscall.c | 10 ++++++++++ linux-user/syscall_defs.h | 3 +++ 2 files changed, 13 insertions(+)
linux-user/syscall.c +10 -0
@@ -4366,6 +4366,14 @@ static int target_to_host_fcntl_cmd(int cmd)#endif case TARGET_F_NOTIFY :return F_NOTIFY ; +#ifdef F_GETOWN_EX +case TARGET_F_GETOWN_EX : +return F_GETOWN_EX ; +#endif +#ifdef F_SETOWN_EX +case TARGET_F_SETOWN_EX : +return F_SETOWN_EX ; +#endif default :return -TARGET_EINVAL ; }
@@ -4487,6 +4495,8 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg)case TARGET_F_GETSIG :case TARGET_F_SETLEASE :case TARGET_F_GETLEASE : +case TARGET_F_GETOWN_EX : +case TARGET_F_SETOWN_EX : ret =get_errno (fcntl (fd, host_cmd, arg));break ;
linux-user/syscall_defs.h +3 -0
@@ -2134,6 +2134,9 @@ struct target_statfs64 {#define TARGET_F_SETSIG 10/* for sockets. */ #define TARGET_F_GETSIG 11/* for sockets. */ +#define TARGET_F_SETOWN_EX 15 +#define TARGET_F_GETOWN_EX 16 +#if defined(TARGET_MIPS )#define TARGET_F_GETLK64 33/* using 'struct flock64' */ #define TARGET_F_SETLK64 34
Signature · 6 lines
1.9.0 -- Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Please ignore this patch, it was prematurely sent.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."