Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/resource.h>
#include <sys/sched.h>
#include <sys/time.h>
#include <sys/sysctl.h>
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
int | uv__platform_loop_init (uv_loop_t *loop) |
void | uv__platform_loop_delete (uv_loop_t *loop) |
void | uv_loadavg (double avg[3]) |
int | uv_exepath (char *buffer, size_t *size) |
uint64_t | uv_get_free_memory (void) |
uint64_t | uv_get_total_memory (void) |
uint64_t | uv_get_constrained_memory (void) |
int | uv_resident_set_memory (size_t *rss) |
int | uv_uptime (double *uptime) |
int | uv_cpu_info (uv_cpu_info_t **cpu_infos, int *count) |
void uv__platform_loop_delete | ( | uv_loop_t * | loop | ) |
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 179 of file openbsd.c.
References ARRAY_SIZE, count, CP_IDLE, CP_INTR, CP_NICE, CP_SYS, CP_USER, uv_cpu_info_s::cpu_times, CPUSTATES, error(), i, uv_cpu_times_s::idle, info(), int, uv_cpu_times_s::irq, uv_cpu_info_s::model, uv_cpu_times_s::nice, NULL, uv_cpu_info_s::speed, uv_cpu_times_s::sys, uv_cpu_times_s::user, UV__ERR, uv__free(), uv__malloc(), uv__strdup(), and which.
Definition at line 61 of file openbsd.c.
References ARRAY_SIZE, ENOMEM, err, memcpy(), NULL, out, UV__ERR, uv__free(), and uv__reallocf().
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_free_memory | ( | void | ) |
uint64_t uv_get_total_memory | ( | void | ) |
void uv_loadavg | ( | double | avg[3] | ) |
Definition at line 48 of file openbsd.c.
References ARRAY_SIZE, info(), test-lz4-speed::loadavg, NULL, and which.
int uv_uptime | ( | double * | uptime | ) |
Definition at line 163 of file openbsd.c.
References ARRAY_SIZE, info(), NULL, time, UV__ERR, and which.