• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 pub mod linux;
6 pub mod net;
7 mod read_dir;
8 pub mod scoped_path;
9 pub mod sync;
10 pub mod syslog;
11 pub mod vsock;
12 
13 pub use read_dir::*;
14 
15 #[macro_export]
16 macro_rules! syscall {
17     ($e:expr) => {{
18         let res = $e;
19         if res < 0 {
20             Err(::std::io::Error::last_os_error())
21         } else {
22             Ok(res)
23         }
24     }};
25 }
26