From eec80b496b8de2ee332b4ae04fbe00c7c93525b3 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 7 Jul 2017 11:39:39 -0600 Subject: Use libc from crates.io The libc crate has newlib bindings now, so we don't have to maintain them in-tree anymore --- ctr-std/src/sys_common/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ctr-std/src/sys_common/mod.rs') diff --git a/ctr-std/src/sys_common/mod.rs b/ctr-std/src/sys_common/mod.rs index 936ff80..6f47466 100644 --- a/ctr-std/src/sys_common/mod.rs +++ b/ctr-std/src/sys_common/mod.rs @@ -27,6 +27,7 @@ pub mod at_exit_imp; pub mod condvar; pub mod io; +pub mod memchr; pub mod mutex; pub mod poison; pub mod remutex; @@ -76,10 +77,6 @@ pub fn at_exit(f: F) -> Result<(), ()> { if at_exit_imp::push(Box::new(f)) {Ok(())} else {Err(())} } -macro_rules! rtabort { - ($($t:tt)*) => (::sys_common::util::abort(format_args!($($t)*))) -} - // Computes (value*numer)/denom without overflow, as long as both // (numer*denom) and the overall result fit into i64 (which is the case // for our time conversions). -- cgit v1.2.3