opnsense-src/libexec
Mark Johnston eda96744b4 lposix: Clean up the posix namespace definitions
The posix module is subdivided according to C headers; for instance,
posix.unistd contains routines available from unistd.h, such as
chown(2).

A quirk of our implementation is that each of the modules is a direct
entry in the global table.  That is, there is no "posix" table.
Instead, "posix.foo" and "posix.bar.baz" are both top-level tables.
This is surprising and goes against Lua's shorthand of using "." to
access keys in a table.  lua-posix also doesn't work this way.

Rework things so that "posix" and "posix.sys" are proper tables.
Existing flua code which uses require() to bind posix submodules to a
name will be unaffected.  Code which accesses them directly using
something like _G["posix.sys.utsname"].uname() will be broken, but I
don't think anything like that exists.  In particular, it is now
possible to call posix.sys.utsname.uname() without any require
statements.

Reviewed by:	imp, bapt
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D51158
2025-07-07 15:43:27 +00:00
..
atf atf, kyua: Implement require.kmods. 2025-05-31 14:27:30 +02:00
atrun Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
blacklistd-helper Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
bootpd bootptest: Fix a typo in a source code comment 2025-01-26 13:06:55 +01:00
comsat comsat: move uid/gid setting earlier 2024-12-02 14:57:13 -05:00
dma Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fingerd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
flua lposix: Clean up the posix namespace definitions 2025-07-07 15:43:27 +00:00
ftpd ftpd: Provide an option to turn off FTP anonymous usage 2025-06-26 14:10:14 +02:00
getty Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
hyperv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
kgdb crashinfo: Print stack traces for all on-CPU threads 2024-01-15 16:36:40 -05:00
mail.local Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
makewhatis.local Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mknetid Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nuageinit nuageinit: Add wrappers for chmod and chown 2025-07-05 14:54:07 +00:00
phttpget Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pppoed Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rbootd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rc network.subr: correct return code in case of bad call to ifisup() 2025-07-01 21:33:19 +07:00
revnetgroup Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc.rquotad Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc.rstatd move the SunOS r-commands into the rcmds package 2025-05-05 16:39:25 +01:00
rpc.rusersd move the SunOS r-commands into the rcmds package 2025-05-05 16:39:25 +01:00
rpc.rwalld move the SunOS r-commands into the rcmds package 2025-05-05 16:39:25 +01:00
rpc.sprayd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rtld-elf rtld-elf: Add Add AT_HWCAP3 and AT_HWCAP4 2025-06-24 17:26:40 +01:00
rtld-elf32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
save-entropy Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
smrsh Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
talkd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tcpd tcp_wrappers: Use default C standard version 2025-01-09 13:07:51 -05:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tftp-proxy tftp-proxy: move to the pf package 2025-05-05 16:39:25 +01:00
tftpd src: Use gnu17 as the default C standard for userland instead of gnu99 2025-02-11 09:16:25 -05:00
ulog-helper Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ypxfr Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile atf: Guard libexec/atf with WITH_TESTS_SUPPORT 2024-11-18 18:36:46 +00:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00