process(3lua): init man pages
Initialise man pages for the process module.
This commit is contained in:
parent
69f8fff3bd
commit
37d208a5d2
7 changed files with 156 additions and 0 deletions
22
man/process/process.pid.3lua.scd
Normal file
22
man/process/process.pid.3lua.scd
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue