safe_libc/
lib.rs

1//
2// Created:  Thu 16 Apr 2020 01:19:57 PM PDT
3// Modified: Mon 20 Apr 2020 12:37:11 PM PDT
4//
5// Copyright (C) 2020 Robert Gill <rtgill82@gmail.com>
6//
7// Permission is hereby granted, free of charge, to any person obtaining a copy
8// of this software and associated documentation files (the "Software"), to
9// deal in the Software without restriction, including without limitation the
10// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11// sell copies of the Software, and to permit persons to whom the Software is
12// furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies of the Software, its documentation and marketing & publicity
16// materials, and acknowledgment shall be given in the documentation, materials
17// and software packages that this Software was used.
18//
19// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22// THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25//
26
27pub mod errno;
28pub mod stdlib;
29pub mod string;
30
31#[cfg(target_family = "unix")]
32#[doc(hidden)]
33pub mod posix;
34#[cfg(target_family = "unix")]
35#[doc(inline)]
36pub use posix::grp;
37#[cfg(target_family = "unix")]
38#[doc(inline)]
39pub use posix::pwd;
40#[cfg(target_family = "unix")]
41#[doc(inline)]
42pub use posix::resource;
43#[cfg(target_family = "unix")]
44#[doc(inline)]
45pub use posix::unistd;
46
47#[cfg(target_family = "windows")]
48#[doc(hidden)]
49pub mod windows;
50
51mod util;
52
53type VoidPtr = *mut libc::c_void;