cosmopolitan/tool/build
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
..
dso Refactor pledge() to be more configurable 2022-08-11 11:35:30 -07:00
emubin Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
emucrt Reduce build graph by another 14 percent 2022-08-17 20:01:21 -07:00
lib Make important improvements 2022-09-14 22:39:08 -07:00
ar.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
assimilate.c Allow optional double quotes in dd parameters on macOS (#621) 2022-09-14 22:53:20 -07:00
bigmul.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
blinkenlights.c Make important improvements 2022-09-14 22:39:08 -07:00
build.mk Have execve() escape double quotes in cmd.exe's preferred style 2022-10-02 09:15:46 -07:00
calculator.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
calculator.ctest Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
calculator.inc Add SSL to redbean 2021-06-24 13:20:50 -07:00
chmod.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
cocmd.c Embed cocmd.com interpreter for system() / open() 2022-10-02 15:29:57 -07:00
compile.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
cp.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
dd.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
deltaify.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dis.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
dropcache.c Change license 2020-12-27 17:18:44 -08:00
echo.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
fixupobj.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
gzip.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
helpop.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
lz4toasm.c Make important improvements 2022-09-14 22:39:08 -07:00
mkdeps.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mkdir.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mv.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
ocat.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
package.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
pledge.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
printf.c Clean up some code 2022-08-20 12:32:51 -07:00
pstrace.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
pwd.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
refactor.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
rle.c Make improvements 2022-04-28 09:57:07 -07:00
rm.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
rollup.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
runit.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
runit.h Fix bugs and add security features to redbean 2022-04-18 00:01:26 -07:00
runitd.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
strace.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
summy.c Unbloat the build 2022-08-11 00:15:29 -07:00
symtab.c Clean up some code 2022-08-20 12:32:51 -07:00
tinyemu.c Fix our remarkable 184kb x86_64 emulator 2021-01-27 20:02:23 -08:00
touch.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
unbuffer.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
unbundle.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
unveil.c Clean up some code 2022-08-20 12:32:51 -07:00
x86combos.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
xlat.c Make important improvements 2022-09-14 22:39:08 -07:00
zipobj.c Pay off more technical debt 2022-09-12 23:36:56 -07:00