opnsense-src/libexec/flua/modules
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
..
lfbsd.c flua: fbsd: allow stdout to be captured for exec() processes 2025-07-09 00:12:32 -05:00
lfbsd.h flua: add fbsd module 2023-09-27 16:00:00 +02:00
lfs.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
lfs.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
lposix.c lposix: Clean up the posix namespace definitions 2025-07-07 15:43:27 +00:00
lposix.h lposix: Clean up the posix namespace definitions 2025-07-07 15:43:27 +00:00