Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/gen/getentropy.c
Show All 31 Lines | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/random.h> | #include <sys/random.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <signal.h> | #include <signal.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <unistd.h> | |||||
#include "libc_private.h" | #include "libc_private.h" | ||||
/* First __FreeBSD_version bump after introduction of getrandom(2) (r331279) */ | /* First __FreeBSD_version bump after introduction of getrandom(2) (r331279) */ | ||||
#define GETRANDOM_FIRST 1200061 | #define GETRANDOM_FIRST 1200061 | ||||
extern int __sysctl(int *, u_int, void *, size_t *, void *, size_t); | extern int __sysctl(int *, u_int, void *, size_t *, void *, size_t); | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |