Spawns a process from function called name with environment.
Writes messages to the system log, optionally, if meta is true, with severity and facility, which default to 6 and 2, respectively.
Gets the k environment variable for the current process.
Sets the k environment variable to v for the current process.
Returns a list of current processes running, the key being the pid and the value being the name.
Returns the name, parent process, and user ID for process pid.
Generates an insulated environment table for running processes in.
Returns the user ID for process pid, or if pid is not specified, the current process.
Only if the current user ID is "superuser": Sets the user ID for the process to user.
Returns true or false if pass is the correct password for user.
Generates len random printable characters and returns them.
Sets the user ID of the current process to user if user and password are verified by
Sets the field attribute of user to value.
Returns the value of field for user.
Gets the next event in the event queue for the process.
Gets, and possibly waits for up to timeout seconds, for an event, optionally with type.
DEPRECEATED. Creates a buffer with worker function w and close function c. w is called on creation with the buffer as the argument.
Creates a unidirectional buffer and returns it.
Creates a bidiretional buffer and returns both ends.
Mounts the component proxy pr to mountpoint mp.
Simplifies path by resolving .. and . and similar.
Resolves path to a table of path elements, a mountpoint and a relative filesystem path.
Returns a system file handle usable by other fs functions for path in mode. Modes can be r, w, a, rb, wb, ab.
Closes a system file handle.
Reads length bytes of data from handle. length is usually limited to 2048.
Writes data to handle.
Returns as much data as can be read from handle.
Returns a table of files contained in directory path
Creates a directory at path
Removes a file or (empty) directory at path.
Returns true if a file or directory path exists.
Returns true if path is a directory.
Changes the current directory to either path or os.getenv("PWD")/path.
Copies a file from source to destination.
Same as fs.cp but deletes source afterwards.
Returns the value of path's extended attribute key, assuming your user ID is in the read attribute.
Set path's extended attribute key to value, assuming your user ID is in the write attribute
Writes its arguments to the I/O device.
Writes its arguments to the I/O device, with a newline after each.
Reads a line from the I/O device, optionally replacing the echoed characters with rch.a
Returns a file object for path in mode.
If len is a number, reads len bytes from fobj. If len is "*a", it reads all the data from fobj. If len is "*l", it reads a line from fobj.
Writes data to fobj (if in write mode)
Closes fobj, flushing buffers and removing the object from memory.
Executes command as if it had been typed into a shell (lush, specifically).
Alias to fs.cd
Alias to fs.rm
Alias to fs.mkdir
Wrapper for fs.list that prints the contents of path.
Prints the contents of the file path.
Prints running processes, optionally matching filter.
Print out some memory info.
Sends msg to addr on port.
Sends msg to addr on port in net.mtu sized chunks.
cdlib is the Copper Data Library
Encodes a copper packet with hops from source to destination with data.
Decodes a copper packet. Returns the same data cdlib.encode takes as input.
Encodes a name for use in a copper packet.
Returns just the name from an encoded copper packet.
Decodes a copper packet minus the hops.
relib is the Copper reliability layer library.
Encodes packet passed as a table as a relib packet.
Decodes data into a relib packet table.
Creates a GPU driver instance for GPU gA and screen sA attached to session sI, optionally with foreground and background colours fg and bg.
Creates a keyboard driver instance for keyboard kA attached to session sI.
Queued when the system receives message message from from on port port.
A key with value char and code code was pressed and parsed by a keyboard handler attached to session session
This is triggered to make a tty driver attached to session write text to the screen. Ideally, use write(), not the raw event.
Displays a login screen allowing for changing user.
Runs a program that will repeatedly display a login screen and spawn a shell on login.
Spawns a lush instance for session sI
Last updated at 2018/02/17 00:02 for version ac27dc4