1#![allow(non_camel_case_types)]
6#![allow(non_snake_case)]
7#![allow(non_upper_case_globals)]
8#![allow(dead_code)]
9
10pub const _STDINT_H: u32 = 1;
13pub const _FEATURES_H: u32 = 1;
14pub const _DEFAULT_SOURCE: u32 = 1;
15pub const __GLIBC_USE_ISOC2X: u32 = 0;
16pub const __USE_ISOC11: u32 = 1;
17pub const __USE_ISOC99: u32 = 1;
18pub const __USE_ISOC95: u32 = 1;
19pub const __USE_POSIX_IMPLICITLY: u32 = 1;
20pub const _POSIX_SOURCE: u32 = 1;
21pub const _POSIX_C_SOURCE: u32 = 200809;
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 _ATFILE_SOURCE: u32 = 1;
29pub const __USE_MISC: u32 = 1;
30pub const __USE_ATFILE: u32 = 1;
31pub const __USE_FORTIFY_LEVEL: u32 = 0;
32pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
33pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
34pub const _STDC_PREDEF_H: u32 = 1;
35pub const __STDC_IEC_559__: u32 = 1;
36pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
37pub const __STDC_ISO_10646__: u32 = 201706;
38pub const __GNU_LIBRARY__: u32 = 6;
39pub const __GLIBC__: u32 = 2;
40pub const __GLIBC_MINOR__: u32 = 33;
41pub const _SYS_CDEFS_H: u32 = 1;
42pub const __glibc_c99_flexarr_available: u32 = 1;
43pub const __WORDSIZE: u32 = 64;
44pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
45pub const __SYSCALL_WORDSIZE: u32 = 64;
46pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
47pub const __HAVE_GENERIC_SELECTION: u32 = 1;
48pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
49pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
50pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
51pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
52pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
53pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
54pub const _BITS_TYPES_H: u32 = 1;
55pub const __TIMESIZE: u32 = 64;
56pub const _BITS_TYPESIZES_H: u32 = 1;
57pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
58pub const __INO_T_MATCHES_INO64_T: u32 = 1;
59pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
60pub const __STATFS_MATCHES_STATFS64: u32 = 1;
61pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
62pub const __FD_SETSIZE: u32 = 1024;
63pub const _BITS_TIME64_H: u32 = 1;
64pub const _BITS_WCHAR_H: u32 = 1;
65pub const _BITS_STDINT_INTN_H: u32 = 1;
66pub const _BITS_STDINT_UINTN_H: u32 = 1;
67pub const INT8_MIN: i32 = -128;
68pub const INT16_MIN: i32 = -32768;
69pub const INT32_MIN: i32 = -2147483648;
70pub const INT8_MAX: u32 = 127;
71pub const INT16_MAX: u32 = 32767;
72pub const INT32_MAX: u32 = 2147483647;
73pub const UINT8_MAX: u32 = 255;
74pub const UINT16_MAX: u32 = 65535;
75pub const UINT32_MAX: u32 = 4294967295;
76pub const INT_LEAST8_MIN: i32 = -128;
77pub const INT_LEAST16_MIN: i32 = -32768;
78pub const INT_LEAST32_MIN: i32 = -2147483648;
79pub const INT_LEAST8_MAX: u32 = 127;
80pub const INT_LEAST16_MAX: u32 = 32767;
81pub const INT_LEAST32_MAX: u32 = 2147483647;
82pub const UINT_LEAST8_MAX: u32 = 255;
83pub const UINT_LEAST16_MAX: u32 = 65535;
84pub const UINT_LEAST32_MAX: u32 = 4294967295;
85pub const INT_FAST8_MIN: i32 = -128;
86pub const INT_FAST16_MIN: i64 = -9223372036854775808;
87pub const INT_FAST32_MIN: i64 = -9223372036854775808;
88pub const INT_FAST8_MAX: u32 = 127;
89pub const INT_FAST16_MAX: u64 = 9223372036854775807;
90pub const INT_FAST32_MAX: u64 = 9223372036854775807;
91pub const UINT_FAST8_MAX: u32 = 255;
92pub const UINT_FAST16_MAX: i32 = -1;
93pub const UINT_FAST32_MAX: i32 = -1;
94pub const INTPTR_MIN: i64 = -9223372036854775808;
95pub const INTPTR_MAX: u64 = 9223372036854775807;
96pub const UINTPTR_MAX: i32 = -1;
97pub const PTRDIFF_MIN: i64 = -9223372036854775808;
98pub const PTRDIFF_MAX: u64 = 9223372036854775807;
99pub const SIG_ATOMIC_MIN: i32 = -2147483648;
100pub const SIG_ATOMIC_MAX: u32 = 2147483647;
101pub const SIZE_MAX: i32 = -1;
102pub const WINT_MIN: u32 = 0;
103pub const WINT_MAX: u32 = 4294967295;
104pub const true_: u32 = 1;
105pub const false_: u32 = 0;
106pub const __bool_true_false_are_defined: u32 = 1;
107pub const ZX_OK: u32 = 0;
108pub const ZX_ERR_INTERNAL: i32 = -1;
109pub const ZX_ERR_NOT_SUPPORTED: i32 = -2;
110pub const ZX_ERR_NO_RESOURCES: i32 = -3;
111pub const ZX_ERR_NO_MEMORY: i32 = -4;
112pub const ZX_ERR_INTERNAL_INTR_RETRY: i32 = -6;
113pub const ZX_ERR_INVALID_ARGS: i32 = -10;
114pub const ZX_ERR_BAD_HANDLE: i32 = -11;
115pub const ZX_ERR_WRONG_TYPE: i32 = -12;
116pub const ZX_ERR_BAD_SYSCALL: i32 = -13;
117pub const ZX_ERR_OUT_OF_RANGE: i32 = -14;
118pub const ZX_ERR_BUFFER_TOO_SMALL: i32 = -15;
119pub const ZX_ERR_BAD_STATE: i32 = -20;
120pub const ZX_ERR_TIMED_OUT: i32 = -21;
121pub const ZX_ERR_SHOULD_WAIT: i32 = -22;
122pub const ZX_ERR_CANCELED: i32 = -23;
123pub const ZX_ERR_PEER_CLOSED: i32 = -24;
124pub const ZX_ERR_NOT_FOUND: i32 = -25;
125pub const ZX_ERR_ALREADY_EXISTS: i32 = -26;
126pub const ZX_ERR_ALREADY_BOUND: i32 = -27;
127pub const ZX_ERR_UNAVAILABLE: i32 = -28;
128pub const ZX_ERR_ACCESS_DENIED: i32 = -30;
129pub const ZX_ERR_IO: i32 = -40;
130pub const ZX_ERR_IO_REFUSED: i32 = -41;
131pub const ZX_ERR_IO_DATA_INTEGRITY: i32 = -42;
132pub const ZX_ERR_IO_DATA_LOSS: i32 = -43;
133pub const ZX_ERR_IO_NOT_PRESENT: i32 = -44;
134pub const ZX_ERR_IO_OVERRUN: i32 = -45;
135pub const ZX_ERR_IO_MISSED_DEADLINE: i32 = -46;
136pub const ZX_ERR_IO_INVALID: i32 = -47;
137pub const ZX_ERR_BAD_PATH: i32 = -50;
138pub const ZX_ERR_NOT_DIR: i32 = -51;
139pub const ZX_ERR_NOT_FILE: i32 = -52;
140pub const ZX_ERR_FILE_BIG: i32 = -53;
141pub const ZX_ERR_NO_SPACE: i32 = -54;
142pub const ZX_ERR_NOT_EMPTY: i32 = -55;
143pub const ZX_ERR_STOP: i32 = -60;
144pub const ZX_ERR_NEXT: i32 = -61;
145pub const ZX_ERR_ASYNC: i32 = -62;
146pub const ZX_ERR_PROTOCOL_NOT_SUPPORTED: i32 = -70;
147pub const ZX_ERR_ADDRESS_UNREACHABLE: i32 = -71;
148pub const ZX_ERR_ADDRESS_IN_USE: i32 = -72;
149pub const ZX_ERR_NOT_CONNECTED: i32 = -73;
150pub const ZX_ERR_CONNECTION_REFUSED: i32 = -74;
151pub const ZX_ERR_CONNECTION_RESET: i32 = -75;
152pub const ZX_ERR_CONNECTION_ABORTED: i32 = -76;
153pub const ZX_ERR_INTERNAL_INTR_KILLED: i32 = -502;
154pub const _TIME_H: u32 = 1;
155pub const _BITS_TIME_H: u32 = 1;
156pub const CLOCK_REALTIME: u32 = 0;
157pub const CLOCK_MONOTONIC: u32 = 1;
158pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2;
159pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3;
160pub const CLOCK_MONOTONIC_RAW: u32 = 4;
161pub const CLOCK_REALTIME_COARSE: u32 = 5;
162pub const CLOCK_MONOTONIC_COARSE: u32 = 6;
163pub const CLOCK_BOOTTIME: u32 = 7;
164pub const CLOCK_REALTIME_ALARM: u32 = 8;
165pub const CLOCK_BOOTTIME_ALARM: u32 = 9;
166pub const CLOCK_TAI: u32 = 11;
167pub const TIMER_ABSTIME: u32 = 1;
168pub const __clock_t_defined: u32 = 1;
169pub const __time_t_defined: u32 = 1;
170pub const __struct_tm_defined: u32 = 1;
171pub const _STRUCT_TIMESPEC: u32 = 1;
172pub const _BITS_ENDIAN_H: u32 = 1;
173pub const __LITTLE_ENDIAN: u32 = 1234;
174pub const __BIG_ENDIAN: u32 = 4321;
175pub const __PDP_ENDIAN: u32 = 3412;
176pub const _BITS_ENDIANNESS_H: u32 = 1;
177pub const __BYTE_ORDER: u32 = 1234;
178pub const __FLOAT_WORD_ORDER: u32 = 1234;
179pub const __clockid_t_defined: u32 = 1;
180pub const __timer_t_defined: u32 = 1;
181pub const __itimerspec_defined: u32 = 1;
182pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
183pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
184pub const TIME_UTC: u32 = 1;
185pub const ZX_VM_ALIGN_BASE: u32 = 24;
186pub const ZX_CPU_SET_MAX_CPUS: u32 = 512;
187pub const ZX_CPU_SET_BITS_PER_WORD: u32 = 64;
188pub const TEEC_NUM_PARAMS_MAX: u32 = 4;
189pub const TEEC_SUCCESS: u32 = 0;
190pub const TEEC_ERROR_GENERIC: u32 = 4294901760;
191pub const TEEC_ERROR_ACCESS_DENIED: u32 = 4294901761;
192pub const TEEC_ERROR_CANCEL: u32 = 4294901762;
193pub const TEEC_ERROR_ACCESS_CONFLICT: u32 = 4294901763;
194pub const TEEC_ERROR_EXCESS_DATA: u32 = 4294901764;
195pub const TEEC_ERROR_BAD_FORMAT: u32 = 4294901765;
196pub const TEEC_ERROR_BAD_PARAMETERS: u32 = 4294901766;
197pub const TEEC_ERROR_BAD_STATE: u32 = 4294901767;
198pub const TEEC_ERROR_ITEM_NOT_FOUND: u32 = 4294901768;
199pub const TEEC_ERROR_NOT_IMPLEMENTED: u32 = 4294901769;
200pub const TEEC_ERROR_NOT_SUPPORTED: u32 = 4294901770;
201pub const TEEC_ERROR_NO_DATA: u32 = 4294901771;
202pub const TEEC_ERROR_OUT_OF_MEMORY: u32 = 4294901772;
203pub const TEEC_ERROR_BUSY: u32 = 4294901773;
204pub const TEEC_ERROR_COMMUNICATION: u32 = 4294901774;
205pub const TEEC_ERROR_SECURITY: u32 = 4294901775;
206pub const TEEC_ERROR_SHORT_BUFFER: u32 = 4294901776;
207pub const TEE_ERROR_EXTERNAL_CANCEL: u32 = 4294901777;
208pub const TEE_ERROR_OVERFLOW: u32 = 4294914063;
209pub const TEE_ERROR_TARGET_DEAD: u32 = 4294914084;
210pub const TEEC_ERROR_TARGET_DEAD: u32 = 4294914084;
211pub const TEE_ERROR_STORAGE_NO_SPACE: u32 = 4294914113;
212pub const TEEC_ORIGIN_API: u32 = 1;
213pub const TEEC_ORIGIN_COMMS: u32 = 2;
214pub const TEEC_ORIGIN_TEE: u32 = 3;
215pub const TEEC_ORIGIN_TRUSTED_APP: u32 = 4;
216pub const TEEC_MEM_INPUT: u32 = 1;
217pub const TEEC_MEM_OUTPUT: u32 = 2;
218pub const TEEC_NONE: u32 = 0;
219pub const TEEC_VALUE_INPUT: u32 = 1;
220pub const TEEC_VALUE_OUTPUT: u32 = 2;
221pub const TEEC_VALUE_INOUT: u32 = 3;
222pub const TEEC_MEMREF_TEMP_INPUT: u32 = 5;
223pub const TEEC_MEMREF_TEMP_OUTPUT: u32 = 6;
224pub const TEEC_MEMREF_TEMP_INOUT: u32 = 7;
225pub const TEEC_MEMREF_WHOLE: u32 = 12;
226pub const TEEC_MEMREF_PARTIAL_INPUT: u32 = 13;
227pub const TEEC_MEMREF_PARTIAL_OUTPUT: u32 = 14;
228pub const TEEC_MEMREF_PARTIAL_INOUT: u32 = 15;
229pub const TEEC_LOGIN_PUBLIC: u32 = 0;
230pub const TEEC_LOGIN_USER: u32 = 1;
231pub const TEEC_LOGIN_GROUP: u32 = 2;
232pub const TEEC_LOGIN_APPLICATION: u32 = 4;
233pub const TEEC_LOGIN_USER_APPLICATION: u32 = 5;
234pub const TEEC_LOGIN_GROUP_APPLICATION: u32 = 6;
235pub type size_t = ::std::os::raw::c_ulong;
236pub type wchar_t = ::std::os::raw::c_int;
237#[repr(C)]
238#[repr(align(16))]
239#[derive(Debug, Copy, Clone)]
240pub struct max_align_t {
241 pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
242 pub __bindgen_padding_0: u64,
243 pub __clang_max_align_nonce2: u128,
244}
245pub type __u_char = ::std::os::raw::c_uchar;
246pub type __u_short = ::std::os::raw::c_ushort;
247pub type __u_int = ::std::os::raw::c_uint;
248pub type __u_long = ::std::os::raw::c_ulong;
249pub type __int8_t = ::std::os::raw::c_schar;
250pub type __uint8_t = ::std::os::raw::c_uchar;
251pub type __int16_t = ::std::os::raw::c_short;
252pub type __uint16_t = ::std::os::raw::c_ushort;
253pub type __int32_t = ::std::os::raw::c_int;
254pub type __uint32_t = ::std::os::raw::c_uint;
255pub type __int64_t = ::std::os::raw::c_long;
256pub type __uint64_t = ::std::os::raw::c_ulong;
257pub type __int_least8_t = __int8_t;
258pub type __uint_least8_t = __uint8_t;
259pub type __int_least16_t = __int16_t;
260pub type __uint_least16_t = __uint16_t;
261pub type __int_least32_t = __int32_t;
262pub type __uint_least32_t = __uint32_t;
263pub type __int_least64_t = __int64_t;
264pub type __uint_least64_t = __uint64_t;
265pub type __quad_t = ::std::os::raw::c_long;
266pub type __u_quad_t = ::std::os::raw::c_ulong;
267pub type __intmax_t = ::std::os::raw::c_long;
268pub type __uintmax_t = ::std::os::raw::c_ulong;
269pub type __dev_t = ::std::os::raw::c_ulong;
270pub type __uid_t = ::std::os::raw::c_uint;
271pub type __gid_t = ::std::os::raw::c_uint;
272pub type __ino_t = ::std::os::raw::c_ulong;
273pub type __ino64_t = ::std::os::raw::c_ulong;
274pub type __mode_t = ::std::os::raw::c_uint;
275pub type __nlink_t = ::std::os::raw::c_ulong;
276pub type __off_t = ::std::os::raw::c_long;
277pub type __off64_t = ::std::os::raw::c_long;
278pub type __pid_t = ::std::os::raw::c_int;
279#[repr(C)]
280#[derive(Debug, Copy, Clone)]
281pub struct __fsid_t {
282 pub __val: [::std::os::raw::c_int; 2usize],
283}
284pub type __clock_t = ::std::os::raw::c_long;
285pub type __rlim_t = ::std::os::raw::c_ulong;
286pub type __rlim64_t = ::std::os::raw::c_ulong;
287pub type __id_t = ::std::os::raw::c_uint;
288pub type __time_t = ::std::os::raw::c_long;
289pub type __useconds_t = ::std::os::raw::c_uint;
290pub type __suseconds_t = ::std::os::raw::c_long;
291pub type __suseconds64_t = ::std::os::raw::c_long;
292pub type __daddr_t = ::std::os::raw::c_int;
293pub type __key_t = ::std::os::raw::c_int;
294pub type __clockid_t = ::std::os::raw::c_int;
295pub type __timer_t = *mut ::std::os::raw::c_void;
296pub type __blksize_t = ::std::os::raw::c_long;
297pub type __blkcnt_t = ::std::os::raw::c_long;
298pub type __blkcnt64_t = ::std::os::raw::c_long;
299pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
300pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
301pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
302pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
303pub type __fsword_t = ::std::os::raw::c_long;
304pub type __ssize_t = ::std::os::raw::c_long;
305pub type __syscall_slong_t = ::std::os::raw::c_long;
306pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
307pub type __loff_t = __off64_t;
308pub type __caddr_t = *mut ::std::os::raw::c_char;
309pub type __intptr_t = ::std::os::raw::c_long;
310pub type __socklen_t = ::std::os::raw::c_uint;
311pub type __sig_atomic_t = ::std::os::raw::c_int;
312pub type int_least8_t = __int_least8_t;
313pub type int_least16_t = __int_least16_t;
314pub type int_least32_t = __int_least32_t;
315pub type int_least64_t = __int_least64_t;
316pub type uint_least8_t = __uint_least8_t;
317pub type uint_least16_t = __uint_least16_t;
318pub type uint_least32_t = __uint_least32_t;
319pub type uint_least64_t = __uint_least64_t;
320pub type int_fast8_t = ::std::os::raw::c_schar;
321pub type int_fast16_t = ::std::os::raw::c_long;
322pub type int_fast32_t = ::std::os::raw::c_long;
323pub type int_fast64_t = ::std::os::raw::c_long;
324pub type uint_fast8_t = ::std::os::raw::c_uchar;
325pub type uint_fast16_t = ::std::os::raw::c_ulong;
326pub type uint_fast32_t = ::std::os::raw::c_ulong;
327pub type uint_fast64_t = ::std::os::raw::c_ulong;
328pub type intmax_t = __intmax_t;
329pub type uintmax_t = __uintmax_t;
330pub type zx_rights_t = u32;
331pub type clock_t = __clock_t;
332pub type time_t = __time_t;
333#[repr(C)]
334#[derive(Debug, Copy, Clone)]
335pub struct tm {
336 pub tm_sec: ::std::os::raw::c_int,
337 pub tm_min: ::std::os::raw::c_int,
338 pub tm_hour: ::std::os::raw::c_int,
339 pub tm_mday: ::std::os::raw::c_int,
340 pub tm_mon: ::std::os::raw::c_int,
341 pub tm_year: ::std::os::raw::c_int,
342 pub tm_wday: ::std::os::raw::c_int,
343 pub tm_yday: ::std::os::raw::c_int,
344 pub tm_isdst: ::std::os::raw::c_int,
345 pub tm_gmtoff: ::std::os::raw::c_long,
346 pub tm_zone: *const ::std::os::raw::c_char,
347}
348#[repr(C)]
349#[derive(Debug, Copy, Clone)]
350pub struct timespec {
351 pub tv_sec: __time_t,
352 pub tv_nsec: __syscall_slong_t,
353}
354pub type clockid_t = __clockid_t;
355pub type timer_t = __timer_t;
356#[repr(C)]
357#[derive(Debug, Copy, Clone)]
358pub struct itimerspec {
359 pub it_interval: timespec,
360 pub it_value: timespec,
361}
362#[repr(C)]
363#[derive(Debug, Copy, Clone)]
364pub struct sigevent {
365 _unused: [u8; 0],
366}
367pub type pid_t = __pid_t;
368#[repr(C)]
369#[derive(Debug, Copy, Clone)]
370pub struct __locale_struct {
371 pub __locales: [*mut __locale_data; 13usize],
372 pub __ctype_b: *const ::std::os::raw::c_ushort,
373 pub __ctype_tolower: *const ::std::os::raw::c_int,
374 pub __ctype_toupper: *const ::std::os::raw::c_int,
375 pub __names: [*const ::std::os::raw::c_char; 13usize],
376}
377pub type __locale_t = *mut __locale_struct;
378pub type locale_t = __locale_t;
379extern "C" {
380 pub fn clock() -> clock_t;
381}
382extern "C" {
383 pub fn time(__timer: *mut time_t) -> time_t;
384}
385extern "C" {
386 pub fn difftime(__time1: time_t, __time0: time_t) -> f64;
387}
388extern "C" {
389 pub fn mktime(__tp: *mut tm) -> time_t;
390}
391extern "C" {
392 pub fn strftime(
393 __s: *mut ::std::os::raw::c_char,
394 __maxsize: size_t,
395 __format: *const ::std::os::raw::c_char,
396 __tp: *const tm,
397 ) -> size_t;
398}
399extern "C" {
400 pub fn strftime_l(
401 __s: *mut ::std::os::raw::c_char,
402 __maxsize: size_t,
403 __format: *const ::std::os::raw::c_char,
404 __tp: *const tm,
405 __loc: locale_t,
406 ) -> size_t;
407}
408extern "C" {
409 pub fn gmtime(__timer: *const time_t) -> *mut tm;
410}
411extern "C" {
412 pub fn localtime(__timer: *const time_t) -> *mut tm;
413}
414extern "C" {
415 pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
416}
417extern "C" {
418 pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
419}
420extern "C" {
421 pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char;
422}
423extern "C" {
424 pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char;
425}
426extern "C" {
427 pub fn asctime_r(
428 __tp: *const tm,
429 __buf: *mut ::std::os::raw::c_char,
430 ) -> *mut ::std::os::raw::c_char;
431}
432extern "C" {
433 pub fn ctime_r(
434 __timer: *const time_t,
435 __buf: *mut ::std::os::raw::c_char,
436 ) -> *mut ::std::os::raw::c_char;
437}
438extern "C" {
439 pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize];
440}
441extern "C" {
442 pub static mut __daylight: ::std::os::raw::c_int;
443}
444extern "C" {
445 pub static mut __timezone: ::std::os::raw::c_long;
446}
447extern "C" {
448 pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize];
449}
450extern "C" {
451 pub fn tzset();
452}
453extern "C" {
454 pub static mut daylight: ::std::os::raw::c_int;
455}
456extern "C" {
457 pub static mut timezone: ::std::os::raw::c_long;
458}
459extern "C" {
460 pub fn timegm(__tp: *mut tm) -> time_t;
461}
462extern "C" {
463 pub fn timelocal(__tp: *mut tm) -> time_t;
464}
465extern "C" {
466 pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
467}
468extern "C" {
469 pub fn nanosleep(
470 __requested_time: *const timespec,
471 __remaining: *mut timespec,
472 ) -> ::std::os::raw::c_int;
473}
474extern "C" {
475 pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
476}
477extern "C" {
478 pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
479}
480extern "C" {
481 pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
482}
483extern "C" {
484 pub fn clock_nanosleep(
485 __clock_id: clockid_t,
486 __flags: ::std::os::raw::c_int,
487 __req: *const timespec,
488 __rem: *mut timespec,
489 ) -> ::std::os::raw::c_int;
490}
491extern "C" {
492 pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int;
493}
494extern "C" {
495 pub fn timer_create(
496 __clock_id: clockid_t,
497 __evp: *mut sigevent,
498 __timerid: *mut timer_t,
499 ) -> ::std::os::raw::c_int;
500}
501extern "C" {
502 pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int;
503}
504extern "C" {
505 pub fn timer_settime(
506 __timerid: timer_t,
507 __flags: ::std::os::raw::c_int,
508 __value: *const itimerspec,
509 __ovalue: *mut itimerspec,
510 ) -> ::std::os::raw::c_int;
511}
512extern "C" {
513 pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int;
514}
515extern "C" {
516 pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int;
517}
518extern "C" {
519 pub fn timespec_get(
520 __ts: *mut timespec,
521 __base: ::std::os::raw::c_int,
522 ) -> ::std::os::raw::c_int;
523}
524pub type zx_time_t = i64;
525pub type zx_duration_t = i64;
526pub type zx_ticks_t = i64;
527pub const memory_order_memory_order_relaxed: memory_order = 0;
528pub const memory_order_memory_order_consume: memory_order = 1;
529pub const memory_order_memory_order_acquire: memory_order = 2;
530pub const memory_order_memory_order_release: memory_order = 3;
531pub const memory_order_memory_order_acq_rel: memory_order = 4;
532pub const memory_order_memory_order_seq_cst: memory_order = 5;
533pub type memory_order = ::std::os::raw::c_uint;
534extern "C" {
535 pub fn atomic_thread_fence(arg1: memory_order);
536}
537extern "C" {
538 pub fn atomic_signal_fence(arg1: memory_order);
539}
540pub type atomic_bool = u8;
541pub type atomic_char = u8;
542pub type atomic_schar = u8;
543pub type atomic_uchar = u8;
544pub type atomic_short = u16;
545pub type atomic_ushort = u16;
546pub type atomic_int = u32;
547pub type atomic_uint = u32;
548pub type atomic_long = u64;
549pub type atomic_ulong = u64;
550pub type atomic_llong = u64;
551pub type atomic_ullong = u64;
552pub type atomic_char16_t = u16;
553pub type atomic_char32_t = u32;
554pub type atomic_wchar_t = u32;
555pub type atomic_int_least8_t = u8;
556pub type atomic_uint_least8_t = u8;
557pub type atomic_int_least16_t = u16;
558pub type atomic_uint_least16_t = u16;
559pub type atomic_int_least32_t = u32;
560pub type atomic_uint_least32_t = u32;
561pub type atomic_int_least64_t = u64;
562pub type atomic_uint_least64_t = u64;
563pub type atomic_int_fast8_t = u8;
564pub type atomic_uint_fast8_t = u8;
565pub type atomic_int_fast16_t = u64;
566pub type atomic_uint_fast16_t = u64;
567pub type atomic_int_fast32_t = u64;
568pub type atomic_uint_fast32_t = u64;
569pub type atomic_int_fast64_t = u64;
570pub type atomic_uint_fast64_t = u64;
571pub type atomic_intptr_t = u64;
572pub type atomic_uintptr_t = u64;
573pub type atomic_size_t = u64;
574pub type atomic_ptrdiff_t = u64;
575pub type atomic_intmax_t = u64;
576pub type atomic_uintmax_t = u64;
577#[repr(C)]
578#[derive(Debug, Copy, Clone)]
579pub struct atomic_flag {
580 pub _Value: atomic_bool,
581}
582extern "C" {
583 pub fn atomic_flag_test_and_set(arg1: *mut atomic_flag) -> bool;
584}
585extern "C" {
586 pub fn atomic_flag_test_and_set_explicit(arg1: *mut atomic_flag, arg2: memory_order) -> bool;
587}
588extern "C" {
589 pub fn atomic_flag_clear(arg1: *mut atomic_flag);
590}
591extern "C" {
592 pub fn atomic_flag_clear_explicit(arg1: *mut atomic_flag, arg2: memory_order);
593}
594pub type zx_handle_t = u32;
595pub type zx_status_t = i32;
596pub type zx_clock_t = u32;
597pub type zx_signals_t = u32;
598pub type zx_koid_t = u64;
599#[repr(C)]
600#[derive(Debug, Copy, Clone)]
601pub struct zx_wait_item {
602 pub handle: zx_handle_t,
603 pub waitfor: zx_signals_t,
604 pub pending: zx_signals_t,
605}
606pub type zx_wait_item_t = zx_wait_item;
607#[repr(C)]
608#[derive(Debug, Copy, Clone)]
609pub struct zx_vmo_lock_state {
610 pub offset: u64,
611 pub size: u64,
612 pub discarded_offset: u64,
613 pub discarded_size: u64,
614}
615pub type zx_vmo_lock_state_t = zx_vmo_lock_state;
616pub type zx_vm_option_t = u32;
617pub type zx_vaddr_t = usize;
618pub type zx_paddr_t = usize;
619pub type zx_gpaddr_t = usize;
620pub type zx_off_t = u64;
621#[repr(C)]
622#[derive(Debug, Copy, Clone)]
623pub struct zx_iovec {
624 pub buffer: *mut ::std::os::raw::c_void,
625 pub capacity: size_t,
626}
627pub type zx_iovec_t = zx_iovec;
628pub type zx_stream_seek_origin_t = u32;
629pub type zx_obj_type_t = u32;
630pub type zx_system_event_type_t = u32;
631#[repr(C)]
632#[derive(Debug, Copy, Clone)]
633pub struct zx_handle_info {
634 pub handle: zx_handle_t,
635 pub type_: zx_obj_type_t,
636 pub rights: zx_rights_t,
637 pub unused: u32,
638}
639pub type zx_handle_info_t = zx_handle_info;
640pub type zx_handle_op_t = u32;
641#[repr(C)]
642#[derive(Debug, Copy, Clone)]
643pub struct zx_handle_disposition {
644 pub operation: zx_handle_op_t,
645 pub handle: zx_handle_t,
646 pub type_: zx_obj_type_t,
647 pub rights: zx_rights_t,
648 pub result: zx_status_t,
649}
650pub type zx_handle_disposition_t = zx_handle_disposition;
651pub type zx_txid_t = u32;
652#[repr(C)]
653#[derive(Debug, Copy, Clone)]
654pub struct zx_channel_call_args {
655 pub wr_bytes: *const ::std::os::raw::c_void,
656 pub wr_handles: *const zx_handle_t,
657 pub rd_bytes: *mut ::std::os::raw::c_void,
658 pub rd_handles: *mut zx_handle_t,
659 pub wr_num_bytes: u32,
660 pub wr_num_handles: u32,
661 pub rd_num_bytes: u32,
662 pub rd_num_handles: u32,
663}
664pub type zx_channel_call_args_t = zx_channel_call_args;
665#[repr(C)]
666#[derive(Debug, Copy, Clone)]
667pub struct zx_channel_call_etc_args {
668 pub wr_bytes: *const ::std::os::raw::c_void,
669 pub wr_handles: *mut zx_handle_disposition_t,
670 pub rd_bytes: *mut ::std::os::raw::c_void,
671 pub rd_handles: *mut zx_handle_info_t,
672 pub wr_num_bytes: u32,
673 pub wr_num_handles: u32,
674 pub rd_num_bytes: u32,
675 pub rd_num_handles: u32,
676}
677pub type zx_channel_call_etc_args_t = zx_channel_call_etc_args;
678#[repr(C)]
679#[derive(Debug, Copy, Clone)]
680pub struct zx_channel_iovec {
681 pub buffer: *const ::std::os::raw::c_void,
682 pub capacity: u32,
683 pub reserved: u32,
684}
685pub type zx_channel_iovec_t = zx_channel_iovec;
686#[repr(C)]
687#[derive(Debug, Copy, Clone)]
688pub struct zx_cpu_set {
689 pub mask: [u64; 8usize],
690}
691pub type zx_cpu_set_t = zx_cpu_set;
692pub type zx_futex_t = atomic_int;
693pub type zx_futex_storage_t = ::std::os::raw::c_int;
694#[repr(C)]
695#[derive(Debug, Copy, Clone)]
696pub struct teec_context_impl {
697 pub device_connector_channel: zx_handle_t,
698 pub uuid_to_channel: *mut ::std::os::raw::c_void,
699}
700pub type teec_context_impl_t = teec_context_impl;
701#[repr(C)]
702#[derive(Debug, Copy, Clone)]
703pub struct teec_session_impl {
704 pub session_id: u32,
705 pub application_channel: zx_handle_t,
706}
707pub type teec_session_impl_t = teec_session_impl;
708#[repr(C)]
709#[derive(Debug, Copy, Clone)]
710pub struct teec_shared_memory_impl {
711 pub vmo: zx_handle_t,
712 pub mapped_addr: zx_vaddr_t,
713 pub mapped_size: size_t,
714}
715pub type teec_shared_memory_impl_t = teec_shared_memory_impl;
716#[repr(C)]
717#[derive(Debug, Copy, Clone)]
718pub struct teec_operation_impl {
719 pub reserved: ::std::os::raw::c_char,
720}
721pub type teec_operation_impl_t = teec_operation_impl;
722#[doc = " Data Types *"]
723pub type TEEC_Result = u32;
724#[repr(C)]
725#[derive(Debug, Copy, Clone)]
726pub struct TEEC_UUID {
727 pub timeLow: u32,
728 pub timeMid: u16,
729 pub timeHiAndVersion: u16,
730 pub clockSeqAndNode: [u8; 8usize],
731}
732#[repr(C)]
733#[derive(Debug, Copy, Clone)]
734pub struct TEEC_Context {
735 pub imp: teec_context_impl_t,
736}
737#[repr(C)]
738#[derive(Debug, Copy, Clone)]
739pub struct TEEC_Session {
740 pub imp: teec_session_impl_t,
741}
742#[repr(C)]
743#[derive(Debug, Copy, Clone)]
744pub struct TEEC_SharedMemory {
745 pub buffer: *mut ::std::os::raw::c_void,
746 pub size: size_t,
747 pub flags: u32,
748 pub imp: teec_shared_memory_impl_t,
749}
750#[repr(C)]
751#[derive(Debug, Copy, Clone)]
752pub struct TEEC_TempMemoryReference {
753 pub buffer: *mut ::std::os::raw::c_void,
754 pub size: size_t,
755}
756#[repr(C)]
757#[derive(Debug, Copy, Clone)]
758pub struct TEEC_RegisteredMemoryReference {
759 pub parent: *mut TEEC_SharedMemory,
760 pub size: size_t,
761 pub offset: size_t,
762}
763#[repr(C)]
764#[derive(Debug, Copy, Clone)]
765pub struct TEEC_Value {
766 pub a: u32,
767 pub b: u32,
768}
769#[repr(C)]
770#[derive(Copy, Clone)]
771pub union TEEC_Parameter {
772 pub tmpref: TEEC_TempMemoryReference,
773 pub memref: TEEC_RegisteredMemoryReference,
774 pub value: TEEC_Value,
775}
776#[repr(C)]
777#[derive(Copy, Clone)]
778pub struct TEEC_Operation {
779 pub started: u32,
780 pub paramTypes: u32,
781 pub params: [TEEC_Parameter; 4usize],
782 pub imp: teec_operation_impl_t,
783}
784extern "C" {
785 #[doc = " Functions *"]
786 pub fn TEEC_InitializeContext(
787 name: *const ::std::os::raw::c_char,
788 context: *mut TEEC_Context,
789 ) -> TEEC_Result;
790}
791extern "C" {
792 pub fn TEEC_FinalizeContext(context: *mut TEEC_Context);
793}
794extern "C" {
795 pub fn TEEC_RegisterSharedMemory(
796 context: *mut TEEC_Context,
797 sharedMem: *mut TEEC_SharedMemory,
798 ) -> TEEC_Result;
799}
800extern "C" {
801 pub fn TEEC_AllocateSharedMemory(
802 context: *mut TEEC_Context,
803 sharedMem: *mut TEEC_SharedMemory,
804 ) -> TEEC_Result;
805}
806extern "C" {
807 pub fn TEEC_ReleaseSharedMemory(sharedMem: *mut TEEC_SharedMemory);
808}
809extern "C" {
810 pub fn TEEC_OpenSession(
811 context: *mut TEEC_Context,
812 session: *mut TEEC_Session,
813 destination: *const TEEC_UUID,
814 connectionMethod: u32,
815 connectionData: *const ::std::os::raw::c_void,
816 operation: *mut TEEC_Operation,
817 returnOrigin: *mut u32,
818 ) -> TEEC_Result;
819}
820extern "C" {
821 pub fn TEEC_CloseSession(session: *mut TEEC_Session);
822}
823extern "C" {
824 pub fn TEEC_InvokeCommand(
825 session: *mut TEEC_Session,
826 commandID: u32,
827 operation: *mut TEEC_Operation,
828 returnOrigin: *mut u32,
829 ) -> TEEC_Result;
830}
831extern "C" {
832 pub fn TEEC_RequestCancellation(operation: *mut TEEC_Operation);
833}
834#[repr(C)]
835#[derive(Debug, Copy, Clone)]
836pub struct __locale_data {
837 pub _address: u8,
838}