1 //! Mostly platform-specific functionality 2 #[cfg(any(target_os = "dragonfly", 3 target_os = "freebsd", 4 target_os = "ios", 5 target_os = "linux", 6 target_os = "macos", 7 target_os = "netbsd"))] 8 pub mod aio; 9 10 #[cfg(any(target_os = "android", target_os = "linux"))] 11 #[allow(missing_docs)] 12 pub mod epoll; 13 14 #[cfg(any(target_os = "dragonfly", 15 target_os = "freebsd", 16 target_os = "ios", 17 target_os = "macos", 18 target_os = "netbsd", 19 target_os = "openbsd"))] 20 #[allow(missing_docs)] 21 pub mod event; 22 23 #[cfg(any(target_os = "android", target_os = "linux"))] 24 #[allow(missing_docs)] 25 pub mod eventfd; 26 27 #[cfg(any(target_os = "android", 28 target_os = "dragonfly", 29 target_os = "freebsd", 30 target_os = "ios", 31 target_os = "linux", 32 target_os = "redox", 33 target_os = "macos", 34 target_os = "netbsd", 35 target_os = "illumos", 36 target_os = "openbsd"))] 37 #[macro_use] 38 pub mod ioctl; 39 40 #[cfg(target_os = "linux")] 41 pub mod memfd; 42 43 #[cfg(not(target_os = "redox"))] 44 #[allow(missing_docs)] 45 pub mod mman; 46 47 #[cfg(target_os = "linux")] 48 #[allow(missing_docs)] 49 pub mod personality; 50 51 pub mod pthread; 52 53 #[cfg(any(target_os = "android", 54 target_os = "dragonfly", 55 target_os = "freebsd", 56 target_os = "linux", 57 target_os = "macos", 58 target_os = "netbsd", 59 target_os = "openbsd"))] 60 #[allow(missing_docs)] 61 pub mod ptrace; 62 63 #[cfg(target_os = "linux")] 64 pub mod quota; 65 66 #[cfg(any(target_os = "linux"))] 67 #[allow(missing_docs)] 68 pub mod reboot; 69 70 #[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos")))] 71 pub mod resource; 72 73 #[cfg(not(target_os = "redox"))] 74 pub mod select; 75 76 #[cfg(any(target_os = "android", 77 target_os = "freebsd", 78 target_os = "ios", 79 target_os = "linux", 80 target_os = "macos"))] 81 pub mod sendfile; 82 83 pub mod signal; 84 85 #[cfg(any(target_os = "android", target_os = "linux"))] 86 #[allow(missing_docs)] 87 pub mod signalfd; 88 89 #[cfg(not(target_os = "redox"))] 90 #[allow(missing_docs)] 91 pub mod socket; 92 93 #[allow(missing_docs)] 94 pub mod stat; 95 96 #[cfg(any(target_os = "android", 97 target_os = "dragonfly", 98 target_os = "freebsd", 99 target_os = "ios", 100 target_os = "linux", 101 target_os = "macos", 102 target_os = "openbsd" 103 ))] 104 pub mod statfs; 105 106 pub mod statvfs; 107 108 #[cfg(any(target_os = "android", target_os = "linux"))] 109 #[allow(missing_docs)] 110 pub mod sysinfo; 111 112 #[allow(missing_docs)] 113 pub mod termios; 114 115 #[allow(missing_docs)] 116 pub mod time; 117 118 pub mod uio; 119 120 pub mod utsname; 121 122 pub mod wait; 123 124 #[cfg(any(target_os = "android", target_os = "linux"))] 125 #[allow(missing_docs)] 126 pub mod inotify; 127 128 #[cfg(any(target_os = "android", target_os = "linux"))] 129 #[allow(missing_docs)] 130 pub mod timerfd; 131