p9: Use std::os::unix rather than std::os::linux.

This will call out to the appropriate platform, so that it works on
Android as well.

BUG=b:158290206
TEST=cargo test

Link: http://crrev.com/c/2490403
Change-Id: Iaf1c8209a7c721ebcc4a80dc9b2bd1258a5c17d6
2 files changed
tree: 63867ac016a12c0630b429023740c34460a3d58e
  1. .clang-format
  2. .gitignore
  3. Cargo.toml
  4. LICENSE
  5. METADATA
  6. MODULE_LICENSE_BSD
  7. OWNERS
  8. README.md
  9. fuzz/
  10. src/
  11. wire_format_derive/
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.