mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-23 02:50:29 +00:00
Make improvements
- Improved async signal safety of read() particularly for longjmp() - Started adding cancel cleanup handlers for locks / etc on Windows - Make /dev/tty work better particularly for uses like `foo | less` - Eagerly read console input into a linked list, so poll can signal - Fix some libc definitional bugs, which configure scripts detected
This commit is contained in:
parent
d6c2830850
commit
0c5dd7b342
85 changed files with 1062 additions and 671 deletions
|
@ -396,9 +396,6 @@ syscon fcntl F_OFD_GETLK 36 36 -1 -1 -1 -1 -1 -1 # listed in
|
|||
syscon fcntl F_RDLCK 0 0 1 1 1 1 1 0 # polyfilled nt; bsd consensus
|
||||
syscon fcntl F_WRLCK 1 1 3 3 3 3 3 1 # polyfilled nt; bsd consensus
|
||||
syscon fcntl F_UNLCK 2 2 2 2 2 2 2 2 # polyfilled nt; unix consensus
|
||||
syscon compat F_SETLK64 6 6 8 8 12 8 8 6 # polyfilled nt
|
||||
syscon compat F_SETLKW64 7 7 9 9 13 9 9 7
|
||||
syscon compat F_GETLK64 5 5 7 7 11 7 7 5 # polyfilled nt
|
||||
|
||||
syscon fcntl F_SETSIG 10 10 -1 -1 -1 -1 -1 -1
|
||||
syscon fcntl F_GETSIG 11 11 -1 -1 -1 -1 -1 -1
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon compat,F_GETLK64,5,5,7,7,11,7,7,5
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon compat,F_SETLK64,6,6,8,8,12,8,8,6
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon compat,F_SETLKW64,7,7,9,9,13,9,9,7
|
|
@ -15,14 +15,12 @@ extern const int F_FULLFSYNC;
|
|||
extern const int F_GETFD;
|
||||
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_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;
|
||||
|
@ -33,9 +31,7 @@ extern const int F_RDLCK;
|
|||
extern const int F_SETFD;
|
||||
extern const int F_SETFL;
|
||||
extern const int F_SETLEASE;
|
||||
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;
|
||||
|
@ -61,14 +57,11 @@ COSMOPOLITAN_C_END_
|
|||
* posix advisory locks
|
||||
* polyfilled poorly on windows
|
||||
*/
|
||||
#define F_SETLK F_SETLK
|
||||
#define F_SETLK64 F_SETLK64
|
||||
#define F_SETLKW F_SETLKW
|
||||
#define F_SETLKW64 F_SETLKW64
|
||||
#define F_GETLK F_GETLK
|
||||
#define F_GETLK64 F_GETLK64
|
||||
#define F_RDLCK F_RDLCK
|
||||
#define F_UNLCK F_UNLCK
|
||||
#define F_WRLCK F_WRLCK
|
||||
#define F_SETLK F_SETLK
|
||||
#define F_SETLKW F_SETLKW
|
||||
#define F_GETLK F_GETLK
|
||||
#define F_RDLCK F_RDLCK
|
||||
#define F_UNLCK F_UNLCK
|
||||
#define F_WRLCK F_WRLCK
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_F_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue