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> (cherry picked from commit 83017c4aaa9e3ef80161443019764196dffdb654) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
17 lines
624 B
C
17 lines
624 B
C
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation, or (at your option) any
|
|
* later version. See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef AARCH64_TARGET_FCNTL_H
|
|
#define AARCH64_TARGET_FCNTL_H
|
|
|
|
#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
|