lib.rs 608 B

123456789101112131415161718192021222324
  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. #![feature(linkage, core_intrinsics)]
  10. #![no_std]
  11. #![warn(missing_docs)]
  12. #[cfg(not(target_os = "redox"))]
  13. #[macro_use]
  14. extern crate sc;
  15. #[cfg(target_os = "redox")]
  16. extern crate syscall;
  17. pub mod config;
  18. pub mod thread_destructor;
  19. pub mod debug;
  20. pub mod syscalls;