@@ -2421,9 +2421,20 @@ pub const SND_CNT: usize = SND_MAX as usize + 1;
2421
2421
pub const UINPUT_VERSION : :: c_uint = 5 ;
2422
2422
pub const UINPUT_MAX_NAME_SIZE : usize = 80 ;
2423
2423
2424
+ // bionic/libc/kernel/uapi/linux/if_tun.h
2424
2425
pub const IFF_TUN : :: c_int = 0x0001 ;
2425
2426
pub const IFF_TAP : :: c_int = 0x0002 ;
2427
+ pub const IFF_NAPI : :: c_int = 0x0010 ;
2428
+ pub const IFF_NAPI_FRAGS : :: c_int = 0x0020 ;
2426
2429
pub const IFF_NO_PI : :: c_int = 0x1000 ;
2430
+ pub const IFF_ONE_QUEUE : :: c_int = 0x2000 ;
2431
+ pub const IFF_VNET_HDR : :: c_int = 0x4000 ;
2432
+ pub const IFF_TUN_EXCL : :: c_int = 0x8000 ;
2433
+ pub const IFF_MULTI_QUEUE : :: c_int = 0x0100 ;
2434
+ pub const IFF_ATTACH_QUEUE : :: c_int = 0x0200 ;
2435
+ pub const IFF_DETACH_QUEUE : :: c_int = 0x0400 ;
2436
+ pub const IFF_PERSIST : :: c_int = 0x0800 ;
2437
+ pub const IFF_NOFILTER : :: c_int = 0x1000 ;
2427
2438
2428
2439
// start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h
2429
2440
// from https://android.googlesource.com/
@@ -2739,6 +2750,12 @@ pub const PF_VSOCK: ::c_int = AF_VSOCK;
2739
2750
2740
2751
pub const SOMAXCONN : :: c_int = 128 ;
2741
2752
2753
+ // sys/prctl.h
2754
+ pub const PR_SET_PDEATHSIG : :: c_int = 1 ;
2755
+ pub const PR_GET_PDEATHSIG : :: c_int = 2 ;
2756
+ pub const PR_GET_SECUREBITS : :: c_int = 27 ;
2757
+ pub const PR_SET_SECUREBITS : :: c_int = 28 ;
2758
+
2742
2759
// sys/system_properties.h
2743
2760
pub const PROP_VALUE_MAX : :: c_int = 92 ;
2744
2761
pub const PROP_NAME_MAX : :: c_int = 32 ;
@@ -3446,6 +3463,10 @@ extern "C" {
3446
3463
3447
3464
pub fn gettid ( ) -> :: pid_t ;
3448
3465
3466
+ pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
3467
+
3468
+ pub fn pthread_setname_np ( thread : :: pthread_t , name : * const :: c_char ) -> :: c_int ;
3469
+
3449
3470
pub fn __system_property_set ( __name : * const :: c_char , __value : * const :: c_char ) -> :: c_int ;
3450
3471
pub fn __system_property_get ( __name : * const :: c_char , __value : * mut :: c_char ) -> :: c_int ;
3451
3472
pub fn __system_property_find ( __name : * const :: c_char ) -> * const prop_info ;
0 commit comments