Structs§
- Basic OS information provided to rust libstd
- Return info from rust libstd
- Init information for compartments
- Information about a loaded dynamic object
- Duration, containing seconds and nanoseconds.
- Information about a file descriptor.
- Result of IO operations
- Io vec, a buffer and a len.
- Information about a loaded program image or library
- Result map_object call
- Init information for minimal runtime
- Object handle
- Information for opening a file.
- Result of open call.
- Optional duration.
- Optional exit code
- Runtime initialization info.
- Arguments to spawn
- Spawn result.
- Information about the system
- TLS index, module ID and offset.
Constants§
- Duplicate this descriptor. The arg argument is ignored. The ret argument points to a descriptor.
- Success value for twz_rt_fd_cmd.
- This file descriptor is a terminal.
- Wake all threads instead of a maximum number
- Do not block when collecting random data
- Non-blocking behavior specified. If the operation would block, return io_result with error set to WouldBlock instead.
- Multiplier to valid_len.
- Map with READ permission.
- Map with WRITE permission.
- Map with EXEC permission.
- Info for compartments
- Minimal runtime info
- Info for monitor
- The loaded image ID for the root loaded image (usually the executable)
- Seek offset from current fd position
- Seek offset from end of file
- Seek offset from start of file
- Zero memory during operation
- Invalid descriptor
- Other error
- Error during seek
- Success
- Operation would block, but nonblocking behavior was specified.
- Argument was invalid.
- Failed to lookup provided file name.
- Other error.
- Permission denied.
- Open success.
Functions§
- Abort immediately
- Deallocate memory. If ZERO_MEMORY is set, will clear the memory before freeing.
- Exit with provided code
- Close a file descriptor. If the file descriptor is invalid or already closed, this function does nothing.
- Perform a command on the descriptor. The arguments arg and ret are interpreted according to the command specified.
- Get information about a descriptor. If this returns true, the fd was valid and the data pointed to by info is filled with fd_info data.
- Open a file.
- Read from a file. May read less than specified len.
- Do vectored IO read.
- Write to a file. May write less than specified len.
- Do vectored IO write.
- Seek to a specified point in the file.
- If *ptr == expected, wait until signal, optionally timing out.
- Wake up up to max threads waiting on ptr. If max is set to FUTEX_WAKE_ALL, wake all threads.
- Get a loaded image from its ID. All IDs for loaded image are sequential, starting from TWZ_RT_EXEID. On success, fill out data pointed to by the li argument and return true.
- Get time from the monotonic clock
- Collect up to len bytes of randomness, filling buf. Returns the number of bytes of random data actually collected.
- Get system information
- Get time from the system clock
- Wait for a thread to exit, optionally timing out.
- Allocate memory, zeroing it first if the flag is set.
- Map an object with a given ID and flags.
- Reallocate memory. If ZERO_MEMORY is set, will zero new memory before returning and zero to-be-freed memory before freeing.
- Release an object handle. After calling this, the handle may not be used.
- Set the name of the calling thread.
- Sleep the calling thread for specified duration.
- Sawn a thread. On success, that thread starts executing concurrently with this function’s return.
- Resolve the TLS index and get back the TLS data pointer.
- Yield the thread now.
Type Aliases§
- Object ID
- Allocation flags
- An open descriptor for a runtime file handle.
- Exit code type
- Commands for descriptors.
- Errors for twz_rt_fd_cmd.
- Flags a descriptor can have.
- Futex type, based on linux futex.
- Flags to get_random
- Possible IO errors
- Flags for IO operations
- Possible results of join.
- An ID for a loaded program image (or library)
- Possible mapping errors
- Mapping flags
- Supported monotonicity levels
- Possible open error conditions.
- Optional offset. If value is FD_POS, use the file descriptor position.
- Object ID
- Possible spawn errors
- Runtime-internal ID of a thread
- Type of whence values for seek.
Unions§
- Possible init info types