From 51ffb71dec6960160a4709f199a86271ea81562b Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 31 Oct 2024 11:18:28 +0100 Subject: [PATCH] Hardware flags --- .github/workflows/rust.yml | 2 +- ndk-sys/Cargo.toml | 2 +- ndk-sys/src/ffi_aarch64.rs | 536 +----------------------------- ndk-sys/src/ffi_arm.rs | 536 +----------------------------- ndk-sys/src/ffi_i686.rs | 535 +---------------------------- ndk-sys/src/ffi_x86_64.rs | 535 +---------------------------- ndk/src/hardware_buffer_format.rs | 25 +- 7 files changed, 48 insertions(+), 2123 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31c6eda9..2210a8a6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -142,4 +142,4 @@ jobs: - name: Document all crates env: RUSTDOCFLAGS: -Dwarnings - run: cargo doc --all --all-features + run: cargo doc --workspace --all-features diff --git a/ndk-sys/Cargo.toml b/ndk-sys/Cargo.toml index 81b3a921..6303471e 100644 --- a/ndk-sys/Cargo.toml +++ b/ndk-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ndk-sys" -version = "0.6.0+12470952" +version = "0.6.0+12584207" authors = ["The Rust Windowing contributors"] edition = "2021" description = "FFI bindings for the Android NDK" diff --git a/ndk-sys/src/ffi_aarch64.rs b/ndk-sys/src/ffi_aarch64.rs index fd560614..6a9c48f8 100644 --- a/ndk-sys/src/ffi_aarch64.rs +++ b/ndk-sys/src/ffi_aarch64.rs @@ -848,40 +848,15 @@ pub const XATTR_NAME_MAX: u32 = 255; pub const XATTR_SIZE_MAX: u32 = 65536; pub const XATTR_LIST_MAX: u32 = 65536; pub const RTSIG_MAX: u32 = 32; -pub const PASS_MAX: u32 = 128; pub const NL_ARGMAX: u32 = 9; pub const NL_LANGMAX: u32 = 14; pub const NL_MSGMAX: u32 = 32767; pub const NL_NMAX: u32 = 1; pub const NL_SETMAX: u32 = 255; pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; +pub const PASS_MAX: u32 = 128; pub const LONG_BIT: u32 = 64; pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MIN: u32 = 0; -pub const CHAR_MAX: u32 = 255; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: i32 = -1; -pub const LONG_MAX: u64 = 9223372036854775807; -pub const LONG_MIN: i64 = -9223372036854775808; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: i32 = -1; -pub const SSIZE_MAX: u64 = 9223372036854775807; pub const MB_LEN_MAX: u32 = 4; pub const NZERO: u32 = 20; pub const IOV_MAX: u32 = 1024; @@ -1006,6 +981,7 @@ pub const LOGIN_NAME_MAX: u32 = 256; pub const TTY_NAME_MAX: u32 = 32; pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const CHAR_MIN: u32 = 0; pub const SA_RESTORER: u32 = 67108864; pub const MINSIGSTKSZ: u32 = 5120; pub const SIGSTKSZ: u32 = 16384; @@ -1346,8 +1322,6 @@ pub const FP_SUBNORMAL: u32 = 8; pub const FP_ZERO: u32 = 16; pub const FP_FAST_FMA: u32 = 1; pub const FP_FAST_FMAF: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; pub const MATH_ERRNO: u32 = 1; pub const MATH_ERREXCEPT: u32 = 2; pub const math_errhandling: u32 = 2; @@ -1403,9 +1377,6 @@ pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; -extern "C" { - pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; -} extern "C" { pub fn android_get_device_api_level() -> ::std::os::raw::c_int; } @@ -2729,31 +2700,6 @@ impl android_fdsan_owner_type { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_owner_type(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_create_owner_tag(type_: android_fdsan_owner_type, tag: u64) -> u64; -} -extern "C" { - pub fn android_fdsan_exchange_owner_tag( - fd: ::std::os::raw::c_int, - expected_tag: u64, - new_tag: u64, - ); -} -extern "C" { - pub fn android_fdsan_close_with_tag( - fd: ::std::os::raw::c_int, - tag: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn android_fdsan_get_owner_tag(fd: ::std::os::raw::c_int) -> u64; -} -extern "C" { - pub fn android_fdsan_get_tag_type(tag: u64) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn android_fdsan_get_tag_value(tag: u64) -> u64; -} impl android_fdsan_error_level { pub const ANDROID_FDSAN_ERROR_LEVEL_DISABLED: android_fdsan_error_level = android_fdsan_error_level(0); @@ -2773,19 +2719,6 @@ impl android_fdsan_error_level { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} extern "C" { pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; } @@ -2954,6 +2887,10 @@ impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_YCbCr_P010: AHardwareBuffer_Format = AHardwareBuffer_Format(54); } +impl AHardwareBuffer_Format { + pub const AHARDWAREBUFFER_FORMAT_YCbCr_P210: AHardwareBuffer_Format = + AHardwareBuffer_Format(60); +} impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_R8_UNORM: AHardwareBuffer_Format = AHardwareBuffer_Format(56); } @@ -5112,18 +5049,6 @@ extern "C" { __type: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyaddr_r( - __addr: *const ::std::os::raw::c_void, - __length: socklen_t, - __type: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn gethostbyname(__name: *const ::std::os::raw::c_char) -> *mut hostent; } @@ -5143,56 +5068,21 @@ extern "C" { __af: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyname2_r( - __name: *const ::std::os::raw::c_char, - __af: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn endhostent(); -} extern "C" { pub fn gethostent() -> *mut hostent; } -extern "C" { - pub fn sethostent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endnetent(); -} extern "C" { pub fn getnetbyaddr(__net: u32, __type: ::std::os::raw::c_int) -> *mut netent; } extern "C" { pub fn getnetbyname(__name: *const ::std::os::raw::c_char) -> *mut netent; } -extern "C" { - pub fn getnetent() -> *mut netent; -} -extern "C" { - pub fn setnetent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endprotoent(); -} extern "C" { pub fn getprotobyname(__name: *const ::std::os::raw::c_char) -> *mut protoent; } extern "C" { pub fn getprotobynumber(__proto: ::std::os::raw::c_int) -> *mut protoent; } -extern "C" { - pub fn getprotoent() -> *mut protoent; -} -extern "C" { - pub fn setprotoent(__stay_open: ::std::os::raw::c_int); -} extern "C" { pub fn endservent(); } @@ -5448,34 +5338,12 @@ extern "C" { extern "C" { pub fn ftello(__fp: *mut FILE) -> off_t; } -extern "C" { - pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fseeko64( - __fp: *mut FILE, - __offset: off64_t, - __whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftello64(__fp: *mut FILE) -> off64_t; -} extern "C" { pub fn fopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -extern "C" { - pub fn fopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} extern "C" { pub fn freopen( __path: *const ::std::os::raw::c_char, @@ -5483,19 +5351,9 @@ extern "C" { __fp: *mut FILE, ) -> *mut FILE; } -extern "C" { - pub fn freopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - __fp: *mut FILE, - ) -> *mut FILE; -} extern "C" { pub fn tmpfile() -> *mut FILE; } -extern "C" { - pub fn tmpfile64() -> *mut FILE; -} extern "C" { pub fn snprintf( __buf: *mut ::std::os::raw::c_char, @@ -5532,9 +5390,6 @@ extern "C" { __args: [u64; 4usize], ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE; } @@ -5571,19 +5426,6 @@ extern "C" { extern "C" { pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, - __size: usize, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn open_memstream( - __ptr: *mut *mut ::std::os::raw::c_char, - __size_ptr: *mut usize, - ) -> *mut FILE; -} extern "C" { pub fn asprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, @@ -5614,18 +5456,6 @@ extern "C" { __args: va_list, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn clearerr_unlocked(__fp: *mut FILE); -} -extern "C" { - pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} extern "C" { pub fn malloc(__byte_count: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } @@ -5721,12 +5551,6 @@ const _: () = { ["Offset of field: mallinfo2::fordblks"][::std::mem::offset_of!(mallinfo2, fordblks) - 64usize]; ["Offset of field: mallinfo2::keepcost"][::std::mem::offset_of!(mallinfo2, keepcost) - 72usize]; }; -extern "C" { - pub fn malloc_info( - __must_be_zero: ::std::os::raw::c_int, - __fp: *mut FILE, - ) -> ::std::os::raw::c_int; -} impl HeapTaggingLevel { pub const M_HEAP_TAGGING_LEVEL_NONE: HeapTaggingLevel = HeapTaggingLevel(0); } @@ -5742,46 +5566,6 @@ impl HeapTaggingLevel { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct HeapTaggingLevel(pub ::std::os::raw::c_uint); -extern "C" { - pub fn mallopt( - __option: ::std::os::raw::c_int, - __value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub static mut __malloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __realloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __free_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __caller: *const ::std::os::raw::c_void, - ), - >; -} -extern "C" { - pub static mut __memalign_hook: ::std::option::Option< - unsafe extern "C" fn( - __alignment: usize, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_t { @@ -5833,44 +5617,12 @@ extern "C" { extern "C" { pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn mkostemp64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemp( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps64( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemp64(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -extern "C" { - pub fn mkstemps64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemps( __template: *mut ::std::os::raw::c_char, @@ -5884,12 +5636,6 @@ extern "C" { __size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn aligned_alloc( - __alignment: ::std::os::raw::c_ulong, - __size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn realpath( __path: *const ::std::os::raw::c_char, @@ -5926,21 +5672,6 @@ extern "C" { >, ); } -extern "C" { - pub fn qsort_r( - __array: *mut ::std::os::raw::c_void, - __n: usize, - __size: usize, - __comparator: ::std::option::Option< - unsafe extern "C" fn( - __lhs: *const ::std::os::raw::c_void, - __rhs: *const ::std::os::raw::c_void, - __context: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - __context: *mut ::std::os::raw::c_void, - ); -} extern "C" { pub fn arc4random() -> u32; } @@ -5959,9 +5690,6 @@ extern "C" { extern "C" { pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } -extern "C" { - pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); -} extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } @@ -6006,13 +5734,6 @@ extern "C" { extern "C" { pub fn unlockpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getsubopt( - __option: *mut *mut ::std::os::raw::c_char, - __tokens: *const *mut ::std::os::raw::c_char, - __value_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct div_t { @@ -6067,18 +5788,12 @@ extern "C" { __denominator: ::std::os::raw::c_longlong, ) -> lldiv_t; } -extern "C" { - pub fn getloadavg(__averages: *mut f64, __n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} extern "C" { pub fn getprogname() -> *const ::std::os::raw::c_char; } extern "C" { pub fn setprogname(__name: *const ::std::os::raw::c_char); } -extern "C" { - pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn mbstowcs(__dst: *mut wchar_t, __src: *const ::std::os::raw::c_char, __n: usize) -> usize; @@ -8610,13 +8325,6 @@ extern "C" { __old_action: *mut sigaction, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaction64( - __signal: ::std::os::raw::c_int, - __new_action: *const sigaction64, - __old_action: *mut sigaction64, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn siginterrupt( __signal: ::std::os::raw::c_int, @@ -8632,54 +8340,27 @@ extern "C" { __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaddset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigdelset( __set: *mut sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigdelset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigemptyset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigfillset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigismember( __set: *const sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigismember64( - __set: *const sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigpending64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigprocmask( __how: ::std::os::raw::c_int, @@ -8687,46 +8368,15 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigprocmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigsuspend(__mask: *const sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigsuspend64(__mask: *const sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigwait( __set: *const sigset_t, __signal: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigwait64( - __set: *const sigset64_t, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sighold(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigignore(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigpause(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigrelse(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigset(__signal: ::std::os::raw::c_int, __handler: sighandler_t) -> sighandler_t; -} extern "C" { pub fn raise(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -8771,53 +8421,6 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pthread_sigmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigqueue( - __pid: pid_t, - __signal: ::std::os::raw::c_int, - __value: sigval, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait( - __set: *const sigset_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait64( - __set: *const sigset64_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo64(__set: *const sigset64_t, __info: *mut siginfo_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sig2str( - __signal: ::std::os::raw::c_int, - __buf: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn str2sig( - __name: *const ::std::os::raw::c_char, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub type fd_mask = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8862,16 +8465,6 @@ extern "C" { __mask: *const sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pselect64( - __max_fd_plus_one: ::std::os::raw::c_int, - __read_fds: *mut fd_set, - __write_fds: *mut fd_set, - __exception_fds: *mut fd_set, - __timeout: *const timespec, - __mask: *const sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fcntl( __fd: ::std::os::raw::c_int, @@ -8879,12 +8472,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getentropy( - __buffer: *mut ::std::os::raw::c_void, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn getopt( __argc: ::std::os::raw::c_int, @@ -8911,20 +8498,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn lockf( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lockf64( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysconf(__name: ::std::os::raw::c_int) -> ::std::os::raw::c_long; } @@ -8937,9 +8510,6 @@ extern "C" { extern "C" { pub fn fork() -> pid_t; } -extern "C" { - pub fn _Fork() -> pid_t; -} extern "C" { pub fn vfork() -> ::std::os::raw::c_int; } @@ -9017,13 +8587,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fexecve( - __fd: ::std::os::raw::c_int, - __argv: *const *mut ::std::os::raw::c_char, - __envp: *const *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn nice(__incr: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9086,12 +8649,6 @@ extern "C" { extern "C" { pub fn getlogin() -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn getlogin_r( - __buffer: *mut ::std::os::raw::c_char, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fpathconf( __fd: ::std::os::raw::c_int, @@ -9344,9 +8901,6 @@ extern "C" { __buf_size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sethostname(__name: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn brk(__addr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } @@ -9387,28 +8941,6 @@ extern "C" { extern "C" { pub fn tcsetpgrp(__fd: ::std::os::raw::c_int, __pid: pid_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getdomainname( - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setdomainname( - __name: *const ::std::os::raw::c_char, - __n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn copy_file_range( - __fd_in: ::std::os::raw::c_int, - __off_in: *mut off64_t, - __fd_out: ::std::os::raw::c_int, - __off_out: *mut off64_t, - __length: usize, - __flags: ::std::os::raw::c_uint, - ) -> isize; -} extern "C" { pub fn swab( __src: *const ::std::os::raw::c_void, @@ -9416,13 +8948,6 @@ extern "C" { __byte_count: isize, ); } -extern "C" { - pub fn close_range( - __min_fd: ::std::os::raw::c_uint, - __max_fd: ::std::os::raw::c_uint, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct APerformanceHintManager { @@ -10976,13 +10501,6 @@ extern "C" { __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strcasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn strncasecmp( __s1: *const ::std::os::raw::c_char, @@ -10990,14 +10508,6 @@ extern "C" { __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strncasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __n: usize, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn memccpy( __dst: *mut ::std::os::raw::c_void, @@ -11048,13 +10558,6 @@ extern "C" { __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn memset_explicit( - __dst: *mut ::std::os::raw::c_void, - __ch: ::std::os::raw::c_int, - __n: usize, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn memmem( __haystack: *const ::std::os::raw::c_void, @@ -11633,18 +11136,12 @@ extern "C" { extern "C" { pub fn mktime(__tm: *mut tm) -> time_t; } -extern "C" { - pub fn mktime_z(__tz: timezone_t, __tm: *mut tm) -> time_t; -} extern "C" { pub fn localtime(__t: *const time_t) -> *mut tm; } extern "C" { pub fn localtime_r(__t: *const time_t, __tm: *mut tm) -> *mut tm; } -extern "C" { - pub fn localtime_rz(__tz: timezone_t, __t: *const time_t, __tm: *mut tm) -> *mut tm; -} extern "C" { pub fn timelocal(__tm: *mut tm) -> time_t; } @@ -11693,18 +11190,9 @@ extern "C" { extern "C" { pub fn tzset(); } -extern "C" { - pub fn tzalloc(__id: *const ::std::os::raw::c_char) -> timezone_t; -} -extern "C" { - pub fn tzfree(__tz: timezone_t); -} extern "C" { pub fn clock() -> clock_t; } -extern "C" { - pub fn clock_getcpuclockid(__pid: pid_t, __clock: *mut clockid_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn clock_getres(__clock: clockid_t, __resolution: *mut timespec) -> ::std::os::raw::c_int; } @@ -11746,18 +11234,6 @@ extern "C" { extern "C" { pub fn timer_getoverrun(__timer: timer_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn timespec_get( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timespec_getres( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_48 = 0; pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_48 = 1; pub type _bindgen_ty_48 = ::std::os::raw::c_uint; diff --git a/ndk-sys/src/ffi_arm.rs b/ndk-sys/src/ffi_arm.rs index 549cf9f4..cf51c932 100644 --- a/ndk-sys/src/ffi_arm.rs +++ b/ndk-sys/src/ffi_arm.rs @@ -853,40 +853,15 @@ pub const XATTR_NAME_MAX: u32 = 255; pub const XATTR_SIZE_MAX: u32 = 65536; pub const XATTR_LIST_MAX: u32 = 65536; pub const RTSIG_MAX: u32 = 32; -pub const PASS_MAX: u32 = 128; pub const NL_ARGMAX: u32 = 9; pub const NL_LANGMAX: u32 = 14; pub const NL_MSGMAX: u32 = 32767; pub const NL_NMAX: u32 = 1; pub const NL_SETMAX: u32 = 255; pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; +pub const PASS_MAX: u32 = 128; pub const LONG_BIT: u32 = 32; pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MIN: u32 = 0; -pub const CHAR_MAX: u32 = 255; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: u32 = 4294967295; -pub const LONG_MAX: u32 = 2147483647; -pub const LONG_MIN: i32 = -2147483648; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: u32 = 4294967295; -pub const SSIZE_MAX: u32 = 2147483647; pub const MB_LEN_MAX: u32 = 4; pub const NZERO: u32 = 20; pub const IOV_MAX: u32 = 1024; @@ -1011,6 +986,7 @@ pub const LOGIN_NAME_MAX: u32 = 256; pub const TTY_NAME_MAX: u32 = 32; pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const CHAR_MIN: u32 = 0; pub const _KERNEL_NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -1351,8 +1327,6 @@ pub const FP_NAN: u32 = 2; pub const FP_NORMAL: u32 = 4; pub const FP_SUBNORMAL: u32 = 8; pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; pub const MATH_ERRNO: u32 = 1; pub const MATH_ERREXCEPT: u32 = 2; pub const math_errhandling: u32 = 2; @@ -1408,9 +1382,6 @@ pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; -extern "C" { - pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; -} extern "C" { pub fn android_get_device_api_level() -> ::std::os::raw::c_int; } @@ -2727,31 +2698,6 @@ impl android_fdsan_owner_type { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_owner_type(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_create_owner_tag(type_: android_fdsan_owner_type, tag: u64) -> u64; -} -extern "C" { - pub fn android_fdsan_exchange_owner_tag( - fd: ::std::os::raw::c_int, - expected_tag: u64, - new_tag: u64, - ); -} -extern "C" { - pub fn android_fdsan_close_with_tag( - fd: ::std::os::raw::c_int, - tag: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn android_fdsan_get_owner_tag(fd: ::std::os::raw::c_int) -> u64; -} -extern "C" { - pub fn android_fdsan_get_tag_type(tag: u64) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn android_fdsan_get_tag_value(tag: u64) -> u64; -} impl android_fdsan_error_level { pub const ANDROID_FDSAN_ERROR_LEVEL_DISABLED: android_fdsan_error_level = android_fdsan_error_level(0); @@ -2771,19 +2717,6 @@ impl android_fdsan_error_level { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} extern "C" { pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; } @@ -2952,6 +2885,10 @@ impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_YCbCr_P010: AHardwareBuffer_Format = AHardwareBuffer_Format(54); } +impl AHardwareBuffer_Format { + pub const AHARDWAREBUFFER_FORMAT_YCbCr_P210: AHardwareBuffer_Format = + AHardwareBuffer_Format(60); +} impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_R8_UNORM: AHardwareBuffer_Format = AHardwareBuffer_Format(56); } @@ -5110,18 +5047,6 @@ extern "C" { __type: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyaddr_r( - __addr: *const ::std::os::raw::c_void, - __length: socklen_t, - __type: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn gethostbyname(__name: *const ::std::os::raw::c_char) -> *mut hostent; } @@ -5141,56 +5066,21 @@ extern "C" { __af: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyname2_r( - __name: *const ::std::os::raw::c_char, - __af: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn endhostent(); -} extern "C" { pub fn gethostent() -> *mut hostent; } -extern "C" { - pub fn sethostent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endnetent(); -} extern "C" { pub fn getnetbyaddr(__net: u32, __type: ::std::os::raw::c_int) -> *mut netent; } extern "C" { pub fn getnetbyname(__name: *const ::std::os::raw::c_char) -> *mut netent; } -extern "C" { - pub fn getnetent() -> *mut netent; -} -extern "C" { - pub fn setnetent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endprotoent(); -} extern "C" { pub fn getprotobyname(__name: *const ::std::os::raw::c_char) -> *mut protoent; } extern "C" { pub fn getprotobynumber(__proto: ::std::os::raw::c_int) -> *mut protoent; } -extern "C" { - pub fn getprotoent() -> *mut protoent; -} -extern "C" { - pub fn setprotoent(__stay_open: ::std::os::raw::c_int); -} extern "C" { pub fn endservent(); } @@ -5443,34 +5333,12 @@ extern "C" { extern "C" { pub fn ftello(__fp: *mut FILE) -> off_t; } -extern "C" { - pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fseeko64( - __fp: *mut FILE, - __offset: off64_t, - __whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftello64(__fp: *mut FILE) -> off64_t; -} extern "C" { pub fn fopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -extern "C" { - pub fn fopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} extern "C" { pub fn freopen( __path: *const ::std::os::raw::c_char, @@ -5478,19 +5346,9 @@ extern "C" { __fp: *mut FILE, ) -> *mut FILE; } -extern "C" { - pub fn freopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - __fp: *mut FILE, - ) -> *mut FILE; -} extern "C" { pub fn tmpfile() -> *mut FILE; } -extern "C" { - pub fn tmpfile64() -> *mut FILE; -} extern "C" { pub fn snprintf( __buf: *mut ::std::os::raw::c_char, @@ -5524,9 +5382,6 @@ extern "C" { __args: u32, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE; } @@ -5563,19 +5418,6 @@ extern "C" { extern "C" { pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, - __size: usize, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn open_memstream( - __ptr: *mut *mut ::std::os::raw::c_char, - __size_ptr: *mut usize, - ) -> *mut FILE; -} extern "C" { pub fn asprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, @@ -5606,18 +5448,6 @@ extern "C" { __args: va_list, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn clearerr_unlocked(__fp: *mut FILE); -} -extern "C" { - pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} extern "C" { pub fn malloc(__byte_count: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void; } @@ -5713,12 +5543,6 @@ const _: () = { ["Offset of field: mallinfo2::fordblks"][::std::mem::offset_of!(mallinfo2, fordblks) - 32usize]; ["Offset of field: mallinfo2::keepcost"][::std::mem::offset_of!(mallinfo2, keepcost) - 36usize]; }; -extern "C" { - pub fn malloc_info( - __must_be_zero: ::std::os::raw::c_int, - __fp: *mut FILE, - ) -> ::std::os::raw::c_int; -} impl HeapTaggingLevel { pub const M_HEAP_TAGGING_LEVEL_NONE: HeapTaggingLevel = HeapTaggingLevel(0); } @@ -5734,46 +5558,6 @@ impl HeapTaggingLevel { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct HeapTaggingLevel(pub ::std::os::raw::c_uint); -extern "C" { - pub fn mallopt( - __option: ::std::os::raw::c_int, - __value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub static mut __malloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __realloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __free_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __caller: *const ::std::os::raw::c_void, - ), - >; -} -extern "C" { - pub static mut __memalign_hook: ::std::option::Option< - unsafe extern "C" fn( - __alignment: usize, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_t { @@ -5825,44 +5609,12 @@ extern "C" { extern "C" { pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn mkostemp64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemp( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps64( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemp64(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -extern "C" { - pub fn mkstemps64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemps( __template: *mut ::std::os::raw::c_char, @@ -5876,12 +5628,6 @@ extern "C" { __size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn aligned_alloc( - __alignment: ::std::os::raw::c_uint, - __size: ::std::os::raw::c_uint, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn realpath( __path: *const ::std::os::raw::c_char, @@ -5918,21 +5664,6 @@ extern "C" { >, ); } -extern "C" { - pub fn qsort_r( - __array: *mut ::std::os::raw::c_void, - __n: usize, - __size: usize, - __comparator: ::std::option::Option< - unsafe extern "C" fn( - __lhs: *const ::std::os::raw::c_void, - __rhs: *const ::std::os::raw::c_void, - __context: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - __context: *mut ::std::os::raw::c_void, - ); -} extern "C" { pub fn arc4random() -> u32; } @@ -5951,9 +5682,6 @@ extern "C" { extern "C" { pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } -extern "C" { - pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); -} extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } @@ -5998,13 +5726,6 @@ extern "C" { extern "C" { pub fn unlockpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getsubopt( - __option: *mut *mut ::std::os::raw::c_char, - __tokens: *const *mut ::std::os::raw::c_char, - __value_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct div_t { @@ -6059,18 +5780,12 @@ extern "C" { __denominator: ::std::os::raw::c_longlong, ) -> lldiv_t; } -extern "C" { - pub fn getloadavg(__averages: *mut f64, __n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} extern "C" { pub fn getprogname() -> *const ::std::os::raw::c_char; } extern "C" { pub fn setprogname(__name: *const ::std::os::raw::c_char); } -extern "C" { - pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn mbstowcs(__dst: *mut wchar_t, __src: *const ::std::os::raw::c_char, __n: usize) -> usize; @@ -8774,13 +8489,6 @@ extern "C" { __old_action: *mut sigaction, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaction64( - __signal: ::std::os::raw::c_int, - __new_action: *const sigaction64, - __old_action: *mut sigaction64, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn siginterrupt( __signal: ::std::os::raw::c_int, @@ -8796,54 +8504,27 @@ extern "C" { __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaddset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigdelset( __set: *mut sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigdelset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigemptyset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigfillset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigismember( __set: *const sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigismember64( - __set: *const sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigpending64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigprocmask( __how: ::std::os::raw::c_int, @@ -8851,46 +8532,15 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigprocmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigsuspend(__mask: *const sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigsuspend64(__mask: *const sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigwait( __set: *const sigset_t, __signal: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigwait64( - __set: *const sigset64_t, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sighold(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigignore(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigpause(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigrelse(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigset(__signal: ::std::os::raw::c_int, __handler: sighandler_t) -> sighandler_t; -} extern "C" { pub fn raise(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -8935,53 +8585,6 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pthread_sigmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigqueue( - __pid: pid_t, - __signal: ::std::os::raw::c_int, - __value: sigval, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait( - __set: *const sigset_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait64( - __set: *const sigset64_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo64(__set: *const sigset64_t, __info: *mut siginfo_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sig2str( - __signal: ::std::os::raw::c_int, - __buf: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn str2sig( - __name: *const ::std::os::raw::c_char, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub type fd_mask = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9026,16 +8629,6 @@ extern "C" { __mask: *const sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pselect64( - __max_fd_plus_one: ::std::os::raw::c_int, - __read_fds: *mut fd_set, - __write_fds: *mut fd_set, - __exception_fds: *mut fd_set, - __timeout: *const timespec, - __mask: *const sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fcntl( __fd: ::std::os::raw::c_int, @@ -9043,12 +8636,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getentropy( - __buffer: *mut ::std::os::raw::c_void, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn getopt( __argc: ::std::os::raw::c_int, @@ -9075,20 +8662,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn lockf( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lockf64( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysconf(__name: ::std::os::raw::c_int) -> ::std::os::raw::c_long; } @@ -9101,9 +8674,6 @@ extern "C" { extern "C" { pub fn fork() -> pid_t; } -extern "C" { - pub fn _Fork() -> pid_t; -} extern "C" { pub fn vfork() -> ::std::os::raw::c_int; } @@ -9181,13 +8751,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fexecve( - __fd: ::std::os::raw::c_int, - __argv: *const *mut ::std::os::raw::c_char, - __envp: *const *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn nice(__incr: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9250,12 +8813,6 @@ extern "C" { extern "C" { pub fn getlogin() -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn getlogin_r( - __buffer: *mut ::std::os::raw::c_char, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fpathconf( __fd: ::std::os::raw::c_int, @@ -9508,9 +9065,6 @@ extern "C" { __buf_size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sethostname(__name: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn brk(__addr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } @@ -9558,28 +9112,6 @@ extern "C" { extern "C" { pub fn tcsetpgrp(__fd: ::std::os::raw::c_int, __pid: pid_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getdomainname( - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setdomainname( - __name: *const ::std::os::raw::c_char, - __n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn copy_file_range( - __fd_in: ::std::os::raw::c_int, - __off_in: *mut off64_t, - __fd_out: ::std::os::raw::c_int, - __off_out: *mut off64_t, - __length: usize, - __flags: ::std::os::raw::c_uint, - ) -> isize; -} extern "C" { pub fn swab( __src: *const ::std::os::raw::c_void, @@ -9587,13 +9119,6 @@ extern "C" { __byte_count: isize, ); } -extern "C" { - pub fn close_range( - __min_fd: ::std::os::raw::c_uint, - __max_fd: ::std::os::raw::c_uint, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct APerformanceHintManager { @@ -11147,13 +10672,6 @@ extern "C" { __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strcasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn strncasecmp( __s1: *const ::std::os::raw::c_char, @@ -11161,14 +10679,6 @@ extern "C" { __n: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strncasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __n: usize, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn memccpy( __dst: *mut ::std::os::raw::c_void, @@ -11219,13 +10729,6 @@ extern "C" { __n: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn memset_explicit( - __dst: *mut ::std::os::raw::c_void, - __ch: ::std::os::raw::c_int, - __n: usize, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn memmem( __haystack: *const ::std::os::raw::c_void, @@ -11804,18 +11307,12 @@ extern "C" { extern "C" { pub fn mktime(__tm: *mut tm) -> time_t; } -extern "C" { - pub fn mktime_z(__tz: timezone_t, __tm: *mut tm) -> time_t; -} extern "C" { pub fn localtime(__t: *const time_t) -> *mut tm; } extern "C" { pub fn localtime_r(__t: *const time_t, __tm: *mut tm) -> *mut tm; } -extern "C" { - pub fn localtime_rz(__tz: timezone_t, __t: *const time_t, __tm: *mut tm) -> *mut tm; -} extern "C" { pub fn timelocal(__tm: *mut tm) -> time_t; } @@ -11864,18 +11361,9 @@ extern "C" { extern "C" { pub fn tzset(); } -extern "C" { - pub fn tzalloc(__id: *const ::std::os::raw::c_char) -> timezone_t; -} -extern "C" { - pub fn tzfree(__tz: timezone_t); -} extern "C" { pub fn clock() -> clock_t; } -extern "C" { - pub fn clock_getcpuclockid(__pid: pid_t, __clock: *mut clockid_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn clock_getres(__clock: clockid_t, __resolution: *mut timespec) -> ::std::os::raw::c_int; } @@ -11917,18 +11405,6 @@ extern "C" { extern "C" { pub fn timer_getoverrun(__timer: timer_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn timespec_get( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timespec_getres( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; pub type _bindgen_ty_49 = ::std::os::raw::c_uint; diff --git a/ndk-sys/src/ffi_i686.rs b/ndk-sys/src/ffi_i686.rs index a82dae8f..d232d6d8 100644 --- a/ndk-sys/src/ffi_i686.rs +++ b/ndk-sys/src/ffi_i686.rs @@ -776,40 +776,15 @@ pub const XATTR_NAME_MAX: u32 = 255; pub const XATTR_SIZE_MAX: u32 = 65536; pub const XATTR_LIST_MAX: u32 = 65536; pub const RTSIG_MAX: u32 = 32; -pub const PASS_MAX: u32 = 128; pub const NL_ARGMAX: u32 = 9; pub const NL_LANGMAX: u32 = 14; pub const NL_MSGMAX: u32 = 32767; pub const NL_NMAX: u32 = 1; pub const NL_SETMAX: u32 = 255; pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; +pub const PASS_MAX: u32 = 128; pub const LONG_BIT: u32 = 32; pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MAX: u32 = 127; -pub const CHAR_MIN: i32 = -128; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: u32 = 4294967295; -pub const LONG_MAX: u32 = 2147483647; -pub const LONG_MIN: i32 = -2147483648; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: u32 = 4294967295; -pub const SSIZE_MAX: u32 = 2147483647; pub const MB_LEN_MAX: u32 = 4; pub const NZERO: u32 = 20; pub const IOV_MAX: u32 = 1024; @@ -1272,8 +1247,6 @@ pub const FP_NAN: u32 = 2; pub const FP_NORMAL: u32 = 4; pub const FP_SUBNORMAL: u32 = 8; pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; pub const MATH_ERRNO: u32 = 1; pub const MATH_ERREXCEPT: u32 = 2; pub const math_errhandling: u32 = 2; @@ -1329,9 +1302,6 @@ pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; -extern "C" { - pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; -} extern "C" { pub fn android_get_device_api_level() -> ::std::os::raw::c_int; } @@ -2649,31 +2619,6 @@ impl android_fdsan_owner_type { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_owner_type(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_create_owner_tag(type_: android_fdsan_owner_type, tag: u64) -> u64; -} -extern "C" { - pub fn android_fdsan_exchange_owner_tag( - fd: ::std::os::raw::c_int, - expected_tag: u64, - new_tag: u64, - ); -} -extern "C" { - pub fn android_fdsan_close_with_tag( - fd: ::std::os::raw::c_int, - tag: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn android_fdsan_get_owner_tag(fd: ::std::os::raw::c_int) -> u64; -} -extern "C" { - pub fn android_fdsan_get_tag_type(tag: u64) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn android_fdsan_get_tag_value(tag: u64) -> u64; -} impl android_fdsan_error_level { pub const ANDROID_FDSAN_ERROR_LEVEL_DISABLED: android_fdsan_error_level = android_fdsan_error_level(0); @@ -2693,19 +2638,6 @@ impl android_fdsan_error_level { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} extern "C" { pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; } @@ -2874,6 +2806,10 @@ impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_YCbCr_P010: AHardwareBuffer_Format = AHardwareBuffer_Format(54); } +impl AHardwareBuffer_Format { + pub const AHARDWAREBUFFER_FORMAT_YCbCr_P210: AHardwareBuffer_Format = + AHardwareBuffer_Format(60); +} impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_R8_UNORM: AHardwareBuffer_Format = AHardwareBuffer_Format(56); } @@ -5032,18 +4968,6 @@ extern "C" { __type: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyaddr_r( - __addr: *const ::std::os::raw::c_void, - __length: socklen_t, - __type: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn gethostbyname(__name: *const ::std::os::raw::c_char) -> *mut hostent; } @@ -5063,56 +4987,21 @@ extern "C" { __af: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyname2_r( - __name: *const ::std::os::raw::c_char, - __af: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn endhostent(); -} extern "C" { pub fn gethostent() -> *mut hostent; } -extern "C" { - pub fn sethostent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endnetent(); -} extern "C" { pub fn getnetbyaddr(__net: u32, __type: ::std::os::raw::c_int) -> *mut netent; } extern "C" { pub fn getnetbyname(__name: *const ::std::os::raw::c_char) -> *mut netent; } -extern "C" { - pub fn getnetent() -> *mut netent; -} -extern "C" { - pub fn setnetent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endprotoent(); -} extern "C" { pub fn getprotobyname(__name: *const ::std::os::raw::c_char) -> *mut protoent; } extern "C" { pub fn getprotobynumber(__proto: ::std::os::raw::c_int) -> *mut protoent; } -extern "C" { - pub fn getprotoent() -> *mut protoent; -} -extern "C" { - pub fn setprotoent(__stay_open: ::std::os::raw::c_int); -} extern "C" { pub fn endservent(); } @@ -5368,34 +5257,12 @@ extern "C" { extern "C" { pub fn ftello(__fp: *mut FILE) -> off_t; } -extern "C" { - pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fseeko64( - __fp: *mut FILE, - __offset: off64_t, - __whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftello64(__fp: *mut FILE) -> off64_t; -} extern "C" { pub fn fopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -extern "C" { - pub fn fopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} extern "C" { pub fn freopen( __path: *const ::std::os::raw::c_char, @@ -5403,19 +5270,9 @@ extern "C" { __fp: *mut FILE, ) -> *mut FILE; } -extern "C" { - pub fn freopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - __fp: *mut FILE, - ) -> *mut FILE; -} extern "C" { pub fn tmpfile() -> *mut FILE; } -extern "C" { - pub fn tmpfile64() -> *mut FILE; -} extern "C" { pub fn snprintf( __buf: *mut ::std::os::raw::c_char, @@ -5452,9 +5309,6 @@ extern "C" { __args: __builtin_va_list, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE; } @@ -5491,19 +5345,6 @@ extern "C" { extern "C" { pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, - __size: usize, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn open_memstream( - __ptr: *mut *mut ::std::os::raw::c_char, - __size_ptr: *mut usize, - ) -> *mut FILE; -} extern "C" { pub fn asprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, @@ -5534,18 +5375,6 @@ extern "C" { __args: va_list, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn clearerr_unlocked(__fp: *mut FILE); -} -extern "C" { - pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} extern "C" { pub fn malloc(__byte_count: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void; } @@ -5641,12 +5470,6 @@ const _: () = { ["Offset of field: mallinfo2::fordblks"][::std::mem::offset_of!(mallinfo2, fordblks) - 32usize]; ["Offset of field: mallinfo2::keepcost"][::std::mem::offset_of!(mallinfo2, keepcost) - 36usize]; }; -extern "C" { - pub fn malloc_info( - __must_be_zero: ::std::os::raw::c_int, - __fp: *mut FILE, - ) -> ::std::os::raw::c_int; -} impl HeapTaggingLevel { pub const M_HEAP_TAGGING_LEVEL_NONE: HeapTaggingLevel = HeapTaggingLevel(0); } @@ -5662,46 +5485,6 @@ impl HeapTaggingLevel { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct HeapTaggingLevel(pub ::std::os::raw::c_uint); -extern "C" { - pub fn mallopt( - __option: ::std::os::raw::c_int, - __value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub static mut __malloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __realloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __free_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __caller: *const ::std::os::raw::c_void, - ), - >; -} -extern "C" { - pub static mut __memalign_hook: ::std::option::Option< - unsafe extern "C" fn( - __alignment: usize, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_t { @@ -5753,44 +5536,12 @@ extern "C" { extern "C" { pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn mkostemp64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemp( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps64( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemp64(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -extern "C" { - pub fn mkstemps64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemps( __template: *mut ::std::os::raw::c_char, @@ -5804,12 +5555,6 @@ extern "C" { __size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn aligned_alloc( - __alignment: ::std::os::raw::c_uint, - __size: ::std::os::raw::c_uint, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn realpath( __path: *const ::std::os::raw::c_char, @@ -5846,21 +5591,6 @@ extern "C" { >, ); } -extern "C" { - pub fn qsort_r( - __array: *mut ::std::os::raw::c_void, - __n: usize, - __size: usize, - __comparator: ::std::option::Option< - unsafe extern "C" fn( - __lhs: *const ::std::os::raw::c_void, - __rhs: *const ::std::os::raw::c_void, - __context: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - __context: *mut ::std::os::raw::c_void, - ); -} extern "C" { pub fn arc4random() -> u32; } @@ -5879,9 +5609,6 @@ extern "C" { extern "C" { pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } -extern "C" { - pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); -} extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } @@ -5926,13 +5653,6 @@ extern "C" { extern "C" { pub fn unlockpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getsubopt( - __option: *mut *mut ::std::os::raw::c_char, - __tokens: *const *mut ::std::os::raw::c_char, - __value_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct div_t { @@ -5987,18 +5707,12 @@ extern "C" { __denominator: ::std::os::raw::c_longlong, ) -> lldiv_t; } -extern "C" { - pub fn getloadavg(__averages: *mut f64, __n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} extern "C" { pub fn getprogname() -> *const ::std::os::raw::c_char; } extern "C" { pub fn setprogname(__name: *const ::std::os::raw::c_char); } -extern "C" { - pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn mbstowcs(__dst: *mut wchar_t, __src: *const ::std::os::raw::c_char, __n: usize) -> usize; @@ -9075,13 +8789,6 @@ extern "C" { __old_action: *mut sigaction, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaction64( - __signal: ::std::os::raw::c_int, - __new_action: *const sigaction64, - __old_action: *mut sigaction64, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn siginterrupt( __signal: ::std::os::raw::c_int, @@ -9097,54 +8804,27 @@ extern "C" { __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaddset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigdelset( __set: *mut sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigdelset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigemptyset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigfillset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigismember( __set: *const sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigismember64( - __set: *const sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigpending64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigprocmask( __how: ::std::os::raw::c_int, @@ -9152,46 +8832,15 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigprocmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigsuspend(__mask: *const sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigsuspend64(__mask: *const sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigwait( __set: *const sigset_t, __signal: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigwait64( - __set: *const sigset64_t, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sighold(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigignore(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigpause(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigrelse(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigset(__signal: ::std::os::raw::c_int, __handler: sighandler_t) -> sighandler_t; -} extern "C" { pub fn raise(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9236,53 +8885,6 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pthread_sigmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigqueue( - __pid: pid_t, - __signal: ::std::os::raw::c_int, - __value: sigval, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait( - __set: *const sigset_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait64( - __set: *const sigset64_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo64(__set: *const sigset64_t, __info: *mut siginfo_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sig2str( - __signal: ::std::os::raw::c_int, - __buf: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn str2sig( - __name: *const ::std::os::raw::c_char, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub type fd_mask = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9327,16 +8929,6 @@ extern "C" { __mask: *const sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pselect64( - __max_fd_plus_one: ::std::os::raw::c_int, - __read_fds: *mut fd_set, - __write_fds: *mut fd_set, - __exception_fds: *mut fd_set, - __timeout: *const timespec, - __mask: *const sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fcntl( __fd: ::std::os::raw::c_int, @@ -9344,12 +8936,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getentropy( - __buffer: *mut ::std::os::raw::c_void, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn getopt( __argc: ::std::os::raw::c_int, @@ -9376,20 +8962,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn lockf( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lockf64( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysconf(__name: ::std::os::raw::c_int) -> ::std::os::raw::c_long; } @@ -9402,9 +8974,6 @@ extern "C" { extern "C" { pub fn fork() -> pid_t; } -extern "C" { - pub fn _Fork() -> pid_t; -} extern "C" { pub fn vfork() -> ::std::os::raw::c_int; } @@ -9482,13 +9051,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fexecve( - __fd: ::std::os::raw::c_int, - __argv: *const *mut ::std::os::raw::c_char, - __envp: *const *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn nice(__incr: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9551,12 +9113,6 @@ extern "C" { extern "C" { pub fn getlogin() -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn getlogin_r( - __buffer: *mut ::std::os::raw::c_char, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fpathconf( __fd: ::std::os::raw::c_int, @@ -9809,9 +9365,6 @@ extern "C" { __buf_size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sethostname(__name: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn brk(__addr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } @@ -9852,28 +9405,6 @@ extern "C" { extern "C" { pub fn tcsetpgrp(__fd: ::std::os::raw::c_int, __pid: pid_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getdomainname( - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setdomainname( - __name: *const ::std::os::raw::c_char, - __n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn copy_file_range( - __fd_in: ::std::os::raw::c_int, - __off_in: *mut off64_t, - __fd_out: ::std::os::raw::c_int, - __off_out: *mut off64_t, - __length: usize, - __flags: ::std::os::raw::c_uint, - ) -> isize; -} extern "C" { pub fn swab( __src: *const ::std::os::raw::c_void, @@ -9881,13 +9412,6 @@ extern "C" { __byte_count: isize, ); } -extern "C" { - pub fn close_range( - __min_fd: ::std::os::raw::c_uint, - __max_fd: ::std::os::raw::c_uint, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct APerformanceHintManager { @@ -11441,13 +10965,6 @@ extern "C" { __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strcasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn strncasecmp( __s1: *const ::std::os::raw::c_char, @@ -11455,14 +10972,6 @@ extern "C" { __n: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strncasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __n: usize, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn memccpy( __dst: *mut ::std::os::raw::c_void, @@ -11513,13 +11022,6 @@ extern "C" { __n: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn memset_explicit( - __dst: *mut ::std::os::raw::c_void, - __ch: ::std::os::raw::c_int, - __n: usize, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn memmem( __haystack: *const ::std::os::raw::c_void, @@ -12098,18 +11600,12 @@ extern "C" { extern "C" { pub fn mktime(__tm: *mut tm) -> time_t; } -extern "C" { - pub fn mktime_z(__tz: timezone_t, __tm: *mut tm) -> time_t; -} extern "C" { pub fn localtime(__t: *const time_t) -> *mut tm; } extern "C" { pub fn localtime_r(__t: *const time_t, __tm: *mut tm) -> *mut tm; } -extern "C" { - pub fn localtime_rz(__tz: timezone_t, __t: *const time_t, __tm: *mut tm) -> *mut tm; -} extern "C" { pub fn timelocal(__tm: *mut tm) -> time_t; } @@ -12158,18 +11654,9 @@ extern "C" { extern "C" { pub fn tzset(); } -extern "C" { - pub fn tzalloc(__id: *const ::std::os::raw::c_char) -> timezone_t; -} -extern "C" { - pub fn tzfree(__tz: timezone_t); -} extern "C" { pub fn clock() -> clock_t; } -extern "C" { - pub fn clock_getcpuclockid(__pid: pid_t, __clock: *mut clockid_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn clock_getres(__clock: clockid_t, __resolution: *mut timespec) -> ::std::os::raw::c_int; } @@ -12211,18 +11698,6 @@ extern "C" { extern "C" { pub fn timer_getoverrun(__timer: timer_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn timespec_get( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timespec_getres( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; pub type _bindgen_ty_49 = ::std::os::raw::c_uint; diff --git a/ndk-sys/src/ffi_x86_64.rs b/ndk-sys/src/ffi_x86_64.rs index a30c8379..3f49c2f5 100644 --- a/ndk-sys/src/ffi_x86_64.rs +++ b/ndk-sys/src/ffi_x86_64.rs @@ -824,40 +824,15 @@ pub const XATTR_NAME_MAX: u32 = 255; pub const XATTR_SIZE_MAX: u32 = 65536; pub const XATTR_LIST_MAX: u32 = 65536; pub const RTSIG_MAX: u32 = 32; -pub const PASS_MAX: u32 = 128; pub const NL_ARGMAX: u32 = 9; pub const NL_LANGMAX: u32 = 14; pub const NL_MSGMAX: u32 = 32767; pub const NL_NMAX: u32 = 1; pub const NL_SETMAX: u32 = 255; pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; +pub const PASS_MAX: u32 = 128; pub const LONG_BIT: u32 = 64; pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MAX: u32 = 127; -pub const CHAR_MIN: i32 = -128; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: i32 = -1; -pub const LONG_MAX: u64 = 9223372036854775807; -pub const LONG_MIN: i64 = -9223372036854775808; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: i32 = -1; -pub const SSIZE_MAX: u64 = 9223372036854775807; pub const MB_LEN_MAX: u32 = 4; pub const NZERO: u32 = 20; pub const IOV_MAX: u32 = 1024; @@ -1317,8 +1292,6 @@ pub const FP_NAN: u32 = 2; pub const FP_NORMAL: u32 = 4; pub const FP_SUBNORMAL: u32 = 8; pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; pub const MATH_ERRNO: u32 = 1; pub const MATH_ERREXCEPT: u32 = 2; pub const math_errhandling: u32 = 2; @@ -1374,9 +1347,6 @@ pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; -extern "C" { - pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; -} extern "C" { pub fn android_get_device_api_level() -> ::std::os::raw::c_int; } @@ -2700,31 +2670,6 @@ impl android_fdsan_owner_type { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_owner_type(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_create_owner_tag(type_: android_fdsan_owner_type, tag: u64) -> u64; -} -extern "C" { - pub fn android_fdsan_exchange_owner_tag( - fd: ::std::os::raw::c_int, - expected_tag: u64, - new_tag: u64, - ); -} -extern "C" { - pub fn android_fdsan_close_with_tag( - fd: ::std::os::raw::c_int, - tag: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn android_fdsan_get_owner_tag(fd: ::std::os::raw::c_int) -> u64; -} -extern "C" { - pub fn android_fdsan_get_tag_type(tag: u64) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn android_fdsan_get_tag_value(tag: u64) -> u64; -} impl android_fdsan_error_level { pub const ANDROID_FDSAN_ERROR_LEVEL_DISABLED: android_fdsan_error_level = android_fdsan_error_level(0); @@ -2744,19 +2689,6 @@ impl android_fdsan_error_level { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); -extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} -extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; -} extern "C" { pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; } @@ -2925,6 +2857,10 @@ impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_YCbCr_P010: AHardwareBuffer_Format = AHardwareBuffer_Format(54); } +impl AHardwareBuffer_Format { + pub const AHARDWAREBUFFER_FORMAT_YCbCr_P210: AHardwareBuffer_Format = + AHardwareBuffer_Format(60); +} impl AHardwareBuffer_Format { pub const AHARDWAREBUFFER_FORMAT_R8_UNORM: AHardwareBuffer_Format = AHardwareBuffer_Format(56); } @@ -5083,18 +5019,6 @@ extern "C" { __type: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyaddr_r( - __addr: *const ::std::os::raw::c_void, - __length: socklen_t, - __type: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn gethostbyname(__name: *const ::std::os::raw::c_char) -> *mut hostent; } @@ -5114,56 +5038,21 @@ extern "C" { __af: ::std::os::raw::c_int, ) -> *mut hostent; } -extern "C" { - pub fn gethostbyname2_r( - __name: *const ::std::os::raw::c_char, - __af: ::std::os::raw::c_int, - __ret: *mut hostent, - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - __result: *mut *mut hostent, - __h_errno_ptr: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn endhostent(); -} extern "C" { pub fn gethostent() -> *mut hostent; } -extern "C" { - pub fn sethostent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endnetent(); -} extern "C" { pub fn getnetbyaddr(__net: u32, __type: ::std::os::raw::c_int) -> *mut netent; } extern "C" { pub fn getnetbyname(__name: *const ::std::os::raw::c_char) -> *mut netent; } -extern "C" { - pub fn getnetent() -> *mut netent; -} -extern "C" { - pub fn setnetent(__stay_open: ::std::os::raw::c_int); -} -extern "C" { - pub fn endprotoent(); -} extern "C" { pub fn getprotobyname(__name: *const ::std::os::raw::c_char) -> *mut protoent; } extern "C" { pub fn getprotobynumber(__proto: ::std::os::raw::c_int) -> *mut protoent; } -extern "C" { - pub fn getprotoent() -> *mut protoent; -} -extern "C" { - pub fn setprotoent(__stay_open: ::std::os::raw::c_int); -} extern "C" { pub fn endservent(); } @@ -5419,34 +5308,12 @@ extern "C" { extern "C" { pub fn ftello(__fp: *mut FILE) -> off_t; } -extern "C" { - pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fseeko64( - __fp: *mut FILE, - __offset: off64_t, - __whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ftello64(__fp: *mut FILE) -> off64_t; -} extern "C" { pub fn fopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } -extern "C" { - pub fn fopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} extern "C" { pub fn freopen( __path: *const ::std::os::raw::c_char, @@ -5454,19 +5321,9 @@ extern "C" { __fp: *mut FILE, ) -> *mut FILE; } -extern "C" { - pub fn freopen64( - __path: *const ::std::os::raw::c_char, - __mode: *const ::std::os::raw::c_char, - __fp: *mut FILE, - ) -> *mut FILE; -} extern "C" { pub fn tmpfile() -> *mut FILE; } -extern "C" { - pub fn tmpfile64() -> *mut FILE; -} extern "C" { pub fn snprintf( __buf: *mut ::std::os::raw::c_char, @@ -5503,9 +5360,6 @@ extern "C" { __args: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE; } @@ -5542,19 +5396,6 @@ extern "C" { extern "C" { pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fmemopen( - __buf: *mut ::std::os::raw::c_void, - __size: usize, - __mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; -} -extern "C" { - pub fn open_memstream( - __ptr: *mut *mut ::std::os::raw::c_char, - __size_ptr: *mut usize, - ) -> *mut FILE; -} extern "C" { pub fn asprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, @@ -5585,18 +5426,6 @@ extern "C" { __args: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn clearerr_unlocked(__fp: *mut FILE); -} -extern "C" { - pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; -} extern "C" { pub fn malloc(__byte_count: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } @@ -5692,12 +5521,6 @@ const _: () = { ["Offset of field: mallinfo2::fordblks"][::std::mem::offset_of!(mallinfo2, fordblks) - 64usize]; ["Offset of field: mallinfo2::keepcost"][::std::mem::offset_of!(mallinfo2, keepcost) - 72usize]; }; -extern "C" { - pub fn malloc_info( - __must_be_zero: ::std::os::raw::c_int, - __fp: *mut FILE, - ) -> ::std::os::raw::c_int; -} impl HeapTaggingLevel { pub const M_HEAP_TAGGING_LEVEL_NONE: HeapTaggingLevel = HeapTaggingLevel(0); } @@ -5713,46 +5536,6 @@ impl HeapTaggingLevel { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct HeapTaggingLevel(pub ::std::os::raw::c_uint); -extern "C" { - pub fn mallopt( - __option: ::std::os::raw::c_int, - __value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub static mut __malloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __realloc_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} -extern "C" { - pub static mut __free_hook: ::std::option::Option< - unsafe extern "C" fn( - __ptr: *mut ::std::os::raw::c_void, - __caller: *const ::std::os::raw::c_void, - ), - >; -} -extern "C" { - pub static mut __memalign_hook: ::std::option::Option< - unsafe extern "C" fn( - __alignment: usize, - __byte_count: usize, - __caller: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_t { @@ -5804,44 +5587,12 @@ extern "C" { extern "C" { pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn mkostemp64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemp( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps64( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mkostemps( - __template: *mut ::std::os::raw::c_char, - __suffix_length: ::std::os::raw::c_int, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemp64(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -extern "C" { - pub fn mkstemps64( - __template: *mut ::std::os::raw::c_char, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn mkstemps( __template: *mut ::std::os::raw::c_char, @@ -5855,12 +5606,6 @@ extern "C" { __size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn aligned_alloc( - __alignment: ::std::os::raw::c_ulong, - __size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn realpath( __path: *const ::std::os::raw::c_char, @@ -5897,21 +5642,6 @@ extern "C" { >, ); } -extern "C" { - pub fn qsort_r( - __array: *mut ::std::os::raw::c_void, - __n: usize, - __size: usize, - __comparator: ::std::option::Option< - unsafe extern "C" fn( - __lhs: *const ::std::os::raw::c_void, - __rhs: *const ::std::os::raw::c_void, - __context: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - __context: *mut ::std::os::raw::c_void, - ); -} extern "C" { pub fn arc4random() -> u32; } @@ -5930,9 +5660,6 @@ extern "C" { extern "C" { pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } -extern "C" { - pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); -} extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } @@ -5977,13 +5704,6 @@ extern "C" { extern "C" { pub fn unlockpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getsubopt( - __option: *mut *mut ::std::os::raw::c_char, - __tokens: *const *mut ::std::os::raw::c_char, - __value_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct div_t { @@ -6038,18 +5758,12 @@ extern "C" { __denominator: ::std::os::raw::c_longlong, ) -> lldiv_t; } -extern "C" { - pub fn getloadavg(__averages: *mut f64, __n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} extern "C" { pub fn getprogname() -> *const ::std::os::raw::c_char; } extern "C" { pub fn setprogname(__name: *const ::std::os::raw::c_char); } -extern "C" { - pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn mbstowcs(__dst: *mut wchar_t, __src: *const ::std::os::raw::c_char, __n: usize) -> usize; @@ -9115,13 +8829,6 @@ extern "C" { __old_action: *mut sigaction, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaction64( - __signal: ::std::os::raw::c_int, - __new_action: *const sigaction64, - __old_action: *mut sigaction64, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn siginterrupt( __signal: ::std::os::raw::c_int, @@ -9137,54 +8844,27 @@ extern "C" { __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigaddset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigdelset( __set: *mut sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigdelset64( - __set: *mut sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigemptyset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigfillset64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigismember( __set: *const sigset_t, __signal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigismember64( - __set: *const sigset64_t, - __signal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigpending64(__set: *mut sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigprocmask( __how: ::std::os::raw::c_int, @@ -9192,46 +8872,15 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigprocmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigsuspend(__mask: *const sigset_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigsuspend64(__mask: *const sigset64_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn sigwait( __set: *const sigset_t, __signal: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sigwait64( - __set: *const sigset64_t, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sighold(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigignore(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigpause(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigrelse(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigset(__signal: ::std::os::raw::c_int, __handler: sighandler_t) -> sighandler_t; -} extern "C" { pub fn raise(__signal: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9276,53 +8925,6 @@ extern "C" { __old_set: *mut sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pthread_sigmask64( - __how: ::std::os::raw::c_int, - __new_set: *const sigset64_t, - __old_set: *mut sigset64_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigqueue( - __pid: pid_t, - __signal: ::std::os::raw::c_int, - __value: sigval, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait( - __set: *const sigset_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigtimedwait64( - __set: *const sigset64_t, - __info: *mut siginfo_t, - __timeout: *const timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sigwaitinfo64(__set: *const sigset64_t, __info: *mut siginfo_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sig2str( - __signal: ::std::os::raw::c_int, - __buf: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn str2sig( - __name: *const ::std::os::raw::c_char, - __signal: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub type fd_mask = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9367,16 +8969,6 @@ extern "C" { __mask: *const sigset_t, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn pselect64( - __max_fd_plus_one: ::std::os::raw::c_int, - __read_fds: *mut fd_set, - __write_fds: *mut fd_set, - __exception_fds: *mut fd_set, - __timeout: *const timespec, - __mask: *const sigset64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fcntl( __fd: ::std::os::raw::c_int, @@ -9384,12 +8976,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getentropy( - __buffer: *mut ::std::os::raw::c_void, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn getopt( __argc: ::std::os::raw::c_int, @@ -9416,20 +9002,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn lockf( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lockf64( - __fd: ::std::os::raw::c_int, - __op: ::std::os::raw::c_int, - __length: off64_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysconf(__name: ::std::os::raw::c_int) -> ::std::os::raw::c_long; } @@ -9442,9 +9014,6 @@ extern "C" { extern "C" { pub fn fork() -> pid_t; } -extern "C" { - pub fn _Fork() -> pid_t; -} extern "C" { pub fn vfork() -> ::std::os::raw::c_int; } @@ -9522,13 +9091,6 @@ extern "C" { ... ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn fexecve( - __fd: ::std::os::raw::c_int, - __argv: *const *mut ::std::os::raw::c_char, - __envp: *const *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn nice(__incr: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } @@ -9591,12 +9153,6 @@ extern "C" { extern "C" { pub fn getlogin() -> *mut ::std::os::raw::c_char; } -extern "C" { - pub fn getlogin_r( - __buffer: *mut ::std::os::raw::c_char, - __buffer_size: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn fpathconf( __fd: ::std::os::raw::c_int, @@ -9849,9 +9405,6 @@ extern "C" { __buf_size: usize, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sethostname(__name: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; -} extern "C" { pub fn brk(__addr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } @@ -9892,28 +9445,6 @@ extern "C" { extern "C" { pub fn tcsetpgrp(__fd: ::std::os::raw::c_int, __pid: pid_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn getdomainname( - __buf: *mut ::std::os::raw::c_char, - __buf_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setdomainname( - __name: *const ::std::os::raw::c_char, - __n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn copy_file_range( - __fd_in: ::std::os::raw::c_int, - __off_in: *mut off64_t, - __fd_out: ::std::os::raw::c_int, - __off_out: *mut off64_t, - __length: usize, - __flags: ::std::os::raw::c_uint, - ) -> isize; -} extern "C" { pub fn swab( __src: *const ::std::os::raw::c_void, @@ -9921,13 +9452,6 @@ extern "C" { __byte_count: isize, ); } -extern "C" { - pub fn close_range( - __min_fd: ::std::os::raw::c_uint, - __max_fd: ::std::os::raw::c_uint, - __flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct APerformanceHintManager { @@ -11481,13 +11005,6 @@ extern "C" { __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strcasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn strncasecmp( __s1: *const ::std::os::raw::c_char, @@ -11495,14 +11012,6 @@ extern "C" { __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - pub fn strncasecmp_l( - __s1: *const ::std::os::raw::c_char, - __s2: *const ::std::os::raw::c_char, - __n: usize, - __l: locale_t, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn memccpy( __dst: *mut ::std::os::raw::c_void, @@ -11553,13 +11062,6 @@ extern "C" { __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn memset_explicit( - __dst: *mut ::std::os::raw::c_void, - __ch: ::std::os::raw::c_int, - __n: usize, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn memmem( __haystack: *const ::std::os::raw::c_void, @@ -12138,18 +11640,12 @@ extern "C" { extern "C" { pub fn mktime(__tm: *mut tm) -> time_t; } -extern "C" { - pub fn mktime_z(__tz: timezone_t, __tm: *mut tm) -> time_t; -} extern "C" { pub fn localtime(__t: *const time_t) -> *mut tm; } extern "C" { pub fn localtime_r(__t: *const time_t, __tm: *mut tm) -> *mut tm; } -extern "C" { - pub fn localtime_rz(__tz: timezone_t, __t: *const time_t, __tm: *mut tm) -> *mut tm; -} extern "C" { pub fn timelocal(__tm: *mut tm) -> time_t; } @@ -12198,18 +11694,9 @@ extern "C" { extern "C" { pub fn tzset(); } -extern "C" { - pub fn tzalloc(__id: *const ::std::os::raw::c_char) -> timezone_t; -} -extern "C" { - pub fn tzfree(__tz: timezone_t); -} extern "C" { pub fn clock() -> clock_t; } -extern "C" { - pub fn clock_getcpuclockid(__pid: pid_t, __clock: *mut clockid_t) -> ::std::os::raw::c_int; -} extern "C" { pub fn clock_getres(__clock: clockid_t, __resolution: *mut timespec) -> ::std::os::raw::c_int; } @@ -12251,18 +11738,6 @@ extern "C" { extern "C" { pub fn timer_getoverrun(__timer: timer_t) -> ::std::os::raw::c_int; } -extern "C" { - pub fn timespec_get( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timespec_getres( - __ts: *mut timespec, - __base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; pub type _bindgen_ty_49 = ::std::os::raw::c_uint; diff --git a/ndk/src/hardware_buffer_format.rs b/ndk/src/hardware_buffer_format.rs index 555669f5..759695f8 100644 --- a/ndk/src/hardware_buffer_format.rs +++ b/ndk/src/hardware_buffer_format.rs @@ -9,6 +9,7 @@ use num_enum::{FromPrimitive, IntoPrimitive}; #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, IntoPrimitive)] #[allow(non_camel_case_types)] #[non_exhaustive] +#[doc(alias = "AHardwareBuffer_Format")] pub enum HardwareBufferFormat { /// Matches deprecated [`ffi::ANativeWindow_LegacyFormat::WINDOW_FORMAT_RGBA_8888`].0. #[doc(alias = "AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM")] @@ -60,11 +61,25 @@ pub enum HardwareBufferFormat { #[doc(alias = "AHARDWAREBUFFER_FORMAT_YCbCr_P010")] YCbCr_P010 = ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_YCbCr_P010.0 as i32, #[cfg(feature = "api-level-26")] + #[doc(alias = "AHARDWAREBUFFER_FORMAT_YCbCr_P210")] + YCbCr_P210 = ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_YCbCr_P210.0 as i32, + #[cfg(feature = "api-level-26")] + #[doc(alias = "AHARDWAREBUFFER_FORMAT_R8_UNORM")] R8_UNORM = ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8_UNORM.0 as i32, + #[cfg(feature = "api-level-26")] + #[doc(alias = "AHARDWAREBUFFER_FORMAT_R16_UINT")] + R16_UINT = ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R16_UINT.0 as i32, + #[cfg(feature = "api-level-26")] + #[doc(alias = "AHARDWAREBUFFER_FORMAT_R16G16_UINT")] + R16G16_UINT = ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R16G16_UINT.0 as i32, + #[cfg(feature = "api-level-26")] + #[doc(alias = "AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM")] + R10G10B10A10_UNORM = + ffi::AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM.0 as i32, #[doc(hidden)] #[num_enum(catch_all)] - __Unknown(i32), + __Unknown(i32) = 0, } impl HardwareBufferFormat { @@ -99,7 +114,15 @@ impl HardwareBufferFormat { #[cfg(feature = "api-level-26")] Self::YCbCr_P010 => return None, #[cfg(feature = "api-level-26")] + Self::YCbCr_P210 => return None, + #[cfg(feature = "api-level-26")] Self::R8_UNORM => 1, + #[cfg(feature = "api-level-26")] + Self::R16_UINT => 2, + #[cfg(feature = "api-level-26")] + Self::R16G16_UINT => 4, + #[cfg(feature = "api-level-26")] + Self::R10G10B10A10_UNORM => return None, // TODO: 5? Self::__Unknown(_) => return None, }) }