sh(1): Add and use pregenerated headers

Operating Systems / DragonFlyBSD - zrj [gmail.com] - 18 February 2018 15:13 EST

These only add 30k to the repo while ensuring that bin/sh would not be affected by bad shell script invocation etc. As the bonus it solves the issue in share/initrd too. Nothing in the generated headers should fail for our use cases. If that would change, please report it.

cbb07feb2f sh(1): Add and use pregenerated headers.
bin/sh/Makefile | 24 +--
bin/sh/mknodes/Makefile | 10 ++
bin/sh/mksyntax/Makefile | 10 ++
bin/sh/pregenerated/builtins.c | 101 +++++++++++
bin/sh/pregenerated/builtins.h | 97 +++++++++++
bin/sh/pregenerated/nodes.c | 368 +++++++++++++++++++++++++++++++++++++++++
bin/sh/pregenerated/nodes.h | 163 ++++++++++++++++++
bin/sh/pregenerated/syntax.c | 192 +++++++++++++++++++++
bin/sh/pregenerated/syntax.h | 54 ++++++
bin/sh/pregenerated/token.h | 112 +++++++++++++
share/initrd/bin/Makefile | 3 +-
share/mk/bsd.crunchgen.mk | 2 +-
12 files changed, 1124 insertions(+), 12 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share