cosmopolitan/third_party/linenoise
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
..
LICENSE Add linenoise to third party 2021-08-14 11:09:54 -07:00
linenoise.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
linenoise.h Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
linenoise.mk Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
README.cosmo Improve Python and Linenoise 2021-09-11 22:30:37 -07:00

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