p9/lib.rs
1// Copyright 2018 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#![cfg(unix)]
6
7mod protocol;
8mod server;
9
10pub mod fuzzing;
11
12pub use server::*;
13
14#[macro_export]
15macro_rules! syscall {
16 ($e:expr) => {{
17 let res = $e;
18 if res < 0 {
19 Err(std::io::Error::last_os_error())
20 } else {
21 Ok(res)
22 }
23 }};
24}