Safety
Retrieves the count of arguments provided to program execution.
Retrieves the argument with arg_index, and stores as much
of it as it can it in the memory at [out_words, out_words +
out_nwords).
Safety
Executes a `ZKR’ in the recursion circuit, specified by control
ID. The control ID must be registered in the host’s index of ZKRs.
sys_exit()
causes normal process termination.
sys_fork()
creates a new process by duplicating the calling process. The
new process is referred to as the child process. The calling process is
referred to as the parent process.
Retrieves the value of an environment variable, and stores as much
of it as it can it in the memory at [out_words, out_words +
out_nwords).
Safety
Safety
Safety
Safety
sys_pipe()
creates a pipe, a unidirectional data channel that can be used
for interprocess communication. The pointer pipefd
is used to return two
file descriptors referring to the ends of the pipe. pipefd[0]
refers to
the read end of the pipe. pipefd[1]
refers to the write end of the pipe.
Data written to the write end of the pipe is buffered by the host until it
is read from the read end of the pipe.
Safety
Reads the given number of bytes into the given buffer, posix-style. Returns
the number of bytes actually read. On end of file, returns 0.
Reads up to the given number of words into the buffer [recv_buf,
recv_buf + nwords). Returns the number of bytes actually read.
sys_read_words is a more efficient interface than sys_read, but
varies from POSIX semantics. Notably:
Safety
Safety
Send a ReceiptClaim digest to the host to request verification.
Safety
Invoke a raw system call
Invoke a raw system call
Invoke a raw system call
Invoke a raw system call
Invoke a raw system call
Invoke a raw system call