1 pub use ffi::c_void; 2 3 pub type c_char = i8; 4 pub type c_uchar = u8; 5 pub type c_schar = i8; 6 pub type c_int = i32; 7 pub type c_uint = u32; 8 pub type c_short = i16; 9 pub type c_ushort = u16; 10 pub type c_long = i32; 11 pub type c_ulong = u32; 12 pub type c_longlong = i64; 13 pub type c_ulonglong = u64; 14 pub type intmax_t = i64; 15 pub type uintmax_t = u64; 16 pub type size_t = usize; 17 pub type ssize_t = isize; 18 pub type ptrdiff_t = isize; 19 pub type intptr_t = isize; 20 pub type uintptr_t = usize; 21 pub type off_t = i64; 22 pub type pid_t = i32; 23 pub type clock_t = c_longlong; 24 pub type time_t = c_longlong; 25 pub type c_double = f64; 26 pub type c_float = f32; 27 pub type ino_t = u64; 28 pub type sigset_t = c_uchar; 29 pub type suseconds_t = c_longlong; 30 pub type mode_t = u32; 31 pub type dev_t = u64; 32 pub type uid_t = u32; 33 pub type gid_t = u32; 34 pub type nlink_t = u64; 35 pub type blksize_t = c_long; 36 pub type blkcnt_t = i64; 37 pub type nfds_t = c_ulong; 38 pub type wchar_t = i32; 39 40 pub type __wasi_rights_t = u64; 41 42 #[allow(missing_copy_implementations)] 43 #[cfg_attr(feature = "extra_traits", derive(Debug))] 44 pub enum FILE {} 45 #[allow(missing_copy_implementations)] 46 #[cfg_attr(feature = "extra_traits", derive(Debug))] 47 pub enum DIR {} 48 #[allow(missing_copy_implementations)] 49 #[cfg_attr(feature = "extra_traits", derive(Debug))] 50 pub enum __locale_struct {} 51 52 pub type locale_t = *mut __locale_struct; 53 54 s_paren! { 55 // in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct), 56 // but that's an implementation detail that we don't want to have to deal with 57 #[repr(transparent)] 58 pub struct clockid_t(*const u8); 59 } 60 61 unsafe impl Send for clockid_t {} 62 unsafe impl Sync for clockid_t {} 63 64 s! { 65 #[repr(align(8))] 66 pub struct fpos_t { 67 data: [u8; 16], 68 } 69 70 pub struct tm { 71 pub tm_sec: c_int, 72 pub tm_min: c_int, 73 pub tm_hour: c_int, 74 pub tm_mday: c_int, 75 pub tm_mon: c_int, 76 pub tm_year: c_int, 77 pub tm_wday: c_int, 78 pub tm_yday: c_int, 79 pub tm_isdst: c_int, 80 pub __tm_gmtoff: c_int, 81 pub __tm_zone: *const c_char, 82 pub __tm_nsec: c_int, 83 } 84 85 pub struct timeval { 86 pub tv_sec: time_t, 87 pub tv_usec: suseconds_t, 88 } 89 90 pub struct timespec { 91 pub tv_sec: time_t, 92 pub tv_nsec: c_long, 93 } 94 95 pub struct tms { 96 pub tms_utime: clock_t, 97 pub tms_stime: clock_t, 98 pub tms_cutime: clock_t, 99 pub tms_cstime: clock_t, 100 } 101 102 pub struct itimerspec { 103 pub it_interval: timespec, 104 pub it_value: timespec, 105 } 106 107 pub struct iovec { 108 pub iov_base: *mut c_void, 109 pub iov_len: size_t, 110 } 111 112 pub struct lconv { 113 pub decimal_point: *mut c_char, 114 pub thousands_sep: *mut c_char, 115 pub grouping: *mut c_char, 116 pub int_curr_symbol: *mut c_char, 117 pub currency_symbol: *mut c_char, 118 pub mon_decimal_point: *mut c_char, 119 pub mon_thousands_sep: *mut c_char, 120 pub mon_grouping: *mut c_char, 121 pub positive_sign: *mut c_char, 122 pub negative_sign: *mut c_char, 123 pub int_frac_digits: c_char, 124 pub frac_digits: c_char, 125 pub p_cs_precedes: c_char, 126 pub p_sep_by_space: c_char, 127 pub n_cs_precedes: c_char, 128 pub n_sep_by_space: c_char, 129 pub p_sign_posn: c_char, 130 pub n_sign_posn: c_char, 131 pub int_p_cs_precedes: c_char, 132 pub int_p_sep_by_space: c_char, 133 pub int_n_cs_precedes: c_char, 134 pub int_n_sep_by_space: c_char, 135 pub int_p_sign_posn: c_char, 136 pub int_n_sign_posn: c_char, 137 } 138 139 pub struct pollfd { 140 pub fd: c_int, 141 pub events: c_short, 142 pub revents: c_short, 143 } 144 145 pub struct rusage { 146 pub ru_utime: timeval, 147 pub ru_stime: timeval, 148 } 149 150 pub struct stat { 151 pub st_dev: dev_t, 152 pub st_ino: ino_t, 153 pub st_nlink: nlink_t, 154 pub st_mode: mode_t, 155 pub st_uid: uid_t, 156 pub st_gid: gid_t, 157 __pad0: c_uint, 158 pub st_rdev: dev_t, 159 pub st_size: off_t, 160 pub st_blksize: blksize_t, 161 pub st_blocks: blkcnt_t, 162 pub st_atim: timespec, 163 pub st_mtim: timespec, 164 pub st_ctim: timespec, 165 __reserved: [c_longlong; 3], 166 } 167 } 168 169 // Declare dirent outside of s! so that it doesn't implement Copy, Eq, Hash, 170 // etc., since it contains a flexible array member with a dynamic size. 171 #[repr(C)] 172 #[allow(missing_copy_implementations)] 173 #[cfg_attr(feature = "extra_traits", derive(Debug))] 174 pub struct dirent { 175 pub d_ino: ino_t, 176 pub d_type: c_uchar, 177 /// d_name is declared in WASI libc as a flexible array member, which 178 /// can't be directly expressed in Rust. As an imperfect workaround, 179 /// declare it as a zero-length array instead. 180 pub d_name: [c_char; 0], 181 } 182 183 pub const EXIT_SUCCESS: c_int = 0; 184 pub const EXIT_FAILURE: c_int = 1; 185 pub const STDIN_FILENO: c_int = 0; 186 pub const STDOUT_FILENO: c_int = 1; 187 pub const STDERR_FILENO: c_int = 2; 188 pub const SEEK_SET: c_int = 0; 189 pub const SEEK_CUR: c_int = 1; 190 pub const SEEK_END: c_int = 2; 191 pub const _IOFBF: c_int = 0; 192 pub const _IONBF: c_int = 2; 193 pub const _IOLBF: c_int = 1; 194 pub const F_GETFD: c_int = 1; 195 pub const F_SETFD: c_int = 2; 196 pub const F_GETFL: c_int = 3; 197 pub const F_SETFL: c_int = 4; 198 pub const FD_CLOEXEC: c_int = 1; 199 pub const FD_SETSIZE: size_t = 1024; 200 pub const O_APPEND: c_int = 0x0001; 201 pub const O_DSYNC: c_int = 0x0002; 202 pub const O_NONBLOCK: c_int = 0x0004; 203 pub const O_RSYNC: c_int = 0x0008; 204 pub const O_SYNC: c_int = 0x0010; 205 pub const O_CREAT: c_int = 0x0001 << 12; 206 pub const O_DIRECTORY: c_int = 0x0002 << 12; 207 pub const O_EXCL: c_int = 0x0004 << 12; 208 pub const O_TRUNC: c_int = 0x0008 << 12; 209 pub const O_NOFOLLOW: c_int = 0x01000000; 210 pub const O_EXEC: c_int = 0x02000000; 211 pub const O_RDONLY: c_int = 0x04000000; 212 pub const O_SEARCH: c_int = 0x08000000; 213 pub const O_WRONLY: c_int = 0x10000000; 214 pub const O_CLOEXEC: c_int = 0x0; 215 pub const O_RDWR: c_int = O_WRONLY | O_RDONLY; 216 pub const O_ACCMODE: c_int = O_EXEC | O_RDWR | O_SEARCH; 217 pub const O_NOCTTY: c_int = 0x0; 218 pub const POSIX_FADV_DONTNEED: c_int = 4; 219 pub const POSIX_FADV_NOREUSE: c_int = 5; 220 pub const POSIX_FADV_NORMAL: c_int = 0; 221 pub const POSIX_FADV_RANDOM: c_int = 2; 222 pub const POSIX_FADV_SEQUENTIAL: c_int = 1; 223 pub const POSIX_FADV_WILLNEED: c_int = 3; 224 pub const AT_FDCWD: ::c_int = -2; 225 pub const AT_EACCESS: c_int = 0x0; 226 pub const AT_SYMLINK_NOFOLLOW: c_int = 0x1; 227 pub const AT_SYMLINK_FOLLOW: c_int = 0x2; 228 pub const AT_REMOVEDIR: c_int = 0x4; 229 pub const UTIME_OMIT: c_long = 0xfffffffe; 230 pub const UTIME_NOW: c_long = 0xffffffff; 231 pub const S_IFIFO: mode_t = 49152; 232 pub const S_IFCHR: mode_t = 8192; 233 pub const S_IFBLK: mode_t = 24576; 234 pub const S_IFDIR: mode_t = 16384; 235 pub const S_IFREG: mode_t = 32768; 236 pub const S_IFLNK: mode_t = 40960; 237 pub const S_IFSOCK: mode_t = 49152; 238 pub const S_IFMT: mode_t = 57344; 239 pub const S_IXOTH: mode_t = 0x1; 240 pub const S_IWOTH: mode_t = 0x2; 241 pub const S_IROTH: mode_t = 0x4; 242 pub const S_IXGRP: mode_t = 0x8; 243 pub const S_IWGRP: mode_t = 0x10; 244 pub const S_IRGRP: mode_t = 0x20; 245 pub const S_IXUSR: mode_t = 0x40; 246 pub const S_IWUSR: mode_t = 0x80; 247 pub const S_IRUSR: mode_t = 0x100; 248 pub const S_ISVTX: mode_t = 0x200; 249 pub const S_ISGID: mode_t = 0x400; 250 pub const S_ISUID: mode_t = 0x800; 251 pub const DT_UNKNOWN: u8 = 0; 252 pub const DT_BLK: u8 = 1; 253 pub const DT_CHR: u8 = 2; 254 pub const DT_DIR: u8 = 3; 255 pub const DT_REG: u8 = 4; 256 pub const DT_LNK: u8 = 7; 257 pub const FIONREAD: c_int = 1; 258 pub const FIONBIO: c_int = 2; 259 pub const F_OK: ::c_int = 0; 260 pub const R_OK: ::c_int = 4; 261 pub const W_OK: ::c_int = 2; 262 pub const X_OK: ::c_int = 1; 263 pub const POLLIN: ::c_short = 0x1; 264 pub const POLLOUT: ::c_short = 0x2; 265 pub const POLLERR: ::c_short = 0x1000; 266 pub const POLLHUP: ::c_short = 0x2000; 267 pub const POLLNVAL: ::c_short = 0x4000; 268 pub const POLLRDNORM: ::c_short = 0x1; 269 pub const POLLWRNORM: ::c_short = 0x2; 270 271 pub const E2BIG: c_int = 1; 272 pub const EACCES: c_int = 2; 273 pub const EADDRINUSE: c_int = 3; 274 pub const EADDRNOTAVAIL: c_int = 4; 275 pub const EAFNOSUPPORT: c_int = 5; 276 pub const EAGAIN: c_int = 6; 277 pub const EALREADY: c_int = 7; 278 pub const EBADF: c_int = 8; 279 pub const EBADMSG: c_int = 9; 280 pub const EBUSY: c_int = 10; 281 pub const ECANCELED: c_int = 11; 282 pub const ECHILD: c_int = 12; 283 pub const ECONNABORTED: c_int = 13; 284 pub const ECONNREFUSED: c_int = 14; 285 pub const ECONNRESET: c_int = 15; 286 pub const EDEADLK: c_int = 16; 287 pub const EDESTADDRREQ: c_int = 17; 288 pub const EDOM: c_int = 18; 289 pub const EDQUOT: c_int = 19; 290 pub const EEXIST: c_int = 20; 291 pub const EFAULT: c_int = 21; 292 pub const EFBIG: c_int = 22; 293 pub const EHOSTUNREACH: c_int = 23; 294 pub const EIDRM: c_int = 24; 295 pub const EILSEQ: c_int = 25; 296 pub const EINPROGRESS: c_int = 26; 297 pub const EINTR: c_int = 27; 298 pub const EINVAL: c_int = 28; 299 pub const EIO: c_int = 29; 300 pub const EISCONN: c_int = 30; 301 pub const EISDIR: c_int = 31; 302 pub const ELOOP: c_int = 32; 303 pub const EMFILE: c_int = 33; 304 pub const EMLINK: c_int = 34; 305 pub const EMSGSIZE: c_int = 35; 306 pub const EMULTIHOP: c_int = 36; 307 pub const ENAMETOOLONG: c_int = 37; 308 pub const ENETDOWN: c_int = 38; 309 pub const ENETRESET: c_int = 39; 310 pub const ENETUNREACH: c_int = 40; 311 pub const ENFILE: c_int = 41; 312 pub const ENOBUFS: c_int = 42; 313 pub const ENODEV: c_int = 43; 314 pub const ENOENT: c_int = 44; 315 pub const ENOEXEC: c_int = 45; 316 pub const ENOLCK: c_int = 46; 317 pub const ENOLINK: c_int = 47; 318 pub const ENOMEM: c_int = 48; 319 pub const ENOMSG: c_int = 49; 320 pub const ENOPROTOOPT: c_int = 50; 321 pub const ENOSPC: c_int = 51; 322 pub const ENOSYS: c_int = 52; 323 pub const ENOTCONN: c_int = 53; 324 pub const ENOTDIR: c_int = 54; 325 pub const ENOTEMPTY: c_int = 55; 326 pub const ENOTRECOVERABLE: c_int = 56; 327 pub const ENOTSOCK: c_int = 57; 328 pub const ENOTSUP: c_int = 58; 329 pub const ENOTTY: c_int = 59; 330 pub const ENXIO: c_int = 60; 331 pub const EOVERFLOW: c_int = 61; 332 pub const EOWNERDEAD: c_int = 62; 333 pub const EPERM: c_int = 63; 334 pub const EPIPE: c_int = 64; 335 pub const EPROTO: c_int = 65; 336 pub const EPROTONOSUPPORT: c_int = 66; 337 pub const EPROTOTYPE: c_int = 67; 338 pub const ERANGE: c_int = 68; 339 pub const EROFS: c_int = 69; 340 pub const ESPIPE: c_int = 70; 341 pub const ESRCH: c_int = 71; 342 pub const ESTALE: c_int = 72; 343 pub const ETIMEDOUT: c_int = 73; 344 pub const ETXTBSY: c_int = 74; 345 pub const EXDEV: c_int = 75; 346 pub const ENOTCAPABLE: c_int = 76; 347 pub const EOPNOTSUPP: c_int = ENOTSUP; 348 pub const EWOULDBLOCK: c_int = EAGAIN; 349 350 pub const _SC_PAGESIZE: c_int = 30; 351 pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE; 352 pub const _SC_IOV_MAX: c_int = 60; 353 pub const _SC_SYMLOOP_MAX: c_int = 173; 354 355 pub static CLOCK_MONOTONIC: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_MONOTONIC)) }; 356 pub static CLOCK_PROCESS_CPUTIME_ID: clockid_t = 357 unsafe { clockid_t(ptr_addr_of!(_CLOCK_PROCESS_CPUTIME_ID)) }; 358 pub static CLOCK_REALTIME: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_REALTIME)) }; 359 pub static CLOCK_THREAD_CPUTIME_ID: clockid_t = 360 unsafe { clockid_t(ptr_addr_of!(_CLOCK_THREAD_CPUTIME_ID)) }; 361 362 #[cfg_attr( 363 feature = "rustc-dep-of-std", 364 link( 365 name = "c", 366 kind = "static", 367 modifiers = "-bundle", 368 cfg(target_feature = "crt-static") 369 ) 370 )] 371 #[cfg_attr( 372 feature = "rustc-dep-of-std", 373 link(name = "c", cfg(not(target_feature = "crt-static"))) 374 )] 375 extern "C" { _Exit(code: c_int) -> !376 pub fn _Exit(code: c_int) -> !; _exit(code: c_int) -> !377 pub fn _exit(code: c_int) -> !; abort() -> !378 pub fn abort() -> !; aligned_alloc(a: size_t, b: size_t) -> *mut c_void379 pub fn aligned_alloc(a: size_t, b: size_t) -> *mut c_void; calloc(amt: size_t, amt2: size_t) -> *mut c_void380 pub fn calloc(amt: size_t, amt2: size_t) -> *mut c_void; exit(code: c_int) -> !381 pub fn exit(code: c_int) -> !; free(ptr: *mut c_void)382 pub fn free(ptr: *mut c_void); getenv(s: *const c_char) -> *mut c_char383 pub fn getenv(s: *const c_char) -> *mut c_char; malloc(amt: size_t) -> *mut c_void384 pub fn malloc(amt: size_t) -> *mut c_void; malloc_usable_size(ptr: *mut c_void) -> size_t385 pub fn malloc_usable_size(ptr: *mut c_void) -> size_t; sbrk(increment: ::intptr_t) -> *mut ::c_void386 pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void; rand() -> c_int387 pub fn rand() -> c_int; read(fd: c_int, ptr: *mut c_void, size: size_t) -> ssize_t388 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_void389 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_int390 pub fn setenv(k: *const c_char, v: *const c_char, a: c_int) -> c_int; unsetenv(k: *const c_char) -> c_int391 pub fn unsetenv(k: *const c_char) -> c_int; clearenv() -> ::c_int392 pub fn clearenv() -> ::c_int; write(fd: c_int, ptr: *const c_void, size: size_t) -> ssize_t393 pub fn write(fd: c_int, ptr: *const c_void, size: size_t) -> ssize_t; 394 pub static mut environ: *mut *mut c_char; fopen(a: *const c_char, b: *const c_char) -> *mut FILE395 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 FILE396 pub fn freopen(a: *const c_char, b: *const c_char, f: *mut FILE) -> *mut FILE; fclose(f: *mut FILE) -> c_int397 pub fn fclose(f: *mut FILE) -> c_int; remove(a: *const c_char) -> c_int398 pub fn remove(a: *const c_char) -> c_int; rename(a: *const c_char, b: *const c_char) -> c_int399 pub fn rename(a: *const c_char, b: *const c_char) -> c_int; feof(f: *mut FILE) -> c_int400 pub fn feof(f: *mut FILE) -> c_int; ferror(f: *mut FILE) -> c_int401 pub fn ferror(f: *mut FILE) -> c_int; fflush(f: *mut FILE) -> c_int402 pub fn fflush(f: *mut FILE) -> c_int; clearerr(f: *mut FILE)403 pub fn clearerr(f: *mut FILE); fseek(f: *mut FILE, b: c_long, c: c_int) -> c_int404 pub fn fseek(f: *mut FILE, b: c_long, c: c_int) -> c_int; ftell(f: *mut FILE) -> c_long405 pub fn ftell(f: *mut FILE) -> c_long; rewind(f: *mut FILE)406 pub fn rewind(f: *mut FILE); fgetpos(f: *mut FILE, pos: *mut fpos_t) -> c_int407 pub fn fgetpos(f: *mut FILE, pos: *mut fpos_t) -> c_int; fsetpos(f: *mut FILE, pos: *const fpos_t) -> c_int408 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_t409 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_t410 pub fn fwrite(buf: *const c_void, a: size_t, b: size_t, f: *mut FILE) -> size_t; fgetc(f: *mut FILE) -> c_int411 pub fn fgetc(f: *mut FILE) -> c_int; getc(f: *mut FILE) -> c_int412 pub fn getc(f: *mut FILE) -> c_int; getchar() -> c_int413 pub fn getchar() -> c_int; ungetc(a: c_int, f: *mut FILE) -> c_int414 pub fn ungetc(a: c_int, f: *mut FILE) -> c_int; fputc(a: c_int, f: *mut FILE) -> c_int415 pub fn fputc(a: c_int, f: *mut FILE) -> c_int; putc(a: c_int, f: *mut FILE) -> c_int416 pub fn putc(a: c_int, f: *mut FILE) -> c_int; putchar(a: c_int) -> c_int417 pub fn putchar(a: c_int) -> c_int; fputs(a: *const c_char, f: *mut FILE) -> c_int418 pub fn fputs(a: *const c_char, f: *mut FILE) -> c_int; puts(a: *const c_char) -> c_int419 pub fn puts(a: *const c_char) -> c_int; perror(a: *const c_char)420 pub fn perror(a: *const c_char); srand(a: c_uint)421 pub fn srand(a: c_uint); atexit(a: extern "C" fn()) -> c_int422 pub fn atexit(a: extern "C" fn()) -> c_int; at_quick_exit(a: extern "C" fn()) -> c_int423 pub fn at_quick_exit(a: extern "C" fn()) -> c_int; quick_exit(a: c_int) -> !424 pub fn quick_exit(a: c_int) -> !; posix_memalign(a: *mut *mut c_void, b: size_t, c: size_t) -> c_int425 pub fn posix_memalign(a: *mut *mut c_void, b: size_t, c: size_t) -> c_int; rand_r(a: *mut c_uint) -> c_int426 pub fn rand_r(a: *mut c_uint) -> c_int; random() -> c_long427 pub fn random() -> c_long; srandom(a: c_uint)428 pub fn srandom(a: c_uint); putenv(a: *mut c_char) -> c_int429 pub fn putenv(a: *mut c_char) -> c_int; clock() -> clock_t430 pub fn clock() -> clock_t; time(a: *mut time_t) -> time_t431 pub fn time(a: *mut time_t) -> time_t; difftime(a: time_t, b: time_t) -> c_double432 pub fn difftime(a: time_t, b: time_t) -> c_double; mktime(a: *mut tm) -> time_t433 pub fn mktime(a: *mut tm) -> time_t; strftime(a: *mut c_char, b: size_t, c: *const c_char, d: *const tm) -> size_t434 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 tm435 pub fn gmtime(a: *const time_t) -> *mut tm; gmtime_r(a: *const time_t, b: *mut tm) -> *mut tm436 pub fn gmtime_r(a: *const time_t, b: *mut tm) -> *mut tm; localtime(a: *const time_t) -> *mut tm437 pub fn localtime(a: *const time_t) -> *mut tm; localtime_r(a: *const time_t, b: *mut tm) -> *mut tm438 pub fn localtime_r(a: *const time_t, b: *mut tm) -> *mut tm; asctime_r(a: *const tm, b: *mut c_char) -> *mut c_char439 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_char440 pub fn ctime_r(a: *const time_t, b: *mut c_char) -> *mut c_char; 441 442 static _CLOCK_MONOTONIC: u8; 443 static _CLOCK_PROCESS_CPUTIME_ID: u8; 444 static _CLOCK_REALTIME: u8; 445 static _CLOCK_THREAD_CPUTIME_ID: u8; nanosleep(a: *const timespec, b: *mut timespec) -> c_int446 pub fn nanosleep(a: *const timespec, b: *mut timespec) -> c_int; clock_getres(a: clockid_t, b: *mut timespec) -> c_int447 pub fn clock_getres(a: clockid_t, b: *mut timespec) -> c_int; clock_gettime(a: clockid_t, b: *mut timespec) -> c_int448 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_int449 pub fn clock_nanosleep(a: clockid_t, a2: c_int, b: *const timespec, c: *mut timespec) -> c_int; 450 isalnum(c: c_int) -> c_int451 pub fn isalnum(c: c_int) -> c_int; isalpha(c: c_int) -> c_int452 pub fn isalpha(c: c_int) -> c_int; iscntrl(c: c_int) -> c_int453 pub fn iscntrl(c: c_int) -> c_int; isdigit(c: c_int) -> c_int454 pub fn isdigit(c: c_int) -> c_int; isgraph(c: c_int) -> c_int455 pub fn isgraph(c: c_int) -> c_int; islower(c: c_int) -> c_int456 pub fn islower(c: c_int) -> c_int; isprint(c: c_int) -> c_int457 pub fn isprint(c: c_int) -> c_int; ispunct(c: c_int) -> c_int458 pub fn ispunct(c: c_int) -> c_int; isspace(c: c_int) -> c_int459 pub fn isspace(c: c_int) -> c_int; isupper(c: c_int) -> c_int460 pub fn isupper(c: c_int) -> c_int; isxdigit(c: c_int) -> c_int461 pub fn isxdigit(c: c_int) -> c_int; isblank(c: c_int) -> c_int462 pub fn isblank(c: c_int) -> c_int; tolower(c: c_int) -> c_int463 pub fn tolower(c: c_int) -> c_int; toupper(c: c_int) -> c_int464 pub fn toupper(c: c_int) -> c_int; setvbuf(stream: *mut FILE, buffer: *mut c_char, mode: c_int, size: size_t) -> c_int465 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)466 pub fn setbuf(stream: *mut FILE, buf: *mut c_char); fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char467 pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char; atoi(s: *const c_char) -> c_int468 pub fn atoi(s: *const c_char) -> c_int; atof(s: *const c_char) -> c_double469 pub fn atof(s: *const c_char) -> c_double; strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double470 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_float471 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_long472 pub fn strtol(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_long; strtoul(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulong473 pub fn strtoul(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulong; 474 strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char475 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_char476 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_char477 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_char478 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_int479 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_int480 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_int481 pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int; strchr(cs: *const c_char, c: c_int) -> *mut c_char482 pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char; strrchr(cs: *const c_char, c: c_int) -> *mut c_char483 pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char; strspn(cs: *const c_char, ct: *const c_char) -> size_t484 pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t; strcspn(cs: *const c_char, ct: *const c_char) -> size_t485 pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t; strdup(cs: *const c_char) -> *mut c_char486 pub fn strdup(cs: *const c_char) -> *mut c_char; strndup(cs: *const c_char, n: size_t) -> *mut c_char487 pub fn strndup(cs: *const c_char, n: size_t) -> *mut c_char; strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char488 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_char489 pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char; strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int490 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_int491 pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int; strlen(cs: *const c_char) -> size_t492 pub fn strlen(cs: *const c_char) -> size_t; strnlen(cs: *const c_char, maxlen: size_t) -> size_t493 pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t; strerror(n: c_int) -> *mut c_char494 pub fn strerror(n: c_int) -> *mut c_char; strtok(s: *mut c_char, t: *const c_char) -> *mut c_char495 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_t496 pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t; 497 memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void498 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_int499 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_void500 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_void501 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_void502 pub fn memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void; 503 fprintf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int504 pub fn fprintf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int; printf(format: *const ::c_char, ...) -> ::c_int505 pub fn printf(format: *const ::c_char, ...) -> ::c_int; snprintf(s: *mut ::c_char, n: ::size_t, format: *const ::c_char, ...) -> ::c_int506 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_int507 pub fn sprintf(s: *mut ::c_char, format: *const ::c_char, ...) -> ::c_int; fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int508 pub fn fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int; scanf(format: *const ::c_char, ...) -> ::c_int509 pub fn scanf(format: *const ::c_char, ...) -> ::c_int; sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int510 pub fn sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int; getchar_unlocked() -> ::c_int511 pub fn getchar_unlocked() -> ::c_int; putchar_unlocked(c: ::c_int) -> ::c_int512 pub fn putchar_unlocked(c: ::c_int) -> ::c_int; 513 shutdown(socket: ::c_int, how: ::c_int) -> ::c_int514 pub fn shutdown(socket: ::c_int, how: ::c_int) -> ::c_int; fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int515 pub fn fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int; mkdir(path: *const c_char, mode: mode_t) -> ::c_int516 pub fn mkdir(path: *const c_char, mode: mode_t) -> ::c_int; stat(path: *const c_char, buf: *mut stat) -> ::c_int517 pub fn stat(path: *const c_char, buf: *mut stat) -> ::c_int; fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE518 pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE; fileno(stream: *mut ::FILE) -> ::c_int519 pub fn fileno(stream: *mut ::FILE) -> ::c_int; open(path: *const c_char, oflag: ::c_int, ...) -> ::c_int520 pub fn open(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; creat(path: *const c_char, mode: mode_t) -> ::c_int521 pub fn creat(path: *const c_char, mode: mode_t) -> ::c_int; fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int522 pub fn fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int; opendir(dirname: *const c_char) -> *mut ::DIR523 pub fn opendir(dirname: *const c_char) -> *mut ::DIR; fdopendir(fd: ::c_int) -> *mut ::DIR524 pub fn fdopendir(fd: ::c_int) -> *mut ::DIR; readdir(dirp: *mut ::DIR) -> *mut ::dirent525 pub fn readdir(dirp: *mut ::DIR) -> *mut ::dirent; closedir(dirp: *mut ::DIR) -> ::c_int526 pub fn closedir(dirp: *mut ::DIR) -> ::c_int; rewinddir(dirp: *mut ::DIR)527 pub fn rewinddir(dirp: *mut ::DIR); dirfd(dirp: *mut ::DIR) -> ::c_int528 pub fn dirfd(dirp: *mut ::DIR) -> ::c_int; seekdir(dirp: *mut ::DIR, loc: ::c_long)529 pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); telldir(dirp: *mut ::DIR) -> ::c_long530 pub fn telldir(dirp: *mut ::DIR) -> ::c_long; 531 openat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int, ...) -> ::c_int532 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_int533 pub fn fstatat( 534 dirfd: ::c_int, 535 pathname: *const ::c_char, 536 buf: *mut stat, 537 flags: ::c_int, 538 ) -> ::c_int; linkat( olddirfd: ::c_int, oldpath: *const ::c_char, newdirfd: ::c_int, newpath: *const ::c_char, flags: ::c_int, ) -> ::c_int539 pub fn linkat( 540 olddirfd: ::c_int, 541 oldpath: *const ::c_char, 542 newdirfd: ::c_int, 543 newpath: *const ::c_char, 544 flags: ::c_int, 545 ) -> ::c_int; mkdirat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int546 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_t547 pub fn readlinkat( 548 dirfd: ::c_int, 549 pathname: *const ::c_char, 550 buf: *mut ::c_char, 551 bufsiz: ::size_t, 552 ) -> ::ssize_t; renameat( olddirfd: ::c_int, oldpath: *const ::c_char, newdirfd: ::c_int, newpath: *const ::c_char, ) -> ::c_int553 pub fn renameat( 554 olddirfd: ::c_int, 555 oldpath: *const ::c_char, 556 newdirfd: ::c_int, 557 newpath: *const ::c_char, 558 ) -> ::c_int; symlinkat( target: *const ::c_char, newdirfd: ::c_int, linkpath: *const ::c_char, ) -> ::c_int559 pub fn symlinkat( 560 target: *const ::c_char, 561 newdirfd: ::c_int, 562 linkpath: *const ::c_char, 563 ) -> ::c_int; unlinkat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int) -> ::c_int564 pub fn unlinkat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int) -> ::c_int; 565 access(path: *const c_char, amode: ::c_int) -> ::c_int566 pub fn access(path: *const c_char, amode: ::c_int) -> ::c_int; close(fd: ::c_int) -> ::c_int567 pub fn close(fd: ::c_int) -> ::c_int; fpathconf(filedes: ::c_int, name: ::c_int) -> c_long568 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_int569 pub fn getopt(argc: ::c_int, argv: *const *mut c_char, optstr: *const c_char) -> ::c_int; isatty(fd: ::c_int) -> ::c_int570 pub fn isatty(fd: ::c_int) -> ::c_int; link(src: *const c_char, dst: *const c_char) -> ::c_int571 pub fn link(src: *const c_char, dst: *const c_char) -> ::c_int; lseek(fd: ::c_int, offset: off_t, whence: ::c_int) -> off_t572 pub fn lseek(fd: ::c_int, offset: off_t, whence: ::c_int) -> off_t; pathconf(path: *const c_char, name: ::c_int) -> c_long573 pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long; rmdir(path: *const c_char) -> ::c_int574 pub fn rmdir(path: *const c_char) -> ::c_int; sleep(secs: ::c_uint) -> ::c_uint575 pub fn sleep(secs: ::c_uint) -> ::c_uint; unlink(c: *const c_char) -> ::c_int576 pub fn unlink(c: *const c_char) -> ::c_int; pread(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t577 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_t578 pub fn pwrite(fd: ::c_int, buf: *const ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t; 579 lstat(path: *const c_char, buf: *mut stat) -> ::c_int580 pub fn lstat(path: *const c_char, buf: *mut stat) -> ::c_int; 581 fsync(fd: ::c_int) -> ::c_int582 pub fn fsync(fd: ::c_int) -> ::c_int; fdatasync(fd: ::c_int) -> ::c_int583 pub fn fdatasync(fd: ::c_int) -> ::c_int; 584 symlink(path1: *const c_char, path2: *const c_char) -> ::c_int585 pub fn symlink(path1: *const c_char, path2: *const c_char) -> ::c_int; 586 truncate(path: *const c_char, length: off_t) -> ::c_int587 pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; ftruncate(fd: ::c_int, length: off_t) -> ::c_int588 pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int; 589 getrusage(resource: ::c_int, usage: *mut rusage) -> ::c_int590 pub fn getrusage(resource: ::c_int, usage: *mut rusage) -> ::c_int; 591 gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int592 pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; times(buf: *mut ::tms) -> ::clock_t593 pub fn times(buf: *mut ::tms) -> ::clock_t; 594 strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int595 pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; 596 usleep(secs: ::c_uint) -> ::c_int597 pub fn usleep(secs: ::c_uint) -> ::c_int; send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t598 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_t599 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_int600 pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int; setlocale(category: ::c_int, locale: *const ::c_char) -> *mut ::c_char601 pub fn setlocale(category: ::c_int, locale: *const ::c_char) -> *mut ::c_char; localeconv() -> *mut lconv602 pub fn localeconv() -> *mut lconv; 603 readlink(path: *const c_char, buf: *mut c_char, bufsz: ::size_t) -> ::ssize_t604 pub fn readlink(path: *const c_char, buf: *mut c_char, bufsz: ::size_t) -> ::ssize_t; 605 timegm(tm: *mut ::tm) -> time_t606 pub fn timegm(tm: *mut ::tm) -> time_t; 607 sysconf(name: ::c_int) -> ::c_long608 pub fn sysconf(name: ::c_int) -> ::c_long; 609 ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int610 pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int; 611 fseeko(stream: *mut ::FILE, offset: ::off_t, whence: ::c_int) -> ::c_int612 pub fn fseeko(stream: *mut ::FILE, offset: ::off_t, whence: ::c_int) -> ::c_int; ftello(stream: *mut ::FILE) -> ::off_t613 pub fn ftello(stream: *mut ::FILE) -> ::off_t; posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int614 pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; 615 strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char616 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_t617 pub fn getline(lineptr: *mut *mut c_char, n: *mut size_t, stream: *mut FILE) -> ssize_t; 618 faccessat( dirfd: ::c_int, pathname: *const ::c_char, mode: ::c_int, flags: ::c_int, ) -> ::c_int619 pub fn faccessat( 620 dirfd: ::c_int, 621 pathname: *const ::c_char, 622 mode: ::c_int, 623 flags: ::c_int, 624 ) -> ::c_int; writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t625 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_t626 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_t627 pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) 628 -> ::ssize_t; preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t629 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_int630 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_int631 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_int632 pub fn utimensat( 633 dirfd: ::c_int, 634 path: *const ::c_char, 635 times: *const ::timespec, 636 flag: ::c_int, 637 ) -> ::c_int; getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int638 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_void639 pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void; abs(i: c_int) -> c_int640 pub fn abs(i: c_int) -> c_int; labs(i: c_long) -> c_long641 pub fn labs(i: c_long) -> c_long; duplocale(base: ::locale_t) -> ::locale_t642 pub fn duplocale(base: ::locale_t) -> ::locale_t; freelocale(loc: ::locale_t)643 pub fn freelocale(loc: ::locale_t); newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t644 pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; uselocale(loc: ::locale_t) -> ::locale_t645 pub fn uselocale(loc: ::locale_t) -> ::locale_t; sched_yield() -> ::c_int646 pub fn sched_yield() -> ::c_int; 647 __wasilibc_register_preopened_fd(fd: c_int, path: *const c_char) -> c_int648 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_int649 pub fn __wasilibc_fd_renumber(fd: c_int, newfd: c_int) -> c_int; __wasilibc_unlinkat(fd: c_int, path: *const c_char) -> c_int650 pub fn __wasilibc_unlinkat(fd: c_int, path: *const c_char) -> c_int; __wasilibc_rmdirat(fd: c_int, path: *const c_char) -> c_int651 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_int652 pub fn __wasilibc_find_relpath( 653 path: *const c_char, 654 abs_prefix: *mut *const c_char, 655 relative_path: *mut *mut c_char, 656 relative_path_len: usize, 657 ) -> c_int; __wasilibc_tell(fd: c_int) -> ::off_t658 pub fn __wasilibc_tell(fd: c_int) -> ::off_t; __wasilibc_nocwd___wasilibc_unlinkat(dirfd: c_int, path: *const c_char) -> c_int659 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_int660 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_int661 pub fn __wasilibc_nocwd_linkat( 662 olddirfd: c_int, 663 oldpath: *const c_char, 664 newdirfd: c_int, 665 newpath: *const c_char, 666 flags: c_int, 667 ) -> c_int; __wasilibc_nocwd_symlinkat( target: *const c_char, dirfd: c_int, path: *const c_char, ) -> c_int668 pub fn __wasilibc_nocwd_symlinkat( 669 target: *const c_char, 670 dirfd: c_int, 671 path: *const c_char, 672 ) -> c_int; __wasilibc_nocwd_readlinkat( dirfd: c_int, path: *const c_char, buf: *mut c_char, bufsize: usize, ) -> isize673 pub fn __wasilibc_nocwd_readlinkat( 674 dirfd: c_int, 675 path: *const c_char, 676 buf: *mut c_char, 677 bufsize: usize, 678 ) -> isize; __wasilibc_nocwd_faccessat( dirfd: c_int, path: *const c_char, mode: c_int, flags: c_int, ) -> c_int679 pub fn __wasilibc_nocwd_faccessat( 680 dirfd: c_int, 681 path: *const c_char, 682 mode: c_int, 683 flags: c_int, 684 ) -> c_int; __wasilibc_nocwd_renameat( olddirfd: c_int, oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, ) -> c_int685 pub fn __wasilibc_nocwd_renameat( 686 olddirfd: c_int, 687 oldpath: *const c_char, 688 newdirfd: c_int, 689 newpath: *const c_char, 690 ) -> c_int; __wasilibc_nocwd_openat_nomode(dirfd: c_int, path: *const c_char, flags: c_int) -> c_int691 pub fn __wasilibc_nocwd_openat_nomode(dirfd: c_int, path: *const c_char, flags: c_int) 692 -> c_int; __wasilibc_nocwd_fstatat( dirfd: c_int, path: *const c_char, buf: *mut stat, flags: c_int, ) -> c_int693 pub fn __wasilibc_nocwd_fstatat( 694 dirfd: c_int, 695 path: *const c_char, 696 buf: *mut stat, 697 flags: c_int, 698 ) -> c_int; __wasilibc_nocwd_mkdirat_nomode(dirfd: c_int, path: *const c_char) -> c_int699 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_int700 pub fn __wasilibc_nocwd_utimensat( 701 dirfd: c_int, 702 path: *const c_char, 703 times: *const ::timespec, 704 flags: c_int, 705 ) -> c_int; __wasilibc_nocwd_opendirat(dirfd: c_int, path: *const c_char) -> *mut ::DIR706 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_int707 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_int708 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_int709 pub fn __wasilibc_utimens( 710 pathname: *const c_char, 711 times: *const ::timespec, 712 flags: c_int, 713 ) -> c_int; __wasilibc_link(oldpath: *const c_char, newpath: *const c_char, flags: c_int) -> c_int714 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_int715 pub fn __wasilibc_link_oldat( 716 olddirfd: c_int, 717 oldpath: *const c_char, 718 newpath: *const c_char, 719 flags: c_int, 720 ) -> c_int; __wasilibc_link_newat( oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, flags: c_int, ) -> c_int721 pub fn __wasilibc_link_newat( 722 oldpath: *const c_char, 723 newdirfd: c_int, 724 newpath: *const c_char, 725 flags: c_int, 726 ) -> c_int; __wasilibc_rename_oldat( olddirfd: c_int, oldpath: *const c_char, newpath: *const c_char, ) -> c_int727 pub fn __wasilibc_rename_oldat( 728 olddirfd: c_int, 729 oldpath: *const c_char, 730 newpath: *const c_char, 731 ) -> c_int; __wasilibc_rename_newat( oldpath: *const c_char, newdirfd: c_int, newpath: *const c_char, ) -> c_int732 pub fn __wasilibc_rename_newat( 733 oldpath: *const c_char, 734 newdirfd: c_int, 735 newpath: *const c_char, 736 ) -> c_int; 737 arc4random() -> u32738 pub fn arc4random() -> u32; arc4random_buf(a: *mut c_void, b: size_t)739 pub fn arc4random_buf(a: *mut c_void, b: size_t); arc4random_uniform(a: u32) -> u32740 pub fn arc4random_uniform(a: u32) -> u32; 741 } 742