Commit f09936ac82b3c56a0a36a533dd3f63d08e013e7d
1 parent
d0309311
ARM fcntl flag fixes (Lennert Buytenhek)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@564 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
19 additions
and
1 deletions
linux-user/syscall_defs.h
| ... | ... | @@ -905,7 +905,25 @@ struct target_stat64 { |
| 905 | 905 | #define TARGET_F_SETLK64 13 |
| 906 | 906 | #define TARGET_F_SETLKW64 14 |
| 907 | 907 | |
| 908 | -#if defined (TARGET_PPC) | |
| 908 | +#if defined (TARGET_ARM) | |
| 909 | +#define TARGET_O_ACCMODE 0003 | |
| 910 | +#define TARGET_O_RDONLY 00 | |
| 911 | +#define TARGET_O_WRONLY 01 | |
| 912 | +#define TARGET_O_RDWR 02 | |
| 913 | +#define TARGET_O_CREAT 0100 /* not fcntl */ | |
| 914 | +#define TARGET_O_EXCL 0200 /* not fcntl */ | |
| 915 | +#define TARGET_O_NOCTTY 0400 /* not fcntl */ | |
| 916 | +#define TARGET_O_TRUNC 01000 /* not fcntl */ | |
| 917 | +#define TARGET_O_APPEND 02000 | |
| 918 | +#define TARGET_O_NONBLOCK 04000 | |
| 919 | +#define TARGET_O_NDELAY O_NONBLOCK | |
| 920 | +#define TARGET_O_SYNC 010000 | |
| 921 | +#define TARGET_FASYNC 020000 /* fcntl, for BSD compatibility */ | |
| 922 | +#define TARGET_O_DIRECTORY 040000 /* must be a directory */ | |
| 923 | +#define TARGET_O_NOFOLLOW 0100000 /* don't follow links */ | |
| 924 | +#define TARGET_O_DIRECT 0200000 /* direct disk access hint */ | |
| 925 | +#define TARGET_O_LARGEFILE 0400000 | |
| 926 | +#elif defined (TARGET_PPC) | |
| 909 | 927 | #define TARGET_O_ACCMODE 0003 |
| 910 | 928 | #define TARGET_O_RDONLY 00 |
| 911 | 929 | #define TARGET_O_WRONLY 01 | ... | ... |