libc_extra/lib.rs
1// This file is part of libc-extra. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT. No part of libc-extra, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2016-2018 The developers of libc-extra. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT.
3
4
5#![allow(non_camel_case_types)]
6#![allow(non_upper_case_globals)]
7
8
9
10#[cfg(any(target_os = "android", target_os = "linux"))] #[macro_use] extern crate cfg_if;
11#[cfg(unix)] extern crate const_cstr_fork;
12#[cfg(unix)] extern crate libc;
13
14
15/// Functionality for `#[cfg(any(target_os = "android", target_os = "linux"))]`.
16#[cfg(any(target_os = "android", target_os = "linux"))] pub mod android_linux;
17
18
19/// Functionality for `#[cfg(target_os = "linux")]`.
20#[cfg(target_os = "linux")] pub mod linux;
21
22
23/// Functionality for `#[cfg(unix)]`.
24#[cfg(unix)] pub mod unix;