mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 00:32:29 +00:00
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:
parent
7327c345f9
commit
416fd86676
230 changed files with 9835 additions and 5682 deletions
|
@ -61,10 +61,10 @@ int inet_pton(int af, const char *, void *);
|
|||
int parseport(const char *);
|
||||
|
||||
int socket(int, int, int) nodiscard;
|
||||
int accept(int, void *, uint32_t *) paramsnonnull() nodiscard;
|
||||
int accept4(int, void *, uint32_t *, int) paramsnonnull() nodiscard;
|
||||
int bind(int, const void *, uint32_t) paramsnonnull();
|
||||
int connect(int, const void *, uint32_t) paramsnonnull();
|
||||
int accept(int, void *, uint32_t *) nodiscard;
|
||||
int accept4(int, void *, uint32_t *, int) nodiscard;
|
||||
int bind(int, const void *, uint32_t);
|
||||
int connect(int, const void *, uint32_t);
|
||||
int socketconnect(const struct addrinfo *, int);
|
||||
int listen(int, int);
|
||||
int shutdown(int, int);
|
||||
|
@ -79,7 +79,7 @@ ssize_t readv(int, const struct iovec *, int);
|
|||
ssize_t writev(int, const struct iovec *, int);
|
||||
ssize_t sendfile(int, int, int64_t *, size_t);
|
||||
int getsockopt(int, int, int, void *, uint32_t *) paramsnonnull((5));
|
||||
int setsockopt(int, int, int, const void *, uint32_t) paramsnonnull();
|
||||
int setsockopt(int, int, int, const void *, uint32_t);
|
||||
int socketpair(int, int, int, int64_t[2]) paramsnonnull();
|
||||
int poll(struct pollfd *, uint64_t, int32_t) paramsnonnull();
|
||||
int ppoll(struct pollfd *, uint64_t, const struct timespec *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue