]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user: Add missing TARGET___O_TMPFILE for hppa and alpha
authorHelge Deller <deller@gmx.de>
Mon, 1 Feb 2021 15:59:22 +0000 (16:59 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 13 Feb 2021 21:50:49 +0000 (22:50 +0100)
The hppa and alpha targets miss the #define of the TARGET___O_TMPFILE
and as such fail to run a trivial symlink command like

    ln -s /bin/bash /tmp

which results in an -EINVAL return code.

Adding the define fixes the problem.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210201155922.GA18291@ls3530.fritz.box>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/alpha/target_fcntl.h
linux-user/hppa/target_fcntl.h

index e16ed1d4157f356762a094956f3b43d56c45becd..99774d73172790419e5027298835320719ab45a9 100644 (file)
@@ -23,6 +23,7 @@
 #define TARGET_O_CLOEXEC     010000000
 #define TARGET___O_SYNC      020000000
 #define TARGET_O_PATH        040000000
+#define TARGET___O_TMPFILE  0100000000
 
 #define TARGET_F_GETLK         7
 #define TARGET_F_SETLK         8
index bd966a59b8d4aa687864eaf657c06cc296102699..9eaeef9d8e7b77122abc1cf0eac73abbccc3dc85 100644 (file)
@@ -21,6 +21,7 @@
 #define TARGET_O_CLOEXEC     010000000
 #define TARGET___O_SYNC      000100000
 #define TARGET_O_PATH        020000000
+#define TARGET___O_TMPFILE   040000000
 
 #define TARGET_F_RDLCK         1
 #define TARGET_F_WRLCK         2