mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
RFC: fix fcntl support in linux-user - new try
Hi, This is a new try to fix the fcntl support in linux-user. I tried to adress all comments but as the previous version is several weeks old, it's possible that I've missed some. This patch doesn't handle linux specific fcntl flags. My plan is to get this version of the patch reviewed/fixed and then, add them if wanted. Thanks, Arnaud Signed-off-by: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
This commit is contained in:
parent
3ce34dfb42
commit
5f10681186
2 changed files with 73 additions and 24 deletions
|
@ -1745,6 +1745,12 @@ struct target_statfs64 {
|
|||
#define TARGET_F_SETLKW 9
|
||||
#define TARGET_F_SETOWN 5 /* for sockets. */
|
||||
#define TARGET_F_GETOWN 6 /* for sockets. */
|
||||
#elif defined(TARGET_MIPS)
|
||||
#define TARGET_F_GETLK 14
|
||||
#define TARGET_F_SETLK 6
|
||||
#define TARGET_F_SETLKW 7
|
||||
#define TARGET_F_SETOWN 24 /* for sockets. */
|
||||
#define TARGET_F_GETOWN 25 /* for sockets. */
|
||||
#else
|
||||
#define TARGET_F_GETLK 5
|
||||
#define TARGET_F_SETLK 6
|
||||
|
@ -1756,10 +1762,15 @@ struct target_statfs64 {
|
|||
#define TARGET_F_SETSIG 10 /* for sockets. */
|
||||
#define TARGET_F_GETSIG 11 /* for sockets. */
|
||||
|
||||
#if defined(TARGET_MIPS)
|
||||
#define TARGET_F_GETLK64 33 /* using 'struct flock64' */
|
||||
#define TARGET_F_SETLK64 34
|
||||
#define TARGET_F_SETLKW64 35
|
||||
#else
|
||||
#define TARGET_F_GETLK64 12 /* using 'struct flock64' */
|
||||
#define TARGET_F_SETLK64 13
|
||||
#define TARGET_F_SETLKW64 14
|
||||
|
||||
#endif
|
||||
#if defined (TARGET_ARM)
|
||||
#define TARGET_O_ACCMODE 0003
|
||||
#define TARGET_O_RDONLY 00
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue