Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/libkern.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
#define ARC4_ENTR_NONE 0 /* Don't have entropy yet. */ | #define ARC4_ENTR_NONE 0 /* Don't have entropy yet. */ | ||||
#define ARC4_ENTR_HAVE 1 /* Have entropy. */ | #define ARC4_ENTR_HAVE 1 /* Have entropy. */ | ||||
#define ARC4_ENTR_SEED 2 /* Reseeding. */ | #define ARC4_ENTR_SEED 2 /* Reseeding. */ | ||||
extern int arc4rand_iniseed_state; | extern int arc4rand_iniseed_state; | ||||
/* Prototypes for non-quad routines. */ | /* Prototypes for non-quad routines. */ | ||||
struct malloc_type; | struct malloc_type; | ||||
uint32_t arc4random(void); | uint32_t arc4random(void); | ||||
void arc4rand(void *ptr, u_int len, int reseed); | void arc4random_buf(void *, size_t); | ||||
void arc4rand(void *, u_int, int); | |||||
int bcmp(const void *, const void *, size_t); | int bcmp(const void *, const void *, size_t); | ||||
int timingsafe_bcmp(const void *, const void *, size_t); | int timingsafe_bcmp(const void *, const void *, size_t); | ||||
void *bsearch(const void *, const void *, size_t, | void *bsearch(const void *, const void *, size_t, | ||||
size_t, int (*)(const void *, const void *)); | size_t, int (*)(const void *, const void *)); | ||||
#ifndef HAVE_INLINE_FFS | #ifndef HAVE_INLINE_FFS | ||||
int ffs(int); | int ffs(int); | ||||
#endif | #endif | ||||
#ifndef HAVE_INLINE_FFSL | #ifndef HAVE_INLINE_FFSL | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |