opnsense-src/libexec/flua
Kyle Evans 3f0e109209 flua: fbsd: allow stdout to be captured for exec() processes
This allows us to do things like:

```
local fp = assert(fbsd.exec({"ls", "-l"}, true))
local fpout = assert(fp:stdout())

while true do
        local line = fpout:read("l")
        if not line then break end
        print("Read: " .. line)
end

fp:close()
```

The makeman lua rewrite will use it to capture `make showconfig` output
for processing.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D50539
2025-07-09 00:12:32 -05:00
..
libfreebsd flua: add freebsd.kenv, kenv(2) bindings 2024-09-14 07:43:50 +02:00
libhash flua: move modules source into the main source directory 2024-09-12 09:03:44 +02:00
libjail jail: Add meta and env parameters 2025-03-31 09:17:03 +00:00
liblyaml lyaml: vendor import lua bindings for libyaml 2025-06-26 09:15:08 +02:00
libucl flua: move modules source into the main source directory 2024-09-12 09:03:44 +02:00
modules flua: fbsd: allow stdout to be captured for exec() processes 2025-07-09 00:12:32 -05:00
flua.1 flua.1: Add xref to style.lua(9) 2025-04-28 16:28:26 -04:00
linit_flua.c lposix: Clean up the posix namespace definitions 2025-07-07 15:43:27 +00:00
Makefile lyaml: vendor import lua bindings for libyaml 2025-06-26 09:15:08 +02:00
Makefile.inc flua: move modules source into the main source directory 2024-09-12 09:03:44 +02:00