updated the API documentation to reflect the changes to the OS user stuff.

This commit is contained in:
Izaya 2017-09-14 16:21:56 +10:00
parent 61bf854539
commit c7d044c810
1 changed files with 10 additions and 0 deletions

View File

@ -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()