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) {
17061706 "sys/msg.h" ,
17071707 "sys/procdesc.h" ,
17081708 "sys/ptrace.h" ,
1709+ "sys/random.h" ,
17091710 "sys/resource.h" ,
17101711 "sys/rtprio.h" ,
17111712 "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;
197197pub const F_SEAL_GROW : :: c_int = 0x0004 ;
198198pub const F_SEAL_WRITE : :: c_int = 0x0008 ;
199199
200+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
201+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
202+
200203cfg_if ! {
201204 if #[ cfg( not( freebsd13) ) ] {
202205 pub const ELAST : :: c_int = 96 ;
203206 } else {
204207 pub const EINTEGRITY : :: c_int = 97 ;
205208 pub const ELAST : :: c_int = 97 ;
209+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
206210 }
207211}
208212
@@ -229,6 +233,12 @@ extern "C" {
229233 ) -> :: c_int ;
230234
231235 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 ;
232242}
233243
234244cfg_if ! {
You can’t perform that action at this time.
0 commit comments