cosmopolitan/libc/sock
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
..
struct Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
accept-nt.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
accept-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
accept.c Make signal handling work well across platforms 2022-03-25 07:28:57 -07:00
accept4-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
accept4.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
alg.h Perform build and magnum tuning 2021-08-10 10:26:13 -07:00
asanmsghdr.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
basesocket.c Improve synchronization 2022-04-15 15:31:55 -07:00
bind-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
bind-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
bind.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
closesocket-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
connect-nt.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
connect-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
connect.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
dupsockfd.c Improve synchronization 2022-04-15 15:31:55 -07:00
epoll.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
epoll.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
firewall.c Add some more necessary locks 2022-06-12 22:20:59 -07:00
fixupnewsockfd.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
gethostips.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
getpeername-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
getpeername-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
getpeername.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
getsockname-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
getsockname-sysv.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
getsockname.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
getsockopt-nt.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
getsockopt.c Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
goodsocket.c Refactor out some duplicated code 2021-08-14 06:17:56 -07:00
goodsocket.internal.h Refactor out some duplicated code 2021-08-14 06:17:56 -07:00
inet_addr.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_aton.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_ntoa.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_ntop.c Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
inet_pton.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
internal.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
iovec2nt.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ipclassify.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ispublicip.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
kntwsadata.c Correct more typos (#500) 2022-07-21 20:53:30 -07:00
listen-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
listen.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
parseport.c Add protoent and netent (#209) 2021-07-10 12:36:35 -07:00
ppoll.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
recv-nt.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
recv.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
recvfrom-nt.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
recvfrom.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
recvmsg.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
select-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
select.c Improve system calls 2022-07-08 06:42:03 -07:00
select.h Make numerous improvements 2021-09-28 01:52:34 -07:00
send-nt.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
send.c Fix bugs and add security features to redbean 2022-04-18 00:01:26 -07:00
sendfile.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
sendfile.internal.h Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
sendmsg.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
sendto-nt.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
sendto.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
setsockopt-nt.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
setsockopt.c Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
shutdown-nt.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
shutdown.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
sock.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
sock.mk Make fixes and improvements 2022-06-25 21:09:09 -07:00
sockaddr2bsd.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
sockaddr2linux.c Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
sockdebug.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
socket-nt.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
socket-sysv.c Have redbean show zip listing as default / handler 2021-03-29 01:22:49 -07:00
socket.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
socketpair-nt.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
socketpair-sysv.c Perform fine-tuning of socketpair and pipe 2021-03-16 22:44:54 -07:00
socketpair.c Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
sys_sendfile_freebsd.S Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
sys_sendfile_xnu.S Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
syscall_fd.internal.h Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
syslog.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
syslog.h Add seccomp bpf sandboxing to redbean 2022-04-18 08:54:42 -07:00
winsockblock.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
wsablock.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
xinet_ntop.c Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
yoink.inc Improve synchronization 2022-04-15 15:31:55 -07:00