aboutsummaryrefslogtreecommitdiff
path: root/linux-user/mips/target_fcntl.h
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-05-29 21:41:57 +0200
committerLaurent Vivier <laurent@vivier.eu>2018-06-04 01:30:44 +0200
commitb9acdef7861b63b17335112133995db3667aa9de (patch)
tree4a9df8f17a4adef58b11f5c8c349923538d8d297 /linux-user/mips/target_fcntl.h
parent050a1ba69a61f0d4ef79a6b252ffe449b7ca37e7 (diff)
downloadqemu-b9acdef7861b63b17335112133995db3667aa9de.zip
qemu-b9acdef7861b63b17335112133995db3667aa9de.tar.gz
qemu-b9acdef7861b63b17335112133995db3667aa9de.tar.bz2
linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h
No code change. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180529194207.31503-6-laurent@vivier.eu>
Diffstat (limited to 'linux-user/mips/target_fcntl.h')
-rw-r--r--linux-user/mips/target_fcntl.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/linux-user/mips/target_fcntl.h b/linux-user/mips/target_fcntl.h
index 5404245..000527c 100644
--- a/linux-user/mips/target_fcntl.h
+++ b/linux-user/mips/target_fcntl.h
@@ -7,5 +7,32 @@
#ifndef MIPS_TARGET_FCNTL_H
#define MIPS_TARGET_FCNTL_H
+
+#define TARGET_O_APPEND 0x0008
+#define TARGET_O_DSYNC 0x0010
+#define TARGET_O_NONBLOCK 0x0080
+#define TARGET_O_CREAT 0x0100 /* not fcntl */
+#define TARGET_O_TRUNC 0x0200 /* not fcntl */
+#define TARGET_O_EXCL 0x0400 /* not fcntl */
+#define TARGET_O_NOCTTY 0x0800 /* not fcntl */
+#define TARGET_FASYNC 0x1000 /* fcntl, for BSD compatibility */
+#define TARGET_O_LARGEFILE 0x2000 /* allow large file opens */
+#define TARGET___O_SYNC 0x4000
+#define TARGET_O_DIRECT 0x8000 /* direct disk access hint */
+
+#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 23 /* for sockets. */
+
+#define TARGET_ARCH_FLOCK_PAD abi_long pad[4];
+#define TARGET_ARCH_FLOCK64_PAD
+
+#define TARGET_F_GETLK64 33 /* using 'struct flock64' */
+#define TARGET_F_SETLK64 34
+#define TARGET_F_SETLKW64 35
+
#include "../generic/fcntl.h"
#endif