crosvm/sys_util/src
Zach Reizner 787c84b51b sys_util: recv entire UnixSeqpacket packets into Vec
This change adds the `recv_*_vec` suite of methods for getting an entire
packet into a `Vec` without needing to know the packet size through some
other means.

TEST=cargo test -p sys_util -p msg_socket
BUG=None

Change-Id: Ia4f931ccb91f6de6ee2103387fd95dfad3d3d38b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2034025
Commit-Queue: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Auto-Submit: Zach Reizner <zachr@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2020-02-06 21:56:37 +00:00
..
affinity.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00
alloc.rs crosvm: add license blurb to all files 2019-04-24 15:51:38 -07:00
capabilities.rs edition: Remove extern crate lines 2019-04-15 02:06:08 -07:00
clock.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
errno.rs devices: remove user_command from proxy device 2020-01-09 07:53:57 +00:00
eventfd.rs sys_util: add ScopedEvent to trigger and EventFd on Drop 2020-02-01 08:50:22 +00:00
file_flags.rs edition: Use dyn syntax for trait objects 2019-04-08 02:51:37 -07:00
file_traits.rs sys_util: add FileAllocate trait 2020-01-24 20:22:47 +00:00
fork.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
guest_address.rs sys_util: guest_address: take self by value in methods 2019-03-12 18:54:14 -07:00
guest_memory.rs guest_memory: add fn to get memfd offset of addr 2020-01-23 16:23:21 +00:00
handle_eintr.rs edition: Eliminate blocks superseded by NLL 2019-04-17 17:22:57 -07:00
ioctl.rs sys_util: Enable macros imported individually 2019-04-15 02:06:04 -07:00
lib.rs sys_util: add FileAllocate trait 2020-01-24 20:22:47 +00:00
mmap.rs tree-wide: Use new trait object syntax 2019-07-24 02:22:23 +00:00
net.rs sys_util: recv entire UnixSeqpacket packets into Vec 2020-02-06 21:56:37 +00:00
passwd.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
poll.rs sys_util: poll: add iter_writable to set of methods for PollEvents 2019-11-26 21:05:42 +00:00
priority.rs edition: Update absolute paths to 2018 style 2019-03-13 21:05:03 -07:00
raw_fd.rs Add "Fd" wrapper for RawFd type. 2019-01-05 20:08:32 -08:00
seek_hole.rs tempfile: Unify the two tempdir implementations 2019-07-11 16:15:38 -07:00
shm.rs sys_util: shm: make using names with shared memory more convenient 2019-09-11 09:34:10 +00:00
signal.rs sys_util: allow adding handlers for all signals 2019-10-03 06:57:34 +00:00
signalfd.rs edition: Eliminate blocks superseded by NLL 2019-04-17 17:22:57 -07:00
sock_ctrl_msg.rs sys_util: recv entire UnixSeqpacket packets into Vec 2020-02-06 21:56:37 +00:00
struct_util.rs crosvm: move vec_with_array_field to data_model 2019-12-11 00:34:36 +00:00
syslog.rs sys_util: fix new warning initializing Once 2019-07-24 02:22:23 +00:00
terminal.rs devices: remove user_command from proxy device 2020-01-09 07:53:57 +00:00
timerfd.rs edition: Eliminate ref keyword 2019-04-18 19:51:01 -07:00
write_zeroes.rs sys_util: do not deallocate space in write_zeroes 2019-11-27 21:22:39 +00:00