Make improvements

- Emulator can now test the αcτµαlly pδrταblε εxεcµταblε bootloader

- Whipped up a webserver named redbean. It services 150k requests per
  second on a single core. Bundling assets inside zip enables extremely
  fast serving for two reasons. The first is that zip central directory
  lookups go faster than stat() system calls. The second is that both
  zip and gzip content-encoding use DEFLATE, therefore, compressed
  responses can be served via the sendfile() system call which does an
  in-kernel copy directly from the zip executable structure. Also note
  that red bean zip executables can be deployed easily to all platforms,
  since these native executables work on Linux, Mac, BSD, and Windows.

- Address sanitizer now works very well
This commit is contained in:
Justine Tunney 2020-09-06 21:39:00 -07:00
parent 7327c345f9
commit 416fd86676
230 changed files with 9835 additions and 5682 deletions

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc DT_BLK 6 6 6 6 0
.syscon dt DT_BLK 6 6 6 6 6

View file

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

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc DT_DIR 4 4 4 4 0
.syscon dt DT_DIR 4 4 4 4 4

View file

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

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc DT_LNK 10 10 10 10 0
.syscon dt DT_LNK 10 10 10 10 10

View file

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

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon misc DT_SOCK 12 12 12 12 0
.syscon dt DT_SOCK 12 12 12 12 12

View file

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

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon sol SOL_ICMPV6 58 0 0 0 0
.syscon sol SOL_ICMPV6 58 58 58 58 0

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon sol SOL_IPV6 41 0 0 0 0
.syscon sol SOL_IPV6 41 41 41 41 41

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon sol SOL_TCP 6 0 0 0 0
.syscon sol SOL_TCP 6 6 6 6 6

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon sol SOL_UDP 17 0 0 0 0
.syscon sol SOL_UDP 17 17 17 17 17

View file

@ -1,2 +1,2 @@
.include "libc/sysv/consts/syscon.inc"
.syscon ioctl TIOCOUTQ 0x5411 0x40047473 0x40047473 0x40047473 -1
.syscon termios TIOCOUTQ 0x5411 0x40047473 0x40047473 0x40047473 -1

View file

@ -1,28 +1,28 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_DT_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_DT_H_
#include "libc/runtime/symbolic.h"
#define DT_BLK SYMBOLIC(DT_BLK)
#define DT_CHR SYMBOLIC(DT_CHR)
#define DT_DIR SYMBOLIC(DT_DIR)
#define DT_FIFO SYMBOLIC(DT_FIFO)
#define DT_LNK SYMBOLIC(DT_LNK)
#define DT_REG SYMBOLIC(DT_REG)
#define DT_SOCK SYMBOLIC(DT_SOCK)
#define DT_UNKNOWN SYMBOLIC(DT_UNKNOWN)
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
hidden extern const long DT_BLK;
hidden extern const long DT_UNKNOWN;
hidden extern const long DT_FIFO;
hidden extern const long DT_CHR;
hidden extern const long DT_DIR;
hidden extern const long DT_FIFO;
hidden extern const long DT_LNK;
hidden extern const long DT_BLK;
hidden extern const long DT_REG;
hidden extern const long DT_LNK;
hidden extern const long DT_SOCK;
hidden extern const long DT_UNKNOWN;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define DT_UNKNOWN LITERALLY(0)
#define DT_FIFO LITERALLY(1)
#define DT_CHR LITERALLY(2)
#define DT_DIR LITERALLY(4)
#define DT_BLK LITERALLY(6)
#define DT_REG LITERALLY(8)
#define DT_LNK LITERALLY(10)
#define DT_SOCK LITERALLY(12)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_DT_H_ */