#include "uv.h"
#include "uv-common.h"
#include "unix/internal.h"
Go to the source code of this file.
◆ uv__random()
static int uv__random |
( |
void * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Definition at line 31 of file random.c.
36 #elif defined(_AIX) || defined(__QNX__)
38 #elif defined(__APPLE__) || defined(__OpenBSD__) || \
39 (defined(__ANDROID_API__) && __ANDROID_API__ >= 28)
43 #elif defined(__NetBSD__)
45 #elif defined(__FreeBSD__) || defined(__linux__)
49 # if defined(__linux__)
int uv__random_getrandom(void *buf, size_t buflen)
int uv__random_readpath(const char *path, void *buf, size_t buflen)
int uv__random_sysctl(void *buf, size_t buflen)
int uv__random_getentropy(void *buf, size_t buflen)
int uv__random_devurandom(void *buf, size_t buflen)
int uv__random_rtlgenrandom(void *buf, size_t buflen)
References buflen, uv__once_init(), uv__random_devurandom(), uv__random_getentropy(), uv__random_getrandom(), uv__random_readpath(), uv__random_rtlgenrandom(), and uv__random_sysctl().
Referenced by uv__random_work(), and uv_random().
◆ uv__random_done()
static void uv__random_done |
( |
struct uv__work * |
w, |
|
|
int |
status |
|
) |
| |
|
static |
Definition at line 81 of file random.c.
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
static const char struct stat static buf struct stat static buf static vhangup int status
#define container_of(ptr, type, member)
#define uv__req_unregister(loop, req)
References container_of, req, status, uv__req_unregister, and w.
Referenced by uv_random().
◆ uv__random_work()
static void uv__random_work |
( |
struct uv__work * |
w | ) |
|
|
static |
◆ uv_random()
Definition at line 94 of file random.c.
static void uv__random_work(struct uv__work *w)
static void uv__random_done(struct uv__work *w, int status)
static struct sockaddr static addrlen static backlog const void static flags void flags
void uv__work_submit(uv_loop_t *loop, struct uv__work *w, enum uv__work_kind kind, void(*work)(struct uv__work *w), void(*done)(struct uv__work *w, int status))
#define uv__req_init(loop, req, typ)
References buflen, cb, flags, loop, NULL, req, uv__random(), uv__random_done(), uv__random_work(), uv__req_init, UV__WORK_CPU, and uv__work_submit().