mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +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
|
@ -49,9 +49,8 @@ static privileged void __print$nt(const void *data, size_t len) {
|
|||
* @clob nothing except flags
|
||||
* @see PRINT()
|
||||
*/
|
||||
privileged interruptfn void __print(const void *data, size_t len) {
|
||||
privileged void __print(const void *data, size_t len) {
|
||||
int64_t ax, ordinal;
|
||||
LOAD_DEFAULT_RBX();
|
||||
if (NT_HAVE_IMPORT(__imp_WriteFile)) {
|
||||
__print$nt(data, len);
|
||||
} else {
|
||||
|
@ -69,3 +68,9 @@ privileged interruptfn void __print(const void *data, size_t len) {
|
|||
}
|
||||
RESTORE_RBX();
|
||||
}
|
||||
|
||||
privileged void __print_string(const char *s) {
|
||||
size_t n = 0;
|
||||
while (s[n]) ++n;
|
||||
__print(s, n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue