2017-05-03 21:06:12 +00:00
|
|
|
// Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
//! Small system utility modules for usage by other modules.
|
|
|
|
|
2017-06-20 17:15:51 +00:00
|
|
|
extern crate data_model;
|
2017-05-03 21:06:12 +00:00
|
|
|
extern crate libc;
|
2017-06-28 17:33:13 +00:00
|
|
|
extern crate syscall_defines;
|
2017-05-03 21:06:12 +00:00
|
|
|
|
2017-06-29 18:35:17 +00:00
|
|
|
#[macro_use]
|
|
|
|
pub mod handle_eintr;
|
2017-05-03 21:06:12 +00:00
|
|
|
mod mmap;
|
2017-07-07 00:02:26 +00:00
|
|
|
mod shm;
|
2017-05-03 21:29:14 +00:00
|
|
|
mod eventfd;
|
2017-05-03 21:06:12 +00:00
|
|
|
mod errno;
|
2017-05-16 00:37:47 +00:00
|
|
|
mod guest_address;
|
|
|
|
mod guest_memory;
|
2017-05-25 03:09:22 +00:00
|
|
|
mod poll;
|
2017-05-04 02:37:03 +00:00
|
|
|
mod struct_util;
|
2017-05-31 23:10:25 +00:00
|
|
|
mod tempdir;
|
2017-05-25 03:11:50 +00:00
|
|
|
mod terminal;
|
2017-05-23 18:16:24 +00:00
|
|
|
mod signal;
|
2017-06-28 17:33:13 +00:00
|
|
|
#[macro_use]
|
|
|
|
pub mod syslog;
|
2017-05-03 21:06:12 +00:00
|
|
|
|
|
|
|
pub use mmap::*;
|
2017-07-07 00:02:26 +00:00
|
|
|
pub use shm::*;
|
2017-05-03 21:29:14 +00:00
|
|
|
pub use eventfd::*;
|
2017-05-03 21:06:12 +00:00
|
|
|
pub use errno::{Error, Result};
|
|
|
|
use errno::errno_result;
|
2017-05-16 00:37:47 +00:00
|
|
|
pub use guest_address::*;
|
|
|
|
pub use guest_memory::*;
|
2017-05-25 03:09:22 +00:00
|
|
|
pub use poll::*;
|
2017-05-04 02:37:03 +00:00
|
|
|
pub use struct_util::*;
|
2017-05-31 23:10:25 +00:00
|
|
|
pub use tempdir::*;
|
2017-05-25 03:11:50 +00:00
|
|
|
pub use terminal::*;
|
2017-05-23 18:16:24 +00:00
|
|
|
pub use signal::*;
|
2017-05-04 21:58:06 +00:00
|
|
|
|
|
|
|
pub use guest_memory::Error as GuestMemoryError;
|