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 #[allow(missing_docs)] 42 pub mod memfd; 43 44 #[cfg(not(target_os = "redox"))] 45 #[allow(missing_docs)] 46 pub mod mman; 47 48 #[cfg(target_os = "linux")] 49 #[allow(missing_docs)] 50 pub mod personality; 51 52 pub mod pthread; 53 54 #[cfg(any(target_os = "android", 55 target_os = "dragonfly", 56 target_os = "freebsd", 57 target_os = "linux", 58 target_os = "macos", 59 target_os = "netbsd", 60 target_os = "openbsd"))] 61 #[allow(missing_docs)] 62 pub mod ptrace; 63 64 #[cfg(target_os = "linux")] 65 pub mod quota; 66 67 #[cfg(any(target_os = "linux"))] 68 #[allow(missing_docs)] 69 pub mod reboot; 70 71 #[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos")))] 72 pub mod resource; 73 74 #[cfg(not(target_os = "redox"))] 75 pub mod select; 76 77 #[cfg(any(target_os = "android", 78 target_os = "freebsd", 79 target_os = "ios", 80 target_os = "linux", 81 target_os = "macos"))] 82 pub mod sendfile; 83 84 pub mod signal; 85 86 #[cfg(any(target_os = "android", target_os = "linux"))] 87 #[allow(missing_docs)] 88 pub mod signalfd; 89 90 #[cfg(not(target_os = "redox"))] 91 #[allow(missing_docs)] 92 pub mod socket; 93 94 #[allow(missing_docs)] 95 pub mod stat; 96 97 #[cfg(any(target_os = "android", 98 target_os = "dragonfly", 99 target_os = "freebsd", 100 target_os = "ios", 101 target_os = "linux", 102 target_os = "macos", 103 target_os = "openbsd" 104 ))] 105 pub mod statfs; 106 107 pub mod statvfs; 108 109 #[cfg(any(target_os = "android", target_os = "linux"))] 110 #[allow(missing_docs)] 111 pub mod sysinfo; 112 113 #[allow(missing_docs)] 114 pub mod termios; 115 116 #[allow(missing_docs)] 117 pub mod time; 118 119 pub mod uio; 120 121 pub mod utsname; 122 123 pub mod wait; 124 125 #[cfg(any(target_os = "android", target_os = "linux"))] 126 #[allow(missing_docs)] 127 pub mod inotify; 128 129 #[cfg(any(target_os = "android", target_os = "linux"))] 130 #[allow(missing_docs)] 131 pub mod timerfd; 132