cosmopolitan/test/libc
Justine Tunney 950a1b310b
Embed cocmd.com interpreter for system() / open()
This change lets you use system() in an easier and portable way. The
problem with the call in the past has always been that bourne and
cmd.com on Windows have less than nothing in common, so pretty much the
only command system() could be used for across platforms was maybe echo.
cmd.exe is also a security liability due to its escaping rules.

Since cocmd.com implements 85% of what we need from bourne, in a really
tiny way, it makes perfect sense to be embedded in these functionss. We
get a huge performance boost too.

Fixes #644
2022-10-02 15:29:57 -07:00
..
bits Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
calls Add some tests for execve() 2022-10-02 14:58:14 -07:00
dns Pay off more technical debt 2022-09-12 23:36:56 -07:00
fmt Pay off more technical debt 2022-09-12 23:36:56 -07:00
intrin Improve system call wrappers 2022-09-19 15:06:25 -07:00
log Introduce testlib_extract() helper 2022-10-02 09:15:46 -07:00
mem Make important improvements 2022-09-14 22:39:08 -07:00
nexgen32e Make important improvements 2022-09-14 22:39:08 -07:00
release Add *NSYNC to libc/isystem 2022-09-13 01:47:12 -07:00
runtime Add some tests for execve() 2022-10-02 14:58:14 -07:00
sock Change accept type to struct sockaddr * (#630) 2022-09-20 07:49:16 -07:00
stdio Embed cocmd.com interpreter for system() / open() 2022-10-02 15:29:57 -07:00
str Make important improvements 2022-09-14 22:39:08 -07:00
thread Improve pthread_join() 2022-09-16 14:02:06 -07:00
time Pay off more technical debt 2022-09-12 23:36:56 -07:00
tinymath Pay off more technical debt 2022-09-12 23:36:56 -07:00
x Pay off more technical debt 2022-09-12 23:36:56 -07:00
xed Pay off more technical debt 2022-09-12 23:36:56 -07:00
zipos Add fexecve() and map O_EXEC to O_PATH on Linux 2022-10-02 09:15:46 -07:00
test.mk Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00