Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <assert.h>
#include <stdint.h>
#include <errno.h>
#include <dlfcn.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <mach-o/dyld.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
#include <unistd.h>
#include "darwin-stub.h"
Go to the source code of this file.
Macros | |
#define | V(handle, symbol) |
#define | S(s) pCFStringCreateWithCString(NULL, (s), kCFStringEncodingUTF8) |
Typedefs | |
typedef unsigned char | UInt8 |
Functions | |
int | uv__platform_loop_init (uv_loop_t *loop) |
void | uv__platform_loop_delete (uv_loop_t *loop) |
static void | uv__hrtime_init_once (void) |
uint64_t | uv__hrtime (uv_clocktype_t type) |
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) |
void | uv_loadavg (double avg[3]) |
int | uv_resident_set_memory (size_t *rss) |
int | uv_uptime (double *uptime) |
static int | uv__get_cpu_speed (uint64_t *speed) |
int | uv_cpu_info (uv_cpu_info_t **cpu_infos, int *count) |
Variables | |
static uv_once_t | once = UV_ONCE_INIT |
static uint64_t(* | time_func )(void) |
static mach_timebase_info_data_t | timebase |
#define S | ( | s | ) | pCFStringCreateWithCString(NULL, (s), kCFStringEncodingUTF8) |
Definition at line 188 of file darwin.c.
References assert(), err, len, NULL, out, capstone::range, S, and V.
Referenced by uv_cpu_info().
uint64_t uv__hrtime | ( | uv_clocktype_t | type | ) |
|
static |
void uv__platform_loop_delete | ( | uv_loop_t * | loop | ) |
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 319 of file darwin.c.
References count, uv_cpu_info_s::cpu_times, err, 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__get_cpu_speed(), uv__malloc(), and uv__strdup().
Definition at line 77 of file darwin.c.
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_total_memory | ( | void | ) |
Definition at line 122 of file darwin.c.
References ARRAY_SIZE, info(), NULL, UV__ERR, and which.
void uv_loadavg | ( | double | avg[3] | ) |
Definition at line 139 of file darwin.c.
References ARRAY_SIZE, info(), test-lz4-speed::loadavg, NULL, and which.
int uv_uptime | ( | double * | uptime | ) |
Definition at line 173 of file darwin.c.
References ARRAY_SIZE, info(), NULL, time, UV__ERR, and which.
|
static |
Definition at line 40 of file darwin.c.
Referenced by uv__hrtime().
|
static |
Definition at line 41 of file darwin.c.
Referenced by uv__hrtime(), and uv__hrtime_init_once().
|
static |
Definition at line 42 of file darwin.c.
Referenced by uv__hrtime(), and uv__hrtime_init_once().