emscripten_val_sys/
sys.rs1pub const _STDINT_H: u32 = 1;
4pub const _FEATURES_H: u32 = 1;
5pub const _ISOC95_SOURCE: u32 = 1;
6pub const _ISOC99_SOURCE: u32 = 1;
7pub const _ISOC11_SOURCE: u32 = 1;
8pub const _ISOC2X_SOURCE: u32 = 1;
9pub const _POSIX_SOURCE: u32 = 1;
10pub const _POSIX_C_SOURCE: u32 = 200809;
11pub const _XOPEN_SOURCE: u32 = 700;
12pub const _XOPEN_SOURCE_EXTENDED: u32 = 1;
13pub const _LARGEFILE64_SOURCE: u32 = 1;
14pub const _DEFAULT_SOURCE: u32 = 1;
15pub const _ATFILE_SOURCE: u32 = 1;
16pub const _DYNAMIC_STACK_SIZE_SOURCE: u32 = 1;
17pub const __GLIBC_USE_ISOC2X: u32 = 1;
18pub const __USE_ISOC11: u32 = 1;
19pub const __USE_ISOC99: u32 = 1;
20pub const __USE_ISOC95: u32 = 1;
21pub const __USE_ISOCXX11: u32 = 1;
22pub const __USE_POSIX: u32 = 1;
23pub const __USE_POSIX2: u32 = 1;
24pub const __USE_POSIX199309: u32 = 1;
25pub const __USE_POSIX199506: u32 = 1;
26pub const __USE_XOPEN2K: u32 = 1;
27pub const __USE_XOPEN2K8: u32 = 1;
28pub const __USE_XOPEN: u32 = 1;
29pub const __USE_XOPEN_EXTENDED: u32 = 1;
30pub const __USE_UNIX98: u32 = 1;
31pub const _LARGEFILE_SOURCE: u32 = 1;
32pub const __USE_XOPEN2K8XSI: u32 = 1;
33pub const __USE_XOPEN2KXSI: u32 = 1;
34pub const __USE_LARGEFILE: u32 = 1;
35pub const __USE_LARGEFILE64: u32 = 1;
36pub const __WORDSIZE: u32 = 64;
37pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
38pub const __SYSCALL_WORDSIZE: u32 = 64;
39pub const __TIMESIZE: u32 = 64;
40pub const __USE_MISC: u32 = 1;
41pub const __USE_ATFILE: u32 = 1;
42pub const __USE_DYNAMIC_STACK_SIZE: u32 = 1;
43pub const __USE_GNU: u32 = 1;
44pub const __USE_FORTIFY_LEVEL: u32 = 0;
45pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
46pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
47pub const _STDC_PREDEF_H: u32 = 1;
48pub const __STDC_IEC_559__: u32 = 1;
49pub const __STDC_IEC_60559_BFP__: u32 = 201404;
50pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
51pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
52pub const __STDC_ISO_10646__: u32 = 201706;
53pub const __GNU_LIBRARY__: u32 = 6;
54pub const __GLIBC__: u32 = 2;
55pub const __GLIBC_MINOR__: u32 = 35;
56pub const _SYS_CDEFS_H: u32 = 1;
57pub const __glibc_c99_flexarr_available: u32 = 1;
58pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
59pub const __HAVE_GENERIC_SELECTION: u32 = 0;
60pub const __GLIBC_USE_LIB_EXT2: u32 = 1;
61pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 1;
62pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 1;
63pub const __GLIBC_USE_IEC_60559_EXT: u32 = 1;
64pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 1;
65pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 1;
66pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 1;
67pub const _BITS_TYPES_H: u32 = 1;
68pub const _BITS_TYPESIZES_H: u32 = 1;
69pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
70pub const __INO_T_MATCHES_INO64_T: u32 = 1;
71pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
72pub const __STATFS_MATCHES_STATFS64: u32 = 1;
73pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
74pub const __FD_SETSIZE: u32 = 1024;
75pub const _BITS_TIME64_H: u32 = 1;
76pub const _BITS_WCHAR_H: u32 = 1;
77pub const _BITS_STDINT_INTN_H: u32 = 1;
78pub const _BITS_STDINT_UINTN_H: u32 = 1;
79pub const INT8_MIN: i32 = -128;
80pub const INT16_MIN: i32 = -32768;
81pub const INT32_MIN: i32 = -2147483648;
82pub const INT8_MAX: u32 = 127;
83pub const INT16_MAX: u32 = 32767;
84pub const INT32_MAX: u32 = 2147483647;
85pub const UINT8_MAX: u32 = 255;
86pub const UINT16_MAX: u32 = 65535;
87pub const UINT32_MAX: u32 = 4294967295;
88pub const INT_LEAST8_MIN: i32 = -128;
89pub const INT_LEAST16_MIN: i32 = -32768;
90pub const INT_LEAST32_MIN: i32 = -2147483648;
91pub const INT_LEAST8_MAX: u32 = 127;
92pub const INT_LEAST16_MAX: u32 = 32767;
93pub const INT_LEAST32_MAX: u32 = 2147483647;
94pub const UINT_LEAST8_MAX: u32 = 255;
95pub const UINT_LEAST16_MAX: u32 = 65535;
96pub const UINT_LEAST32_MAX: u32 = 4294967295;
97pub const INT_FAST8_MIN: i32 = -128;
98pub const INT_FAST16_MIN: i64 = -9223372036854775808;
99pub const INT_FAST32_MIN: i64 = -9223372036854775808;
100pub const INT_FAST8_MAX: u32 = 127;
101pub const INT_FAST16_MAX: u64 = 9223372036854775807;
102pub const INT_FAST32_MAX: u64 = 9223372036854775807;
103pub const UINT_FAST8_MAX: u32 = 255;
104pub const UINT_FAST16_MAX: i32 = -1;
105pub const UINT_FAST32_MAX: i32 = -1;
106pub const INTPTR_MIN: i64 = -9223372036854775808;
107pub const INTPTR_MAX: u64 = 9223372036854775807;
108pub const UINTPTR_MAX: i32 = -1;
109pub const PTRDIFF_MIN: i64 = -9223372036854775808;
110pub const PTRDIFF_MAX: u64 = 9223372036854775807;
111pub const SIG_ATOMIC_MIN: i32 = -2147483648;
112pub const SIG_ATOMIC_MAX: u32 = 2147483647;
113pub const SIZE_MAX: i32 = -1;
114pub const WINT_MIN: u32 = 0;
115pub const WINT_MAX: u32 = 4294967295;
116pub const INT8_WIDTH: u32 = 8;
117pub const UINT8_WIDTH: u32 = 8;
118pub const INT16_WIDTH: u32 = 16;
119pub const UINT16_WIDTH: u32 = 16;
120pub const INT32_WIDTH: u32 = 32;
121pub const UINT32_WIDTH: u32 = 32;
122pub const INT64_WIDTH: u32 = 64;
123pub const UINT64_WIDTH: u32 = 64;
124pub const INT_LEAST8_WIDTH: u32 = 8;
125pub const UINT_LEAST8_WIDTH: u32 = 8;
126pub const INT_LEAST16_WIDTH: u32 = 16;
127pub const UINT_LEAST16_WIDTH: u32 = 16;
128pub const INT_LEAST32_WIDTH: u32 = 32;
129pub const UINT_LEAST32_WIDTH: u32 = 32;
130pub const INT_LEAST64_WIDTH: u32 = 64;
131pub const UINT_LEAST64_WIDTH: u32 = 64;
132pub const INT_FAST8_WIDTH: u32 = 8;
133pub const UINT_FAST8_WIDTH: u32 = 8;
134pub const INT_FAST16_WIDTH: u32 = 64;
135pub const UINT_FAST16_WIDTH: u32 = 64;
136pub const INT_FAST32_WIDTH: u32 = 64;
137pub const UINT_FAST32_WIDTH: u32 = 64;
138pub const INT_FAST64_WIDTH: u32 = 64;
139pub const UINT_FAST64_WIDTH: u32 = 64;
140pub const INTPTR_WIDTH: u32 = 64;
141pub const UINTPTR_WIDTH: u32 = 64;
142pub const INTMAX_WIDTH: u32 = 64;
143pub const UINTMAX_WIDTH: u32 = 64;
144pub const PTRDIFF_WIDTH: u32 = 64;
145pub const SIG_ATOMIC_WIDTH: u32 = 32;
146pub const SIZE_WIDTH: u32 = 64;
147pub const WCHAR_WIDTH: u32 = 32;
148pub const WINT_WIDTH: u32 = 32;
149pub type __u_char = ::std::os::raw::c_uchar;
150pub type __u_short = ::std::os::raw::c_ushort;
151pub type __u_int = ::std::os::raw::c_uint;
152pub type __u_long = ::std::os::raw::c_ulong;
153pub type __int8_t = ::std::os::raw::c_schar;
154pub type __uint8_t = ::std::os::raw::c_uchar;
155pub type __int16_t = ::std::os::raw::c_short;
156pub type __uint16_t = ::std::os::raw::c_ushort;
157pub type __int32_t = ::std::os::raw::c_int;
158pub type __uint32_t = ::std::os::raw::c_uint;
159pub type __int64_t = ::std::os::raw::c_long;
160pub type __uint64_t = ::std::os::raw::c_ulong;
161pub type __int_least8_t = __int8_t;
162pub type __uint_least8_t = __uint8_t;
163pub type __int_least16_t = __int16_t;
164pub type __uint_least16_t = __uint16_t;
165pub type __int_least32_t = __int32_t;
166pub type __uint_least32_t = __uint32_t;
167pub type __int_least64_t = __int64_t;
168pub type __uint_least64_t = __uint64_t;
169pub type __quad_t = ::std::os::raw::c_long;
170pub type __u_quad_t = ::std::os::raw::c_ulong;
171pub type __intmax_t = ::std::os::raw::c_long;
172pub type __uintmax_t = ::std::os::raw::c_ulong;
173pub type __dev_t = ::std::os::raw::c_ulong;
174pub type __uid_t = ::std::os::raw::c_uint;
175pub type __gid_t = ::std::os::raw::c_uint;
176pub type __ino_t = ::std::os::raw::c_ulong;
177pub type __ino64_t = ::std::os::raw::c_ulong;
178pub type __mode_t = ::std::os::raw::c_uint;
179pub type __nlink_t = ::std::os::raw::c_ulong;
180pub type __off_t = ::std::os::raw::c_long;
181pub type __off64_t = ::std::os::raw::c_long;
182pub type __pid_t = ::std::os::raw::c_int;
183#[repr(C)]
184#[derive(Debug, Copy, Clone)]
185pub struct __fsid_t {
186 pub __val: [::std::os::raw::c_int; 2usize],
187}
188#[test]
189fn bindgen_test_layout___fsid_t() {
190 const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
191 let ptr = UNINIT.as_ptr();
192 assert_eq!(
193 ::std::mem::size_of::<__fsid_t>(),
194 8usize,
195 concat!("Size of: ", stringify!(__fsid_t))
196 );
197 assert_eq!(
198 ::std::mem::align_of::<__fsid_t>(),
199 4usize,
200 concat!("Alignment of ", stringify!(__fsid_t))
201 );
202 assert_eq!(
203 unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
204 0usize,
205 concat!(
206 "Offset of field: ",
207 stringify!(__fsid_t),
208 "::",
209 stringify!(__val)
210 )
211 );
212}
213pub type __clock_t = ::std::os::raw::c_long;
214pub type __rlim_t = ::std::os::raw::c_ulong;
215pub type __rlim64_t = ::std::os::raw::c_ulong;
216pub type __id_t = ::std::os::raw::c_uint;
217pub type __time_t = ::std::os::raw::c_long;
218pub type __useconds_t = ::std::os::raw::c_uint;
219pub type __suseconds_t = ::std::os::raw::c_long;
220pub type __suseconds64_t = ::std::os::raw::c_long;
221pub type __daddr_t = ::std::os::raw::c_int;
222pub type __key_t = ::std::os::raw::c_int;
223pub type __clockid_t = ::std::os::raw::c_int;
224pub type __timer_t = *mut ::std::os::raw::c_void;
225pub type __blksize_t = ::std::os::raw::c_long;
226pub type __blkcnt_t = ::std::os::raw::c_long;
227pub type __blkcnt64_t = ::std::os::raw::c_long;
228pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
229pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
230pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
231pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
232pub type __fsword_t = ::std::os::raw::c_long;
233pub type __ssize_t = ::std::os::raw::c_long;
234pub type __syscall_slong_t = ::std::os::raw::c_long;
235pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
236pub type __loff_t = __off64_t;
237pub type __caddr_t = *mut ::std::os::raw::c_char;
238pub type __intptr_t = ::std::os::raw::c_long;
239pub type __socklen_t = ::std::os::raw::c_uint;
240pub type __sig_atomic_t = ::std::os::raw::c_int;
241pub type int_least8_t = __int_least8_t;
242pub type int_least16_t = __int_least16_t;
243pub type int_least32_t = __int_least32_t;
244pub type int_least64_t = __int_least64_t;
245pub type uint_least8_t = __uint_least8_t;
246pub type uint_least16_t = __uint_least16_t;
247pub type uint_least32_t = __uint_least32_t;
248pub type uint_least64_t = __uint_least64_t;
249pub type int_fast8_t = ::std::os::raw::c_schar;
250pub type int_fast16_t = ::std::os::raw::c_long;
251pub type int_fast32_t = ::std::os::raw::c_long;
252pub type int_fast64_t = ::std::os::raw::c_long;
253pub type uint_fast8_t = ::std::os::raw::c_uchar;
254pub type uint_fast16_t = ::std::os::raw::c_ulong;
255pub type uint_fast32_t = ::std::os::raw::c_ulong;
256pub type uint_fast64_t = ::std::os::raw::c_ulong;
257pub type intmax_t = __intmax_t;
258pub type uintmax_t = __uintmax_t;
259#[repr(C)]
260#[derive(Debug, Copy, Clone)]
261pub struct _EM_VAL {
262 _unused: [u8; 0],
263}
264pub type EM_VAL = *mut _EM_VAL;
265pub type TYPEID = *const ::std::os::raw::c_void;
266extern "C" {
267 pub static mut BoolType: TYPEID;
268}
269extern "C" {
270 pub static mut IntType: TYPEID;
271}
272extern "C" {
273 pub static mut FloatType: TYPEID;
274}
275extern "C" {
276 pub static mut EmvalType: TYPEID;
277}
278pub const EM_METHOD_CALLER_KIND_FUNCTION: EM_METHOD_CALLER_KIND = 0;
279pub const EM_METHOD_CALLER_KIND_CONSTRUCTOR: EM_METHOD_CALLER_KIND = 1;
280pub type EM_METHOD_CALLER_KIND = ::std::os::raw::c_uint;
281pub const _EMVAL_UNDEFINED: _bindgen_ty_1 = 2;
282pub const _EMVAL_NULL: _bindgen_ty_1 = 4;
283pub const _EMVAL_TRUE: _bindgen_ty_1 = 6;
284pub const _EMVAL_FALSE: _bindgen_ty_1 = 8;
285pub const _EMVAL_LAST_RESERVED_HANDLE: _bindgen_ty_1 = 8;
286pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
287#[repr(C)]
288#[derive(Debug, Copy, Clone)]
289pub struct _EM_DESTRUCTORS {
290 _unused: [u8; 0],
291}
292pub type EM_DESTRUCTORS = *mut _EM_DESTRUCTORS;
293#[repr(C)]
294#[derive(Debug, Copy, Clone)]
295pub struct _EM_METHOD_CALLER {
296 _unused: [u8; 0],
297}
298pub type EM_METHOD_CALLER = *mut _EM_METHOD_CALLER;
299pub type EM_GENERIC_WIRE_TYPE = f64;
300pub type EM_VAR_ARGS = *const ::std::os::raw::c_void;
301extern "C" {
302 pub fn _emval_register_symbol(arg1: *const ::std::os::raw::c_char);
303}
304extern "C" {
305 pub fn _emval_incref(value: EM_VAL);
306}
307extern "C" {
308 pub fn _emval_decref(value: EM_VAL);
309}
310extern "C" {
311 pub fn _emval_run_destructors(handle: EM_DESTRUCTORS);
312}
313extern "C" {
314 pub fn _emval_new_array() -> EM_VAL;
315}
316extern "C" {
317 pub fn _emval_new_array_from_memory_view(mv: EM_VAL) -> EM_VAL;
318}
319extern "C" {
320 pub fn _emval_new_object() -> EM_VAL;
321}
322extern "C" {
323 pub fn _emval_new_cstring(arg1: *const ::std::os::raw::c_char) -> EM_VAL;
324}
325extern "C" {
326 pub fn _emval_new_u8string(arg1: *const ::std::os::raw::c_char) -> EM_VAL;
327}
328extern "C" {
329 pub fn _emval_new_u16string(arg1: *const u16) -> EM_VAL;
330}
331extern "C" {
332 pub fn _emval_take_value(type_: TYPEID, argv: EM_VAR_ARGS) -> EM_VAL;
333}
334extern "C" {
335 pub fn _emval_get_global(name: *const ::std::os::raw::c_char) -> EM_VAL;
336}
337extern "C" {
338 pub fn _emval_get_module_property(name: *const ::std::os::raw::c_char) -> EM_VAL;
339}
340extern "C" {
341 pub fn _emval_get_property(object: EM_VAL, key: EM_VAL) -> EM_VAL;
342}
343extern "C" {
344 pub fn _emval_set_property(object: EM_VAL, key: EM_VAL, value: EM_VAL);
345}
346extern "C" {
347 pub fn _emval_as(
348 value: EM_VAL,
349 returnType: TYPEID,
350 destructors: *mut EM_DESTRUCTORS,
351 ) -> EM_GENERIC_WIRE_TYPE;
352}
353extern "C" {
354 pub fn _emval_as_int64(value: EM_VAL, returnType: TYPEID) -> i64;
355}
356extern "C" {
357 pub fn _emval_as_uint64(value: EM_VAL, returnType: TYPEID) -> u64;
358}
359extern "C" {
360 pub fn _emval_equals(first: EM_VAL, second: EM_VAL) -> bool;
361}
362extern "C" {
363 pub fn _emval_strictly_equals(first: EM_VAL, second: EM_VAL) -> bool;
364}
365extern "C" {
366 pub fn _emval_greater_than(first: EM_VAL, second: EM_VAL) -> bool;
367}
368extern "C" {
369 pub fn _emval_less_than(first: EM_VAL, second: EM_VAL) -> bool;
370}
371extern "C" {
372 pub fn _emval_not(object: EM_VAL) -> bool;
373}
374extern "C" {
375 pub fn _emval_call(
376 caller: EM_METHOD_CALLER,
377 func: EM_VAL,
378 destructors: *mut EM_DESTRUCTORS,
379 argv: EM_VAR_ARGS,
380 ) -> EM_GENERIC_WIRE_TYPE;
381}
382extern "C" {
383 pub fn _emval_get_method_caller(
384 argCount: ::std::os::raw::c_uint,
385 argTypes: *const TYPEID,
386 asCtor: EM_METHOD_CALLER_KIND,
387 ) -> EM_METHOD_CALLER;
388}
389extern "C" {
390 pub fn _emval_call_method(
391 caller: EM_METHOD_CALLER,
392 handle: EM_VAL,
393 methodName: *const ::std::os::raw::c_char,
394 destructors: *mut EM_DESTRUCTORS,
395 argv: EM_VAR_ARGS,
396 ) -> EM_GENERIC_WIRE_TYPE;
397}
398extern "C" {
399 pub fn _emval_typeof(value: EM_VAL) -> EM_VAL;
400}
401extern "C" {
402 pub fn _emval_instanceof(object: EM_VAL, constructor: EM_VAL) -> bool;
403}
404extern "C" {
405 pub fn _emval_is_number(object: EM_VAL) -> bool;
406}
407extern "C" {
408 pub fn _emval_is_string(object: EM_VAL) -> bool;
409}
410extern "C" {
411 pub fn _emval_in(item: EM_VAL, object: EM_VAL) -> bool;
412}
413extern "C" {
414 pub fn _emval_delete(object: EM_VAL, property: EM_VAL) -> bool;
415}
416extern "C" {
417 pub fn _emval_throw(object: EM_VAL) -> bool;
418}
419extern "C" {
420 pub fn _emval_await(promise: EM_VAL) -> EM_VAL;
421}
422extern "C" {
423 pub fn _emval_iter_begin(iterable: EM_VAL) -> EM_VAL;
424}
425extern "C" {
426 pub fn _emval_iter_next(iterator: EM_VAL) -> EM_VAL;
427}