[INFO] fetching crate wasmtime-wasi-c 0.3.0... [INFO] checking wasmtime-wasi-c-0.3.0 against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] extracting crate wasmtime-wasi-c 0.3.0 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate wasmtime-wasi-c 0.3.0 on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate wasmtime-wasi-c 0.3.0 [INFO] finished tweaking crates.io crate wasmtime-wasi-c 0.3.0 [INFO] tweaked toml for crates.io crate wasmtime-wasi-c 0.3.0 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e28b1f29082616c38ada29cdbf6eeaa5cada9c6e6bcfe040ca6a63f61d766aad [INFO] running `"docker" "start" "-a" "e28b1f29082616c38ada29cdbf6eeaa5cada9c6e6bcfe040ca6a63f61d766aad"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling wasmtime-environ v0.3.0 [INFO] [stderr] Checking wasmparser v0.36.0 [INFO] [stderr] Compiling bindgen v0.51.1 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling wasmtime-runtime v0.3.0 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking errno v0.2.4 [INFO] [stderr] Compiling which v3.0.0 [INFO] [stderr] Checking region v2.1.2 [INFO] [stderr] Compiling clang-sys v0.28.1 [INFO] [stderr] Compiling cranelift-entity v0.40.0 [INFO] [stderr] Checking scroll v0.9.2 [INFO] [stderr] Checking string-interner v0.6.4 [INFO] [stderr] Compiling target-lexicon v0.4.0 [INFO] [stderr] Checking rayon-core v1.6.0 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking goblin v0.0.23 [INFO] [stderr] Compiling cranelift-codegen-meta v0.40.0 [INFO] [stderr] Checking gimli v0.19.0 [INFO] [stderr] Checking cranelift-bforest v0.40.0 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Checking faerie v0.10.2 [INFO] [stderr] Compiling cranelift-codegen v0.40.0 [INFO] [stderr] Compiling wasmtime-wasi-c v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking cranelift-frontend v0.40.0 [INFO] [stderr] Checking cranelift-wasm v0.40.0 [INFO] [stderr] Checking wasmtime-debug v0.3.0 [INFO] [stderr] Checking wasmtime-jit v0.3.0 [INFO] [stderr] warning: function `bindgen_test_layout___wasi_dirent_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:9305 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_dirent_t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:11204 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t_wasi_event_u_wasi_event_u_fd_readwrite_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t___wasi_event_u` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:12404 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t_wasi_event_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:13089 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:14842 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t_wasi_prestat_u_wasi_prestat_u_dir_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t___wasi_prestat_u` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:15713 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t_wasi_prestat_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:16407 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_fdstat_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:17456 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_fdstat_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_filestat_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:19145 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_filestat_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_ciovec_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:21565 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_ciovec_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_iovec_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:22522 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_iovec_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:24182 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u_wasi_subscription_u_clock_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:26746 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u_wasi_subscription_u_fd_readwrite_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:27767 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:28835 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___pthread_rwlock_arch_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/wasmtime-wasi-c-6beb228fd31493db/out/wasmtime_ssp.rs:3:39195 [INFO] [stderr] | [INFO] [stderr] 3 | pub const __WASI_ADVICE_NORMAL : u32 = 0 ; pub const __WASI_ADVICE_SEQUENTIAL : u32 = 1 ; pub const __WASI_ADVICE_RANDOM : u32 = 2 ; pub const __WASI_ADVICE_WILLNEED : u32 = 3 ; pub const __WASI_ADVICE_DONTNEED : u32 = 4 ; pub const __WASI_ADVICE_NOREUSE : u32 = 5 ; pub const __WASI_CLOCK_REALTIME : u32 = 0 ; pub const __WASI_CLOCK_MONOTONIC : u32 = 1 ; pub const __WASI_CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const __WASI_CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const __WASI_DIRCOOKIE_START : u32 = 0 ; pub const __WASI_ESUCCESS : u32 = 0 ; pub const __WASI_E2BIG : u32 = 1 ; pub const __WASI_EACCES : u32 = 2 ; pub const __WASI_EADDRINUSE : u32 = 3 ; pub const __WASI_EADDRNOTAVAIL : u32 = 4 ; pub const __WASI_EAFNOSUPPORT : u32 = 5 ; pub const __WASI_EAGAIN : u32 = 6 ; pub const __WASI_EALREADY : u32 = 7 ; pub const __WASI_EBADF : u32 = 8 ; pub const __WASI_EBADMSG : u32 = 9 ; pub const __WASI_EBUSY : u32 = 10 ; pub const __WASI_ECANCELED : u32 = 11 ; pub const __WASI_ECHILD : u32 = 12 ; pub const __WASI_ECONNABORTED : u32 = 13 ; pub const __WASI_ECONNREFUSED : u32 = 14 ; pub const __WASI_ECONNRESET : u32 = 15 ; pub const __WASI_EDEADLK : u32 = 16 ; pub const __WASI_EDESTADDRREQ : u32 = 17 ; pub const __WASI_EDOM : u32 = 18 ; pub const __WASI_EDQUOT : u32 = 19 ; pub const __WASI_EEXIST : u32 = 20 ; pub const __WASI_EFAULT : u32 = 21 ; pub const __WASI_EFBIG : u32 = 22 ; pub const __WASI_EHOSTUNREACH : u32 = 23 ; pub const __WASI_EIDRM : u32 = 24 ; pub const __WASI_EILSEQ : u32 = 25 ; pub const __WASI_EINPROGRESS : u32 = 26 ; pub const __WASI_EINTR : u32 = 27 ; pub const __WASI_EINVAL : u32 = 28 ; pub const __WASI_EIO : u32 = 29 ; pub const __WASI_EISCONN : u32 = 30 ; pub const __WASI_EISDIR : u32 = 31 ; pub const __WASI_ELOOP : u32 = 32 ; pub const __WASI_EMFILE : u32 = 33 ; pub const __WASI_EMLINK : u32 = 34 ; pub const __WASI_EMSGSIZE : u32 = 35 ; pub const __WASI_EMULTIHOP : u32 = 36 ; pub const __WASI_ENAMETOOLONG : u32 = 37 ; pub const __WASI_ENETDOWN : u32 = 38 ; pub const __WASI_ENETRESET : u32 = 39 ; pub const __WASI_ENETUNREACH : u32 = 40 ; pub const __WASI_ENFILE : u32 = 41 ; pub const __WASI_ENOBUFS : u32 = 42 ; pub const __WASI_ENODEV : u32 = 43 ; pub const __WASI_ENOENT : u32 = 44 ; pub const __WASI_ENOEXEC : u32 = 45 ; pub const __WASI_ENOLCK : u32 = 46 ; pub const __WASI_ENOLINK : u32 = 47 ; pub const __WASI_ENOMEM : u32 = 48 ; pub const __WASI_ENOMSG : u32 = 49 ; pub const __WASI_ENOPROTOOPT : u32 = 50 ; pub const __WASI_ENOSPC : u32 = 51 ; pub const __WASI_ENOSYS : u32 = 52 ; pub const __WASI_ENOTCONN : u32 = 53 ; pub const __WASI_ENOTDIR : u32 = 54 ; pub const __WASI_ENOTEMPTY : u32 = 55 ; pub const __WASI_ENOTRECOVERABLE : u32 = 56 ; pub const __WASI_ENOTSOCK : u32 = 57 ; pub const __WASI_ENOTSUP : u32 = 58 ; pub const __WASI_ENOTTY : u32 = 59 ; pub const __WASI_ENXIO : u32 = 60 ; pub const __WASI_EOVERFLOW : u32 = 61 ; pub const __WASI_EOWNERDEAD : u32 = 62 ; pub const __WASI_EPERM : u32 = 63 ; pub const __WASI_EPIPE : u32 = 64 ; pub const __WASI_EPROTO : u32 = 65 ; pub const __WASI_EPROTONOSUPPORT : u32 = 66 ; pub const __WASI_EPROTOTYPE : u32 = 67 ; pub const __WASI_ERANGE : u32 = 68 ; pub const __WASI_EROFS : u32 = 69 ; pub const __WASI_ESPIPE : u32 = 70 ; pub const __WASI_ESRCH : u32 = 71 ; pub const __WASI_ESTALE : u32 = 72 ; pub const __WASI_ETIMEDOUT : u32 = 73 ; pub const __WASI_ETXTBSY : u32 = 74 ; pub const __WASI_EXDEV : u32 = 75 ; pub const __WASI_ENOTCAPABLE : u32 = 76 ; pub const __WASI_EVENT_FD_READWRITE_HANGUP : u32 = 1 ; pub const __WASI_EVENTTYPE_CLOCK : u32 = 0 ; pub const __WASI_EVENTTYPE_FD_READ : u32 = 1 ; pub const __WASI_EVENTTYPE_FD_WRITE : u32 = 2 ; pub const __WASI_FDFLAG_APPEND : u32 = 1 ; pub const __WASI_FDFLAG_DSYNC : u32 = 2 ; pub const __WASI_FDFLAG_NONBLOCK : u32 = 4 ; pub const __WASI_FDFLAG_RSYNC : u32 = 8 ; pub const __WASI_FDFLAG_SYNC : u32 = 16 ; pub const __WASI_FILETYPE_UNKNOWN : u32 = 0 ; pub const __WASI_FILETYPE_BLOCK_DEVICE : u32 = 1 ; pub const __WASI_FILETYPE_CHARACTER_DEVICE : u32 = 2 ; pub const __WASI_FILETYPE_DIRECTORY : u32 = 3 ; pub const __WASI_FILETYPE_REGULAR_FILE : u32 = 4 ; pub const __WASI_FILETYPE_SOCKET_DGRAM : u32 = 5 ; pub const __WASI_FILETYPE_SOCKET_STREAM : u32 = 6 ; pub const __WASI_FILETYPE_SYMBOLIC_LINK : u32 = 7 ; pub const __WASI_FILESTAT_SET_ATIM : u32 = 1 ; pub const __WASI_FILESTAT_SET_ATIM_NOW : u32 = 2 ; pub const __WASI_FILESTAT_SET_MTIM : u32 = 4 ; pub const __WASI_FILESTAT_SET_MTIM_NOW : u32 = 8 ; pub const __WASI_LOOKUP_SYMLINK_FOLLOW : u32 = 1 ; pub const __WASI_O_CREAT : u32 = 1 ; pub const __WASI_O_DIRECTORY : u32 = 2 ; pub const __WASI_O_EXCL : u32 = 4 ; pub const __WASI_O_TRUNC : u32 = 8 ; pub const __WASI_SOCK_RECV_PEEK : u32 = 1 ; pub const __WASI_SOCK_RECV_WAITALL : u32 = 2 ; pub const __WASI_RIGHT_FD_DATASYNC : u32 = 1 ; pub const __WASI_RIGHT_FD_READ : u32 = 2 ; pub const __WASI_RIGHT_FD_SEEK : u32 = 4 ; pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS : u32 = 8 ; pub const __WASI_RIGHT_FD_SYNC : u32 = 16 ; pub const __WASI_RIGHT_FD_TELL : u32 = 32 ; pub const __WASI_RIGHT_FD_WRITE : u32 = 64 ; pub const __WASI_RIGHT_FD_ADVISE : u32 = 128 ; pub const __WASI_RIGHT_FD_ALLOCATE : u32 = 256 ; pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY : u32 = 512 ; pub const __WASI_RIGHT_PATH_CREATE_FILE : u32 = 1024 ; pub const __WASI_RIGHT_PATH_LINK_SOURCE : u32 = 2048 ; pub const __WASI_RIGHT_PATH_LINK_TARGET : u32 = 4096 ; pub const __WASI_RIGHT_PATH_OPEN : u32 = 8192 ; pub const __WASI_RIGHT_FD_READDIR : u32 = 16384 ; pub const __WASI_RIGHT_PATH_READLINK : u32 = 32768 ; pub const __WASI_RIGHT_PATH_RENAME_SOURCE : u32 = 65536 ; pub const __WASI_RIGHT_PATH_RENAME_TARGET : u32 = 131072 ; pub const __WASI_RIGHT_PATH_FILESTAT_GET : u32 = 262144 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE : u32 = 524288 ; pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES : u32 = 1048576 ; pub const __WASI_RIGHT_FD_FILESTAT_GET : u32 = 2097152 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE : u32 = 4194304 ; pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES : u32 = 8388608 ; pub const __WASI_RIGHT_PATH_SYMLINK : u32 = 16777216 ; pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY : u32 = 33554432 ; pub const __WASI_RIGHT_PATH_UNLINK_FILE : u32 = 67108864 ; pub const __WASI_RIGHT_POLL_FD_READWRITE : u32 = 134217728 ; pub const __WASI_RIGHT_SOCK_SHUTDOWN : u32 = 268435456 ; pub const __WASI_SOCK_RECV_DATA_TRUNCATED : u32 = 1 ; pub const __WASI_SHUT_RD : u32 = 1 ; pub const __WASI_SHUT_WR : u32 = 2 ; pub const __WASI_SIGHUP : u32 = 1 ; pub const __WASI_SIGINT : u32 = 2 ; pub const __WASI_SIGQUIT : u32 = 3 ; pub const __WASI_SIGILL : u32 = 4 ; pub const __WASI_SIGTRAP : u32 = 5 ; pub const __WASI_SIGABRT : u32 = 6 ; pub const __WASI_SIGBUS : u32 = 7 ; pub const __WASI_SIGFPE : u32 = 8 ; pub const __WASI_SIGKILL : u32 = 9 ; pub const __WASI_SIGUSR1 : u32 = 10 ; pub const __WASI_SIGSEGV : u32 = 11 ; pub const __WASI_SIGUSR2 : u32 = 12 ; pub const __WASI_SIGPIPE : u32 = 13 ; pub const __WASI_SIGALRM : u32 = 14 ; pub const __WASI_SIGTERM : u32 = 15 ; pub const __WASI_SIGCHLD : u32 = 16 ; pub const __WASI_SIGCONT : u32 = 17 ; pub const __WASI_SIGSTOP : u32 = 18 ; pub const __WASI_SIGTSTP : u32 = 19 ; pub const __WASI_SIGTTIN : u32 = 20 ; pub const __WASI_SIGTTOU : u32 = 21 ; pub const __WASI_SIGURG : u32 = 22 ; pub const __WASI_SIGXCPU : u32 = 23 ; pub const __WASI_SIGXFSZ : u32 = 24 ; pub const __WASI_SIGVTALRM : u32 = 25 ; pub const __WASI_SIGPROF : u32 = 26 ; pub const __WASI_SIGWINCH : u32 = 27 ; pub const __WASI_SIGPOLL : u32 = 28 ; pub const __WASI_SIGPWR : u32 = 29 ; pub const __WASI_SIGSYS : u32 = 30 ; pub const __WASI_SUBSCRIPTION_CLOCK_ABSTIME : u32 = 1 ; pub const __WASI_WHENCE_CUR : u32 = 0 ; pub const __WASI_WHENCE_END : u32 = 1 ; pub const __WASI_WHENCE_SET : u32 = 2 ; pub const __WASI_PREOPENTYPE_DIR : u32 = 0 ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __wasi_advice_t = u8 ; pub type __wasi_clockid_t = u32 ; pub type __wasi_device_t = u64 ; pub type __wasi_dircookie_t = u64 ; pub type __wasi_errno_t = u16 ; pub type __wasi_eventrwflags_t = u16 ; pub type __wasi_eventtype_t = u8 ; pub type __wasi_exitcode_t = u32 ; pub type __wasi_fd_t = u32 ; pub type __wasi_fdflags_t = u16 ; pub type __wasi_filedelta_t = i64 ; pub type __wasi_filesize_t = u64 ; pub type __wasi_filetype_t = u8 ; pub type __wasi_fstflags_t = u16 ; pub type __wasi_inode_t = u64 ; pub type __wasi_linkcount_t = u32 ; pub type __wasi_lookupflags_t = u32 ; pub type __wasi_oflags_t = u16 ; pub type __wasi_riflags_t = u16 ; pub type __wasi_rights_t = u64 ; pub type __wasi_roflags_t = u16 ; pub type __wasi_sdflags_t = u8 ; pub type __wasi_siflags_t = u16 ; pub type __wasi_signal_t = u8 ; pub type __wasi_subclockflags_t = u16 ; pub type __wasi_timestamp_t = u64 ; pub type __wasi_userdata_t = u64 ; pub type __wasi_whence_t = u8 ; pub type __wasi_preopentype_t = u8 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_dirent_t { pub d_next : __wasi_dircookie_t , pub d_ino : __wasi_inode_t , pub d_namlen : u32 , pub d_type : __wasi_filetype_t , } # [ test ] fn bindgen_test_layout___wasi_dirent_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_dirent_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_dirent_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_dirent_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_namlen as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_namlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_dirent_t > ( ) ) ) . d_type as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_dirent_t ) , "::" , stringify ! ( d_type ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_event_t { pub userdata : __wasi_userdata_t , pub error : __wasi_errno_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_event_t___wasi_event_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_event_t___wasi_event_u { pub fd_readwrite : __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t { pub nbytes : __wasi_filesize_t , pub flags : __wasi_eventrwflags_t , } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . nbytes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( nbytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t___wasi_event_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t___wasi_event_u > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t___wasi_event_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t___wasi_event_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t___wasi_event_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t___wasi_event_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_event_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_event_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_event_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_event_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . error as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . type_ as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_event_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_event_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_prestat_t { pub pr_type : __wasi_preopentype_t , pub u : __wasi_prestat_t___wasi_prestat_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_prestat_t___wasi_prestat_u { pub dir : __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t { pub pr_name_len : usize , } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t > ( ) ) ) . pr_name_len as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t ) , "::" , stringify ! ( pr_name_len ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t___wasi_prestat_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t___wasi_prestat_u > ( ) ) ) . dir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t___wasi_prestat_u ) , "::" , stringify ! ( dir ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_prestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_prestat_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_prestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_prestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . pr_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( pr_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_prestat_t > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_prestat_t ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_fdstat_t { pub fs_filetype : __wasi_filetype_t , pub fs_flags : __wasi_fdflags_t , pub fs_rights_base : __wasi_rights_t , pub fs_rights_inheriting : __wasi_rights_t , } # [ test ] fn bindgen_test_layout___wasi_fdstat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_fdstat_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_fdstat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_fdstat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_filetype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_flags as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_base as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_fdstat_t > ( ) ) ) . fs_rights_inheriting as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_fdstat_t ) , "::" , stringify ! ( fs_rights_inheriting ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_filestat_t { pub st_dev : __wasi_device_t , pub st_ino : __wasi_inode_t , pub st_filetype : __wasi_filetype_t , pub st_nlink : __wasi_linkcount_t , pub st_size : __wasi_filesize_t , pub st_atim : __wasi_timestamp_t , pub st_mtim : __wasi_timestamp_t , pub st_ctim : __wasi_timestamp_t , } # [ test ] fn bindgen_test_layout___wasi_filestat_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_filestat_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_filestat_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_filestat_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_dev as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_dev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ino as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ino ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_filetype as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_filetype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_nlink as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_nlink ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_atim as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_atim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_mtim as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_mtim ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_filestat_t > ( ) ) ) . st_ctim as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_filestat_t ) , "::" , stringify ! ( st_ctim ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_ciovec_t { pub buf : * const :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_ciovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_ciovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_ciovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_ciovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_ciovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_ciovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_iovec_t { pub buf : * mut :: std :: os :: raw :: c_void , pub buf_len : usize , } # [ test ] fn bindgen_test_layout___wasi_iovec_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_iovec_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_iovec_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_iovec_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_iovec_t > ( ) ) ) . buf_len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_iovec_t ) , "::" , stringify ! ( buf_len ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __wasi_subscription_t { pub userdata : __wasi_userdata_t , pub type_ : __wasi_eventtype_t , pub u : __wasi_subscription_t___wasi_subscription_u , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __wasi_subscription_t___wasi_subscription_u { pub clock : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t , pub fd_readwrite : __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t { pub identifier : __wasi_userdata_t , pub clock_id : __wasi_clockid_t , pub timeout : __wasi_timestamp_t , pub precision : __wasi_timestamp_t , pub flags : __wasi_subclockflags_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . identifier as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( identifier ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . clock_id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( clock_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . timeout as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( timeout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . precision as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( precision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t { pub fd : __wasi_fd_t , } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t > ( ) ) ) . fd as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t ) , "::" , stringify ! ( fd ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t___wasi_subscription_u > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . clock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( clock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t___wasi_subscription_u > ( ) ) ) . fd_readwrite as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t___wasi_subscription_u ) , "::" , stringify ! ( fd_readwrite ) ) ) ; } # [ test ] fn bindgen_test_layout___wasi_subscription_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __wasi_subscription_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __wasi_subscription_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __wasi_subscription_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . userdata as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . type_ as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __wasi_subscription_t > ( ) ) ) . u as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __wasi_subscription_t ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn wasmtime_ssp_args_get ( arg_environ : * mut argv_environ_values , argv : * mut * mut :: std :: os :: raw :: c_char , argv_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_args_sizes_get ( arg_environ : * mut argv_environ_values , argc : * mut usize , argv_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_res_get ( clock_id : __wasi_clockid_t , resolution : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_clock_time_get ( clock_id : __wasi_clockid_t , precision : __wasi_timestamp_t , time : * mut __wasi_timestamp_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_get ( arg_environ : * mut argv_environ_values , environ : * mut * mut :: std :: os :: raw :: c_char , environ_buf : * mut :: std :: os :: raw :: c_char ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_environ_sizes_get ( arg_environ : * mut argv_environ_values , environ_count : * mut usize , environ_buf_size : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_get ( prestats : * mut fd_prestats , fd : __wasi_fd_t , buf : * mut __wasi_prestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_prestat_dir_name ( prestats : * mut fd_prestats , fd : __wasi_fd_t , path : * mut :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_close ( curfds : * mut fd_table , prestats : * mut fd_prestats , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_datasync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pread ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , offset : __wasi_filesize_t , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_pwrite ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , offset : __wasi_filesize_t , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_read ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_iovec_t , iovs_len : usize , nread : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_renumber ( curfds : * mut fd_table , prestats : * mut fd_prestats , from : __wasi_fd_t , to : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_seek ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filedelta_t , whence : __wasi_whence_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_tell ( curfds : * mut fd_table , fd : __wasi_fd_t , newoffset : * mut __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_fdstat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_flags ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_fdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_fdstat_set_rights ( curfds : * mut fd_table , fd : __wasi_fd_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_sync ( curfds : * mut fd_table , fd : __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_write ( curfds : * mut fd_table , fd : __wasi_fd_t , iovs : * const __wasi_ciovec_t , iovs_len : usize , nwritten : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_advise ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t , advice : __wasi_advice_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_allocate ( curfds : * mut fd_table , fd : __wasi_fd_t , offset : __wasi_filesize_t , len : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_create_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_link ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_flags : __wasi_lookupflags_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_open ( curfds : * mut fd_table , dirfd : __wasi_fd_t , dirflags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , oflags : __wasi_oflags_t , fs_rights_base : __wasi_rights_t , fs_rights_inheriting : __wasi_rights_t , fs_flags : __wasi_fdflags_t , fd : * mut __wasi_fd_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_readdir ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut :: std :: os :: raw :: c_void , buf_len : usize , cookie : __wasi_dircookie_t , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_readlink ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut :: std :: os :: raw :: c_char , buf_len : usize , bufused : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_rename ( curfds : * mut fd_table , old_fd : __wasi_fd_t , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , new_fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_fd_filestat_set_size ( curfds : * mut fd_table , fd : __wasi_fd_t , st_size : __wasi_filesize_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_get ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , buf : * mut __wasi_filestat_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_filestat_set_times ( curfds : * mut fd_table , fd : __wasi_fd_t , flags : __wasi_lookupflags_t , path : * const :: std :: os :: raw :: c_char , path_len : usize , st_atim : __wasi_timestamp_t , st_mtim : __wasi_timestamp_t , fstflags : __wasi_fstflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_symlink ( curfds : * mut fd_table , old_path : * const :: std :: os :: raw :: c_char , old_path_len : usize , fd : __wasi_fd_t , new_path : * const :: std :: os :: raw :: c_char , new_path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_unlink_file ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_path_remove_directory ( curfds : * mut fd_table , fd : __wasi_fd_t , path : * const :: std :: os :: raw :: c_char , path_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_poll_oneoff ( curfds : * mut fd_table , in_ : * const __wasi_subscription_t , out : * mut __wasi_event_t , nsubscriptions : usize , nevents : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_proc_exit ( rval : __wasi_exitcode_t ) ; } extern "C" { pub fn wasmtime_ssp_proc_raise ( sig : __wasi_signal_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_random_get ( buf : * mut :: std :: os :: raw :: c_void , buf_len : usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_recv ( curfds : * mut fd_table , sock : __wasi_fd_t , ri_data : * const __wasi_iovec_t , ri_data_len : usize , ri_flags : __wasi_riflags_t , ro_datalen : * mut usize , ro_flags : * mut __wasi_roflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_send ( curfds : * mut fd_table , sock : __wasi_fd_t , si_data : * const __wasi_ciovec_t , si_data_len : usize , si_flags : __wasi_siflags_t , so_datalen : * mut usize ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sock_shutdown ( curfds : * mut fd_table , sock : __wasi_fd_t , how : __wasi_sdflags_t ) -> __wasi_errno_t ; } extern "C" { pub fn wasmtime_ssp_sched_yield ( ) -> __wasi_errno_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [ :: std :: os :: raw :: c_uchar ; 7usize ] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout___pthread_rwlock_arch_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __pthread_rwlock_arch_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __pthread_rwlock_arch_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __pthread_rwlock_arch_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __readers as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __readers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __wrphase_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __writers_futex as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __writers_futex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad3 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad4 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __cur_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __cur_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __shared as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __rwelision as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __rwelision ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad1 as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __pad2 as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __pthread_rwlock_arch_t > ( ) ) ) . __flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( __pthread_rwlock_arch_t ) , "::" , stringify ! ( __flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [ :: std :: os :: raw :: c_char ; 56usize ] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [ u64 ; 7usize ] , } # [ test ] fn bindgen_test_layout_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pthread_rwlock_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pthread_rwlock_t > ( ) ) ) . __align as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pthread_rwlock_t ) , "::" , stringify ! ( __align ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct rwlock { pub object : pthread_rwlock_t , } # [ test ] fn bindgen_test_layout_rwlock ( ) { assert_eq ! ( :: std :: mem :: size_of :: < rwlock > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < rwlock > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( rwlock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < rwlock > ( ) ) ) . object as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( rwlock ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_entry { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fd_prestat { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_table { pub lock : rwlock , pub entries : * mut fd_entry , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_table ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_table > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_table > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . entries as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_table > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_table ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fd_prestats { pub lock : rwlock , pub prestats : * mut fd_prestat , pub size : usize , pub used : usize , } # [ test ] fn bindgen_test_layout_fd_prestats ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fd_prestats > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fd_prestats > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fd_prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . lock as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . prestats as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( prestats ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . size as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fd_prestats > ( ) ) ) . used as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fd_prestats ) , "::" , stringify ! ( used ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct argv_environ_values { pub argc : usize , pub argv_buf_size : usize , pub argv : * mut * mut :: std :: os :: raw :: c_char , pub argv_buf : * mut :: std :: os :: raw :: c_char , pub environ_count : usize , pub environ_buf_size : usize , pub environ : * mut * mut :: std :: os :: raw :: c_char , pub environ_buf : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_argv_environ_values ( ) { assert_eq ! ( :: std :: mem :: size_of :: < argv_environ_values > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < argv_environ_values > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( argv_environ_values ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . argv_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( argv_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < argv_environ_values > ( ) ) ) . environ_buf as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( argv_environ_values ) , "::" , stringify ! ( environ_buf ) ) ) ; } extern "C" { pub fn fd_table_init ( arg1 : * mut fd_table ) ; } extern "C" { pub fn fd_table_insert_existing ( arg1 : * mut fd_table , arg2 : __wasi_fd_t , arg3 : :: std :: os :: raw :: c_int ) -> bool ; } extern "C" { pub fn fd_prestats_init ( arg1 : * mut fd_prestats ) ; } extern "C" { pub fn fd_prestats_insert ( arg1 : * mut fd_prestats , arg2 : * const :: std :: os :: raw :: c_char , arg3 : __wasi_fd_t ) -> bool ; } extern "C" { pub fn argv_environ_init ( arg1 : * mut argv_environ_values , argv_offsets : * const usize , argv_offsets_len : usize , argv_buf : * const :: std :: os :: raw :: c_char , argv_buf_len : usize , environ_offsets : * const usize , environ_offsets_len : usize , environ_buf : * const :: std :: os :: raw :: c_char , environ_buf_len : usize ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_pthread_rwlock_arch_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:232:4 [INFO] [stderr] | [INFO] [stderr] 232 | fn bindgen_test_layout___wasi_event_t___wasi_event_u___wasi_event_u_fd_readwrite_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t_wasi_event_u_wasi_event_u_fd_readwrite_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t___wasi_event_u` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:277:4 [INFO] [stderr] | [INFO] [stderr] 277 | fn bindgen_test_layout___wasi_event_t___wasi_event_u() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t_wasi_event_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_event_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:303:4 [INFO] [stderr] | [INFO] [stderr] 303 | fn bindgen_test_layout___wasi_event_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_event_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:372:4 [INFO] [stderr] | [INFO] [stderr] 372 | fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u___wasi_prestat_u_dir_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t_wasi_prestat_u_wasi_prestat_u_dir_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t___wasi_prestat_u` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:404:4 [INFO] [stderr] | [INFO] [stderr] 404 | fn bindgen_test_layout___wasi_prestat_t___wasi_prestat_u() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t_wasi_prestat_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_prestat_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:432:4 [INFO] [stderr] | [INFO] [stderr] 432 | fn bindgen_test_layout___wasi_prestat_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_prestat_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:893:4 [INFO] [stderr] | [INFO] [stderr] 893 | fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_clock_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u_wasi_subscription_u_clock_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:996:4 [INFO] [stderr] | [INFO] [stderr] 996 | fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u___wasi_subscription_u_fd_readwrite_t( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u_wasi_subscription_u_fd_readwrite_t` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t___wasi_subscription_u` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:1041:4 [INFO] [stderr] | [INFO] [stderr] 1041 | fn bindgen_test_layout___wasi_subscription_t___wasi_subscription_u() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t_wasi_subscription_u` [INFO] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___wasi_subscription_t` should have a snake case name [INFO] [stderr] --> src/wasm32.rs:1086:4 [INFO] [stderr] | [INFO] [stderr] 1086 | fn bindgen_test_layout___wasi_subscription_t() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_wasi_subscription_t` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 07s [INFO] running `"docker" "inspect" "e28b1f29082616c38ada29cdbf6eeaa5cada9c6e6bcfe040ca6a63f61d766aad"` [INFO] running `"docker" "rm" "-f" "e28b1f29082616c38ada29cdbf6eeaa5cada9c6e6bcfe040ca6a63f61d766aad"` [INFO] [stdout] e28b1f29082616c38ada29cdbf6eeaa5cada9c6e6bcfe040ca6a63f61d766aad