cosmopolitan/libc/nt
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
..
advapi32 Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
comdlg32 Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
enum Fix some issues and do some code cleanup 2022-05-23 10:15:53 -07:00
gdi32 Delete some files we don't need 2022-06-16 09:04:37 -07:00
iphlpapi Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
kernel32 Make improvements 2022-05-28 00:28:09 -07:00
MsWSock Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
netapi32 Initial import 2020-06-15 07:18:57 -07:00
nt Correct more typos (#500) 2022-07-21 20:53:30 -07:00
ntdll Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
pdh Fix some win32 definitions 2022-03-22 19:54:36 -07:00
PowrProf Make more fixes and improvements 2022-04-21 13:44:59 -07:00
psapi Fix some win32 definitions 2022-03-22 19:54:36 -07:00
shell32 Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
struct Make fixes and improvements 2022-06-25 21:09:09 -07:00
thunk Make improvements 2022-04-24 10:06:05 -07:00
typedef Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
url Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
user32 Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
ws2_32 Make fixes and improvements 2022-06-25 21:09:09 -07:00
accounting.h Make improvements 2022-05-28 00:28:09 -07:00
automation.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
codegen.h Make improvements 2020-12-01 03:43:40 -08:00
codegen.sh Add WIN32 symbols for OpenGL support (#304) 2021-10-26 14:18:13 -07:00
comdlg.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
console.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
createfile.h Improve synchronization 2022-04-15 15:31:55 -07:00
debug.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
dll.h Make numerous improvements 2021-09-28 01:52:34 -07:00
efi.h Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
errors.h Make improvements 2022-04-24 10:06:05 -07:00
events.h Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
files.h Fix bugs and make improvements 2022-04-20 10:05:34 -07:00
iocp.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ipc.h Improve synchronization 2022-04-15 15:31:55 -07:00
iphlpapi.h Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
master.sh Make fixes and improvements 2022-06-25 21:09:09 -07:00
memory.h Get life.com in MODE=tiny back down to 12kb 2022-03-23 08:09:01 -07:00
messagebox.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt.mk Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
ntdll.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
ntdllimport.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ntdllimport.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paint.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
pdh.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
pedef.internal.h Add UEFI support 2021-02-21 21:33:04 -08:00
privilege.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
process.h Make fixes and improvements 2022-05-19 16:57:49 -07:00
registry.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
runtime.h Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
signals.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
startupinfo.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
synchronization.h Make improvements 2022-03-16 13:40:10 -07:00
system.h Improve isystem includes and magic numbers 2021-08-14 23:36:36 -07:00
systeminfo.h Fix cosmopolitan.h for C++ 2021-02-01 04:04:44 -08:00
sysv2nt.s Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
thread.h Improve threading support further 2022-05-17 04:14:28 -07:00
version.h Fixup and polish chibicc some more 2022-06-20 04:32:25 -07:00
windows.h Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
winsock.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00