On 1/13/26 11:40 AM, Pierrick Bouvier wrote:
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
Signed-off-by: Pierrick Bouvier <[email protected]>
---
  linux-user/aarch64/target_fcntl.h | 1 +
  1 file changed, 1 insertion(+)

diff --git a/linux-user/aarch64/target_fcntl.h 
b/linux-user/aarch64/target_fcntl.h
index efdf6e5f058..55ab788a7ce 100644
--- a/linux-user/aarch64/target_fcntl.h
+++ b/linux-user/aarch64/target_fcntl.h
@@ -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

Michael, any chance you could pull this as part of one of your series for linux-user?

Regards,
Pierrick

Reply via email to