mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Elevate Windows production worthiness
- SQLite file locking now works on Windows - SQLite will now use fdatasync() on non-Apple platforms - Fix Ctrl-C handler on Windows to not crash with TLS - Signals now work in multithreaded apps on Windows - fcntl() will now accurately report EINVAL errors - fcntl() now has excellent --strace logging - Token bucket replenish now go 100x faster - *NSYNC cancellations now work on Windows - Support closefrom() on NetBSD
This commit is contained in:
parent
d38700687a
commit
997ce29ddc
95 changed files with 959 additions and 418 deletions
|
@ -4,6 +4,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int F_BARRIERFSYNC;
|
||||
extern const int F_DUPFD;
|
||||
extern const int F_DUPFD_CLOEXEC;
|
||||
extern const int F_FULLFSYNC;
|
||||
|
@ -12,11 +13,14 @@ extern const int F_GETFL;
|
|||
extern const int F_GETLEASE;
|
||||
extern const int F_GETLK64;
|
||||
extern const int F_GETLK;
|
||||
extern const int F_GETNOSIGPIPE;
|
||||
extern const int F_GETOWN;
|
||||
extern const int F_GETOWN_EX;
|
||||
extern const int F_GETPATH;
|
||||
extern const int F_GETPIPE_SZ;
|
||||
extern const int F_GETSIG;
|
||||
extern const int F_LOCK;
|
||||
extern const int F_MAXFD;
|
||||
extern const int F_NOCACHE;
|
||||
extern const int F_NOTIFY;
|
||||
extern const int F_OFD_GETLK;
|
||||
|
@ -30,13 +34,11 @@ extern const int F_SETLK64;
|
|||
extern const int F_SETLK;
|
||||
extern const int F_SETLKW64;
|
||||
extern const int F_SETLKW;
|
||||
extern const int F_SETNOSIGPIPE;
|
||||
extern const int F_SETOWN;
|
||||
extern const int F_SETOWN_EX;
|
||||
extern const int F_SETPIPE_SZ;
|
||||
extern const int F_SETSIG;
|
||||
extern const int F_TEST;
|
||||
extern const int F_TLOCK;
|
||||
extern const int F_ULOCK;
|
||||
extern const int F_UNLCK;
|
||||
extern const int F_WRLCK;
|
||||
|
||||
|
@ -50,20 +52,17 @@ COSMOPOLITAN_C_END_
|
|||
#define F_SETFL LITERALLY(4)
|
||||
|
||||
#define F_DUPFD_CLOEXEC SYMBOLIC(F_DUPFD_CLOEXEC)
|
||||
#define F_FULLFSYNC SYMBOLIC(F_FULLFSYNC)
|
||||
#define F_GETLEASE SYMBOLIC(F_GETLEASE)
|
||||
#define F_GETLK SYMBOLIC(F_GETLK)
|
||||
#define F_GETLK64 SYMBOLIC(F_GETLK64)
|
||||
#define F_GETOWN SYMBOLIC(F_GETOWN)
|
||||
#define F_GETOWN_EX SYMBOLIC(F_GETOWN_EX)
|
||||
#define F_GETPATH SYMBOLIC(F_GETPATH)
|
||||
#define F_GETPIPE_SZ SYMBOLIC(F_GETPIPE_SZ)
|
||||
#define F_GETSIG SYMBOLIC(F_GETSIG)
|
||||
#define F_LOCK SYMBOLIC(F_LOCK)
|
||||
#define F_MAXFD SYMBOLIC(F_MAXFD)
|
||||
#define F_NOCACHE SYMBOLIC(F_NOCACHE)
|
||||
#define F_NOTIFY SYMBOLIC(F_NOTIFY)
|
||||
#define F_OFD_GETLK SYMBOLIC(F_OFD_GETLK)
|
||||
#define F_OFD_SETLK SYMBOLIC(F_OFD_SETLK)
|
||||
#define F_OFD_SETLKW SYMBOLIC(F_OFD_SETLKW)
|
||||
#define F_RDLCK SYMBOLIC(F_RDLCK)
|
||||
#define F_SETLEASE SYMBOLIC(F_SETLEASE)
|
||||
#define F_SETLK SYMBOLIC(F_SETLK)
|
||||
|
@ -74,10 +73,16 @@ COSMOPOLITAN_C_END_
|
|||
#define F_SETOWN_EX SYMBOLIC(F_SETOWN_EX)
|
||||
#define F_SETPIPE_SZ SYMBOLIC(F_SETPIPE_SZ)
|
||||
#define F_SETSIG SYMBOLIC(F_SETSIG)
|
||||
#define F_TEST SYMBOLIC(F_TEST)
|
||||
#define F_TLOCK SYMBOLIC(F_TLOCK)
|
||||
#define F_ULOCK SYMBOLIC(F_ULOCK)
|
||||
#define F_UNLCK SYMBOLIC(F_UNLCK)
|
||||
#define F_WRLCK SYMBOLIC(F_WRLCK)
|
||||
|
||||
/* avoid leading #ifdef astray */
|
||||
/* #define F_FULLFSYNC SYMBOLIC(F_FULLFSYNC) */
|
||||
/* #define F_BARRIERFSYNC SYMBOLIC(F_BARRIERFSYNC) */
|
||||
/* #define F_OFD_GETLK SYMBOLIC(F_OFD_GETLK) */
|
||||
/* #define F_OFD_SETLK SYMBOLIC(F_OFD_SETLK) */
|
||||
/* #define F_OFD_SETLKW SYMBOLIC(F_OFD_SETLKW) */
|
||||
/* #define F_SETNOSIGPIPE SYMBOLIC(F_SETNOSIGPIPE) */
|
||||
/* #define F_GETNOSIGPIPE SYMBOLIC(F_GETNOSIGPIPE) */
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_F_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue