clean up platform-specific syscall code

This commit is contained in:
Mark McCaskey
2019-04-03 16:21:26 -07:00
parent d04d1bf2a9
commit 10696c4849
5 changed files with 6 additions and 77 deletions

View File

@ -1,15 +1,3 @@
#[cfg(target_os = "linux")]
pub mod linux;
#[cfg(target_os = "macos")]
pub mod macos;
#[cfg(target_os = "linux")]
pub use linux::*;
#[cfg(target_os = "macos")]
pub use macos::*;
use crate::syscalls::types::*;
use libc::{
clock_getres, clock_gettime, timespec, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID,