cosmopolitan/third_party/tidy
Justine Tunney 133c693650 Work around Landlock output inode in compile.com
This change fixes Landlock Make so that only the output target file is
unveiled, rather than unveiling the directory that contains it. This
gives us a much stronger sandbox. It also helped identify problematic
build code in our repo that should have been using o/tmp instead.

Landlock isn't able to let us unveil files that don't exist. Even if
they do, then once a file is deleted, the sandboxing for it goes away.
This caused problems for Landlock Make because tools like GNU LD will
repeatedly delete and recreate the output file. This change uses the
compile.com wrapper to ensure on changes happen to the output inode.

New binary available on https://justine.lol/make/

Fixes #528
2022-08-09 07:55:44 -07:00
..
.tidyrc Add w3c html tidy 2022-06-09 06:51:08 -07:00
access.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
access.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
alloc.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
attrdict.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
attrdict.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
attrs.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
attrs.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
buffio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
charsets.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
charsets.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
clean.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
clean.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
config.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
config.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
entities.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
entities.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
fileio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
fileio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
forward.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
gdoc.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
gdoc.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
istack.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
language.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
language.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
language_en.inc Add w3c html tidy 2022-06-09 06:51:08 -07:00
lexer.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
lexer.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
LICENSE.md Add w3c html tidy 2022-06-09 06:51:08 -07:00
mappedio.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
mappedio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
message.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
message.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
messageobj.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
messageobj.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
parser.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
parser.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
pprint.c Add w3c html tidy 2022-06-09 06:51:08 -07:00
pprint.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
README.cosmo Add w3c html tidy 2022-06-09 06:51:08 -07:00
sprtf.c Refactor gettimeofday() 2022-08-05 02:13:41 -07:00
sprtf.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
streamio.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
streamio.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tagask.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tags.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tags.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidy-int.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidy.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidy.h Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidy.mk Work around Landlock output inode in compile.com 2022-08-09 07:55:44 -07:00
tidybuffio.h Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidyenum.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tidylib.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tidyplatform.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
tmbstr.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
tmbstr.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
utf8.c Remove unsafe emacs config from tidy 2022-06-19 00:59:58 -07:00
utf8.h Add w3c html tidy 2022-06-09 06:51:08 -07:00
version.inc Add w3c html tidy 2022-06-09 06:51:08 -07:00

DESCRIPTION

  HTML Tidy is a tool for spotting errors in HTML code. It's also able
  to reformat source code in a configurable manner. It has outstanding
  support for HTML5.

PROVENANCE

  https://github.com/htacg/tidy-html5/
  Commit: d08ddc2860aa95ba8e301343a30837f157977cba
  Author: Jim Derry <balthisar@gmail.com>
  Date:   Tue Jan 25 10:17:15 2022 -0500

LICENSE

  W3C License
  This is a permissive license that only requires notice preservation in
  sources. https://en.wikipedia.org/wiki/W3C_Software_Notice_and_License
  Similar to the Apache 2.0 license any local changes must be documented

LOCAL CHANGES

  No changes to tidy program. Only platform normalization.

  - Obtain .tidyrc from /zip/.tidyrc rather than /etc/tidrc
  - Configure tidyplatform.h
  - Rename a few .h files to .inc
  - Normalize header includes for cosmopolitan repo
  - Delete ugly no-op macros, e.g. TIDY_CALL, TIDY_EXPORT, etc.
  - Add clang-format off directives
  - Delete trailing whitespace