mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
416fd86676
- 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
14 lines
580 B
C
14 lines
580 B
C
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
struct dirent { /* linux getdents64 abi */
|
|
uint64_t d_ino; /* inode number */
|
|
int64_t d_off; /* implementation-dependent location number */
|
|
uint16_t d_reclen; /* byte length of this whole struct and string */
|
|
uint8_t d_type; /* DT_UNKNOWN, DT_BLK, DT_DIR, etc. */
|
|
char d_name[256]; /* NUL-terminated basename */
|
|
};
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_DIRENT_H_ */
|