xref: /relibc/ralloc/shim/src/lib.rs (revision 92ca1d73ef9a68d6508c46e2f6ad99fc65e8bc68)
1 //! Symbols and externs that `ralloc` depends on.
2 //!
3 //! This crate provides implementation/import of these in Linux, BSD, and Mac OS.
4 //!
5 //! # Important
6 //!
7 //! You CANNOT use libc library calls, due to no guarantees being made about allocations of the
8 //! functions in the POSIX specification. Therefore, we use the system calls directly.
9 
10 #![feature(linkage, core_intrinsics)]
11 #![no_std]
12 #![warn(missing_docs)]
13 
14 #[cfg(not(target_os = "redox"))]
15 #[macro_use]
16 extern crate sc;
17 
18 #[cfg(target_os = "redox")]
19 extern crate syscall;
20 
21 pub mod config;
22 pub mod thread_destructor;
23 pub mod debug;
24 pub mod syscalls;
25