[go: up one dir, main page]

nix 0.1.3

Rust friendly bindings to Posix APIs
#![crate_name = "nix"]

#![feature(core, linkage, libc, hash, os, path, std_misc)]
#![allow(non_camel_case_types)]

#[macro_use]
extern crate bitflags;

extern crate libc;
extern crate core;

// Re-export some libc constants
pub use libc::{c_int, c_void};

#[cfg(unix)]
pub use errno::{SysResult, SysError};

#[cfg(unix)]
pub mod errno;

#[cfg(unix)]
pub mod features;

#[cfg(unix)]
pub mod fcntl;

#[cfg(target_os = "linux")]
pub mod mount;

#[cfg(target_os = "linux")]
pub mod sched;

#[cfg(unix)]
pub mod sys;

#[cfg(target_os = "linux")]
pub mod syscall;

#[cfg(unix)]
pub mod unistd;

mod utils;