File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/unix/bsd/freebsdlike/freebsd/freebsd12 Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1706,6 +1706,7 @@ fn test_freebsd(target: &str) {
1706
1706
"sys/msg.h" ,
1707
1707
"sys/procdesc.h" ,
1708
1708
"sys/ptrace.h" ,
1709
+ "sys/random.h" ,
1709
1710
"sys/resource.h" ,
1710
1711
"sys/rtprio.h" ,
1711
1712
"sys/shm.h" ,
Original file line number Diff line number Diff line change @@ -197,12 +197,16 @@ pub const F_SEAL_SHRINK: ::c_int = 0x0002;
197
197
pub const F_SEAL_GROW : :: c_int = 0x0004 ;
198
198
pub const F_SEAL_WRITE : :: c_int = 0x0008 ;
199
199
200
+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
201
+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
202
+
200
203
cfg_if ! {
201
204
if #[ cfg( not( freebsd13) ) ] {
202
205
pub const ELAST : :: c_int = 96 ;
203
206
} else {
204
207
pub const EINTEGRITY : :: c_int = 97 ;
205
208
pub const ELAST : :: c_int = 97 ;
209
+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
206
210
}
207
211
}
208
212
@@ -229,6 +233,12 @@ extern "C" {
229
233
) -> :: c_int ;
230
234
231
235
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
236
+
237
+ pub fn getrandom (
238
+ buf : * mut :: c_void ,
239
+ buflen : :: size_t ,
240
+ flags : :: c_uint
241
+ ) -> :: ssize_t ;
232
242
}
233
243
234
244
cfg_if ! {
You can’t perform that action at this time.
0 commit comments