]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user/aarch64/target_fcntl.h: add missing TARGET_O_LARGEFILE definition
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Tue, 13 Jan 2026 19:40:29 +0000 (11:40 -0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 Jan 2026 12:21:08 +0000 (15:21 +0300)
This caused a failure with program using openat2, where O_LARGEFILE was
replaced by O_NOFOLLOW.
This issue is only visible when QEMU is compiled with musl libc, where
O_LARGEFILE is different from 0 (vs glibc).

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3262
Cc: qemu-stable@nongnu.org
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/aarch64/target_fcntl.h

index efdf6e5f058021609b77d1b18b917517638977f9..55ab788a7ce341433590deaceadf444fd4fe9294 100644 (file)
@@ -11,6 +11,7 @@
 #define TARGET_O_DIRECTORY      040000 /* must be a directory */
 #define TARGET_O_NOFOLLOW      0100000 /* don't follow links */
 #define TARGET_O_DIRECT        0200000 /* direct disk access hint */
+#define TARGET_O_LARGEFILE     0400000
 
 #include "../generic/fcntl.h"
 #endif