summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorLaurent Vivier2018-05-10 01:11:18 +0200
committerLaurent Vivier2018-05-11 19:04:58 +0200
commitcbf358a667eaac4d305b43a47effd483021f38d7 (patch)
tree88edd8f7d5af44dcc36668b6ab4f4c7bb8948202 /linux-user
parentMerge remote-tracking branch 'remotes/rth/tags/cota-target-pull-request' into... (diff)
downloadqemu-cbf358a667eaac4d305b43a47effd483021f38d7.tar.gz
qemu-cbf358a667eaac4d305b43a47effd483021f38d7.tar.xz
qemu-cbf358a667eaac4d305b43a47effd483021f38d7.zip
linux-user: define correct fcntl() values for sparc
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Message-Id: <20180509231123.20864-2-laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall_defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 361bb83a29..ec3f561685 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -2441,6 +2441,15 @@ struct target_statfs64 {
#define TARGET_F_SETLKW 7
#define TARGET_F_GETOWN 11 /* for sockets. */
#define TARGET_F_SETOWN 12 /* for sockets. */
+#elif defined(TARGET_SPARC)
+#define TARGET_F_RDLCK 1
+#define TARGET_F_WRLCK 2
+#define TARGET_F_UNLCK 3
+#define TARGET_F_GETOWN 5 /* for sockets. */
+#define TARGET_F_SETOWN 6 /* for sockets. */
+#define TARGET_F_GETLK 7
+#define TARGET_F_SETLK 8
+#define TARGET_F_SETLKW 9
#else
#define TARGET_F_GETLK 5
#define TARGET_F_SETLK 6