diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-05 15:59:27 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-05 15:59:27 +0100 |
| commit | dc3bdd89c1b8749a0ec7631a8dae80254a50d42d (patch) | |
| tree | 6708334de358012124a32c984a8411da3bd76698 /src | |
| parent | 7e92c912b2616e7c612f2e36cb53c2f6634b7361 (diff) | |
| download | box64-dc3bdd89c1b8749a0ec7631a8dae80254a50d42d.tar.gz box64-dc3bdd89c1b8749a0ec7631a8dae80254a50d42d.zip | |
Added a few more flags on of_convert to limit warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 73e3956c..5f374439 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -575,6 +575,7 @@ int EXPORT my_uname(struct utsname *buf) // X86_O_RDONLY 0x00 #define X86_O_WRONLY 0x01 // octal 01 #define X86_O_RDWR 0x02 // octal 02 +#define X86_FMODE_EXEC 0x20 #define X86_O_CREAT 0x40 // octal 0100 #define X86_O_EXCL 0x80 // octal 0200 #define X86_O_NOCTTY 0x100 // octal 0400 @@ -593,14 +594,23 @@ int EXPORT my_uname(struct utsname *buf) #define X86_O_CLOEXEC 02000000 #define X86_O_PATH 010000000 #define X86_O_TMPFILE 020200000 +#define X86_FMODE_NONOTIFY 0x4000000 #ifndef O_TMPFILE #define O_TMPFILE (020000000 | O_DIRECTORY) #endif +#ifndef FMODE_EXEC +#define FMODE_EXEC 0x20 +#endif +#ifndef FMODE_NONOTIFY +#define FMODE_NONOTIFY 0x4000000 +#endif + #define SUPER() \ GO(O_WRONLY) \ GO(O_RDWR) \ + GO(FMODE_EXEC) \ GO(O_CREAT) \ GO(O_EXCL) \ GO(O_NOCTTY) \ @@ -619,6 +629,7 @@ int EXPORT my_uname(struct utsname *buf) GO(O_NOATIME) \ GO(O_CLOEXEC) \ GO(O_PATH) \ + GO(FMODE_NONOTIFY) // x86->arm int of_convert(int a) |