cosmopolitan/test/libc/calls
Justine Tunney cf93ecbbb2 Prove that Makefile is fully defined
The whole repository is now buildable with GNU Make Landlock sandboxing.
This proves that no Makefile targets exist which touch files other than
their declared prerequisites. In order to do this, we had to:

  1. Stop code morphing GCC output in package.com and instead run a
     newly introduced FIXUPOBJ.COM command after GCC invocations.

  2. Disable all the crumby Python unit tests that do things like create
     files in the current directory, or rename() files between folders.
     This ended up being a lot of tests, but most of them are still ok.

  3. Introduce an .UNSANDBOXED variable to GNU Make to disable Landlock.
     We currently only do this for things like `make tags`.

  4. This change deletes some GNU Make code that was preventing the
     execve() optimization from working. This means it should no longer
     be necessary in most cases for command invocations to be indirected
     through the cocmd interpreter.

  5. Missing dependencies had to be declared in certain places, in cases
     where they couldn't be automatically determined by MKDEPS.COM

  6. The libcxx header situation has finally been tamed. One of the
     things that makes this difficult is MKDEPS.COM only wants to
     consider the first 64kb of a file, in order to go fast. But libcxx
     likes to have #include lines buried after huge documentation.

  7. An .UNVEIL variable has been introduced to GNU Make just in case
     we ever wish to explicitly specify additional things that need to
     be whitelisted which aren't strictly prerequisites. This works in
     a manner similar to the recently introduced .EXTRA_PREREQS feature.

There's now a new build/bootstrap/make.com prebuilt binary available. It
should no longer be possible to write invalid Makefile code.
2022-08-06 04:05:08 -07:00
..
_timespec_test.c Avoid long double timestamps in redbean 2022-08-05 19:24:05 -07:00
access_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
chdir_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
clock_getres_test.c Improve system calls 2022-07-08 06:42:03 -07:00
clock_gettime_test.c Avoid long double timestamps in redbean 2022-08-05 19:24:05 -07:00
closefrom_test.c Make improvements 2022-07-21 03:36:42 -07:00
commandv_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
dup_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
fcntl_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
fileexists_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
ftruncate_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
getcontext_test.c Add getcontext() and setcontext() 2022-06-23 06:01:44 -07:00
getcwd_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
getitimer_test.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
ioctl_siocgifconf_test.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
life.c Make improvements to locking 2022-06-19 01:30:12 -07:00
lseek_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
mkdir_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
mkntcmdline_test.c Perform better fixups of NT paths in execve() 2022-06-08 18:27:19 -07:00
mkntenvblock_test.c Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
mkntpath_test.c Make fixes and improvements 2022-06-18 01:46:12 -07:00
nanosleep_test.c Improve system calls 2022-07-08 06:42:03 -07:00
open_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
pipe_test.c Make more fixes and improvements 2022-06-13 11:02:13 -07:00
pledge_test.c Plug a hole in pledge() 2022-07-24 23:41:59 -07:00
pread_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
printargs_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
pwrite_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
read_test.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
readansi_test.c Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
readlinkat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
renameat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
reservefd_test.c Use futexes on OpenBSD and improve threading 2022-07-17 19:59:49 -07:00
sched_getaffinity_test.c Make more fixes and improvements 2022-06-13 11:02:13 -07:00
sched_setscheduler_test.c Improve pledge() and unveil() further 2022-07-24 03:10:16 -07:00
seccomp_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
setitimer_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
setrlimit_test.c Make a few fixups 2022-06-12 07:32:14 -07:00
sigaction_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
signal_test.c Benchmark signal delivery 2022-08-05 15:01:23 -07:00
sigprocmask_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
sigsuspend_test.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
stat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
symlinkat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
test.mk Remove malloc() dependency on pledge() / unveil() 2022-07-24 21:51:37 -07:00
tiny64.elf Bump support up to FreeBSD 13 and NetBSD 9.2 2022-06-11 10:36:17 -07:00
tkill_test.c Get threads working on all platforms 2022-05-13 03:59:09 -07:00
unlinkat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
unveil_test.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
utimensat_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
vfork_test.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
write_test.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
writev_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00