Fix unix.* help typos

This commit is contained in:
Paul Kulchenko 2022-04-19 22:51:20 -07:00
parent c3d9bf6213
commit 0f78a6c692

View file

@ -1297,8 +1297,8 @@ UNIX MODULE
unix.commandv(prog:str) → path:str[, errno:int] unix.commandv(prog:str) → path:str[, errno:int]
Performs `$PATH` lookup of executable. We automatically suffix Performs `$PATH` lookup of executable. We automatically suffix
`.com` and `.exe` automatically for all platforms when path `.com` and `.exe` for all platforms when path searching.
searching. By default, the current directory is not on the path. By default, the current directory is not on the path.
If `prog` is an absolute path, then it's returned as-is. If If `prog` is an absolute path, then it's returned as-is. If
`prog` contains slashes then it's not path searched either and `prog` contains slashes then it's not path searched either and
will be returned if it exists. will be returned if it exists.
@ -1393,13 +1393,13 @@ UNIX MODULE
unix.setgid(gid:int) → rc:int[, errno:int] unix.setgid(gid:int) → rc:int[, errno:int]
unix.umask(mask) → rc:int[, errno:int] unix.umask(mask) → rc:int[, errno:int]
unix.syslog(priority:str, msg:str) unix.syslog(priority:int, msg:str)
Generates a log message which will be distributed by syslogd. Generates a log message, which will be distributed by syslogd.
`priority` is a bitmask containing the facility value and the `priority` is a bitmask containing the facility value and the
level value. If no facility value is ORed into priority, then level value. If no facility value is ORed into priority, then
the default value set by openlog() is used. it set to NULL, the the default value set by openlog() is used. If set to NULL, the
program name is used. Level is one of `LOG_EMERG`, `LOG_ALERT`, program name is used. Level is one of `LOG_EMERG`, `LOG_ALERT`,
`LOG_CRIT`, `LOG_ERR`, `LOG_WARNING`, `LOG_NOTICE`, `LOG_INFO`, `LOG_CRIT`, `LOG_ERR`, `LOG_WARNING`, `LOG_NOTICE`, `LOG_INFO`,
`LOG_DEBUG`. `LOG_DEBUG`.