cosmopolitan/test/libc/sock
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
..
inet_ntoa_test.c Add IP address conversion helpers 2021-02-20 22:53:22 -08:00
inet_ntop_test.c Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
inet_pton_test.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
poll_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
select_test.c Fix select() on Windows for timeout (#141) 2021-08-26 15:59:55 -07:00
sendrecvmsg_test.c Add sendmsg and recvmsg (#148) 2021-04-07 22:53:23 -07:00
socketpair_test.c Perform fine-tuning of socketpair and pipe 2021-03-16 22:44:54 -07:00
test.mk Make more functions friendly to Address Sanitizer 2021-02-02 03:45:31 -08:00