Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
sundb committed Feb 21, 2024
1 parent 7d60dc2 commit 869dcce
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/interact/programmability/lua-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,7 @@ The following [standard Lua libraries](https://www.lua.org/manual/5.1/manual.htm
* The [_String Manipulation (string)_ library](https://www.lua.org/manual/5.1/manual.html#5.4)
* The [_Table Manipulation (table)_ library](https://www.lua.org/manual/5.1/manual.html#5.5)
* The [_Mathematical Functions (math)_ library](https://www.lua.org/manual/5.1/manual.html#5.6)
* The [_Operating System Facilities (os)_ library](https://www.lua.org/manual/5.1/manual.html#5.8)
Note that for sandbox security, currently only the following os API is exposed:
* `os.clock()`
* The [_Operating System Facilities (os)_ library](#os-library)

In addition, the following external libraries are loaded and accessible to scripts:

Expand All @@ -681,14 +679,25 @@ In addition, the following external libraries are loaded and accessible to scrip
* The [_cmsgpack_ library](#cmsgpack-library)
* The [_bitop_ library](#bitop-library)

### <a name="os-library"></a> _os_ library

* Since version: 8.0.0
* Available in scripts: yes
* Available in functions: yes

_os_ provides a set of functions for dealing with date, time, and system commands.
More details can be found in the [Operating System Facilities](https://www.lua.org/manual/5.1/manual.html#5.8).
Note that for sandbox security, currently only the following os functions is exposed:

* [`struct.clock()`](#os.clock)

### <a name="struct-library"></a> _struct_ library

* Since version: 2.6.0
* Available in scripts: yes
* Available in functions: yes

_struct_ is a library for packing and unpacking C-like structures in Lua.
It provides the following functions:

* [`struct.pack()`](#struct.pack)
* [`struct.unpack()`](#struct.unpack)
Expand Down

0 comments on commit 869dcce

Please sign in to comment.