• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/src/unix/linux_like/android/b32/arm.rs b/src/unix/linux_like/android/b32/arm.rs
2index 8a53e539..6fd47679 100644
3--- a/src/unix/linux_like/android/b32/arm.rs
4+++ b/src/unix/linux_like/android/b32/arm.rs
5@@ -501,6 +501,8 @@ pub const SYS_pwritev2: ::c_long = 393;
6 pub const SYS_pkey_mprotect: ::c_long = 394;
7 pub const SYS_pkey_alloc: ::c_long = 395;
8 pub const SYS_pkey_free: ::c_long = 396;
9+pub const SYS_io_uring_setup: ::c_long = 425;
10+pub const SYS_io_uring_enter: ::c_long = 426;
11
12 // offsets in mcontext_t.gregs from sys/ucontext.h
13 pub const REG_R0: ::c_int = 0;
14diff --git a/src/unix/linux_like/android/b32/x86/mod.rs b/src/unix/linux_like/android/b32/x86/mod.rs
15index 6507cb4e..ee537fd0 100644
16--- a/src/unix/linux_like/android/b32/x86/mod.rs
17+++ b/src/unix/linux_like/android/b32/x86/mod.rs
18@@ -533,6 +533,8 @@ pub const SYS_pwritev2: ::c_long = 379;
19 pub const SYS_pkey_mprotect: ::c_long = 380;
20 pub const SYS_pkey_alloc: ::c_long = 381;
21 pub const SYS_pkey_free: ::c_long = 382;
22+pub const SYS_io_uring_setup: ::c_long = 425;
23+pub const SYS_io_uring_enter: ::c_long = 426;
24
25 // offsets in user_regs_structs, from sys/reg.h
26 pub const EBX: ::c_int = 0;
27diff --git a/src/unix/linux_like/android/b64/aarch64/mod.rs b/src/unix/linux_like/android/b64/aarch64/mod.rs
28index 5acb328b..316596f5 100644
29--- a/src/unix/linux_like/android/b64/aarch64/mod.rs
30+++ b/src/unix/linux_like/android/b64/aarch64/mod.rs
31@@ -365,6 +365,8 @@ pub const SYS_pwritev2: ::c_long = 287;
32 pub const SYS_pkey_mprotect: ::c_long = 288;
33 pub const SYS_pkey_alloc: ::c_long = 289;
34 pub const SYS_pkey_free: ::c_long = 290;
35+pub const SYS_io_uring_setup: ::c_long = 425;
36+pub const SYS_io_uring_enter: ::c_long = 426;
37 pub const SYS_syscalls: ::c_long = 436;
38
39 cfg_if! {
40diff --git a/src/unix/linux_like/android/b64/x86_64/mod.rs b/src/unix/linux_like/android/b64/x86_64/mod.rs
41index 27fd17b3..5b559dde 100644
42--- a/src/unix/linux_like/android/b64/x86_64/mod.rs
43+++ b/src/unix/linux_like/android/b64/x86_64/mod.rs
44@@ -602,6 +602,8 @@ pub const SYS_pwritev2: ::c_long = 328;
45 pub const SYS_pkey_mprotect: ::c_long = 329;
46 pub const SYS_pkey_alloc: ::c_long = 330;
47 pub const SYS_pkey_free: ::c_long = 331;
48+pub const SYS_io_uring_setup: ::c_long = 425;
49+pub const SYS_io_uring_enter: ::c_long = 426;
50
51 // offsets in user_regs_structs, from sys/reg.h
52 pub const R15: ::c_int = 0;
53diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs
54index d64a365e..541b40f3 100644
55--- a/src/unix/linux_like/android/mod.rs
56+++ b/src/unix/linux_like/android/mod.rs
57@@ -2348,6 +2348,10 @@ pub const AF_VSOCK: ::c_int = 40;
58 pub const PF_NFC: ::c_int = AF_NFC;
59 pub const PF_VSOCK: ::c_int = AF_VSOCK;
60
61+// sys/prctl.h
62+pub const PR_GET_SECUREBITS: ::c_int = 27;
63+pub const PR_SET_SECUREBITS: ::c_int = 28;
64+
65 // sys/system_properties.h
66 pub const PROP_VALUE_MAX: ::c_int = 92;
67
68@@ -2780,6 +2784,10 @@ extern "C" {
69
70     pub fn gettid() -> ::pid_t;
71
72+    pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
73+
74+    pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;
75+
76     pub fn __system_property_set(__name: *const ::c_char, __value: *const ::c_char) -> ::c_int;
77     pub fn __system_property_get(__name: *const ::c_char, __value: *mut ::c_char) -> ::c_int;
78
79