freebsd-skq/stand/liblua
kevans 74bf7ec5e2 Add flua to the base system, install to /usr/libexec
FreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whatever
extensions we need for base system operations. We currently support a subset
of lfs and lposix that are used in the rewrite of makesyscall.sh into lua,
added in r354786.

flua is intentionally written such that one can install standard lua and
some set of lua modules from ports and achieve the same effect.

linit_flua is a copy of linit.c from contrib/lua with lfs and lposix added
in. This is similar to what we do in stand/. linit.c has been renamed to
make it clear that this has flua-specific bits.

luaconf has been slightly obfuscated to make extensions more difficult. Part
of the problem is that flua is already hard enough to use as a bootstrap
tool because it's not in PATH- attempting to do extension loading would
require a special bootstrap version of flua with paths changed to protect
the innocent.

src.lua.mk has been added to make it easy for in-tree stuff to find flua,
whether it's bootstrap-flua or relying on PATH frobbing by Makefile.inc1.

Reviewed by:	brooks, emaste (both earlier version), imp
Differential Revision:	https://reviews.freebsd.org/D21893
2019-11-18 23:21:13 +00:00
..
float.h Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00
lerrno.c Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
lerrno.h loader.lua: Expose errno table to lua 2018-02-20 19:39:48 +00:00
locale.h Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00
lstd.c Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lstd.h liblua: Implement write support 2018-02-24 02:57:24 +00:00
luaconf.h stand: consolidate knowledge of lua path 2019-11-02 03:37:58 +00:00
lutils.c liblua: add loader.lua_path 2019-11-02 03:41:30 +00:00
lutils.h interp_lua: Register io/loader with regular Lua module system 2018-02-18 01:13:58 +00:00
Makefile Add flua to the base system, install to /usr/libexec 2019-11-18 23:21:13 +00:00
math.h Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00