@@ -2421,9 +2421,20 @@ pub const SND_CNT: usize = SND_MAX as usize + 1;
24212421pub const UINPUT_VERSION : :: c_uint = 5 ;
24222422pub const UINPUT_MAX_NAME_SIZE : usize = 80 ;
24232423
2424+ // bionic/libc/kernel/uapi/linux/if_tun.h
24242425pub const IFF_TUN : :: c_int = 0x0001 ;
24252426pub const IFF_TAP : :: c_int = 0x0002 ;
2427+ pub const IFF_NAPI : :: c_int = 0x0010 ;
2428+ pub const IFF_NAPI_FRAGS : :: c_int = 0x0020 ;
24262429pub 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 ;
24272438
24282439// start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h
24292440// from https://android.googlesource.com/
@@ -2739,6 +2750,12 @@ pub const PF_VSOCK: ::c_int = AF_VSOCK;
27392750
27402751pub const SOMAXCONN : :: c_int = 128 ;
27412752
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+
27422759// sys/system_properties.h
27432760pub const PROP_VALUE_MAX : :: c_int = 92 ;
27442761pub const PROP_NAME_MAX : :: c_int = 32 ;
@@ -3446,6 +3463,10 @@ extern "C" {
34463463
34473464 pub fn gettid ( ) -> :: pid_t ;
34483465
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+
34493470 pub fn __system_property_set ( __name : * const :: c_char , __value : * const :: c_char ) -> :: c_int ;
34503471 pub fn __system_property_get ( __name : * const :: c_char , __value : * mut :: c_char ) -> :: c_int ;
34513472 pub fn __system_property_find ( __name : * const :: c_char ) -> * const prop_info ;
0 commit comments