Add brief description to some unix.* calls missing it

This commit is contained in:
Paul Kulchenko 2023-03-05 23:25:58 -08:00
parent f68e79622c
commit 39ce014105

View file

@ -2828,7 +2828,7 @@ UNIX MODULE
`env` is a string list table. Values are coerced to strings. No `env` is a string list table. Values are coerced to strings. No
ordering requirement is imposed. By convention, each string has its ordering requirement is imposed. By convention, each string has its
key and value divided by an equals sign without spaces. If this key and value separated by an equals sign without spaces. If this
parameter is not specified, it'll default to the C/C++ `environ` parameter is not specified, it'll default to the C/C++ `environ`
variable which is inherited from the shell that launched redbean. variable which is inherited from the shell that launched redbean.
It's the responsibility of the user to supply a sanitized environ It's the responsibility of the user to supply a sanitized environ
@ -3677,6 +3677,8 @@ UNIX MODULE
├─→ fd:int ├─→ fd:int
└─→ nil, unix.Errno └─→ nil, unix.Errno
Creates socket endpoint for process communication.
`family` defaults to `AF_INET` and can be: `family` defaults to `AF_INET` and can be:
- `AF_INET`: Creates Internet Protocol Version 4 (IPv4) socket. - `AF_INET`: Creates Internet Protocol Version 4 (IPv4) socket.
@ -3975,6 +3977,8 @@ UNIX MODULE
├─→ data:str ├─→ data:str
└─→ nil, unix.Errno └─→ nil, unix.Errno
Receives message from a socket.
`flags` may have any combination (using bitwise OR) of: `flags` may have any combination (using bitwise OR) of:
- `MSG_WAITALL` - `MSG_WAITALL`
@ -3987,6 +3991,8 @@ UNIX MODULE
├─→ data:str, unixpath:str ├─→ data:str, unixpath:str
└─→ nil, unix.Errno └─→ nil, unix.Errno
Receives message from a socket.
`flags` may have any combination (using bitwise OR) of: `flags` may have any combination (using bitwise OR) of:
- `MSG_WAITALL` - `MSG_WAITALL`
@ -4063,6 +4069,8 @@ UNIX MODULE
├─→ oldhandler:func|int, flags:int, mask:unix.Sigset ├─→ oldhandler:func|int, flags:int, mask:unix.Sigset
└─→ nil, unix.Errno └─→ nil, unix.Errno
Changes action taken upon receipt of a specific signal.
`sig` can be one of: `sig` can be one of:
- `unix.SIGINT` - `unix.SIGINT`