Home
last modified time | relevance | path

Searched refs:GRND_NONBLOCK (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/kern/
H A Dsys_getrandom.c38 #define GRND_VALIDFLAGS (GRND_NONBLOCK | GRND_RANDOM | GRND_INSECURE)
92 flags |= GRND_NONBLOCK; in kern_getrandom()
109 error = read_random_uio(&auio, (flags & GRND_NONBLOCK) != 0); in kern_getrandom()
/freebsd/tests/sys/kern/
H A Dsys_getrandom.c37 static const unsigned valid_flags[] = { 0, GRND_NONBLOCK, GRND_RANDOM,
38 GRND_NONBLOCK | GRND_RANDOM };
57 if (ret < 0 && (mode & GRND_NONBLOCK) != 0 && in ATF_TC_BODY()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp184 #if !defined(GRND_NONBLOCK) in getRandom()
185 #define GRND_NONBLOCK 1 in getRandom()
189 syscall(SYS_getrandom, Buffer, Length, Blocking ? 0 : GRND_NONBLOCK); in getRandom()
178 #define GRND_NONBLOCK getRandom() macro
/freebsd/contrib/unbound/compat/
H A Dgetentropy_linux.c90 #if defined(SYS_getrandom) && defined(GRND_NONBLOCK)
110 #if defined(SYS_getrandom) && defined(GRND_NONBLOCK) in getentropy()
193 #if defined(SYS_getrandom) && defined(GRND_NONBLOCK)
202 ret = syscall(SYS_getrandom, buf, len, GRND_NONBLOCK); in getentropy_getrandom()
/freebsd/contrib/wpa/src/crypto/
H A Drandom.c242 sizeof(stub_key) - stub_key_avail, GRND_NONBLOCK); in random_pool_ready()
445 if (getrandom(&stub, 0, GRND_NONBLOCK) == 0 || in random_init()
/freebsd/sys/sys/
H A Drandom.h161 #define GRND_NONBLOCK 0x1 macro
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp145 # if !defined(GRND_NONBLOCK)
146 # define GRND_NONBLOCK 1 macro
2598 blocking ? 0 : GRND_NONBLOCK); in GetRandom()
H A Dsanitizer_common_interceptors.inc9804 // If GRND_NONBLOCK is set in the flags, it is non blocking.
/freebsd/contrib/capsicum-test/
H A Dlinux.cc1407 EXPECT_OK(getrandom_(buffer, sizeof(buffer), GRND_NONBLOCK)); in FORK_TEST()
1408 EXPECT_OK(getrandom_(buffer2, sizeof(buffer2), GRND_NONBLOCK)); in FORK_TEST()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c130 # if ! defined(GRND_NONBLOCK)
131 # define GRND_NONBLOCK 0x0001 macro
797 const unsigned int getrandomFlags = GRND_NONBLOCK; in writeRandomBytes_getrandom_nonblock()