Make more improvements

This change includes many bug fixes, for the NT polyfills, strings,
memory, boot, and math libraries which were discovered by adding more
tools for recreational programming, such as PC emulation. Lemon has also
been vendored because it works so well at parsing languages.
This commit is contained in:
Justine Tunney 2020-09-28 01:13:56 -07:00
parent 416fd86676
commit 23d333c090
201 changed files with 14558 additions and 3082 deletions

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon mprot PROT_GROWSDOWN 0x01000000 0 0 0 0x01000000
.syscon mprot PROT_GROWSDOWN 0x01000000 0 0 0 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc RUSAGE_CHILDREN -1 -1 -1 -1 99
.syscon rusage RUSAGE_CHILDREN -1 -1 -1 -1 99

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc RUSAGE_SELF 0 0 0 0 0
.syscon rusage RUSAGE_SELF 0 0 0 0 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc RUSAGE_THREAD 1 99 1 1 1
.syscon rusage RUSAGE_THREAD 1 99 1 1 1

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WCONTINUED 8 0x10 4 8 0
.syscon waitpid WCONTINUED 8 0x10 4 8 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WEXITED 4 4 0x10 0 0
.syscon waitid WEXITED 4 4 0x10 0 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WNOHANG 1 1 1 1 0
.syscon waitpid WNOHANG 1 1 1 1 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WNOWAIT 0x01000000 0x20 8 0 0
.syscon waitid WNOWAIT 0x01000000 0x20 8 0 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WSTOPPED 2 8 2 0 0
.syscon waitid WSTOPPED 2 8 2 0 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc WUNTRACED 2 2 2 2 0
.syscon waitpid WUNTRACED 2 2 2 2 0

View file

@ -27,10 +27,10 @@ hidden extern const long MAP_TYPE;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define MAP_FILE LITERALLY(0)
#define MAP_SHARED LITERALLY(1)
#define MAP_PRIVATE LITERALLY(2)
#define MAP_FIXED LITERALLY(16)
#define MAP_FILE 0
#define MAP_SHARED 1
#define MAP_PRIVATE 2
#define MAP_FIXED 16
#define MAP_32BIT SYMBOLIC(MAP_32BIT)
#define MAP_ANONYMOUS SYMBOLIC(MAP_ANONYMOUS)

View file

@ -2,14 +2,16 @@
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_W_H_
#include "libc/runtime/symbolic.h"
#define WNOHANG SYMBOLIC(WNOHANG)
#define WUNTRACED SYMBOLIC(WUNTRACED)
#define WNOHANG SYMBOLIC(WNOHANG)
#define WUNTRACED SYMBOLIC(WUNTRACED)
#define WCONTINUED SYMBOLIC(WCONTINUED)
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
hidden extern const long WNOHANG;
hidden extern const long WUNTRACED;
hidden extern const long WCONTINUED;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */