cosmopolitan/libc/runtime
Justine Tunney c8aa33e0e2
Improve wait statuses
This change has the insight that dwExitCode isn't an exit code but
rather should be used to pass the wait status. This lets us report
killing as a termination status, similar to UNIX. This change also
fixes the fact that exit(259) on Windows will break the parent due
way WIN32 is designed. We now work around that.

It turns out that NetBSD and OpenBSD, will let you have exit codes
beyond 255. This change will let you use them when it's possible.
2023-07-30 14:51:37 -07:00
..
__sigsetjmp_tail.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
abort.c Add notpossible keyword 2022-09-03 20:35:31 -07:00
clktck.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
clktck.h Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
clone-linux.S Make improvements 2023-06-03 08:12:22 -07:00
clone-nt.S Pay off more technical debt 2022-09-12 23:36:56 -07:00
clone-openbsd.S Pay off more technical debt 2022-09-12 23:36:56 -07:00
clone-xnu.S Make fixes and improvements 2022-11-08 10:11:46 -08:00
clone.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
closesymboltable.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
cocmd.c Remove hints from Windows imports 2023-07-27 14:09:07 -07:00
cosmo.S Make improvements 2023-06-15 14:50:53 -07:00
cosmo2.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
daemon.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
dlfcn.h Get Fabrice Bellard's JavaScript engine to build 2021-04-09 01:06:57 -07:00
dsohandle.S Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
e820.internal.h Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
efimain.greg.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
efipostboot.S Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
enable_threads.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
enable_tls.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
exit.c Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
fenv.h Make further progress on non-x86 support 2023-05-10 04:20:47 -07:00
fesetround.c Make more progress on aarch64 2023-05-10 04:20:47 -07:00
findcombinary.c Make improvements 2022-04-28 09:57:07 -07:00
finddebugbinary.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
fltrounds.c Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
fork-nt.c Improve wait statuses 2023-07-30 14:51:37 -07:00
fork-sysv.c Get threads working well on MacOS Arm64 2023-06-04 01:57:10 -07:00
fork.c Get threads working well on MacOS Arm64 2023-06-04 01:57:10 -07:00
fpathconf.c Make more compatibility improvements 2022-09-06 12:36:34 -07:00
fpreset.S Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
ftrace-hook.S Incorporate more small improvements 2023-07-23 10:57:18 -07:00
ftrace_install.c Incorporate more small improvements 2023-07-23 10:57:18 -07:00
ftrace_stackdigs.c Make fixes and improvements 2023-07-09 05:21:11 -07:00
ftraceinit.greg.c Make more threading improvements 2022-11-01 23:28:26 -07:00
ftracer.c Make fixes and improvements 2023-07-09 05:21:11 -07:00
getargmax.c Make improvements 2022-04-28 09:57:07 -07:00
getdosargv.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getdosenviron.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getinterpreterexecutablename.c Add sys_ prefix to unwrapped system calls 2022-09-13 11:20:35 -07:00
getlogin.c Add sys_ prefix to unwrapped system calls 2022-09-13 11:20:35 -07:00
getlogin_r.c Add sys_ prefix to unwrapped system calls 2022-09-13 11:20:35 -07:00
getmaxfd.c Improve cosmocc toolchain 2023-03-05 23:52:49 -08:00
getmemtracksize.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getpagesize.c Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
getresourcelimit.c Improve cosmocc toolchain 2023-03-05 23:52:49 -08:00
getsymbol.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getsymbolbyaddr.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getsymbolname.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getsymboltable.c Support symbol tables with arch specific name 2023-07-29 23:50:15 -07:00
grow.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
hook.greg.c Fix tests on aarch64 2023-07-29 19:02:25 -07:00
inflate.c Support non-blocking i/o across platforms 2023-07-23 02:56:47 -07:00
init.S Fix breakages in Linux-only build modes 2023-07-09 19:51:44 -07:00
interceptflag.greg.c Improve synchronization 2022-04-15 15:31:55 -07:00
internal.h Make more fixes and improvements 2023-07-29 18:44:15 -07:00
isheap.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
ismemtracked.greg.c Make some more fixups 2022-06-12 09:37:17 -07:00
jmpstack.S Improve signals and memory protection 2022-04-12 22:11:00 -07:00
ldso.c Get Fabrice Bellard's JavaScript engine to build 2021-04-09 01:06:57 -07:00
login_tty.c Make improvements 2023-07-11 04:41:50 -07:00
mapanon.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mapshared.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mapstack.c Implement swapcontext() and makecontext() 2023-07-02 09:01:44 -07:00
memtrack.internal.h Make more fixes and improvements 2023-07-29 18:44:15 -07:00
memtrack64.txt Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
memtracknt.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
metalprintf.greg.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
metalprintf.internal.h Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
mman.internal.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
mmap.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
morph.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
morph_tls.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
mprotect-nt.greg.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
mprotect.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
msync-nt.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
msync.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
munmap.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
openexecutable.c Temporarily turn down redbean StoreAsset() feature 2023-07-22 15:51:44 -07:00
opensymboltable.greg.c Incorporate more small improvements 2023-07-23 10:57:18 -07:00
pathconf.h Make more compatibility improvements 2022-09-06 12:36:34 -07:00
pc.internal.h [metal] Clean up code for getting pointer to struct mman () 2023-06-11 10:32:39 -07:00
printargs.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
printgarbage.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
printmaps.c Clean up some of the threading code 2022-09-08 12:31:56 -07:00
progname.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
runtime.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
runtime.mk Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
set_tls.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
sigsetjmp.S Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
stack.h Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
stackuse.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
straceinit.greg.c Make more threading improvements 2022-11-01 23:28:26 -07:00
symbols.c Make more threading improvements 2022-11-01 23:28:26 -07:00
symbols.internal.h Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
sysconf.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
sysconf.h Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
syslib.internal.h Get threads working well on MacOS Arm64 2023-06-04 01:57:10 -07:00
untrackmemoryintervals.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
unwind.c Fix libunwind stubs 2022-06-26 05:29:25 -07:00
unwind.h Fix libunwind stubs 2022-06-26 05:29:25 -07:00
utmp.c Clean up more code 2023-06-18 01:00:05 -07:00
utmp.h Add finger demo to redbean and fix regression 2022-06-23 03:42:05 -07:00
utmpx.h Add finger demo to redbean and fix regression 2022-06-23 03:42:05 -07:00
valist.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
vfork.S Make forking off threads reliable on Windows 2023-07-30 09:32:41 -07:00
warnifpowersave.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
weakfree.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
winargs.internal.h Add torture test for zipos file descriptors 2022-06-15 16:29:49 -07:00
winmain.greg.c Improve wait statuses 2023-07-30 14:51:37 -07:00