cosmopolitan/libc/runtime
Justine Tunney 23e235b7a5
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from
https://github.com/ahgamut/musl-cross-make/ which fixes the issues we
were having with our C language extension for symbolic constants. This
change also performs some code cleanup and bug fixes to getaddrinfo().
It's now possible to compile projects like ncurses, readline and python
without needing to patch anything upstream, except maybe a line or two.
Pretty soon it should be possible to build a Linux distro on Cosmo.
2023-06-08 23:44:03 -07:00
..
__sigsetjmp_tail.c Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
abort.c Add notpossible keyword 2022-09-03 20:35:31 -07:00
buffer.internal.h Pay off more technical debt 2022-09-12 23:36:56 -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 Improve aarch64 native support some more 2023-06-04 08:58:47 -07:00
clone.internal.h Make fixes and improvements 2022-11-08 10:11:46 -08:00
closesymboltable.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
cocmd.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
cosmo.S Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
cosmo2.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
daemon.c Greatly expand system() shell code features 2022-10-11 21:30:31 -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 Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
efipostboot.S Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
enable_threads.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
enable_tls.c Get threads working well on MacOS Arm64 2023-06-04 01:57:10 -07:00
exit.c Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
ezmap.c Remove some problematic APIs 2023-06-08 06:12:26 -07:00
ezmap.internal.h Rename hidden keyword to _Hide 2022-11-08 12:55:28 -08: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 Improve cosmocc / cosmoc++ toolchain scripts 2023-06-08 14:29:22 -07:00
fltrounds.c Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
fork-nt.c Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -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 Remove superfluous RET instructions 2023-06-06 19:46:56 -07:00
ftrace_install.c Validate privileged code relationships 2023-06-08 04:38:06 -07:00
ftraceinit.greg.c Make more threading improvements 2022-11-01 23:28:26 -07:00
ftracer.c Validate privileged code relationships 2023-06-08 04:38:06 -07:00
getargmax.c Make improvements 2022-04-28 09:57:07 -07:00
getdosargv.c Have execve() escape double quotes in cmd.exe's preferred style 2022-10-02 09:15:46 -07:00
getdosenviron.c Have execve() escape double quotes in cmd.exe's preferred style 2022-10-02 09:15:46 -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 Add malloc logging tool 2022-05-26 23:19:22 -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 Validate privileged code relationships 2023-06-08 04:38:06 -07:00
getsymbolbyaddr.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
getsymbolname.c Improve memory safety 2021-10-13 17:27:13 -07:00
getsymboltable.c Fix --ftrace regression 2023-06-08 04:46:11 -07:00
grow.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
hook.greg.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
inflate.c Improve cosmocc toolchain 2023-03-05 23:52:49 -08:00
init.S Remove superfluous RET instructions 2023-06-06 19:46:56 -07:00
interceptflag.greg.c Improve synchronization 2022-04-15 15:31:55 -07:00
internal.h Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
isdynamicexecutable.c Improve cosmocc toolchain 2023-03-05 23:52:49 -08:00
isheap.c Fix some issues and do some code cleanup 2022-05-23 10:15:53 -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 Introduce clock_nanosleep() 2022-10-05 06:37:15 -07:00
mapanon.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mapelfread.c Rename hidden keyword to _Hide 2022-11-08 12:55:28 -08:00
mapshared.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mapstack.c Add phtread_setname_np() and pthread_getname_np() 2022-09-07 19:04:05 -07:00
memtrack.internal.h Make improvements 2023-06-03 08:12:22 -07:00
memtrack64.txt Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
memtracknt.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
metalprintf.greg.c Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -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 improvements 2023-06-03 08:12:22 -07:00
morph.greg.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
morph.h Make fixes and improvements 2022-10-19 07:19:19 -07:00
morph_tls.c Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
mprotect-nt.greg.c Make improvements 2023-06-03 08:12:22 -07:00
mprotect.c Make improvements 2023-06-06 09:12:30 -07:00
msync-nt.c Make improvements 2023-06-03 08:12:22 -07:00
msync.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
munmap.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
openexecutable.S Make improvements 2023-06-03 08:12:22 -07:00
opensymboltable.greg.c Remove some problematic APIs 2023-06-08 06:12:26 -07:00
pathconf.h Make more compatibility improvements 2022-09-06 12:36:34 -07:00
pc.internal.h Interalize msr.h 2023-03-05 16:12:11 -08:00
peekall.S Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
printargs.c Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -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 some problematic APIs 2023-06-08 06:12:26 -07:00
runtime.mk Validate privileged code relationships 2023-06-08 04:38:06 -07:00
set_tls.c Improve aarch64 native support some more 2023-06-04 08:58:47 -07:00
setstack.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sigsetjmp.S Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
stack.h Get MbedTLS and its unit tests passing AARCH64 2023-05-11 21:53:15 -07:00
stackchkfail.c Validate privileged code relationships 2023-06-08 04:38:06 -07:00
stackchkfaillocal.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
stackuse.c Get MbedTLS and its unit tests passing AARCH64 2023-05-11 21:53:15 -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 Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -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 Fix bugs and make code tinier 2022-10-09 23:21:34 -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 Make considerably more progress on AARCH64 2023-05-12 22:42:57 -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 Get --ftrace working on aarch64 2023-06-05 23:35:31 -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 Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
wipe.S Make improvements 2023-06-03 08:12:22 -07:00