updated the API documentation to reflect the changes to the OS user stuff.
This commit is contained in:
parent
61bf854539
commit
c7d044c810
10
docs/api.md
10
docs/api.md
@ -17,6 +17,16 @@ Returns a list of current processes running, the key being the pid and the value
|
||||
Returns the name, parent process, and user ID for process *pid*.
|
||||
#### os.genenv()
|
||||
Generates an insulated environment table for running processes in.
|
||||
#### os.getuid(*pid*)
|
||||
Returns the user ID for process *pid*, or if *pid* is not specified, the current process.
|
||||
#### os.setuid(*user*)
|
||||
Only if the current user ID is "superuser": Sets the user ID for the process to *user*.
|
||||
#### os.verifyuser(*user*,*pass*)
|
||||
Returns true or false if *pass* is the correct password for *user*.
|
||||
#### os.gensalt(*len*)
|
||||
Generates *len* random printable characters and returns them.
|
||||
#### os.su(*user*,*pass*)
|
||||
Sets the user ID of the current process to *user* if *user* and *password* are verified by `os.verifyuser`.
|
||||
|
||||
### event
|
||||
#### event.get()
|
||||
|
Loading…
Reference in New Issue
Block a user