cosmopolitan/third_party
Justine Tunney 14e192e5ba Introduce --strace flag for system call tracing
This is similar to the --ftrace (c function call trace) flag, except
it's less noisy since it only logs system calls to stderr. Having this
flag is valuable because (1) system call tracing tells us a lot about
the behavior of complex programs and (2) it's usually very hard to get
system call tracing on various operating systems, e.g. strace, ktrace,
dtruss, truss, nttrace, etc. Especially on Apple platforms where even
with the special boot trick, debuggers still aren't guaranteed to work.

    make -j8 o//examples
    o//examples/hello.com --strace

This is enabled by default in MODE=, MODE=opt, and MODE=dbg. In MODE=dbg
extra information will be printed.

    make -j8 MODE=dbg o/dbg/examples
    o/dbg/examples/hello.com --strace |& less

This change also changes:

- Rename IsText() → _istext()
- Rename IsUtf8() → _isutf8()
- Fix madvise() on Windows NT
- Fix empty string case of inet_ntop()
- vfork() wrapper now saves and restores errno
- Update xsigaction() to yoink syscall support
2022-03-18 18:07:28 -07:00
..
argon2 Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
bzip2 Improve memory safety 2021-10-13 17:27:13 -07:00
chibicc Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
compiler_rt Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
dlmalloc Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
gcc Elevate .text.syscall to .privileged 2021-02-06 04:49:22 -08:00
gdtoa Improve memory safety 2021-10-13 17:27:13 -07:00
getopt Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
infozip Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
linenoise Make improvements 2022-03-16 13:40:10 -07:00
lua Make exciting improvements 2022-03-18 03:02:00 -07:00
lz4cli Fix termios struct on Linux 2021-09-03 22:19:41 -07:00
make Add some Python 3.7 backports (#306) 2021-10-29 22:54:14 -07:00
maxmind Add maxmind to redbean 2022-03-18 03:17:08 -07:00
mbedtls Make exciting improvements 2022-03-18 03:02:00 -07:00
musl Apply fixes and speedups 2021-10-04 03:23:31 -07:00
python Make exciting improvements 2022-03-18 03:02:00 -07:00
quickjs Make improvements 2022-03-16 13:40:10 -07:00
regex Apply fixes and speedups 2021-10-04 03:23:31 -07:00
sqlite3 Make improvements 2022-03-16 13:40:10 -07:00
stb Change noinline to dontinline (#312) 2021-11-12 15:12:18 -08:00
xed Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
zlib Make numerous improvements 2021-09-28 01:52:34 -07:00
third_party.mk Add maxmind to redbean 2022-03-18 03:17:08 -07:00