summary refs log tree commit diff
path: root/sys_util/src/lib.rs
blob: a1be6580852bb61c13697025024d73cc22bff784 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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.

extern crate data_model;
extern crate libc;

#[macro_use]
pub mod handle_eintr;
mod mmap;
mod eventfd;
mod errno;
mod guest_address;
mod guest_memory;
mod struct_util;
mod tempdir;

pub use mmap::*;
pub use eventfd::*;
pub use errno::{Error, Result};
use errno::errno_result;
pub use guest_address::*;
pub use guest_memory::*;
pub use struct_util::*;
pub use tempdir::*;

pub use guest_memory::Error as GuestMemoryError;