• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 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 //! Small system utility modules for usage by other higher level system
6 //! utility modules like sys_util(on unix/linux) and win_sys_util(on windows).
7 //!
8 //! Crates other than sys_util and win_sys_util should not depend directly on
9 //! sys_util_core.
10 //!
11 //! sys_util_core contains system utilities that are strictly platform/os
12 //! independent. Platform dependent, conditionally compiled, code should
13 //! not be added to sys_util_core.
14 //!
15 
16 mod alloc;
17 mod errno;
18 mod external_mapping;
19 mod scoped_event_macro;
20 
21 pub use alloc::LayoutAllocation;
22 pub use errno::{errno_result, Error, Result};
23 pub use external_mapping::{Error as ExternalMappingError, Result as ExternalMappingResult, *};
24 pub use scoped_event_macro::*;
25