mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
c9fecf3a55
- You can now run `make -j8 toolchain` on Windows - You can now run `make -j` on MacOS ARM64 and BSD OSes - You can now use our Emacs dev environment on MacOS/Windows - Fix bug where the x16 register was being corrupted by --ftrace - The programs under build/bootstrap/ are updated as fat binaries - The Makefile now explains how to download cosmocc-0.0.12 toolchain - The build scripts under bin/ now support "cosmo" branded toolchains - stat() now goes faster on Windows (shaves 100ms off `make` latency) - Code cleanup and added review on the Windows signal checking code - posix_spawnattr_setrlimit() now works around MacOS ARM64 bugs - Landlock Make now favors posix_spawn() on non-Linux/OpenBSD - posix_spawn() now has better --strace logging on Windows - fstatat() can now avoid EACCES in more cases on Windows - fchmod() can now change the readonly bit on Windows
22 lines
1.1 KiB
C
22 lines
1.1 KiB
C
#ifndef COSMOPOLITAN_LIBC_CALLS_CREATEFILEFLAGS_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS_CREATEFILEFLAGS_INTERNAL_H_
|
|
|
|
// code size optimization
|
|
// <sync libc/sysv/consts.sh>
|
|
#define _O_APPEND 0x00000400 // kNtFileAppendData
|
|
#define _O_CREAT 0x00000040 // kNtOpenAlways
|
|
#define _O_EXCL 0x00000080 // kNtCreateNew
|
|
#define _O_TRUNC 0x00000200 // kNtCreateAlways
|
|
#define _O_DIRECTORY 0x00010000 // kNtFileFlagBackupSemantics
|
|
#define _O_UNLINK 0x04000100 // kNtFileAttributeTemporary|DeleteOnClose
|
|
#define _O_DIRECT 0x00004000 // kNtFileFlagNoBuffering
|
|
#define _O_NONBLOCK 0x00000800 // kNtFileFlagWriteThrough (not sent to win32)
|
|
#define _O_RANDOM 0x80000000 // kNtFileFlagRandomAccess
|
|
#define _O_SEQUENTIAL 0x40000000 // kNtFileFlagSequentialScan
|
|
#define _O_COMPRESSED 0x20000000 // kNtFileAttributeCompressed
|
|
#define _O_INDEXED 0x10000000 // !kNtFileAttributeNotContentIndexed
|
|
#define _O_NOFOLLOW 0x00020000 // kNtFileFlagOpenReparsePoint
|
|
#define _O_CLOEXEC 0x00080000
|
|
// </sync libc/sysv/consts.sh>
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_CREATEFILEFLAGS_INTERNAL_H_ */
|