File tree Expand file tree Collapse file tree 4 files changed +32
-32
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 4 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,6 @@ s! {
152152 }
153153}
154154
155- extern {
156- pub fn getrandom (
157- buf : * mut :: c_void ,
158- buflen : :: size_t ,
159- flags : :: c_uint ,
160- ) -> :: ssize_t ;
161- }
162-
163155pub const SIGSTKSZ : :: size_t = 8192 ;
164156pub const MINSIGSTKSZ : :: size_t = 2048 ;
165157
@@ -851,3 +843,11 @@ pub const AF_MAX: ::c_int = 45;
851843 https://github.com/rust-lang/libc/issues/665"
852844) ]
853845pub const PF_MAX : :: c_int = AF_MAX ;
846+
847+ extern {
848+ pub fn getrandom (
849+ buf : * mut :: c_void ,
850+ buflen : :: size_t ,
851+ flags : :: c_uint ,
852+ ) -> :: ssize_t ;
853+ }
Original file line number Diff line number Diff line change @@ -155,14 +155,6 @@ s! {
155155 }
156156}
157157
158- extern {
159- pub fn getrandom (
160- buf : * mut :: c_void ,
161- buflen : :: size_t ,
162- flags : :: c_uint ,
163- ) -> :: ssize_t ;
164- }
165-
166158pub const MADV_SOFT_OFFLINE : :: c_int = 101 ;
167159pub const SIGSTKSZ : :: size_t = 10240 ;
168160pub const MINSIGSTKSZ : :: size_t = 4096 ;
@@ -877,3 +869,11 @@ pub const AF_MAX: ::c_int = 43;
877869 https://github.com/rust-lang/libc/issues/665"
878870) ]
879871pub const PF_MAX : :: c_int = AF_MAX ;
872+
873+ extern {
874+ pub fn getrandom (
875+ buf : * mut :: c_void ,
876+ buflen : :: size_t ,
877+ flags : :: c_uint ,
878+ ) -> :: ssize_t ;
879+ }
Original file line number Diff line number Diff line change @@ -167,14 +167,6 @@ s_no_extra_traits!{
167167 }
168168}
169169
170- extern {
171- pub fn getrandom (
172- buf : * mut :: c_void ,
173- buflen : :: size_t ,
174- flags : :: c_uint ,
175- ) -> :: ssize_t ;
176- }
177-
178170cfg_if ! {
179171 if #[ cfg( feature = "extra_traits" ) ] {
180172 impl PartialEq for ucontext_t {
@@ -959,3 +951,11 @@ pub const AF_MAX: ::c_int = 45;
959951 https://github.com/rust-lang/libc/issues/665"
960952) ]
961953pub const PF_MAX : :: c_int = AF_MAX ;
954+
955+ extern {
956+ pub fn getrandom (
957+ buf : * mut :: c_void ,
958+ buflen : :: size_t ,
959+ flags : :: c_uint ,
960+ ) -> :: ssize_t ;
961+ }
Original file line number Diff line number Diff line change @@ -129,14 +129,6 @@ s! {
129129 }
130130}
131131
132- extern {
133- pub fn getrandom (
134- buf : * mut :: c_void ,
135- buflen : :: size_t ,
136- flags : :: c_uint ,
137- ) -> :: ssize_t ;
138- }
139-
140132pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
141133pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
142134
@@ -320,6 +312,14 @@ pub const VEOF: usize = 4;
320312pub const POLLWRNORM : :: c_short = 0x100 ;
321313pub const POLLWRBAND : :: c_short = 0x200 ;
322314
315+ extern {
316+ pub fn getrandom (
317+ buf : * mut :: c_void ,
318+ buflen : :: size_t ,
319+ flags : :: c_uint ,
320+ ) -> :: ssize_t ;
321+ }
322+
323323cfg_if ! {
324324 if #[ cfg( target_arch = "aarch64" ) ] {
325325 mod aarch64;
You can’t perform that action at this time.
0 commit comments