mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Get more Python tests passing (#141)
This commit is contained in:
parent
916f19eea1
commit
59e1c245d1
141 changed files with 3536 additions and 1203 deletions
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall getpgid,0x0cf0cf0cf2097079,globl
|
2
libc/sysv/calls/sys_getpgid.s
Normal file
2
libc/sysv/calls/sys_getpgid.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/macros.internal.inc"
|
||||
.scall sys_getpgid,0x0cf0cf0cf2097079,globl,hidden
|
|
@ -352,23 +352,23 @@ syscon stat S_IRWXO 0000007 0000007 0000007 0000007 0000007 000000
|
|||
#
|
||||
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
syscon fcntl2 F_DUPFD 0 0 0 0 0 0 # consensus
|
||||
|
||||
syscon fcntl2 F_GETFD 1 1 1 1 1 1 # unix consensus & faked nt
|
||||
syscon fcntl2 F_SETFD 2 2 2 2 2 2 # unix consensus & faked nt
|
||||
syscon fcntl2 F_GETFL 3 3 3 3 3 3 # unix consensus & faked nt
|
||||
syscon fcntl2 F_SETFL 4 4 4 4 4 4 # unix consensus & faked nt
|
||||
syscon fcntl2 F_SETOWN 8 6 6 6 6 0 # bsd consensus
|
||||
syscon fcntl2 F_GETOWN 9 5 5 5 5 0 # bsd consensus
|
||||
syscon fcntl2 F_FULLFSYNC 0 51 0 0 0 0 #
|
||||
syscon fcntl2 F_NOCACHE 0 48 0 0 0 0 #
|
||||
syscon fcntl3 FD_CLOEXEC 1 1 1 1 1 1 # unix consensus & faked nt
|
||||
syscon fcntl F_DUPFD_CLOEXEC 0x0406 67 17 10 12 0x0406 # faked nt
|
||||
|
||||
syscon fcntl2 F_GETFL 3 3 3 3 3 3 # unix consensus & faked nt
|
||||
syscon fcntl2 F_SETFL 4 4 4 4 4 4 # unix consensus & faked nt
|
||||
# fcntl3 O_NONBLOCK
|
||||
# fcntl3 O_APPEND
|
||||
# fcntl3 O_ASYNC
|
||||
# fcntl3 O_DIRECT
|
||||
# fcntl3 O_NOATIME
|
||||
|
||||
syscon fcntl2 F_SETOWN 8 6 6 6 6 0 # bsd consensus
|
||||
syscon fcntl2 F_GETOWN 9 5 5 5 5 0 # bsd consensus
|
||||
|
||||
# fcntl() POSIX Advisory Locks
|
||||
#
|
||||
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
|
|
2
libc/sysv/consts/F_FULLFSYNC.S
Normal file
2
libc/sysv/consts/F_FULLFSYNC.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon fcntl2,F_FULLFSYNC,0,51,0,0,0,0
|
2
libc/sysv/consts/F_NOCACHE.S
Normal file
2
libc/sysv/consts/F_NOCACHE.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon fcntl2,F_NOCACHE,0,48,0,0,0,0
|
|
@ -6,6 +6,7 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
extern const long F_DUPFD;
|
||||
extern const long F_DUPFD_CLOEXEC;
|
||||
extern const long F_FULLFSYNC;
|
||||
extern const long F_GETFD;
|
||||
extern const long F_GETFL;
|
||||
extern const long F_GETLEASE;
|
||||
|
@ -16,6 +17,7 @@ extern const long F_GETOWN_EX;
|
|||
extern const long F_GETPIPE_SZ;
|
||||
extern const long F_GETSIG;
|
||||
extern const long F_LOCK;
|
||||
extern const long F_NOCACHE;
|
||||
extern const long F_NOTIFY;
|
||||
extern const long F_OFD_GETLK;
|
||||
extern const long F_OFD_SETLK;
|
||||
|
@ -41,39 +43,41 @@ extern const long F_WRLCK;
|
|||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define F_DUPFD LITERALLY(0)
|
||||
#define F_GETFD LITERALLY(1)
|
||||
#define F_SETFD LITERALLY(2)
|
||||
#define F_GETFL LITERALLY(3)
|
||||
#define F_SETFL LITERALLY(4)
|
||||
|
||||
#define F_DUPFD SYMBOLIC(F_DUPFD)
|
||||
#define F_DUPFD_CLOEXEC SYMBOLIC(F_DUPFD_CLOEXEC)
|
||||
#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_GETPIPE_SZ SYMBOLIC(F_GETPIPE_SZ)
|
||||
#define F_GETSIG SYMBOLIC(F_GETSIG)
|
||||
#define F_LOCK SYMBOLIC(F_LOCK)
|
||||
#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)
|
||||
#define F_SETLK64 SYMBOLIC(F_SETLK64)
|
||||
#define F_SETLKW SYMBOLIC(F_SETLKW)
|
||||
#define F_SETLKW64 SYMBOLIC(F_SETLKW64)
|
||||
#define F_SETOWN SYMBOLIC(F_SETOWN)
|
||||
#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)
|
||||
#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_GETPIPE_SZ SYMBOLIC(F_GETPIPE_SZ)
|
||||
#define F_GETSIG SYMBOLIC(F_GETSIG)
|
||||
#define F_LOCK SYMBOLIC(F_LOCK)
|
||||
#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)
|
||||
#define F_SETLK64 SYMBOLIC(F_SETLK64)
|
||||
#define F_SETLKW SYMBOLIC(F_SETLKW)
|
||||
#define F_SETLKW64 SYMBOLIC(F_SETLKW64)
|
||||
#define F_SETOWN SYMBOLIC(F_SETOWN)
|
||||
#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)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_F_H_ */
|
||||
|
|
|
@ -148,7 +148,7 @@ scall sys_getppid 0xfff027027202706e globl hidden # see sys_getpid()→edx for
|
|||
scall getpgrp 0x051051051205106f globl
|
||||
scall sys_setsid 0x0930930932093070 globl hidden
|
||||
scall sys_getsid 0x11e0ff136213607c globl hidden
|
||||
scall getpgid 0x0cf0cf0cf2097079 globl
|
||||
scall sys_getpgid 0x0cf0cf0cf2097079 globl hidden
|
||||
scall setpgid 0x052052052205206d globl
|
||||
scall geteuid 0xfff019019201906b globl
|
||||
scall getegid 0xfff02b02b202b06c globl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue