1 pub type shmatt_t = ::c_ulong; 2 pub type msgqnum_t = ::c_ulong; 3 pub type msglen_t = ::c_ulong; 4 pub type regoff_t = ::c_int; 5 pub type __rlimit_resource_t = ::c_uint; 6 pub type __priority_which_t = ::c_uint; 7 8 s! { 9 pub struct statvfs { // Different than GNU! 10 pub f_bsize: ::c_ulong, 11 pub f_frsize: ::c_ulong, 12 pub f_blocks: ::fsblkcnt_t, 13 pub f_bfree: ::fsblkcnt_t, 14 pub f_bavail: ::fsblkcnt_t, 15 pub f_files: ::fsfilcnt_t, 16 pub f_ffree: ::fsfilcnt_t, 17 pub f_favail: ::fsfilcnt_t, 18 #[cfg(target_endian = "little")] 19 pub f_fsid: ::c_ulong, 20 #[cfg(target_pointer_width = "32")] 21 __f_unused: ::c_int, 22 #[cfg(target_endian = "big")] 23 pub f_fsid: ::c_ulong, 24 pub f_flag: ::c_ulong, 25 pub f_namemax: ::c_ulong, 26 __f_spare: [::c_int; 6], 27 } 28 29 pub struct regex_t { 30 __buffer: *mut ::c_void, 31 __allocated: ::size_t, 32 __used: ::size_t, 33 __syntax: ::c_ulong, 34 __fastmap: *mut ::c_char, 35 __translate: *mut ::c_char, 36 __re_nsub: ::size_t, 37 __bitfield: u8, 38 } 39 40 pub struct rtentry { 41 pub rt_pad1: ::c_ulong, 42 pub rt_dst: ::sockaddr, 43 pub rt_gateway: ::sockaddr, 44 pub rt_genmask: ::sockaddr, 45 pub rt_flags: ::c_ushort, 46 pub rt_pad2: ::c_short, 47 pub rt_pad3: ::c_ulong, 48 pub rt_tos: ::c_uchar, 49 pub rt_class: ::c_uchar, 50 #[cfg(target_pointer_width = "64")] 51 pub rt_pad4: [::c_short; 3usize], 52 #[cfg(not(target_pointer_width = "64"))] 53 pub rt_pad4: ::c_short, 54 pub rt_metric: ::c_short, 55 pub rt_dev: *mut ::c_char, 56 pub rt_mtu: ::c_ulong, 57 pub rt_window: ::c_ulong, 58 pub rt_irtt: ::c_ushort, 59 } 60 61 pub struct __exit_status { 62 pub e_termination: ::c_short, 63 pub e_exit: ::c_short, 64 } 65 } 66 67 pub const MCL_CURRENT: ::c_int = 0x0001; 68 pub const MCL_FUTURE: ::c_int = 0x0002; 69 70 pub const SIGEV_THREAD_ID: ::c_int = 4; 71 72 pub const AF_VSOCK: ::c_int = 40; 73 74 pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5; 75 pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff; 76 pub const AFS_SUPER_MAGIC: ::c_long = 0x5346414f; 77 pub const AUTOFS_SUPER_MAGIC: ::c_long = 0x0187; 78 pub const BINDERFS_SUPER_MAGIC: ::c_long = 0x6c6f6f70; 79 pub const BPF_FS_MAGIC: ::c_long = 0xcafe4a11; 80 pub const BTRFS_SUPER_MAGIC: ::c_long = 0x9123683e; 81 pub const CGROUP2_SUPER_MAGIC: ::c_long = 0x63677270; 82 pub const CGROUP_SUPER_MAGIC: ::c_long = 0x27e0eb; 83 pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245; 84 pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45; 85 pub const DEBUGFS_MAGIC: ::c_long = 0x64626720; 86 pub const DEVPTS_SUPER_MAGIC: ::c_long = 0x1cd1; 87 pub const ECRYPTFS_SUPER_MAGIC: ::c_long = 0xf15f; 88 pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53; 89 pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53; 90 pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53; 91 pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53; 92 pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010; 93 pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea; 94 pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee; 95 pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849; 96 pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6; 97 pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660; 98 pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6; 99 pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478; 100 pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468; 101 pub const MINIX3_SUPER_MAGIC: ::c_long = 0x4d5a; 102 pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f; 103 pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f; 104 pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44; 105 pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c; 106 pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969; 107 pub const NILFS_SUPER_MAGIC: ::c_long = 0x3434; 108 pub const OCFS2_SUPER_MAGIC: ::c_long = 0x7461636f; 109 pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1; 110 pub const OVERLAYFS_SUPER_MAGIC: ::c_long = 0x794c7630; 111 pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0; 112 pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f; 113 pub const QNX6_SUPER_MAGIC: ::c_long = 0x68191122; 114 pub const RDTGROUP_SUPER_MAGIC: ::c_long = 0x7655821; 115 pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973; 116 pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b; 117 pub const SYSFS_MAGIC: ::c_long = 0x62656572; 118 pub const TMPFS_MAGIC: ::c_long = 0x01021994; 119 pub const TRACEFS_MAGIC: ::c_long = 0x74726163; 120 pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346; 121 pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2; 122 pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974; 123 pub const XFS_SUPER_MAGIC: ::c_long = 0x58465342; 124 125 pub const PTRACE_TRACEME: ::c_int = 0; 126 pub const PTRACE_PEEKTEXT: ::c_int = 1; 127 pub const PTRACE_PEEKDATA: ::c_int = 2; 128 pub const PTRACE_PEEKUSER: ::c_int = 3; 129 pub const PTRACE_POKETEXT: ::c_int = 4; 130 pub const PTRACE_POKEDATA: ::c_int = 5; 131 pub const PTRACE_POKEUSER: ::c_int = 6; 132 pub const PTRACE_CONT: ::c_int = 7; 133 pub const PTRACE_KILL: ::c_int = 8; 134 pub const PTRACE_SINGLESTEP: ::c_int = 9; 135 pub const PTRACE_GETREGS: ::c_int = 12; 136 pub const PTRACE_SETREGS: ::c_int = 13; 137 pub const PTRACE_GETFPREGS: ::c_int = 14; 138 pub const PTRACE_SETFPREGS: ::c_int = 15; 139 pub const PTRACE_ATTACH: ::c_int = 16; 140 pub const PTRACE_DETACH: ::c_int = 17; 141 pub const PTRACE_GETFPXREGS: ::c_int = 18; 142 pub const PTRACE_SETFPXREGS: ::c_int = 19; 143 pub const PTRACE_SYSCALL: ::c_int = 24; 144 pub const PTRACE_SETOPTIONS: ::c_int = 0x4200; 145 pub const PTRACE_GETEVENTMSG: ::c_int = 0x4201; 146 pub const PTRACE_GETSIGINFO: ::c_int = 0x4202; 147 pub const PTRACE_SETSIGINFO: ::c_int = 0x4203; 148 pub const PTRACE_GETREGSET: ::c_int = 0x4204; 149 pub const PTRACE_SETREGSET: ::c_int = 0x4205; 150 pub const PTRACE_SEIZE: ::c_int = 0x4206; 151 pub const PTRACE_INTERRUPT: ::c_int = 0x4207; 152 pub const PTRACE_LISTEN: ::c_int = 0x4208; 153 pub const PTRACE_O_MASK: ::c_int = 0x000000ff; 154 155 pub const POSIX_FADV_DONTNEED: ::c_int = 4; 156 pub const POSIX_FADV_NOREUSE: ::c_int = 5; 157 158 pub const RLIMIT_CPU: ::c_int = 0; 159 pub const RLIMIT_FSIZE: ::c_int = 1; 160 pub const RLIMIT_DATA: ::c_int = 2; 161 pub const RLIMIT_STACK: ::c_int = 3; 162 pub const RLIMIT_CORE: ::c_int = 4; 163 pub const RLIMIT_LOCKS: ::c_int = 10; 164 pub const RLIMIT_SIGPENDING: ::c_int = 11; 165 pub const RLIMIT_MSGQUEUE: ::c_int = 12; 166 pub const RLIMIT_NICE: ::c_int = 13; 167 pub const RLIMIT_RTPRIO: ::c_int = 14; 168 169 // These are different than GNU! 170 pub const LC_CTYPE: ::c_int = 0; 171 pub const LC_NUMERIC: ::c_int = 1; 172 pub const LC_TIME: ::c_int = 3; 173 pub const LC_COLLATE: ::c_int = 4; 174 pub const LC_MONETARY: ::c_int = 2; 175 pub const LC_MESSAGES: ::c_int = 5; 176 pub const LC_ALL: ::c_int = 6; 177 // end different section 178 179 // MS_ flags for mount(2) 180 pub const MS_RMT_MASK: ::c_ulong = ::MS_RDONLY | ::MS_SYNCHRONOUS | ::MS_MANDLOCK | ::MS_I_VERSION; 181 182 pub const ENOTSUP: ::c_int = EOPNOTSUPP; 183 184 pub const IPV6_JOIN_GROUP: ::c_int = 20; 185 pub const IPV6_LEAVE_GROUP: ::c_int = 21; 186 187 // These are different from GNU 188 pub const ABDAY_1: ::nl_item = 0x300; 189 pub const ABDAY_2: ::nl_item = 0x301; 190 pub const ABDAY_3: ::nl_item = 0x302; 191 pub const ABDAY_4: ::nl_item = 0x303; 192 pub const ABDAY_5: ::nl_item = 0x304; 193 pub const ABDAY_6: ::nl_item = 0x305; 194 pub const ABDAY_7: ::nl_item = 0x306; 195 pub const DAY_1: ::nl_item = 0x307; 196 pub const DAY_2: ::nl_item = 0x308; 197 pub const DAY_3: ::nl_item = 0x309; 198 pub const DAY_4: ::nl_item = 0x30A; 199 pub const DAY_5: ::nl_item = 0x30B; 200 pub const DAY_6: ::nl_item = 0x30C; 201 pub const DAY_7: ::nl_item = 0x30D; 202 pub const ABMON_1: ::nl_item = 0x30E; 203 pub const ABMON_2: ::nl_item = 0x30F; 204 pub const ABMON_3: ::nl_item = 0x310; 205 pub const ABMON_4: ::nl_item = 0x311; 206 pub const ABMON_5: ::nl_item = 0x312; 207 pub const ABMON_6: ::nl_item = 0x313; 208 pub const ABMON_7: ::nl_item = 0x314; 209 pub const ABMON_8: ::nl_item = 0x315; 210 pub const ABMON_9: ::nl_item = 0x316; 211 pub const ABMON_10: ::nl_item = 0x317; 212 pub const ABMON_11: ::nl_item = 0x318; 213 pub const ABMON_12: ::nl_item = 0x319; 214 pub const MON_1: ::nl_item = 0x31A; 215 pub const MON_2: ::nl_item = 0x31B; 216 pub const MON_3: ::nl_item = 0x31C; 217 pub const MON_4: ::nl_item = 0x31D; 218 pub const MON_5: ::nl_item = 0x31E; 219 pub const MON_6: ::nl_item = 0x31F; 220 pub const MON_7: ::nl_item = 0x320; 221 pub const MON_8: ::nl_item = 0x321; 222 pub const MON_9: ::nl_item = 0x322; 223 pub const MON_10: ::nl_item = 0x323; 224 pub const MON_11: ::nl_item = 0x324; 225 pub const MON_12: ::nl_item = 0x325; 226 pub const AM_STR: ::nl_item = 0x326; 227 pub const PM_STR: ::nl_item = 0x327; 228 pub const D_T_FMT: ::nl_item = 0x328; 229 pub const D_FMT: ::nl_item = 0x329; 230 pub const T_FMT: ::nl_item = 0x32A; 231 pub const T_FMT_AMPM: ::nl_item = 0x32B; 232 pub const ERA: ::nl_item = 0x32C; 233 pub const ERA_D_FMT: ::nl_item = 0x32E; 234 pub const ALT_DIGITS: ::nl_item = 0x32F; 235 pub const ERA_D_T_FMT: ::nl_item = 0x330; 236 pub const ERA_T_FMT: ::nl_item = 0x331; 237 pub const CODESET: ::nl_item = 10; 238 pub const CRNCYSTR: ::nl_item = 0x215; 239 pub const RADIXCHAR: ::nl_item = 0x100; 240 pub const THOUSEP: ::nl_item = 0x101; 241 pub const NOEXPR: ::nl_item = 0x501; 242 pub const YESSTR: ::nl_item = 0x502; 243 pub const NOSTR: ::nl_item = 0x503; 244 245 // Different than Gnu. 246 pub const FILENAME_MAX: ::c_uint = 4095; 247 248 pub const PRIO_PROCESS: ::c_int = 0; 249 pub const PRIO_PGRP: ::c_int = 1; 250 pub const PRIO_USER: ::c_int = 2; 251 252 pub const ST_RELATIME: ::c_ulong = 4096; 253 254 pub const AF_NFC: ::c_int = PF_NFC; 255 pub const BUFSIZ: ::c_int = 4096; 256 pub const EDEADLOCK: ::c_int = EDEADLK; 257 pub const EXTA: ::c_uint = B19200; 258 pub const EXTB: ::c_uint = B38400; 259 pub const EXTPROC: ::c_int = 0200000; 260 pub const FAN_MARK_FILESYSTEM: ::c_int = 0x00000100; 261 pub const FAN_MARK_INODE: ::c_int = 0x00000000; 262 pub const FAN_MARK_MOUNT: ::c_int = 0x10; 263 pub const FIONREAD: ::c_int = 0x541B; 264 pub const FOPEN_MAX: ::c_int = 16; 265 pub const F_GETOWN: ::c_int = 9; 266 pub const F_OFD_GETLK: ::c_int = 36; 267 pub const F_OFD_SETLK: ::c_int = 37; 268 pub const F_OFD_SETLKW: ::c_int = 38; 269 pub const F_RDLCK: ::c_int = 0; 270 pub const F_SETOWN: ::c_int = 8; 271 pub const F_UNLCK: ::c_int = 2; 272 pub const F_WRLCK: ::c_int = 1; 273 pub const IPV6_MULTICAST_ALL: ::c_int = 29; 274 pub const IPV6_ROUTER_ALERT_ISOLATE: ::c_int = 30; 275 pub const MAP_HUGE_SHIFT: ::c_int = 26; 276 pub const MAP_HUGE_MASK: ::c_int = 0x3f; 277 pub const MAP_HUGE_64KB: ::c_int = 16 << MAP_HUGE_SHIFT; 278 pub const MAP_HUGE_512KB: ::c_int = 19 << MAP_HUGE_SHIFT; 279 pub const MAP_HUGE_1MB: ::c_int = 20 << MAP_HUGE_SHIFT; 280 pub const MAP_HUGE_2MB: ::c_int = 21 << MAP_HUGE_SHIFT; 281 pub const MAP_HUGE_8MB: ::c_int = 23 << MAP_HUGE_SHIFT; 282 pub const MAP_HUGE_16MB: ::c_int = 24 << MAP_HUGE_SHIFT; 283 pub const MAP_HUGE_32MB: ::c_int = 25 << MAP_HUGE_SHIFT; 284 pub const MAP_HUGE_256MB: ::c_int = 28 << MAP_HUGE_SHIFT; 285 pub const MAP_HUGE_512MB: ::c_int = 29 << MAP_HUGE_SHIFT; 286 pub const MAP_HUGE_1GB: ::c_int = 30 << MAP_HUGE_SHIFT; 287 pub const MAP_HUGE_2GB: ::c_int = 31 << MAP_HUGE_SHIFT; 288 pub const MAP_HUGE_16GB: ::c_int = 34 << MAP_HUGE_SHIFT; 289 pub const MINSIGSTKSZ: ::c_int = 2048; 290 pub const MSG_COPY: ::c_int = 040000; 291 pub const NI_MAXHOST: ::socklen_t = 1025; 292 pub const O_TMPFILE: ::c_int = 020000000 | O_DIRECTORY; 293 pub const PACKET_MR_UNICAST: ::c_int = 3; 294 pub const PF_NFC: ::c_int = 39; 295 pub const PF_VSOCK: ::c_int = 40; 296 pub const POSIX_MADV_DONTNEED: ::c_int = 4; 297 pub const PTRACE_EVENT_STOP: ::c_int = 128; 298 pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209; 299 pub const RLIMIT_AS: ::c_int = 9; 300 pub const RLIMIT_MEMLOCK: ::c_int = 8; 301 pub const RLIMIT_NLIMITS: ::c_int = 15; 302 pub const RLIMIT_NOFILE: ::c_int = 7; 303 pub const RLIMIT_NPROC: ::c_int = 6; 304 pub const RLIMIT_RSS: ::c_int = 5; 305 pub const RLIMIT_RTTIME: ::c_int = 15; 306 pub const RTLD_NOLOAD: ::c_int = 0x00004; 307 pub const RUSAGE_THREAD: ::c_int = 1; 308 pub const SHM_EXEC: ::c_int = 0100000; 309 pub const SIGPOLL: ::c_int = SIGIO; 310 pub const SOCK_DCCP: ::c_int = 6; 311 pub const SOCK_PACKET: ::c_int = 10; 312 pub const TCFLSH: ::c_int = 0x540B; 313 pub const TCGETA: ::c_int = 0x5405; 314 pub const TCGETS: ::c_int = 0x5401; 315 pub const TCP_COOKIE_TRANSACTIONS: ::c_int = 15; 316 pub const TCSBRK: ::c_int = 0x5409; 317 pub const TCSETA: ::c_int = 0x5406; 318 pub const TCSETAF: ::c_int = 0x5408; 319 pub const TCSETAW: ::c_int = 0x5407; 320 pub const TCSETS: ::c_int = 0x5402; 321 pub const TCSETSF: ::c_int = 0x5404; 322 pub const TCSETSW: ::c_int = 0x5403; 323 pub const TCXONC: ::c_int = 0x540A; 324 pub const TIOCCONS: ::c_int = 0x541D; 325 pub const TIOCEXCL: ::c_int = 0x540C; 326 pub const TIOCGPGRP: ::c_int = 0x540F; 327 pub const TIOCGSERIAL: ::c_int = 0x541E; 328 pub const TIOCGSOFTCAR: ::c_int = 0x5419; 329 pub const TIOCINQ: ::c_int = FIONREAD; 330 pub const TIOCLINUX: ::c_int = 0x541C; 331 pub const TIOCMBIC: ::c_int = 0x5417; 332 pub const TIOCMGET: ::c_int = 0x5415; 333 pub const TIOCMBIS: ::c_int = 0x5416; 334 pub const TIOCMSET: ::c_int = 0x5418; 335 pub const TIOCM_CAR: ::c_int = 0x040; 336 pub const TIOCM_CD: ::c_int = TIOCM_CAR; 337 pub const TIOCM_CTS: ::c_int = 0x020; 338 pub const TIOCM_DSR: ::c_int = 0x100; 339 pub const TIOCM_DTR: ::c_int = 0x002; 340 pub const TIOCM_LE: ::c_int = 0x001; 341 pub const TIOCM_RI: ::c_int = TIOCM_RNG; 342 pub const TIOCM_RNG: ::c_int = 0x080; 343 pub const TIOCM_RTS: ::c_int = 0x004; 344 pub const TIOCM_SR: ::c_int = 0x010; 345 pub const TIOCM_ST: ::c_int = 0x008; 346 pub const TIOCNXCL: ::c_int = 0x540D; 347 pub const TIOCOUTQ: ::c_int = 0x5411; 348 pub const TIOCSCTTY: ::c_int = 0x540E; 349 pub const TIOCSPGRP: ::c_int = 0x5410; 350 pub const TIOCSSOFTCAR: ::c_int = 0x541A; 351 pub const TIOCSTI: ::c_int = 0x5412; 352 pub const UDP_GRO: ::c_int = 104; 353 pub const UDP_SEGMENT: ::c_int = 103; 354 pub const YESEXPR: ::c_int = ((5) << 8) | (0); 355 356 extern "C" { gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int357 pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; 358 pthread_rwlockattr_getkind_np( attr: *const ::pthread_rwlockattr_t, val: *mut ::c_int, ) -> ::c_int359 pub fn pthread_rwlockattr_getkind_np( 360 attr: *const ::pthread_rwlockattr_t, 361 val: *mut ::c_int, 362 ) -> ::c_int; pthread_rwlockattr_setkind_np( attr: *mut ::pthread_rwlockattr_t, val: ::c_int, ) -> ::c_int363 pub fn pthread_rwlockattr_setkind_np( 364 attr: *mut ::pthread_rwlockattr_t, 365 val: ::c_int, 366 ) -> ::c_int; 367 ptrace(request: ::c_uint, ...) -> ::c_long368 pub fn ptrace(request: ::c_uint, ...) -> ::c_long; 369 sendmmsg( sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint, flags: ::c_int, ) -> ::c_int370 pub fn sendmmsg( 371 sockfd: ::c_int, 372 msgvec: *mut ::mmsghdr, 373 vlen: ::c_uint, 374 flags: ::c_int, 375 ) -> ::c_int; recvmmsg( sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint, flags: ::c_int, timeout: *mut ::timespec, ) -> ::c_int376 pub fn recvmmsg( 377 sockfd: ::c_int, 378 msgvec: *mut ::mmsghdr, 379 vlen: ::c_uint, 380 flags: ::c_int, 381 timeout: *mut ::timespec, 382 ) -> ::c_int; 383 openpty( amaster: *mut ::c_int, aslave: *mut ::c_int, name: *mut ::c_char, termp: *mut termios, winp: *mut ::winsize, ) -> ::c_int384 pub fn openpty( 385 amaster: *mut ::c_int, 386 aslave: *mut ::c_int, 387 name: *mut ::c_char, 388 termp: *mut termios, 389 winp: *mut ::winsize, 390 ) -> ::c_int; forkpty( amaster: *mut ::c_int, name: *mut ::c_char, termp: *mut termios, winp: *mut ::winsize, ) -> ::pid_t391 pub fn forkpty( 392 amaster: *mut ::c_int, 393 name: *mut ::c_char, 394 termp: *mut termios, 395 winp: *mut ::winsize, 396 ) -> ::pid_t; 397 getnameinfo( sa: *const ::sockaddr, salen: ::socklen_t, host: *mut ::c_char, hostlen: ::socklen_t, serv: *mut ::c_char, sevlen: ::socklen_t, flags: ::c_int, ) -> ::c_int398 pub fn getnameinfo( 399 sa: *const ::sockaddr, 400 salen: ::socklen_t, 401 host: *mut ::c_char, 402 hostlen: ::socklen_t, 403 serv: *mut ::c_char, 404 sevlen: ::socklen_t, 405 flags: ::c_int, 406 ) -> ::c_int; 407 pwritev( fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off64_t, ) -> ::ssize_t408 pub fn pwritev( 409 fd: ::c_int, 410 iov: *const ::iovec, 411 iovcnt: ::c_int, 412 offset: ::off64_t, 413 ) -> ::ssize_t; preadv( fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off64_t, ) -> ::ssize_t414 pub fn preadv( 415 fd: ::c_int, 416 iov: *const ::iovec, 417 iovcnt: ::c_int, 418 offset: ::off64_t, 419 ) -> ::ssize_t; 420 sethostid(hostid: ::c_long) -> ::c_int421 pub fn sethostid(hostid: ::c_long) -> ::c_int; fanotify_mark( fd: ::c_int, flags: ::c_uint, mask: u64, dirfd: ::c_int, path: *const ::c_char, ) -> ::c_int422 pub fn fanotify_mark( 423 fd: ::c_int, 424 flags: ::c_uint, 425 mask: u64, 426 dirfd: ::c_int, 427 path: *const ::c_char, 428 ) -> ::c_int; getrlimit64(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit64) -> ::c_int429 pub fn getrlimit64(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit64) -> ::c_int; setrlimit64(resource: ::__rlimit_resource_t, rlim: *const ::rlimit64) -> ::c_int430 pub fn setrlimit64(resource: ::__rlimit_resource_t, rlim: *const ::rlimit64) -> ::c_int; getrlimit(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit) -> ::c_int431 pub fn getrlimit(resource: ::__rlimit_resource_t, rlim: *mut ::rlimit) -> ::c_int; setrlimit(resource: ::__rlimit_resource_t, rlim: *const ::rlimit) -> ::c_int432 pub fn setrlimit(resource: ::__rlimit_resource_t, rlim: *const ::rlimit) -> ::c_int; getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int433 pub fn getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int; setpriority(which: ::__priority_which_t, who: ::id_t, prio: ::c_int) -> ::c_int434 pub fn setpriority(which: ::__priority_which_t, who: ::id_t, prio: ::c_int) -> ::c_int; 435 } 436 437 cfg_if! { 438 if #[cfg(any(target_arch = "mips", target_arch = "mips64"))] { 439 mod mips; 440 pub use self::mips::*; 441 } else if #[cfg(target_arch = "x86_64")] { 442 mod x86_64; 443 pub use self::x86_64::*; 444 } else if #[cfg(target_arch = "arm")] { 445 mod arm; 446 pub use self::arm::*; 447 } else { 448 pub use unsupported_target; 449 } 450 } 451