Expand description
Lua os standard library.
Ports src/loslib.c (430 lines, 12 functions) to Rust.
§Platform access limitations
Several os.* functions require OS-level capabilities that are restricted to
lua-cli per PORTING.md (no std::fs, no std::process in lua-stdlib).
Those functions are stubbed with TODO(port) markers and return nil / error
until a capability-injection layer is designed in Phase B.
Time decomposition (os.date, os.time) requires C-library functions
(gmtime_r, localtime_r, mktime, strftime). Those call sites are
flagged with TODO(port) and the stubs use a zero-initialised TmFields.
Structs§
- TmFields
- Local mirror of C’s
struct tm.
Constants§
- OS_LIB
- C:
static const luaL_Reg syslib[]
Functions§
- open_os
- C:
LUAMOD_API int luaopen_os(lua_State *L)
Type Aliases§
- Native
Fn - Type alias for a Lua native function implementation in Rust.