shadow_rs::host::syscall

Module io

source

Structs§

Functions§

  • Read an array of strings, each of which with max length linux_api::limits::ARG_MAX. e.g. suitable for execve’s argument and environment string lists.
  • Read a plugin’s array of libc::iovec into a Vec<IoVec>.
  • Read a plugin’s libc::msghdr into a MsgHdr.
  • Used to update a libc::msghdr. Only writes the libc::msghdr msg_namelen, msg_controllen, and msg_flags fields, which are the only fields that can be changed by recvmsg().
  • Writes val to val_ptr, but will only write a partial value if val_len_bytes is smaller than the size of val. Returns the number of bytes written.
  • Writes the socket address into a buffer at plugin_addr with length plugin_addr_len.
  • Writes the socket address into a buffer at plugin_addr with length plugin_addr_len, and writes the socket address length into plugin_addr_len.