1 use super::{Send, Sync}; 2 3 pub use ffi::c_void; 4 5 pub type c_char = i8; 6 pub type c_uchar = u8; 7 pub type c_schar = i8; 8 pub type c_int = i32; 9 pub type c_uint = u32; 10 pub type c_short = i16; 11 pub type c_ushort = u16; 12 pub type c_long = i32; 13 pub type c_ulong = u32; 14 pub type c_longlong = i64; 15 pub type c_ulonglong = u64; 16 pub type intmax_t = i64; 17 pub type uintmax_t = u64; 18 pub type size_t = usize; 19 pub type ssize_t = isize; 20 pub type ptrdiff_t = isize; 21 pub type intptr_t = isize; 22 pub type uintptr_t = usize; 23 pub type off_t = i64; 24 pub type pid_t = i32; 25 pub type clock_t = c_longlong; 26 pub type time_t = c_longlong; 27 pub type c_double = f64; 28 pub type c_float = f32; 29 pub type ino_t = u64; 30 pub type sigset_t = c_uchar; 31 pub type suseconds_t = c_longlong; 32 pub type mode_t = u32; 33 pub type dev_t = u64; 34 pub type uid_t = u32; 35 pub type gid_t = u32; 36 pub type nlink_t = u64; 37 pub type blksize_t = c_long; 38 pub type blkcnt_t = i64; 39 pub type nfds_t = c_ulong; 40 pub type wchar_t = i32; 41 pub type nl_item = c_int; 42 pub type __wasi_rights_t = u64; 43 44 s_no_extra_traits! { 45 #[repr(align(16))] 46 #[allow(missing_debug_implementations)] 47 pub struct max_align_t { 48 priv_: [f64; 4] 49 } 50 } 51 52 #[allow(missing_copy_implementations)] 53 #[cfg_attr(feature = "extra_traits", derive(Debug))] 54 pub enum FILE {} 55 #[allow(missing_copy_implementations)] 56 #[cfg_attr(feature = "extra_traits", derive(Debug))] 57 pub enum DIR {} 58 #[allow(missing_copy_implementations)] 59 #[cfg_attr(feature = "extra_traits", derive(Debug))] 60 pub enum __locale_struct {} 61 62 pub type locale_t = *mut __locale_struct; 63 64 s_paren! { 65 // in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct), 66 // but that's an implementation detail that we don't want to have to deal with 67 #[repr(transparent)] 68 #[allow(dead_code)] 69 pub struct clockid_t(*const u8); 70 } 71 72 unsafe impl Send for clockid_t {} 73 unsafe impl Sync for clockid_t {} 74 75 s! { 76 #[repr(align(8))] 77 pub struct fpos_t { 78 data: [u8; 16], 79 } 80 81 pub struct tm { 82 pub tm_sec: c_int, 83 pub tm_min: c_int, 84 pub tm_hour: c_int, 85 pub tm_mday: c_int, 86 pub tm_mon: c_int, 87 pub tm_year: c_int, 88 pub tm_wday: c_int, 89 pub tm_yday: c_int, 90 pub tm_isdst: c_int, 91 pub __tm_gmtoff: c_int, 92 pub __tm_zone: *const c_char, 93 pub __tm_nsec: c_int, 94 } 95 96 pub struct timeval { 97 pub tv_sec: time_t, 98 pub tv_usec: suseconds_t, 99 } 100 101 pub struct timespec { 102 pub tv_sec: time_t, 103 pub tv_nsec: c_long, 104 } 105 106 pub struct tms { 107 pub tms_utime: clock_t, 108 pub tms_stime: clock_t, 109 pub tms_cutime: clock_t, 110 pub tms_cstime: clock_t, 111 } 112 113 pub struct itimerspec { 114 pub it_interval: timespec, 115 pub it_value: timespec, 116 } 117 118 pub struct iovec { 119 pub iov_base: *mut c_void, 120 pub iov_len: size_t, 121 } 122 123 pub struct lconv { 124 pub decimal_point: *mut c_char, 125 pub thousands_sep: *mut c_char, 126 pub grouping: *mut c_char, 127 pub int_curr_symbol: *mut c_char, 128 pub currency_symbol: *mut c_char, 129 pub mon_decimal_point: *mut c_char, 130 pub mon_thousands_sep: *mut c_char, 131 pub mon_grouping: *mut c_char, 132 pub positive_sign: *mut c_char, 133 pub negative_sign: *mut c_char, 134 pub int_frac_digits: c_char, 135 pub frac_digits: c_char, 136 pub p_cs_precedes: c_char, 137 pub p_sep_by_space: c_char, 138 pub n_cs_precedes: c_char, 139 pub n_sep_by_space: c_char, 140 pub p_sign_posn: c_char, 141 pub n_sign_posn: c_char, 142 pub int_p_cs_precedes: c_char, 143 pub int_p_sep_by_space: c_char, 144 pub int_n_cs_precedes: c_char, 145 pub int_n_sep_by_space: c_char, 146 pub int_p_sign_posn: c_char, 147 pub int_n_sign_posn: c_char, 148 } 149 150 pub struct pollfd { 151 pub fd: c_int, 152 pub events: c_short, 153 pub revents: c_short, 154 } 155 156 pub struct rusage { 157 pub ru_utime: timeval, 158 pub ru_stime: timeval, 159 } 160 161 pub struct stat { 162 pub st_dev: dev_t, 163 pub st_ino: ino_t, 164 pub st_nlink: nlink_t, 165 pub st_mode: mode_t, 166 pub st_uid: uid_t, 167 pub st_gid: gid_t, 168 __pad0: c_uint, 169 pub st_rdev: dev_t, 170 pub st_size: off_t, 171 pub st_blksize: blksize_t, 172 pub st_blocks: blkcnt_t, 173 pub st_atim: timespec, 174 pub st_mtim: timespec, 175 pub st_ctim: timespec, 176 __reserved: [c_longlong; 3], 177 } 178 } 179 180 // Declare dirent outside of s! so that it doesn't implement Copy, Eq, Hash, 181 // etc., since it contains a flexible array member with a dynamic size. 182 #[repr(C)] 183 #[allow(missing_copy_implementations)] 184 #[cfg_attr(feature = "extra_traits", derive(Debug))] 185 pub struct dirent { 186 pub d_ino: ino_t, 187 pub d_type: c_uchar, 188 /// d_name is declared in WASI libc as a flexible array member, which 189 /// can't be directly expressed in Rust. As an imperfect workaround, 190 /// declare it as a zero-length array instead. 191 pub d_name: [c_char; 0], 192 } 193 194 pub const EXIT_SUCCESS: c_int = 0; 195 pub const EXIT_FAILURE: c_int = 1; 196 pub const STDIN_FILENO: c_int = 0; 197 pub const STDOUT_FILENO: c_int = 1; 198 pub const STDERR_FILENO: c_int = 2; 199 pub const SEEK_SET: c_int = 0; 200 pub const SEEK_CUR: c_int = 1; 201 pub const SEEK_END: c_int = 2; 202 pub const _IOFBF: c_int = 0; 203 pub const _IONBF: c_int = 2; 204 pub const _IOLBF: c_int = 1; 205 pub const F_GETFD: c_int = 1; 206 pub const F_SETFD: c_int = 2; 207 pub const F_GETFL: c_int = 3; 208 pub const F_SETFL: c_int = 4; 209 pub const FD_CLOEXEC: c_int = 1; 210 pub const FD_SETSIZE: size_t = 1024; 211 pub const O_APPEND: c_int = 0x0001; 212 pub const O_DSYNC: c_int = 0x0002; 213 pub const O_NONBLOCK: c_int = 0x0004; 214 pub const O_RSYNC: c_int = 0x0008; 215 pub const O_SYNC: c_int = 0x0010; 216 pub const O_CREAT: c_int = 0x0001 << 12; 217 pub const O_DIRECTORY: c_int = 0x0002 << 12; 218 pub const O_EXCL: c_int = 0x0004 << 12; 219 pub const O_TRUNC: c_int = 0x0008 << 12; 220 pub const O_NOFOLLOW: c_int = 0x01000000; 221 pub const O_EXEC: c_int = 0x02000000; 222 pub const O_RDONLY: c_int = 0x04000000; 223 pub const O_SEARCH: c_int = 0x08000000; 224 pub const O_WRONLY: c_int = 0x10000000; 225 pub const O_CLOEXEC: c_int = 0x0; 226 pub const O_RDWR: c_int = O_WRONLY | O_RDONLY; 227 pub const O_ACCMODE: c_int = O_EXEC | O_RDWR | O_SEARCH; 228 pub const O_NOCTTY: c_int = 0x0; 229 pub const POSIX_FADV_DONTNEED: c_int = 4; 230 pub const POSIX_FADV_NOREUSE: c_int = 5; 231 pub const POSIX_FADV_NORMAL: c_int = 0; 232 pub const POSIX_FADV_RANDOM: c_int = 2; 233 pub const POSIX_FADV_SEQUENTIAL: c_int = 1; 234 pub const POSIX_FADV_WILLNEED: c_int = 3; 235 pub const AT_FDCWD: ::c_int = -2; 236 pub const AT_EACCESS: c_int = 0x0; 237 pub const AT_SYMLINK_NOFOLLOW: c_int = 0x1; 238 pub const AT_SYMLINK_FOLLOW: c_int = 0x2; 239 pub const AT_REMOVEDIR: c_int = 0x4; 240 pub const UTIME_OMIT: c_long = 0xfffffffe; 241 pub const UTIME_NOW: c_long = 0xffffffff; 242 pub const S_IFIFO: mode_t = 49152; 243 pub const S_IFCHR: mode_t = 8192; 244 pub const S_IFBLK: mode_t = 24576; 245 pub const S_IFDIR: mode_t = 16384; 246 pub const S_IFREG: mode_t = 32768; 247 pub const S_IFLNK: mode_t = 40960; 248 pub const S_IFSOCK: mode_t = 49152; 249 pub const S_IFMT: mode_t = 57344; 250 pub const S_IRWXO: mode_t = 0x7; 251 pub const S_IXOTH: mode_t = 0x1; 252 pub const S_IWOTH: mode_t = 0x2; 253 pub const S_IROTH: mode_t = 0x4; 254 pub const S_IRWXG: mode_t = 0x38; 255 pub const S_IXGRP: mode_t = 0x8; 256 pub const S_IWGRP: mode_t = 0x10; 257 pub const S_IRGRP: mode_t = 0x20; 258 pub const S_IRWXU: mode_t = 0x1c0; 259 pub const S_IXUSR: mode_t = 0x40; 260 pub const S_IWUSR: mode_t = 0x80; 261 pub const S_IRUSR: mode_t = 0x100; 262 pub const S_ISVTX: mode_t = 0x200; 263 pub const S_ISGID: mode_t = 0x400; 264 pub const S_ISUID: mode_t = 0x800; 265 pub const DT_UNKNOWN: u8 = 0; 266 pub const DT_BLK: u8 = 1; 267 pub const DT_CHR: u8 = 2; 268 pub const DT_DIR: u8 = 3; 269 pub const DT_REG: u8 = 4; 270 pub const DT_LNK: u8 = 7; 271 pub const FIONREAD: c_int = 1; 272 pub const FIONBIO: c_int = 2; 273 pub const F_OK: ::c_int = 0; 274 pub const R_OK: ::c_int = 4; 275 pub const W_OK: ::c_int = 2; 276 pub const X_OK: ::c_int = 1; 277 pub const POLLIN: ::c_short = 0x1; 278 pub const POLLOUT: ::c_short = 0x2; 279 pub const POLLERR: ::c_short = 0x1000; 280 pub const POLLHUP: ::c_short = 0x2000; 281 pub const POLLNVAL: ::c_short = 0x4000; 282 pub const POLLRDNORM: ::c_short = 0x1; 283 pub const POLLWRNORM: ::c_short = 0x2; 284 285 pub const E2BIG: c_int = 1; 286 pub const EACCES: c_int = 2; 287 pub const EADDRINUSE: c_int = 3; 288 pub const EADDRNOTAVAIL: c_int = 4; 289 pub const EAFNOSUPPORT: c_int = 5; 290 pub const EAGAIN: c_int = 6; 291 pub const EALREADY: c_int = 7; 292 pub const EBADF: c_int = 8; 293 pub const EBADMSG: c_int = 9; 294 pub const EBUSY: c_int = 10; 295 pub const ECANCELED: c_int = 11; 296 pub const ECHILD: c_int = 12; 297 pub const ECONNABORTED: c_int = 13; 298 pub const ECONNREFUSED: c_int = 14; 299 pub const ECONNRESET: c_int = 15; 300 pub const EDEADLK: c_int = 16; 301 pub const EDESTADDRREQ: c_int = 17; 302 pub const EDOM: c_int = 18; 303 pub const EDQUOT: c_int = 19; 304 pub const EEXIST: c_int = 20; 305 pub const EFAULT: c_int = 21; 306 pub const EFBIG: c_int = 22; 307 pub const EHOSTUNREACH: c_int = 23; 308 pub const EIDRM: c_int = 24; 309 pub const EILSEQ: c_int = 25; 310 pub const EINPROGRESS: c_int = 26; 311 pub const EINTR: c_int = 27; 312 pub const EINVAL: c_int = 28; 313 pub const EIO: c_int = 29; 314 pub const EISCONN: c_int = 30; 315 pub const EISDIR: c_int = 31; 316 pub const ELOOP: c_int = 32; 317 pub const EMFILE: c_int = 33; 318 pub const EMLINK: c_int = 34; 319 pub const EMSGSIZE: c_int = 35; 320 pub const EMULTIHOP: c_int = 36; 321 pub const ENAMETOOLONG: c_int = 37; 322 pub const ENETDOWN: c_int = 38; 323 pub const ENETRESET: c_int = 39; 324 pub const ENETUNREACH: c_int = 40; 325 pub const ENFILE: c_int = 41; 326 pub const ENOBUFS: c_int = 42; 327 pub const ENODEV: c_int = 43; 328 pub const ENOENT: c_int = 44; 329 pub const ENOEXEC: c_int = 45; 330 pub const ENOLCK: c_int = 46; 331 pub const ENOLINK: c_int = 47; 332 pub const ENOMEM: c_int = 48; 333 pub const ENOMSG: c_int = 49; 334 pub const ENOPROTOOPT: c_int = 50; 335 pub const ENOSPC: c_int = 51; 336 pub const ENOSYS: c_int = 52; 337 pub const ENOTCONN: c_int = 53; 338 pub const ENOTDIR: c_int = 54; 339 pub const ENOTEMPTY: c_int = 55; 340 pub const ENOTRECOVERABLE: c_int = 56; 341 pub const ENOTSOCK: c_int = 57; 342 pub const ENOTSUP: c_int = 58; 343 pub const ENOTTY: c_int = 59; 344 pub const ENXIO: c_int = 60; 345 pub const EOVERFLOW: c_int = 61; 346 pub const EOWNERDEAD: c_int = 62; 347 pub const EPERM: c_int = 63; 348 pub const EPIPE: c_int = 64; 349 pub const EPROTO: c_int = 65; 350 pub const EPROTONOSUPPORT: c_int = 66; 351 pub const EPROTOTYPE: c_int = 67; 352 pub const ERANGE: c_int = 68; 353 pub const EROFS: c_int = 69; 354 pub const ESPIPE: c_int = 70; 355 pub const ESRCH: c_int = 71; 356 pub const ESTALE: c_int = 72; 357 pub const ETIMEDOUT: c_int = 73; 358 pub const ETXTBSY: c_int = 74; 359 pub const EXDEV: c_int = 75; 360 pub const ENOTCAPABLE: c_int = 76; 361 pub const EOPNOTSUPP: c_int = ENOTSUP; 362 pub const EWOULDBLOCK: c_int = EAGAIN; 363 364 pub const _SC_PAGESIZE: c_int = 30; 365 pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE; 366 pub const _SC_IOV_MAX: c_int = 60; 367 pub const _SC_SYMLOOP_MAX: c_int = 173; 368 369 pub static CLOCK_MONOTONIC: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_MONOTONIC)) }; 370 pub static CLOCK_PROCESS_CPUTIME_ID: clockid_t = 371 unsafe { clockid_t(ptr_addr_of!(_CLOCK_PROCESS_CPUTIME_ID)) }; 372 pub static CLOCK_REALTIME: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_REALTIME)) }; 373 pub static CLOCK_THREAD_CPUTIME_ID: clockid_t = 374 unsafe { clockid_t(ptr_addr_of!(_CLOCK_THREAD_CPUTIME_ID)) }; 375 376 pub const ABDAY_1: ::nl_item = 0x20000; 377 pub const ABDAY_2: ::nl_item = 0x20001; 378 pub const ABDAY_3: ::nl_item = 0x20002; 379 pub const ABDAY_4: ::nl_item = 0x20003; 380 pub const ABDAY_5: ::nl_item = 0x20004; 381 pub const ABDAY_6: ::nl_item = 0x20005; 382 pub const ABDAY_7: ::nl_item = 0x20006; 383 384 pub const DAY_1: ::nl_item = 0x20007; 385 pub const DAY_2: ::nl_item = 0x20008; 386 pub const DAY_3: ::nl_item = 0x20009; 387 pub const DAY_4: ::nl_item = 0x2000A; 388 pub const DAY_5: ::nl_item = 0x2000B; 389 pub const DAY_6: ::nl_item = 0x2000C; 390 pub const DAY_7: ::nl_item = 0x2000D; 391 392 pub const ABMON_1: ::nl_item = 0x2000E; 393 pub const ABMON_2: ::nl_item = 0x2000F; 394 pub const ABMON_3: ::nl_item = 0x20010; 395 pub const ABMON_4: ::nl_item = 0x20011; 396 pub const ABMON_5: ::nl_item = 0x20012; 397 pub const ABMON_6: ::nl_item = 0x20013; 398 pub const ABMON_7: ::nl_item = 0x20014; 399 pub const ABMON_8: ::nl_item = 0x20015; 400 pub const ABMON_9: ::nl_item = 0x20016; 401 pub const ABMON_10: ::nl_item = 0x20017; 402 pub const ABMON_11: ::nl_item = 0x20018; 403 pub const ABMON_12: ::nl_item = 0x20019; 404 405 pub const MON_1: ::nl_item = 0x2001A; 406 pub const MON_2: ::nl_item = 0x2001B; 407 pub const MON_3: ::nl_item = 0x2001C; 408 pub const MON_4: ::nl_item = 0x2001D; 409 pub const MON_5: ::nl_item = 0x2001E; 410 pub const MON_6: ::nl_item = 0x2001F; 411 pub const MON_7: ::nl_item = 0x20020; 412 pub const MON_8: ::nl_item = 0x20021; 413 pub const MON_9: ::nl_item = 0x20022; 414 pub const MON_10: ::nl_item = 0x20023; 415 pub const MON_11: ::nl_item = 0x20024; 416 pub const MON_12: ::nl_item = 0x20025; 417 418 pub const AM_STR: ::nl_item = 0x20026; 419 pub const PM_STR: ::nl_item = 0x20027; 420 421 pub const D_T_FMT: ::nl_item = 0x20028; 422 pub const D_FMT: ::nl_item = 0x20029; 423 pub const T_FMT: ::nl_item = 0x2002A; 424 pub const T_FMT_AMPM: ::nl_item = 0x2002B; 425 426 pub const ERA: ::nl_item = 0x2002C; 427 pub const ERA_D_FMT: ::nl_item = 0x2002E; 428 pub const ALT_DIGITS: ::nl_item = 0x2002F; 429 pub const ERA_D_T_FMT: ::nl_item = 0x20030; 430 pub const ERA_T_FMT: ::nl_item = 0x20031; 431 432 pub const CODESET: ::nl_item = 14; 433 pub const CRNCYSTR: ::nl_item = 0x4000F; 434 pub const RADIXCHAR: ::nl_item = 0x10000; 435 pub const THOUSEP: ::nl_item = 0x10001; 436 pub const YESEXPR: ::nl_item = 0x50000; 437 pub const NOEXPR: ::nl_item = 0x50001; 438 pub const YESSTR: ::nl_item = 0x50002; 439 pub const NOSTR: ::nl_item = 0x50003; 440 441 #[cfg_attr( 442 feature = "rustc-dep-of-std", 443 link( 444 name = "c", 445 kind = "static", 446 modifiers = "-bundle", 447 cfg(target_feature = "crt-static") 448 ) 449 )] 450 #[cfg_attr( 451 feature = "rustc-dep-of-std", 452 link(name = "c", cfg(not(target_feature = "crt-static"))) 453 )] 454 extern "C" { _Exit(code: c_int) -> !455 pub fn _Exit(code: c_int) -> !; _exit(code: c_int) -> !456 pub fn _exit(code: c_int) -> !; abort() -> !457 pub fn abort() -> !; aligned_alloc(a: size_t, b: size_t) -> *mut c_void458 pub fn aligned_alloc(a: size_t, b: size_t) -> *mut c_void; calloc(amt: size_t, amt2: size_t) -> *mut c_void459 pub fn calloc(amt: size_t, amt2: size_t) -> *mut c_void; exit(code: c_int) -> !460 pub fn exit(code: c_int) -> !; free(ptr: *mut c_void)461 pub fn free(ptr: *mut c_void); getenv(s: *const c_char) -> *mut c_char462 pub fn getenv(s: *const c_char) -> *mut c_char; malloc(amt: size_t) -> *mut c_void463 pub fn malloc(amt: size_t) -> *mut c_void; malloc_usable_size(ptr: *mut c_void) -> size_t464 pub fn malloc_usable_size(ptr: *mut c_void) -> size_t; sbrk(increment: ::intptr_t) -> *mut ::c_void465 pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void; rand() -> c_int466 pub fn rand() -> c_int; read(fd: c_int, ptr: *mut c_void, size: size_t) -> ssize_t467 pub fn read(fd: c_int, ptr: *mut c_void, size: size_t) -> ssize_t; realloc(ptr: *mut c_void, amt: size_t) -> *mut c_void468 pub fn realloc(ptr: *mut c_void, amt: size_t) -> *mut c_void; setenv(k: *const c_char, v: *const c_char, a: c_int) -> c_int469 pub fn setenv(k: *const c_char, v: *const c_char, a: c_int) -> c_int; unsetenv(k: *const c_char) -> c_int470 pub fn unsetenv(k: *const c_char) -> c_int; clearenv() -> ::c_int471 pub fn clearenv() -> ::c_int; write(fd: c_int, ptr: *const c_void, size: size_t) -> ssize_t472 pub fn write(fd: c_int, ptr: *const c_void, size: size_t) -> ssize_t; 473 pub static mut environ: *mut *mut c_char; fopen(a: *const c_char, b: *const c_char) -> *mut FILE474 pub fn fopen(a: *const c_char, b: *const c_char) -> *mut FILE; freopen(a: *const c_char, b: *const c_char, f: *mut FILE) -> *mut FILE475 pub fn freopen(a: *const c_char, b: *const c_char, f: *mut FILE) -> *mut FILE; fclose(f: *mut FILE) -> c_int476 pub fn fclose(f: *mut FILE) -> c_int; remove(a: *const c_char) -> c_int477 pub fn remove(a: *const c_char) -> c_int; rename(a: *const c_char, b: *const c_char) -> c_int478 pub fn rename(a: *const c_char, b: *const c_char) -> c_int; feof(f: *mut FILE) -> c_int479 pub fn feof(f: *mut FILE) -> c_int; ferror(f: *mut FILE) -> c_int480 pub fn ferror(f: *mut FILE) -> c_int; fflush(f: *mut FILE) -> c_int481 pub fn fflush(f: *mut FILE) -> c_int; clearerr(f: *mut FILE)482 pub fn clearerr(f: *mut FILE); fseek(f: *mut FILE, b: c_long, c: c_int) -> c_int483 pub fn fseek(f: *mut FILE, b: c_long, c: c_int) -> c_int; ftell(f: *mut FILE) -> c_long484 pub fn ftell(f: *mut FILE) -> c_long; rewind(f: *mut FILE)485 pub fn rewind(f: *mut FILE); fgetpos(f: *mut FILE, pos: *mut fpos_t) -> c_int486 pub fn fgetpos(f: *mut FILE, pos: *mut fpos_t) -> c_int; fsetpos(f: *mut FILE, pos: *const fpos_t) -> c_int487 pub fn fsetpos(f: *mut FILE, pos: *const fpos_t) -> c_int; fread(buf: *mut c_void, a: size_t, b: size_t, f: *mut FILE) -> size_t488 pub fn fread(buf: *mut c_void, a: size_t, b: size_t, f: *mut FILE) -> size_t; fwrite(buf: *const c_void, a: size_t, b: size_t, f: *mut FILE) -> size_t489 pub fn fwrite(buf: *const c_void, a: size_t, b: size_t, f: *mut FILE) -> size_t; fgetc(f: *mut FILE) -> c_int490 pub fn fgetc(f: *mut FILE) -> c_int; getc(f: *mut FILE) -> c_int491 pub fn getc(f: *mut FILE) -> c_int; getchar() -> c_int492 pub fn getchar() -> c_int; ungetc(a: c_int, f: *mut FILE) -> c_int493 pub fn ungetc(a: c_int, f: *mut FILE) -> c_int; fputc(a: c_int, f: *mut FILE) -> c_int494 pub fn fputc(a: c_int, f: *mut FILE) -> c_int; putc(a: c_int, f: *mut FILE) -> c_int495 pub fn putc(a: c_int, f: *mut FILE) -> c_int; putchar(a: c_int) -> c_int496 pub fn putchar(a: c_int) -> c_int; fputs(a: *const c_char, f: *mut FILE) -> c_int497 pub fn fputs(a: *const c_char, f: *mut FILE) -> c_int; puts(a: *const c_char) -> c_int498 pub fn puts(a: *const c_char) -> c_int; perror(a: *const c_char)499 pub fn perror(a: *const c_char); srand(a: c_uint)500 pub fn srand(a: c_uint); atexit(a: extern "C" fn()) -> c_int501 pub fn atexit(a: extern "C" fn()) -> c_int; at_quick_exit(a: extern "C" fn()) -> c_int502 pub fn at_quick_exit(a: extern "C" fn()) -> c_int; quick_exit(a: c_int) -> !503 pub fn quick_exit(a: c_int) -> !; posix_memalign(a: *mut *mut c_void, b: size_t, c: size_t) -> c_int504 pub fn posix_memalign(a: *mut *mut c_void, b: size_t, c: size_t) -> c_int; rand_r(a: *mut c_uint) -> c_int505 pub fn rand_r(a: *mut c_uint) -> c_int; random() -> c_long506 pub fn random() -> c_long; srandom(a: c_uint)507 pub fn srandom(a: c_uint); putenv(a: *mut c_char) -> c_int508 pub fn putenv(a: *mut c_char) -> c_int; clock() -> clock_t509 pub fn clock() -> clock_t; time(a: *mut time_t) -> time_t510 pub fn time(a: *mut time_t) -> time_t; difftime(a: time_t, b: time_t) -> c_double511 pub fn difftime(a: time_t, b: time_t) -> c_double; mktime(a: *mut tm) -> time_t512 pub fn mktime(a: *mut tm) -> time_t; strftime(a: *mut c_char, b: size_t, c: *const c_char, d: *const tm) -> size_t513 pub fn strftime(a: *mut c_char, b: size_t, c: *const c_char, d: *const tm) -> size_t; gmtime(a: *const time_t) -> *mut tm514 pub fn gmtime(a: *const time_t) -> *mut tm; gmtime_r(a: *const time_t, b: *mut tm) -> *mut tm515 pub fn gmtime_r(a: *const time_t, b: *mut tm) -> *mut tm; localtime(a: *const time_t) -> *mut tm516 pub fn localtime(a: *const time_t) -> *mut tm; localtime_r(a: *const time_t, b: *mut tm) -> *mut tm517 pub fn localtime_r(a: *const time_t, b: *mut tm) -> *mut tm; asctime_r(a: *const tm, b: *mut c_char) -> *mut c_char518 pub fn asctime_r(a: *const tm, b: *mut c_char) -> *mut c_char; ctime_r(a: *const time_t, b: *mut c_char) -> *mut c_char519 pub fn ctime_r(a: *const time_t, b: *mut c_char) -> *mut c_char; 520 521 static _CLOCK_MONOTONIC: u8; 522 static _CLOCK_PROCESS_CPUTIME_ID: u8; 523 static _CLOCK_REALTIME: u8; 524 static _CLOCK_THREAD_CPUTIME_ID: u8; nanosleep(a: *const timespec, b: *mut timespec) -> c_int525 pub fn nanosleep(a: *const timespec, b: *mut timespec) -> c_int; clock_getres(a: clockid_t, b: *mut timespec) -> c_int526 pub fn clock_getres(a: clockid_t, b: *mut timespec) -> c_int; clock_gettime(a: clockid_t, b: *mut timespec) -> c_int527 pub fn clock_gettime(a: clockid_t, b: *mut timespec) -> c_int; clock_nanosleep(a: clockid_t, a2: c_int, b: *const timespec, c: *mut timespec) -> c_int528 pub fn clock_nanosleep(a: clockid_t, a2: c_int, b: *const timespec, c: *mut timespec) -> c_int; 529 isalnum(c: c_int) -> c_int530 pub fn isalnum(c: c_int) -> c_int; isalpha(c: c_int) -> c_int531 pub fn isalpha(c: c_int) -> c_int; iscntrl(c: c_int) -> c_int532 pub fn iscntrl(c: c_int) -> c_int; isdigit(c: c_int) -> c_int533 pub fn isdigit(c: c_int) -> c_int; isgraph(c: c_int) -> c_int534 pub fn isgraph(c: c_int) -> c_int; islower(c: c_int) -> c_int535 pub fn islower(c: c_int) -> c_int; isprint(c: c_int) -> c_int536 pub fn isprint(c: c_int) -> c_int; ispunct(c: c_int) -> c_int537 pub fn ispunct(c: c_int) -> c_int; isspace(c: c_int) -> c_int538 pub fn isspace(c: c_int) -> c_int; isupper(c: c_int) -> c_int539 pub fn isupper(c: c_int) -> c_int; isxdigit(c: c_int) -> c_int540 pub fn isxdigit(c: c_int) -> c_int; isblank(c: c_int) -> c_int541 pub fn isblank(c: c_int) -> c_int; tolower(c: c_int) -> c_int542 pub fn tolower(c: c_int) -> c_int; toupper(c: c_int) -> c_int543 pub fn toupper(c: c_int) -> c_int; setvbuf(stream: *mut FILE, buffer: *mut c_char, mode: c_int, size: size_t) -> c_int544 pub fn setvbuf(stream: *mut FILE, buffer: *mut c_char, mode: c_int, size: size_t) -> c_int; setbuf(stream: *mut FILE, buf: *mut c_char)545 pub fn setbuf(stream: *mut FILE, buf: *mut c_char); fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char546 pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char; atof(s: *const c_char) -> c_double547 pub fn atof(s: *const c_char) -> c_double; atoi(s: *const c_char) -> c_int548 pub fn atoi(s: *const c_char) -> c_int; atol(s: *const c_char) -> c_long549 pub fn atol(s: *const c_char) -> c_long; atoll(s: *const c_char) -> c_longlong550 pub fn atoll(s: *const c_char) -> c_longlong; strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double551 pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double; strtof(s: *const c_char, endp: *mut *mut c_char) -> c_float552 pub fn strtof(s: *const c_char, endp: *mut *mut c_char) -> c_float; strtol(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_long553 pub fn strtol(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_long; strtoll(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_longlong554 pub fn strtoll(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_longlong; strtoul(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulong555 pub fn strtoul(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulong; strtoull(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulonglong556 pub fn strtoull(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulonglong; 557 strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char558 pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char; strncpy(dst: *mut c_char, src: *const c_char, n: size_t) -> *mut c_char559 pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t) -> *mut c_char; strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char560 pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char; strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char561 pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char; strcmp(cs: *const c_char, ct: *const c_char) -> c_int562 pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int; strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int563 pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int; strcoll(cs: *const c_char, ct: *const c_char) -> c_int564 pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int; strchr(cs: *const c_char, c: c_int) -> *mut c_char565 pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char; strrchr(cs: *const c_char, c: c_int) -> *mut c_char566 pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char; strspn(cs: *const c_char, ct: *const c_char) -> size_t567 pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t; strcspn(cs: *const c_char, ct: *const c_char) -> size_t568 pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t; strdup(cs: *const c_char) -> *mut c_char569 pub fn strdup(cs: *const c_char) -> *mut c_char; strndup(cs: *const c_char, n: size_t) -> *mut c_char570 pub fn strndup(cs: *const c_char, n: size_t) -> *mut c_char; strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char571 pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char; strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char572 pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char; strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int573 pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int; strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int574 pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int; strlen(cs: *const c_char) -> size_t575 pub fn strlen(cs: *const c_char) -> size_t; strnlen(cs: *const c_char, maxlen: size_t) -> size_t576 pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t; strerror(n: c_int) -> *mut c_char577 pub fn strerror(n: c_int) -> *mut c_char; strtok(s: *mut c_char, t: *const c_char) -> *mut c_char578 pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char; strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t579 pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t; 580 memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void581 pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void; memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int582 pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int; memcpy(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void583 pub fn memcpy(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void; memmove(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void584 pub fn memmove(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void; memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void585 pub fn memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void; 586 fprintf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int587 pub fn fprintf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int; printf(format: *const ::c_char, ...) -> ::c_int588 pub fn printf(format: *const ::c_char, ...) -> ::c_int; snprintf(s: *mut ::c_char, n: ::size_t, format: *const ::c_char, ...) -> ::c_int589 pub fn snprintf(s: *mut ::c_char, n: ::size_t, format: *const ::c_char, ...) -> ::c_int; sprintf(s: *mut ::c_char, format: *const ::c_char, ...) -> ::c_int590 pub fn sprintf(s: *mut ::c_char, format: *const ::c_char, ...) -> ::c_int; fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int591 pub fn fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int; scanf(format: *const ::c_char, ...) -> ::c_int592 pub fn scanf(format: *const ::c_char, ...) -> ::c_int; sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int593 pub fn sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int; getchar_unlocked() -> ::c_int594 pub fn getchar_unlocked() -> ::c_int; putchar_unlocked(c: ::c_int) -> ::c_int595 pub fn putchar_unlocked(c: ::c_int) -> ::c_int; 596 shutdown(socket: ::c_int, how: ::c_int) -> ::c_int597 pub fn shutdown(socket: ::c_int, how: ::c_int) -> ::c_int; fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int598 pub fn fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int; mkdir(path: *const c_char, mode: mode_t) -> ::c_int599 pub fn mkdir(path: *const c_char, mode: mode_t) -> ::c_int; stat(path: *const c_char, buf: *mut stat) -> ::c_int600 pub fn stat(path: *const c_char, buf: *mut stat) -> ::c_int; fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE601 pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE; fileno(stream: *mut ::FILE) -> ::c_int602 pub fn fileno(stream: *mut ::FILE) -> ::c_int; open(path: *const c_char, oflag: ::c_int, ...) -> ::c_int603 pub fn open(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; creat(path: *const c_char, mode: mode_t) -> ::c_int604 pub fn creat(path: *const c_char, mode: mode_t) -> ::c_int; fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int605 pub fn fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int; opendir(dirname: *const c_char) -> *mut ::DIR606 pub fn opendir(dirname: *const c_char) -> *mut ::DIR; fdopendir(fd: ::c_int) -> *mut ::DIR607 pub fn fdopendir(fd: ::c_int) -> *mut ::DIR; readdir(dirp: *mut ::DIR) -> *mut ::dirent608 pub fn readdir(dirp: *mut ::DIR) -> *mut ::dirent; closedir(dirp: *mut ::DIR) -> ::c_int609 pub fn closedir(dirp: *mut ::DIR) -> ::c_int; rewinddir(dirp: *mut ::DIR)610 pub fn rewinddir(dirp: *mut ::DIR); dirfd(dirp: *mut ::DIR) -> ::c_int611 pub fn dirfd(dirp: *mut ::DIR) -> ::c_int; seekdir(dirp: *mut ::DIR, loc: ::c_long)612 pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); telldir(dirp: *mut ::DIR) -> ::c_long613 pub fn telldir(dirp: *mut ::DIR) -> ::c_long; 614 openat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int, ...) -> ::c_int615 pub fn openat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int, ...) -> ::c_int; fstatat( dirfd: ::c_int, pathname: *const ::c_char, buf: *mut stat, flags: ::c_int, ) -> ::c_int616 pub fn fstatat( 617 dirfd: ::c_int, 618 pathname: *const ::c_char, 619 buf: *mut stat, 620 flags: ::c_int, 621 ) -> ::c_int; linkat( olddirfd: ::c_int, oldpath: *const ::c_char, newdirfd: ::c_int, newpath: *const ::c_char, flags: ::c_int, ) -> ::c_int622 pub fn linkat( 623 olddirfd: ::c_int, 624 oldpath: *const ::c_char, 625 newdirfd: ::c_int, 626 newpath: *const ::c_char, 627 flags: ::c_int, 628 ) -> ::c_int; mkdirat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int629 pub fn mkdirat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int; readlinkat( dirfd: ::c_int, pathname: *const ::c_char, buf: *mut ::c_char, bufsiz: ::size_t, ) -> ::ssize_t630 pub fn readlinkat( 631 dirfd: ::c_int, 632 pathname: *const ::c_char, 633 buf: *mut ::c_char, 634 bufsiz: ::size_t, 635 ) -> ::ssize_t; renameat( olddirfd: ::c_int, oldpath: *const ::c_char, newdirfd: ::c_int, newpath: *const ::c_char, ) -> ::c_int636 pub fn renameat( 637 olddirfd: ::c_int, 638 oldpath: *const ::c_char, 639 newdirfd: ::c_int, 640 newpath: *const ::c_char, 641 ) -> ::c_int; symlinkat( target: *const ::c_char, newdirfd: ::c_int, linkpath: *const ::c_char, ) -> ::c_int642 pub fn symlinkat( 643 target: *const ::c_char, 644 newdirfd: ::c_int, 645 linkpath: *const ::c_char, 646 ) -> ::c_int; unlinkat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int) -> ::c_int647 pub fn unlinkat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int) -> ::c_int; 648 access(path: *const c_char, amode: ::c_int) -> ::c_int649 pub fn access(path: *const c_char, amode: ::c_int) -> ::c_int; close(fd: ::c_int) -> ::c_int650 pub fn close(fd: ::c_int) -> ::c_int; fpathconf(filedes: ::c_int, name: ::c_int) -> c_long651 pub fn fpathconf(filedes: ::c_int, name: ::c_int) -> c_long; getopt(argc: ::c_int, argv: *const *mut c_char, optstr: *const c_char) -> ::c_int652 pub fn getopt(argc: ::c_int, argv: *const *mut c_char, optstr: *const c_char) -> ::c_int; isatty(fd: ::c_int) -> ::c_int653 pub fn isatty(fd: ::c_int) -> ::c_int; link(src: *const c_char, dst: *const c_char) -> ::c_int654 pub fn link(src: *const c_char, dst: *const c_char) -> ::c_int; lseek(fd: ::c_int, offset: off_t, whence: ::c_int) -> off_t655 pub fn lseek(fd: ::c_int, offset: off_t, whence: ::c_int) -> off_t; pathconf(path: *const c_char, name: ::c_int) -> c_long656 pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long; rmdir(path: *const c_char) -> ::c_int657 pub fn rmdir(path: *const c_char) -> ::c_int; sleep(secs: ::c_uint) -> ::c_uint658 pub fn sleep(secs: ::c_uint) -> ::c_uint; unlink(c: *const c_char) -> ::c_int659 pub fn unlink(c: *const c_char) -> ::c_int; pread(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t660 pub fn pread(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t; pwrite(fd: ::c_int, buf: *const ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t661 pub fn pwrite(fd: ::c_int, buf: *const ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t; 662 lstat(path: *const c_char, buf: *mut stat) -> ::c_int663 pub fn lstat(path: *const c_char, buf: *mut stat) -> ::c_int; 664 fsync(fd: ::c_int) -> ::c_int665 pub fn fsync(fd: ::c_int) -> ::c_int; fdatasync(fd: ::c_int) -> ::c_int666 pub fn fdatasync(fd: ::c_int) -> ::c_int; 667 symlink(path1: *const c_char, path2: *const c_char) -> ::c_int668 pub fn symlink(path1: *const c_char, path2: *const c_char) -> ::c_int; 669 truncate(path: *const c_char, length: off_t) -> ::c_int670 pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; ftruncate(fd: ::c_int, length: off_t) -> ::c_int671 pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int; 672 getrusage(resource: ::c_int, usage: *mut rusage) -> ::c_int673 pub fn getrusage(resource: ::c_int, usage: *mut rusage) -> ::c_int; 674 gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int675 pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; times(buf: *mut ::tms) -> ::clock_t676 pub fn times(buf: *mut ::tms) -> ::clock_t; 677 strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int678 pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; 679 usleep(secs: ::c_uint) -> ::c_int680 pub fn usleep(secs: ::c_uint) -> ::c_int; send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t681 pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t; recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t682 pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t; poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int683 pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int; setlocale(category: ::c_int, locale: *const ::c_char) -> *mut ::c_char684 pub fn setlocale(category: ::c_int, locale: *const ::c_char) -> *mut ::c_char; localeconv() -> *mut lconv685 pub fn localeconv() -> *mut lconv; 686 readlink(path: *const c_char, buf: *mut c_char, bufsz: ::size_t) -> ::ssize_t687 pub fn readlink(path: *const c_char, buf: *mut c_char, bufsz: ::size_t) -> ::ssize_t; 688 timegm(tm: *mut ::tm) -> time_t689 pub fn timegm(tm: *mut ::tm) -> time_t; 690 sysconf(name: ::c_int) -> ::c_long691 pub fn sysconf(name: ::c_int) -> ::c_long; 692 ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int693 pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int; 694 fseeko(stream: *mut ::FILE, offset: ::off_t, whence: ::c_int) -> ::c_int695 pub fn fseeko(stream: *mut ::FILE, offset: ::off_t, whence: ::c_int) -> ::c_int; ftello(stream: *mut ::FILE) -> ::off_t696 pub fn ftello(stream: *mut ::FILE) -> ::off_t; posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int697 pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; 698 strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char699 pub fn strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char; getline(lineptr: *mut *mut c_char, n: *mut size_t, stream: *mut FILE) -> ssize_t700 pub fn getline(lineptr: *mut *mut c_char, n: *mut size_t, stream: *mut FILE) -> ssize_t; 701 faccessat( dirfd: ::c_int, pathname: *const ::c_char, mode: ::c_int, flags: ::c_int, ) -> ::c_int702 pub fn faccessat( 703 dirfd: ::c_int, 704 pathname: *const ::c_char, 705 mode: ::c_int, 706 flags: ::c_int, 707 ) -> ::c_int; writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t708 pub fn writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; readv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t709 pub fn readv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t710 pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) 711 -> ::ssize_t; preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t712 pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t; posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int713 pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int; futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int714 pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int; utimensat( dirfd: ::c_int, path: *const ::c_char, times: *const ::timespec, flag: ::c_int, ) -> ::c_int715 pub fn utimensat( 716 dirfd: ::c_int, 717 path: *const ::c_char, 718 times: *const ::timespec, 719 flag: ::c_int, 720 ) -> ::c_int; getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int721 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void722 pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void; abs(i: c_int) -> c_int723 pub fn abs(i: c_int) -> c_int; labs(i: c_long) -> c_long724 pub fn labs(i: c_long) -> c_long; duplocale(base: ::locale_t) -> ::locale_t725 pub fn duplocale(base: ::locale_t) -> ::locale_t; freelocale(loc: ::locale_t)726 pub fn freelocale(loc: ::locale_t); newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t727 pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; uselocale(loc: ::locale_t) -> ::locale_t728 pub fn uselocale(loc: ::locale_t) -> ::locale_t; sched_yield() -> ::c_int729 pub fn sched_yield() -> ::c_int; getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char730 pub fn getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char; chdir(dir: *const c_char) -> ::c_int731 pub fn chdir(dir: *const c_char) -> ::c_int; 732 nl_langinfo(item: ::nl_item) -> *mut ::c_char733 pub fn nl_langinfo(item: ::nl_item) -> *mut ::c_char; nl_langinfo_l(item: ::nl_item, loc: ::locale_t) -> *mut ::c_char734 pub fn nl_langinfo_l(item: ::nl_item, loc: ::locale_t) -> *mut ::c_char; 735 __wasilibc_register_preopened_fd(fd: c_int, path: *const c_char) -> c_int736 pub fn __wasilibc_register_preopened_fd(fd: c_int, path: *const c_char) -> c_int; __wasilibc_fd_renumber(fd: c_int, newfd: c_int) -> c_int737 pub fn __wasilibc_fd_renumber(fd: c_int, newfd: c_int) -> c_int; __wasilibc_unlinkat(fd: c_int, path: *const c_char) -> c_int738 pub fn __wasilibc_unlinkat(fd: c_int, path: *const c_char) -> c_int; __wasilibc_rmdirat(fd: c_int, path: *const c_char) -> c_int739 pub fn __wasilibc_rmdirat(fd: c_int, path: *const c_char) -> c_int; __wasilibc_find_relpath( path: *const c_char, abs_prefix: *mut *const c_char, relative_path: *mut *mut c_char, relative_path_len: usize, ) -> c_int740 pub fn __wasilibc_find_relpath( 741 path: *const c_char, 742 abs_prefix: *mut *const c_char, 743 relative_path: *mut *mut c_char, 744 relative_path_len: usize, 745 ) -> c_int; __wasilibc_tell(fd: c_int) -> ::off_t746 pub fn __wasilibc_tell(fd: c_int) -> ::off_t; __wasilibc_nocwd___wasilibc_unlinkat(dirfd: c_int, path: *const c_char) -> c_int747 pub fn __wasilibc_nocwd___wasilibc_unlinkat(dirfd: c_int, path: *const c_char) -> c_int; __wasilibc_nocwd___wasilibc_rmdirat(dirfd: c_int, path: *const c_char) -> c_int748 pub fn __wasilibc_nocwd___wasilibc_rmdirat(dirfd: c_int, path: *const c_char) -> c_int; __wasilibc_nocwd_linkat( olddirfd: c_int, oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, flags: c_int, ) -> c_int749 pub fn __wasilibc_nocwd_linkat( 750 olddirfd: c_int, 751 oldpath: *const c_char, 752 newdirfd: c_int, 753 newpath: *const c_char, 754 flags: c_int, 755 ) -> c_int; __wasilibc_nocwd_symlinkat( target: *const c_char, dirfd: c_int, path: *const c_char, ) -> c_int756 pub fn __wasilibc_nocwd_symlinkat( 757 target: *const c_char, 758 dirfd: c_int, 759 path: *const c_char, 760 ) -> c_int; __wasilibc_nocwd_readlinkat( dirfd: c_int, path: *const c_char, buf: *mut c_char, bufsize: usize, ) -> isize761 pub fn __wasilibc_nocwd_readlinkat( 762 dirfd: c_int, 763 path: *const c_char, 764 buf: *mut c_char, 765 bufsize: usize, 766 ) -> isize; __wasilibc_nocwd_faccessat( dirfd: c_int, path: *const c_char, mode: c_int, flags: c_int, ) -> c_int767 pub fn __wasilibc_nocwd_faccessat( 768 dirfd: c_int, 769 path: *const c_char, 770 mode: c_int, 771 flags: c_int, 772 ) -> c_int; __wasilibc_nocwd_renameat( olddirfd: c_int, oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, ) -> c_int773 pub fn __wasilibc_nocwd_renameat( 774 olddirfd: c_int, 775 oldpath: *const c_char, 776 newdirfd: c_int, 777 newpath: *const c_char, 778 ) -> c_int; __wasilibc_nocwd_openat_nomode(dirfd: c_int, path: *const c_char, flags: c_int) -> c_int779 pub fn __wasilibc_nocwd_openat_nomode(dirfd: c_int, path: *const c_char, flags: c_int) 780 -> c_int; __wasilibc_nocwd_fstatat( dirfd: c_int, path: *const c_char, buf: *mut stat, flags: c_int, ) -> c_int781 pub fn __wasilibc_nocwd_fstatat( 782 dirfd: c_int, 783 path: *const c_char, 784 buf: *mut stat, 785 flags: c_int, 786 ) -> c_int; __wasilibc_nocwd_mkdirat_nomode(dirfd: c_int, path: *const c_char) -> c_int787 pub fn __wasilibc_nocwd_mkdirat_nomode(dirfd: c_int, path: *const c_char) -> c_int; __wasilibc_nocwd_utimensat( dirfd: c_int, path: *const c_char, times: *const ::timespec, flags: c_int, ) -> c_int788 pub fn __wasilibc_nocwd_utimensat( 789 dirfd: c_int, 790 path: *const c_char, 791 times: *const ::timespec, 792 flags: c_int, 793 ) -> c_int; __wasilibc_nocwd_opendirat(dirfd: c_int, path: *const c_char) -> *mut ::DIR794 pub fn __wasilibc_nocwd_opendirat(dirfd: c_int, path: *const c_char) -> *mut ::DIR; __wasilibc_access(pathname: *const c_char, mode: c_int, flags: c_int) -> c_int795 pub fn __wasilibc_access(pathname: *const c_char, mode: c_int, flags: c_int) -> c_int; __wasilibc_stat(pathname: *const c_char, buf: *mut stat, flags: c_int) -> c_int796 pub fn __wasilibc_stat(pathname: *const c_char, buf: *mut stat, flags: c_int) -> c_int; __wasilibc_utimens( pathname: *const c_char, times: *const ::timespec, flags: c_int, ) -> c_int797 pub fn __wasilibc_utimens( 798 pathname: *const c_char, 799 times: *const ::timespec, 800 flags: c_int, 801 ) -> c_int; __wasilibc_link(oldpath: *const c_char, newpath: *const c_char, flags: c_int) -> c_int802 pub fn __wasilibc_link(oldpath: *const c_char, newpath: *const c_char, flags: c_int) -> c_int; __wasilibc_link_oldat( olddirfd: c_int, oldpath: *const c_char, newpath: *const c_char, flags: c_int, ) -> c_int803 pub fn __wasilibc_link_oldat( 804 olddirfd: c_int, 805 oldpath: *const c_char, 806 newpath: *const c_char, 807 flags: c_int, 808 ) -> c_int; __wasilibc_link_newat( oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, flags: c_int, ) -> c_int809 pub fn __wasilibc_link_newat( 810 oldpath: *const c_char, 811 newdirfd: c_int, 812 newpath: *const c_char, 813 flags: c_int, 814 ) -> c_int; __wasilibc_rename_oldat( olddirfd: c_int, oldpath: *const c_char, newpath: *const c_char, ) -> c_int815 pub fn __wasilibc_rename_oldat( 816 olddirfd: c_int, 817 oldpath: *const c_char, 818 newpath: *const c_char, 819 ) -> c_int; __wasilibc_rename_newat( oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, ) -> c_int820 pub fn __wasilibc_rename_newat( 821 oldpath: *const c_char, 822 newdirfd: c_int, 823 newpath: *const c_char, 824 ) -> c_int; 825 arc4random() -> u32826 pub fn arc4random() -> u32; arc4random_buf(a: *mut c_void, b: size_t)827 pub fn arc4random_buf(a: *mut c_void, b: size_t); arc4random_uniform(a: u32) -> u32828 pub fn arc4random_uniform(a: u32) -> u32; 829 __errno_location() -> *mut ::c_int830 pub fn __errno_location() -> *mut ::c_int; 831 } 832