process(3lua): init man pages

Initialise man pages for the process module.
This commit is contained in:
Jeremy Baxter 2024-04-06 19:58:41 +13:00
parent 69f8fff3bd
commit 37d208a5d2
7 changed files with 156 additions and 0 deletions

View file

@ -0,0 +1,22 @@
PROCESS.PID(3lua) "3lua" "Callisto manual pages"
# NAME
*process.pid* - get the current process's PID
# SYNOPSIS
*process.pid*()
# DESCRIPTION
*process.pid* returns the PID of the current interpreter process.
# EXAMPLES
Create a function that returns a unique name for a temporary file:
```
function tmpname(prefix)
return "/tmp/" .. prefix .. '.' .. process.pid()
end
```
# SEE ALSO
callisto(3lua), process(3lua), getpid(2)