Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_file.h
Context not available. | |||||
#define LINUX_O_NDELAY LINUX_O_NONBLOCK | #define LINUX_O_NDELAY LINUX_O_NONBLOCK | ||||
#define LINUX_O_SYNC 00010000 | #define LINUX_O_SYNC 00010000 | ||||
#define LINUX_FASYNC 00020000 | #define LINUX_FASYNC 00020000 | ||||
#if defined(__arm__) | |||||
#define LINUX_O_DIRECTORY 00040000 | |||||
#define LINUX_O_NOFOLLOW 00100000 | |||||
#define LINUX_O_DIRECT 00200000 | |||||
#define LINUX_O_LARGEFILE 00400000 | |||||
#else /* !defined(__arm__) */ | |||||
#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ | #define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ | ||||
imp: Is this x86 only? Or are there other emulations that use these values? If it is x86 only, I'd… | |||||
Not Done Inline ActionsFrom my point of view, these values should be the same for all architectures. I don't know why they changed them for ARM... soutade_gmail.com: From my point of view, these values should be the same for all architectures. I don't know why… | |||||
Not Done Inline ActionsIt's different for Alpha and PARISC (0100000). Blackfin, arm, arm64, PowerPC and m68k has the same value. soutade_gmail.com: It's different for Alpha and PARISC (0100000). Blackfin, arm, arm64, PowerPC and m68k has the… | |||||
Not Done Inline ActionsRight, but if I wanted to do linux emulation for powerpc or mips, I might use the wrong values unknowingly. These values are different for arm, arm64, and powerpc (among others). What's left are the generic ones it seems. imp: Right, but if I wanted to do linux emulation for powerpc or mips, I might use the wrong values… | |||||
#define LINUX_O_LARGEFILE 00100000 | #define LINUX_O_LARGEFILE 00100000 | ||||
#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ | #define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ | ||||
#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ | #define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ | ||||
#endif /* defined(__arm__) */ | |||||
#define LINUX_O_NOATIME 01000000 | #define LINUX_O_NOATIME 01000000 | ||||
#define LINUX_O_CLOEXEC 02000000 | #define LINUX_O_CLOEXEC 02000000 | ||||
Context not available. |
Is this x86 only? Or are there other emulations that use these values? If it is x86 only, I'd be tempted to have an #elsif defined(i386) || defined(amd64) here with a #else that's just an #error "No value defined for this architecture"