File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,14 @@ s! {
152
152
}
153
153
}
154
154
155
+ extern {
156
+ pub fn getrandom (
157
+ buf : * mut :: c_void ,
158
+ buflen : :: size_t ,
159
+ flags : :: c_uint ,
160
+ ) -> :: ssize_t ;
161
+ }
162
+
155
163
pub const SIGSTKSZ : :: size_t = 8192 ;
156
164
pub const MINSIGSTKSZ : :: size_t = 2048 ;
157
165
Original file line number Diff line number Diff line change @@ -155,6 +155,14 @@ s! {
155
155
}
156
156
}
157
157
158
+ extern {
159
+ pub fn getrandom (
160
+ buf : * mut :: c_void ,
161
+ buflen : :: size_t ,
162
+ flags : :: c_uint ,
163
+ ) -> :: ssize_t ;
164
+ }
165
+
158
166
pub const MADV_SOFT_OFFLINE : :: c_int = 101 ;
159
167
pub const SIGSTKSZ : :: size_t = 10240 ;
160
168
pub const MINSIGSTKSZ : :: size_t = 4096 ;
Original file line number Diff line number Diff line change @@ -167,6 +167,14 @@ s_no_extra_traits!{
167
167
}
168
168
}
169
169
170
+ extern {
171
+ pub fn getrandom (
172
+ buf : * mut :: c_void ,
173
+ buflen : :: size_t ,
174
+ flags : :: c_uint ,
175
+ ) -> :: ssize_t ;
176
+ }
177
+
170
178
cfg_if ! {
171
179
if #[ cfg( feature = "extra_traits" ) ] {
172
180
impl PartialEq for ucontext_t {
Original file line number Diff line number Diff line change @@ -129,6 +129,14 @@ s! {
129
129
}
130
130
}
131
131
132
+ extern {
133
+ pub fn getrandom (
134
+ buf : * mut :: c_void ,
135
+ buflen : :: size_t ,
136
+ flags : :: c_uint ,
137
+ ) -> :: ssize_t ;
138
+ }
139
+
132
140
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
133
141
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
134
142
You can’t perform that action at this time.
0 commit comments