mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
Use the off64_t versions of libc file functions. There is no Rust libc crate equivalent of the C _FILE_OFFSET_BITS and related defines, so we have to use the Linux-specific *64 variants explicitly. This extends the size of file offsets to 64 bits instead of 32 on platforms with 32-bit userspace. (It also fixes the recently introduced check for non-LFS functions in ChromeOS - see b/201531268 for details.) BUG=b:201531268 TEST=emerge-kevin crosvm TEST=start Crostini on kevin Change-Id: Ife42917c8896d4fa1ccd78051c2a0b7dd565b2b3 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3979975 Reviewed-by: Dennis Kempin <denniskempin@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
fuzz | ||
src | ||
wire_format_derive | ||
Cargo.toml | ||
OWNERS | ||
README.md |
p9 - Server implementation of the 9p file system protocol
This directory contains the protocol definition and a server implementation of the 9p file system protocol.
- wire_format_derive - A procedural macro that derives the serialization and de-serialization implementation for a struct into the 9p wire format.
- src/protocol - Defines all the messages used in the 9p protocol. Also implements serialization
and de-serialization for some base types (integers, strings, vectors) that form the foundation of
all 9p messages. Wire format implementations for all other messages are derived using the
wire_format_derive
macro. - src/server.rs - Implements a full 9p server, carrying out file system requests on behalf of clients.