mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
cf93ecbbb2
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. |
||
---|---|---|
.. | ||
LICENSE | ||
linenoise.c | ||
linenoise.h | ||
linenoise.mk | ||
README.cosmo |
DESCRIPTION Cosmopolitan Linenoise is a library for interactive pseudoteletypewriter command sessions using ANSI Standard X3.64 control sequences. ORIGIN https://github.com/antirez/linenoise 97d2850af13c339369093b78abe5265845d78220 Author: antirez <antirez@gmail.com> Date: Thu Mar 12 15:51:45 2020 +0100 Use unsigned int instead of uint like rest of code base. DOCUMENTATION See linenoise.c LOCAL CHANGES See linenoise.c