cosmopolitan/libc/calls
Justine Tunney ec480f5aa0
Make improvements
- Every unit test now passes on Apple Silicon. The final piece of this
  puzzle was porting our POSIX threads cancelation support, since that
  works differently on ARM64 XNU vs. AMD64. Our semaphore support on
  Apple Silicon is also superior now compared to AMD64, thanks to the
  grand central dispatch library which lets *NSYNC locks go faster.

- The Cosmopolitan runtime is now more stable, particularly on Windows.
  To do this, thread local storage is mandatory at all runtime levels,
  and the innermost packages of the C library is no longer being built
  using ASAN. TLS is being bootstrapped with a 128-byte TIB during the
  process startup phase, and then later on the runtime re-allocates it
  either statically or dynamically to support code using _Thread_local.
  fork() and execve() now do a better job cooperating with threads. We
  can now check how much stack memory is left in the process or thread
  when functions like kprintf() / execve() etc. call alloca(), so that
  ENOMEM can be raised, reduce a buffer size, or just print a warning.

- POSIX signal emulation is now implemented the same way kernels do it
  with pthread_kill() and raise(). Any thread can interrupt any other
  thread, regardless of what it's doing. If it's blocked on read/write
  then the killer thread will cancel its i/o operation so that EINTR can
  be returned in the mark thread immediately. If it's doing a tight CPU
  bound operation, then that's also interrupted by the signal delivery.
  Signal delivery works now by suspending a thread and pushing context
  data structures onto its stack, and redirecting its execution to a
  trampoline function, which calls SetThreadContext(GetCurrentThread())
  when it's done.

- We're now doing a better job managing locks and handles. On NetBSD we
  now close semaphore file descriptors in forked children. Semaphores on
  Windows can now be canceled immediately, which means mutexes/condition
  variables will now go faster. Apple Silicon semaphores can be canceled
  too. We're now using Apple's pthread_yield() funciton. Apple _nocancel
  syscalls are now used on XNU when appropriate to ensure pthread_cancel
  requests aren't lost. The MbedTLS library has been updated to support
  POSIX thread cancelations. See tool/build/runitd.c for an example of
  how it can be used for production multi-threaded tls servers. Handles
  on Windows now leak less often across processes. All i/o operations on
  Windows are now overlapped, which means file pointers can no longer be
  inherited across dup() and fork() for the time being.

- We now spawn a thread on Windows to deliver SIGCHLD and wakeup wait4()
  which means, for example, that posix_spawn() now goes 3x faster. POSIX
  spawn is also now more correct. Like Musl, it's now able to report the
  failure code of execve() via a pipe although our approach favors using
  shared memory to do that on systems that have a true vfork() function.

- We now spawn a thread to deliver SIGALRM to threads when setitimer()
  is used. This enables the most precise wakeups the OS makes possible.

- The Cosmopolitan runtime now uses less memory. On NetBSD for example,
  it turned out the kernel would actually commit the PT_GNU_STACK size
  which caused RSS to be 6mb for every process. Now it's down to ~4kb.
  On Apple Silicon, we reduce the mandatory upstream thread size to the
  smallest possible size to reduce the memory overhead of Cosmo threads.
  The examples directory has a program called greenbean which can spawn
  a web server on Linux with 10,000 worker threads and have the memory
  usage of the process be ~77mb. The 1024 byte overhead of POSIX-style
  thread-local storage is now optional; it won't be allocated until the
  pthread_setspecific/getspecific functions are called. On Windows, the
  threads that get spawned which are internal to the libc implementation
  use reserve rather than commit memory, which shaves a few hundred kb.

- sigaltstack() is now supported on Windows, however it's currently not
  able to be used to handle stack overflows, since crash signals are
  still generated by WIN32. However the crash handler will still switch
  to the alt stack, which is helpful in environments with tiny threads.

