irox_safe_linux/lib.rs
1// SPDX-License-Identifier: MIT
2// Copyright 2023 IROX Contributors
3
4//!
5//! Linux x86_64 System Calls (SYSCALLs)
6//!
7
8#![cfg_attr(not(test), no_std)]
9
10//#[cfg(any(not(target_os = "linux"), not(target_arch = "x86_64")))]
11//compile_error!("Only linux x86_64 currently supported. Submit a PR!");
12
13extern crate alloc;
14
15#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
16pub mod aio;
17pub mod errno;
18#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
19pub mod sys;
20#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
21pub mod syscall;
22#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
23pub mod time;