Structs§
- IoVec
- Analogous to
libc::iovec
. - IoVec
Reader - A reader which reads data from
IoVec
buffers of plugin memory. - IoVec
Writer - A writer which writes data to
IoVec
buffers of plugin memory. - MsgHdr
- Analogous to
libc::msghdr
.
Functions§
- read_
cstring_ vec - Read an array of strings, each of which with max length
linux_api::limits::ARG_MAX
. e.g. suitable forexecve
’s argument and environment string lists. - read_
iovecs - Read a plugin’s array of
libc::iovec
into aVec<IoVec>
. - read_
msghdr - Read a plugin’s
libc::msghdr
into aMsgHdr
. - read_
sockaddr - update_
msghdr - Used to update a
libc::msghdr
. Only writes thelibc::msghdr
msg_namelen
,msg_controllen
, andmsg_flags
fields, which are the only fields that can be changed byrecvmsg()
. - write_
partial - Writes
val
toval_ptr
, but will only write a partial value ifval_len_bytes
is smaller than the size ofval
. Returns the number of bytes written. - write_
sockaddr - Writes the socket address into a buffer at
plugin_addr
with lengthplugin_addr_len
. - write_
sockaddr_ and_ len - Writes the socket address into a buffer at
plugin_addr
with lengthplugin_addr_len
, and writes the socket address length intoplugin_addr_len
.