- Test binaries are now smaller. Many of the mandatory dependencies of
  the test runner have been removed. This ensures many programs can do a
  better job only linking the the thing they're testing. This caused the
  test binaries for LIBC_FMT for example, to decrease from 200kb to 50kb

- long double is no longer used in the implementation details of libc,
  except in the APIs that define it. The old code that used long double
  for time (instead of struct timespec) has now been thoroughly removed.

- ShowCrashReports() is now much tinier in MODE=tiny. Instead of doing
  backtraces itself, it'll just print a command you can run on the shell
  using our new `cosmoaddr2line` program to view the backtrace.

- Crash report signal handling now works in a much better way. Instead
  of terminating the process, it now relies on SA_RESETHAND so that the
  default SIG_IGN behavior can terminate the process if necessary.

- Our pledge() functionality has now been fully ported to AARCH64 Linux.
2023-09-18 21:04:47 -07:00
..
struct Make improvements 2023-09-18 21:04:47 -07:00
typedef Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
__clock_gettime.c Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
_ptsname.c Make blink support conditionally linkable into APE 2023-06-17 07:55:35 -07:00
abort.c Make improvements 2023-09-18 21:04:47 -07:00
access.c Improve system call documentation 2022-10-02 09:15:46 -07:00
asan.internal.h Make further progress on non-x86 support 2023-05-10 04:20:47 -07:00
assertfail.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
blockcancel.internal.h Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
blocksigs.internal.h Make futexes cancellable by pthreads 2022-11-04 18:36:34 -07:00
bo.internal.h Make improvements 2023-09-18 21:04:47 -07:00
calls.h Make improvements 2023-09-18 21:04:47 -07:00
calls.mk Make improvements 2023-09-18 21:04:47 -07:00
cfmakeraw.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
cfspeed.c Get us closer to building busybox 2023-06-18 04:13:45 -07:00
chdir-nt.c Make important improvements 2022-09-14 22:39:08 -07:00
chdir.c Make improvements 2023-09-18 21:04:47 -07:00
chmod.c Make numerous improvements 2021-09-28 01:52:34 -07:00
chown.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
chroot.c Make more threading improvements 2022-11-01 23:28:26 -07:00
clock.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
clock_getres.c Improve docs of more system calls 2022-10-02 22:14:33 -07:00
clock_gettime-m1.c Make improvements 2023-09-18 21:04:47 -07:00
clock_gettime-mono.c Fix warnings 2023-09-01 20:50:18 -07:00
clock_gettime-nt.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
clock_gettime-xnu.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
clock_gettime.c Make improvements 2023-09-18 21:04:47 -07:00
clock_gettime.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
clock_nanosleep-nt.c Make improvements 2023-09-18 21:04:47 -07:00
clock_nanosleep-openbsd.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
clock_nanosleep-xnu.c Make improvements 2023-09-18 21:04:47 -07:00
clock_nanosleep.c Make improvements 2023-09-18 21:04:47 -07:00
clock_settime.c Get us closer to building busybox 2023-06-18 04:13:45 -07:00
close-nt.c Get Fat Emacs working in Windows Console 2023-08-18 05:00:30 -07:00
close.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
close_range.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
closefrom.c Fix warnings 2023-09-01 20:50:18 -07:00
commandv.c Avoid matching directories when searching PATH (#717) 2023-03-06 11:15:32 -05:00
copy.c Clean up more code 2023-06-18 01:00:05 -07:00
copy_file_range.c Fix warnings 2023-09-01 20:50:18 -07:00
copyfile.c Make improvements 2023-09-18 21:04:47 -07:00
copyfile.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
cp.internal.h Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
CPU_AND.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
CPU_COUNT.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
CPU_EQUAL.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
CPU_OR.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
CPU_XOR.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
CPU_ZERO.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
creat.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
createfileflags.c Make improvements 2023-09-06 12:34:59 -07:00
createpipename.c Make improvements 2023-09-18 21:04:47 -07:00
diagnose_syscall.S Perform more low-level code cleanup 2022-09-09 04:07:08 -07:00
dup-nt.c Make improvements 2023-09-18 21:04:47 -07:00
dup.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
dup2.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
dup3-sysv.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
dup3.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
eaccess.c Add more missing libc functionality 2022-08-06 10:50:51 -07:00
euidaccess.c Add more missing libc functionality 2022-08-06 10:50:51 -07:00
faccessat-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
faccessat.c Get Fat Emacs working in Windows Console 2023-08-18 05:00:30 -07:00
fadvise-nt.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
fadvise.c Fix warnings 2023-09-01 20:50:18 -07:00
fchdir-nt.c Make important improvements 2022-09-14 22:39:08 -07:00
fchdir.c Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
fchmod.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
fchmodat-linux.c Polyfill fchmodat() 2023-07-28 07:41:43 -07:00
fchmodat-nt.c Make improvements 2023-08-21 02:34:17 -07:00
fchmodat.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
fchown.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
fchownat.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
fcntl-nt.c Make improvements 2023-09-18 21:04:47 -07:00
fcntl-sysv.c Implement support for POSIX thread cancellations 2022-11-04 01:04:43 -07:00
fcntl.c Make improvements 2023-08-21 02:34:17 -07:00
fdatasync-nt.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
fdatasync.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
fdexists.c Make improvements 2023-09-18 21:04:47 -07:00
fexecve.c Make improvements 2023-09-18 21:04:47 -07:00
fileexists.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
fixenotdir.c Emulate ENOTDIR better 2023-08-16 20:11:23 -07:00
fixupnewfd.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
flock-nt.c Make important improvements 2022-09-14 22:39:08 -07:00
flock.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
fstat-metal.c Make numerous improvements 2021-09-28 01:52:34 -07:00
fstat-nt.c Make improvements 2023-09-18 21:04:47 -07:00
fstat-sysv.c Make improvements 2023-09-06 12:34:59 -07:00
fstat.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
fstatat-nt.c Make improvements 2023-09-06 12:34:59 -07:00
fstatat-sysv.c Make improvements 2023-09-06 12:34:59 -07:00
fstatat.c Make improvements 2023-08-21 02:34:17 -07:00
fstatfs-nt.c Fix warnings 2023-09-01 20:50:18 -07:00
fstatfs.c Make improvements 2023-09-18 21:04:47 -07:00
fstatvfs.c Add lchown, lchmod, statvfs, fstatvfs 2022-08-22 20:50:16 -07:00
fsync-fake.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
fsync.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
ftok.c Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
ftruncate-nt.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
ftruncate.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
futimens.c Make improvements 2023-09-06 12:34:59 -07:00
futimes.c Make improvements 2023-09-06 12:34:59 -07:00
getcontext.inc Hunt down more bugs 2023-07-03 18:43:29 -07:00
getcontext.S Hunt down more bugs 2023-07-03 18:43:29 -07:00
getcpucount.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
getcwd-nt.greg.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
getcwd-xnu.greg.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
getcwd.greg.c Make improvements 2023-09-06 12:34:59 -07:00
getdomainname-linux.c Improve quality of uname/gethostname/getdomainname 2022-09-03 20:20:40 -07:00
getdomainname.c Emulate ENOTDIR better 2023-08-16 20:11:23 -07:00
getdtablesize.c Make improvements 2023-09-18 21:04:47 -07:00
getegid.c Add getgroups and setgroups (#619) 2022-09-18 02:48:53 -07:00
geteuid.c Add getgroups and setgroups (#619) 2022-09-18 02:48:53 -07:00
getgroups.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
gethostname-bsd.c Add sys_ prefix to unwrapped system calls 2022-09-13 11:20:35 -07:00
gethostname-linux.c Perform inconsequential code cleanup 2023-08-07 20:24:50 -07:00
gethostname-nt.c Improve quality of uname/gethostname/getdomainname 2022-09-03 20:20:40 -07:00
gethostname.c Emulate ENOTDIR better 2023-08-16 20:11:23 -07:00
getloadavg-nt.c Fix warnings 2023-09-01 20:50:18 -07:00
getloadavg.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
getntsyspath.S Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
getpgid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
getpgrp.c Implement crash reporting for AARCH64 2023-05-12 05:47:54 -07:00
getppid-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
getppid.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
getpriority-nt.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
getpriority.c Fix breakages in Linux-only build modes 2023-07-09 19:51:44 -07:00
getprocaddressmodule.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
getprogramexecutablename.greg.c Make improvements 2023-09-18 21:04:47 -07:00
getrandom.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
getresgid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
getresuid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
getrlimit.c Mint APE Loader v1.7 2023-08-17 09:04:50 -07:00
getrusage-nt.c Make improvements 2023-09-18 21:04:47 -07:00
getrusage-sysv.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
getrusage.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
getsid.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
gettimeofday-m1.c Make improvements 2023-09-18 21:04:47 -07:00
gettimeofday-metal.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
gettimeofday-nt.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
gettimeofday-xnu.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
gettimeofday.c Make improvements 2023-09-18 21:04:47 -07:00
getuid-nt.c Make improvements 2023-09-18 21:04:47 -07:00
getuid.c Make improvements 2023-09-18 21:04:47 -07:00
grantpt.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
groups.internal.h Fix warnings 2023-09-01 20:50:18 -07:00
internal.h Make improvements 2023-09-18 21:04:47 -07:00
interrupts-nt.c Make improvements 2023-09-18 21:04:47 -07:00
ioctl.c Make improvements 2023-09-18 21:04:47 -07:00
ipc.h Improve isystem includes and magic numbers 2021-08-14 23:36:36 -07:00
isapemagic.c Improve AARCH64 execution 2023-09-11 14:46:46 -07:00
isatty-metal.c Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
isatty-nt.c Make improvements 2023-09-06 22:48:05 -07:00
isatty.c Fix warnings 2023-09-01 20:50:18 -07:00
ischardev.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
isdirectory-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
isdirectory.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
isexecutable.c Make improvements 2023-09-18 21:04:47 -07:00
islinux.c Make improvements 2023-09-06 12:34:59 -07:00
isptmaster.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
isregularfile-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
isregularfile.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
issetugid.c Make improvements 2023-09-06 12:34:59 -07:00
issymlink-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
issymlink.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
kemptyfd.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
kntsystemdirectory.S Introduce new linker for fat ape binaries 2023-08-11 04:39:19 -07:00
kntwindowsdirectory.S Introduce new linker for fat ape binaries 2023-08-11 04:39:19 -07:00
landlock.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
landlock_add_rule.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
landlock_create_ruleset.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
landlock_restrict_self.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
lchmod.c Add lchown, lchmod, statvfs, fstatvfs 2022-08-22 20:50:16 -07:00
lchown.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
link.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
linkat-nt.c Make improvements 2023-09-18 21:04:47 -07:00
linkat.c Move zipos into runtime package 2023-08-11 23:14:02 -07:00
lseek-nt.c Make improvements 2023-09-18 21:04:47 -07:00
lseek.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
lstat.c Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
lutimes.c Make improvements 2023-09-06 12:34:59 -07:00
madvise-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
madvise.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
major.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
makedev.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
makedev.h Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
makedirs.c Make improvements 2023-09-06 12:34:59 -07:00
memfd_create.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
metaflock.c Add more apis to redbean unix module 2022-08-16 23:23:34 -07:00
metalfile.c Make improvements 2023-09-18 21:04:47 -07:00
metalfile.internal.h Work towards zipos / open(argv[0]) on metal (#667) 2022-11-06 00:29:47 -07:00
metalfile_init.S Work towards zipos / open(argv[0]) on metal (#667) 2022-11-06 00:29:47 -07:00
mincore.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
minor.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
mkdir.c Further improve cocmd interpreter 2022-10-12 10:44:54 -07:00
mkdirat-nt.c Make improvements 2023-08-21 02:34:17 -07:00
mkdirat.c Move zipos into runtime package 2023-08-11 23:14:02 -07:00
mkdtemp.c Make improvements 2023-09-18 21:04:47 -07:00
mkfifo.c Fix warnings 2023-09-01 20:50:18 -07:00
mknod.c Implement crash reporting for AARCH64 2023-05-12 05:47:54 -07:00
mkntcmdline.c Make improvements 2023-09-18 21:04:47 -07:00
mkntenvblock.c Make improvements 2023-09-18 21:04:47 -07:00
mkntpath.c Make improvements 2023-09-06 22:48:05 -07:00
mkntpathat.c Make improvements 2023-08-21 02:34:17 -07:00
mkostemp.c Make improvements 2023-09-18 21:04:47 -07:00
mkostemps.c Make improvements 2023-09-18 21:04:47 -07:00
mkstemp.c Make improvements 2023-09-18 21:04:47 -07:00
mkstemps.c Make improvements 2023-09-18 21:04:47 -07:00
mktemp.c Make improvements 2023-09-18 21:04:47 -07:00
mlock.c Add mlock() and munlock() 2023-04-27 10:42:52 -07:00
mount.c Fix warnings 2023-09-01 20:50:18 -07:00
mount.h Improve isystem includes and magic numbers 2021-08-14 23:36:36 -07:00
mremap-sysv.greg.c Fix warnings 2023-09-01 20:50:18 -07:00
munlock.c Add mlock() and munlock() 2023-04-27 10:42:52 -07:00
munmap-metal.c Make improvements 2023-09-18 21:04:47 -07:00
munmap-sysv.c Make more threading improvements 2022-11-01 23:28:26 -07:00
nanosleep-xnu.c Make improvements 2023-09-18 21:04:47 -07:00
nanosleep.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
netbsdtramp.S Always initialize thread local storage 2022-07-19 00:21:46 -07:00
nice.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
nosync.c Make some systemic improvements 2022-05-18 16:52:36 -07:00
ntaccesscheck.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
ntmagicpaths.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
ntmagicpaths.inc Initial import 2020-06-15 07:18:57 -07:00
ntmagicpaths.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
ntreturn.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
ntsetprivilege.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
open-nt.c Make improvements 2023-09-18 21:04:47 -07:00
open.c Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
openat-metal.c Move zipos into runtime package 2023-08-11 23:14:02 -07:00
openat-sysv.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
openat.c Make improvements 2023-09-06 12:34:59 -07:00
openatemp.c Make improvements 2023-09-18 21:04:47 -07:00
openbsd.internal.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
openpty.c Fix warnings 2023-09-01 20:50:18 -07:00
parsepromises.c Get TEST_LIBC_STR passing on AARCH64 2023-05-12 18:09:23 -07:00
pause-nt.c Make improvements 2023-09-18 21:04:47 -07:00
pause.c Implement crash reporting for AARCH64 2023-05-12 05:47:54 -07:00
perror.c Remove some dead code 2023-07-03 02:48:29 -07:00
pipe-nt.c Avoid leaking handles across processes 2023-09-12 01:07:51 -07:00
pipe-sysv.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
pipe.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
pipe2-sysv.c Make important improvements 2022-09-14 22:39:08 -07:00
pipe2.c Make improvements 2023-08-21 02:34:17 -07:00
pivot_root.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
pledge-linux.c Make improvements 2023-09-18 21:04:47 -07:00
pledge.c Make improvements 2023-09-18 21:04:47 -07:00
pledge.h Refactor pledge() to be more configurable 2022-08-11 11:35:30 -07:00
pledge.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
poll-metal.c Make more code aarch64 friendly 2023-05-10 04:20:46 -07:00
poll-nt.c Make improvements 2023-09-18 21:04:47 -07:00
poll-sysv.c Implement crash reporting for AARCH64 2023-05-12 05:47:54 -07:00
poll.c Overhaul Windows signal handling 2023-09-08 01:49:41 -07:00
posix_fadvise.c Make improvements 2023-08-21 02:34:17 -07:00
posix_madvise.c Add *NSYNC unit test suite 2022-10-07 21:34:15 -07:00
posix_openpt.c Make improvements 2023-06-03 08:12:22 -07:00
ppoll.c Overhaul Windows signal handling 2023-09-08 01:49:41 -07:00
prctl.c Validate privileged code relationships 2023-06-08 04:38:06 -07:00
prctl.internal.h Make improvements 2023-06-03 08:12:22 -07:00
pread.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
preadv.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
printfds.c Make improvements 2023-09-18 21:04:47 -07:00
program_invocation_short_name.c Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
ptrace.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
ptsname.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
ptsname_r.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pwrite.c Fix warnings 2023-09-01 20:50:18 -07:00
pwritev.c Make improvements 2023-08-21 02:34:17 -07:00
raise.c Make improvements 2023-09-18 21:04:47 -07:00
rdrand.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
rdrand_init.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
read-nt.c Make improvements 2023-09-18 21:04:47 -07:00
read.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
readansi.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
readlink.c Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
readlinkat-nt.c Make improvements 2023-09-18 21:04:47 -07:00
readlinkat.c Make improvements 2023-09-06 22:48:05 -07:00
readv-metal.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
readv-nt.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
readv-serial.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
readv.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
reboot.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
releasefd.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
remove.c Make build hermetically sealed again 2023-07-08 07:06:25 -07:00
rename.c Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
renameat-nt.c Make improvements 2023-09-18 21:04:47 -07:00
renameat.c Move zipos into runtime package 2023-08-11 23:14:02 -07:00
reservefd.c Make greenbean web server better 2023-09-07 03:44:50 -07:00
restoretty.c Make improvements 2023-09-18 21:04:47 -07:00
rmdir.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
rusage2linux.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
rusage_add.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
sched-sysv.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
sched_get_priority_max.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
sched_get_priority_min.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
sched_getaffinity.c Improve the affinity system calls 2022-10-06 15:08:29 -07:00
sched_getparam.c Make important improvements 2022-09-14 22:39:08 -07:00
sched_getscheduler-netbsd.c Make important improvements 2022-09-14 22:39:08 -07:00
sched_getscheduler.c Make important improvements 2022-09-14 22:39:08 -07:00
sched_rr_get_interval.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
sched_setaffinity.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
sched_setparam.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
sched_setscheduler.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
seccomp.c Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
secure_getenv.c Make improvements 2023-09-06 12:34:59 -07:00
sedebug.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
setegid.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
seteuid.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
setfsgid.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
setfsuid.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
setgid.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
setgroups.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
setpgid.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
setpgrp.c Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
setpriority-nt.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
setpriority.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
setregid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
setresgid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
setresuid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
setreuid.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
setrlimit.c Mint APE Loader v1.7 2023-08-17 09:04:50 -07:00
setsid.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
settimeofday.c Get us closer to building busybox 2023-06-18 04:13:45 -07:00
setuid.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
sig.c Make improvements 2023-09-18 21:04:47 -07:00
sig.internal.h Make improvements 2023-09-18 21:04:47 -07:00
sigaction.c Make improvements 2023-09-18 21:04:47 -07:00
sigaltstack.c Make improvements 2023-09-18 21:04:47 -07:00
sigblockall.c Make improvements 2023-09-18 21:04:47 -07:00
sigenter-freebsd.c Make improvements 2023-09-18 21:04:47 -07:00
sigenter-linux.c Make improvements 2023-09-18 21:04:47 -07:00
sigenter-netbsd.c Make improvements 2023-09-18 21:04:47 -07:00
sigenter-openbsd.c Make improvements 2023-09-18 21:04:47 -07:00
sigenter-xnu.c Make improvements 2023-09-18 21:04:47 -07:00
sigignore.c Make improvements 2023-07-10 04:35:14 -07:00
siginfo2cosmo.c Make improvements 2023-09-18 21:04:47 -07:00
siginterrupt.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
sigmask.c Make improvements 2023-09-18 21:04:47 -07:00
signal.c Make improvements 2023-07-10 04:35:14 -07:00
sigpending.c Rewrite Windows signal delivery system 2023-09-12 11:38:34 -07:00
sigprocmask-sysv.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
sigprocmask.c Make improvements 2023-09-18 21:04:47 -07:00
sigqueue.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
sigsetmask.c Make improvements 2023-09-18 21:04:47 -07:00
sigsuspend.c Make improvements 2023-09-18 21:04:47 -07:00
sigtimedwait.c Fix warnings 2023-09-01 20:50:18 -07:00
sigtimedwait.h Introduce sigtimedwait() and sigwaitinfo() 2022-10-10 07:39:44 -07:00
sigtimedwait.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
sigwaitinfo.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
sigwinch-nt.c Make improvements 2023-09-18 21:04:47 -07:00
sleep.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
splice.c Fix warnings 2023-09-01 20:50:18 -07:00
stat.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
stat2cosmo.c Make more progress on aarch64 2023-05-10 04:20:47 -07:00
state.internal.h Make improvements 2023-09-18 21:04:47 -07:00
statfs-nt.c Avoid leaking handles across processes 2023-09-12 01:07:51 -07:00
statfs.c Make improvements 2023-09-18 21:04:47 -07:00
statfs2cosmo.c Mint APE Loader v1.7 2023-08-17 09:04:50 -07:00
statfs2statvfs.c Add lchown, lchmod, statvfs, fstatvfs 2022-08-22 20:50:16 -07:00
statvfs.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
swapcontext.S Hunt down more bugs 2023-07-03 18:43:29 -07:00
symlink.c Support dirfd relative iops on Windows 2021-01-30 01:49:43 -08:00
symlinkat-nt.c Make improvements 2023-09-18 21:04:47 -07:00
symlinkat.c Make more threading improvements 2022-11-01 23:28:26 -07:00
sync-nt.c Remove a bunch of stuff that shouldn't be in docs 2022-09-20 02:57:46 -07:00
sync.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
sync_file_range.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
syncfs.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
sys_ptrace.c Make more threading improvements 2022-11-01 23:28:26 -07:00
syscall-nt.internal.h Make the Windows Console work better 2023-09-07 18:27:22 -07:00
syscall-sysv.internal.h Get rid of kmalloc() 2023-09-11 21:56:00 -07:00
syscall_support-nt.internal.h Make improvements 2023-09-18 21:04:47 -07:00
syscall_support-sysv.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
sysinfo-nt.c Make improvements 2022-05-28 00:28:09 -07:00
sysinfo.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
sysparam.h Add lchown, lchmod, statvfs, fstatvfs 2022-08-22 20:50:16 -07:00
tailcontext.S Hunt down more bugs 2023-07-03 18:43:29 -07:00
tcdrain.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
tcflow.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
tcflush.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
tcgetattr-nt.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
tcgetattr.c Get Fat Emacs working in Windows Console 2023-08-18 05:00:30 -07:00
tcgetpgrp.c Simplify cosmocc builds (#863) 2023-07-23 11:11:08 -07:00
tcgetsid.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
tcgetwinsize-nt.c Make improvements 2023-09-18 21:04:47 -07:00
tcgetwinsize.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
tcsendbreak.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
tcsetattr-nt.c Make improvements 2023-09-18 21:04:47 -07:00
tcsetattr.c Get Fat Emacs working in Windows Console 2023-08-18 05:00:30 -07:00
tcsetpgrp.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
tcsetsid.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
tcsetwinsize-nt.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
tcsetwinsize.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
termios.h Overhaul process spawning 2023-09-10 08:17:44 -07:00
termios.internal.h Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
termios2host.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
time.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
timespec_add.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_cmp.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_frommicros.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_frommillis.c Fix redbean unix.poll() with -1 timeout 2023-06-18 18:05:26 -07:00
timespec_fromnanos.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_get.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_getres.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_mono.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
timespec_real.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
timespec_sleep.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
timespec_sleep_until.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
timespec_sub.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timespec_subz.c Make improvements 2023-06-15 14:50:53 -07:00
timespec_tomicros.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
timespec_tomillis.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
timespec_tonanos.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
timespec_totimeval.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timeval_add.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timeval_cmp.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timeval_frommicros.c Make improvements 2022-11-07 02:26:06 -08:00
timeval_frommillis.c Make improvements 2022-11-07 02:26:06 -08:00
timeval_real.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
timeval_sub.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
timeval_subz.c Make improvements 2023-06-15 14:50:53 -07:00
timeval_tomicros.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
timeval_tomillis.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
timeval_toseconds.c Improve Windows Console I/O 2023-08-08 05:44:40 -07:00
tinyprint.c Make improvements 2023-09-18 21:04:47 -07:00
tmpdir.c Make improvements 2023-09-18 21:04:47 -07:00
tmpfd.c Make improvements 2023-09-18 21:04:47 -07:00
touch.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
truncate-nt.c Improve docs of more system calls 2022-10-02 22:14:33 -07:00
truncate.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
ttydefaults.h Remove evil constants from cosmopolitan.h 2022-12-17 00:42:45 -08:00
ttyname.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
ttyname_r.c Fix warnings 2023-09-01 20:50:18 -07:00
ucontext.c Hunt down more bugs 2023-07-03 18:43:29 -07:00
ucontext.h Make improvements 2023-09-18 21:04:47 -07:00
umask.c Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
uname.c Make improvements 2023-09-18 21:04:47 -07:00
unlink.c Make numerous improvements 2021-09-28 01:52:34 -07:00
unlinkat-nt.c Make improvements 2023-08-21 02:34:17 -07:00
unlinkat.c Move zipos into runtime package 2023-08-11 23:14:02 -07:00
unlockpt.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
unmount.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
unveil.c Make improvements 2023-09-18 21:04:47 -07:00
usleep.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
utime.c Fix futimes() regression 2022-10-05 19:25:07 -07:00
utimens.c Make improvements 2023-09-06 12:34:59 -07:00
utimensat-nt.c Make improvements 2023-09-06 12:34:59 -07:00
utimensat-old.c Make improvements 2023-09-06 12:34:59 -07:00
utimensat-sysv.c Make improvements 2023-09-06 12:34:59 -07:00
utimensat.c Make improvements 2023-09-06 12:34:59 -07:00
utimes.c Make improvements 2023-09-06 12:34:59 -07:00
vdsofunc.greg.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
verynice.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
virtualmax.S Fix some issues and do some code cleanup 2022-05-23 10:15:53 -07:00
virtualmax2.c Disable linker map generation and improve tinyness 2023-06-09 03:29:26 -07:00
weirdtypes.h Make improvements 2023-08-21 02:34:17 -07:00
wifcontinued.c Improve wait statuses 2023-07-30 14:51:37 -07:00
wifsignaled.c Improve wait statuses 2023-07-30 14:51:37 -07:00
wifstopped.c Improve wait statuses 2023-07-30 14:51:37 -07:00
wincrash.internal.h Overhaul Windows signal handling 2023-09-08 01:49:41 -07:00
winstdin1.c Make improvements 2023-09-18 21:04:47 -07:00
winstdin2.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
write-nt.c Make improvements 2023-09-18 21:04:47 -07:00
write.c Make improvements 2023-09-18 21:04:47 -07:00
writev-metal.c Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
writev-nt.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
writev-serial.c Make more code aarch64 friendly 2023-05-10 04:20:46 -07:00
writev.c Get Fat Emacs working in Windows Console 2023-08-18 05:00:30 -07:00
writevuninterruptible.c Remove _Hide keyword 2023-07-24 08:34:58 -07:00
xattr.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00