Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <utmp.h>
#include <libgen.h>
#include <sys/protosw.h>
#include <procinfo.h>
#include <sys/proc.h>
#include <sys/procfs.h>
#include <ctype.h>
#include <sys/mntctl.h>
#include <sys/vmount.h>
#include <limits.h>
#include <strings.h>
#include <sys/vnode.h>
#include <as400_protos.h>
#include <as400_types.h>
Go to the source code of this file.
Classes | |
struct | SSTS0200 |
struct | LIND0500 |
struct | errcode_s |
Functions | |
static void | iconv_e2a (unsigned char src[], unsigned char dst[], size_t length) |
static void | iconv_a2e (const char *src, unsigned char dst[], size_t length) |
void | init_process_title_mutex_once (void) |
static int | get_ibmi_system_status (SSTS0200 *rcvr) |
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) |
int | uv_cpu_info (uv_cpu_info_t **cpu_infos, int *count) |
static int | get_ibmi_physical_address (const char *line, char(*phys_addr)[6]) |
int | uv_interface_addresses (uv_interface_address_t **addresses, int *count) |
void | uv_free_interface_addresses (uv_interface_address_t *addresses, int count) |
char ** | uv_setup_args (int argc, char **argv) |
int | uv_set_process_title (const char *title) |
int | uv_get_process_title (char *buffer, size_t size) |
void | uv__process_title_cleanup (void) |
Variables | |
char * | original_exepath = NULL |
uv_mutex_t | process_title_mutex |
uv_once_t | process_title_mutex_once = UV_ONCE_INIT |
static const unsigned char | e2a [256] |
static const unsigned char | a2e [256] |
Definition at line 314 of file ibmi.c.
References __attribute__, ARRAY_SIZE, c, err, iconv_a2e(), iconv_e2a(), setup::line, LIND0500::loca_adapter_address, memset(), NULL, and r.
Referenced by uv_interface_addresses().
Definition at line 181 of file ibmi.c.
References __attribute__, errcode_s::bytes_provided, iconv_a2e(), memset(), and NULL.
Referenced by uv_get_free_memory(), uv_get_total_memory(), and uv_loadavg().
Definition at line 163 of file ibmi.c.
References a2e, dst, i, length, and src.
Referenced by get_ibmi_physical_address(), and get_ibmi_system_status().
void init_process_title_mutex_once | ( | void | ) |
Definition at line 177 of file ibmi.c.
References process_title_mutex, and uv_mutex_init().
Referenced by uv_exepath(), and uv_setup_args().
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 283 of file ibmi.c.
References count, uv_cpu_info_s::cpu_times, uv_cpu_times_s::idle, setup::idx, 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__malloc(), and uv__strdup().
void uv_free_interface_addresses | ( | uv_interface_address_t * | addresses, |
int | count | ||
) |
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_free_memory | ( | void | ) |
Definition at line 228 of file ibmi.c.
References get_ibmi_system_status(), and SSTS0200::main_storage_size.
uint64_t uv_get_total_memory | ( | void | ) |
Definition at line 238 of file ibmi.c.
References get_ibmi_system_status(), and SSTS0200::main_storage_size.
int uv_interface_addresses | ( | uv_interface_address_t ** | addresses, |
int * | count | ||
) |
Definition at line 386 of file ibmi.c.
References uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET, AF_INET6, count, get_ibmi_physical_address(), uv_interface_address_s::is_internal, uv_interface_address_s::name, uv_interface_address_s::netmask, uv_interface_address_s::netmask4, uv_interface_address_s::netmask6, NULL, uv_interface_address_s::phys_addr, r, uv__calloc(), and uv__strdup().
void uv_loadavg | ( | double | avg[3] | ) |
Definition at line 253 of file ibmi.c.
References get_ibmi_system_status(), and SSTS0200::percent_processing_unit_used.
char** uv_setup_args | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 469 of file ibmi.c.
References argv, init_process_title_mutex_once(), original_exepath, process_title_mutex, process_title_mutex_once, s, UV__PATH_MAX, uv__search_path(), uv__strdup(), uv_mutex_lock(), uv_mutex_unlock(), and uv_once().
int uv_uptime | ( | double * | uptime | ) |
Definition at line 137 of file ibmi.c.
Referenced by iconv_a2e().
Definition at line 118 of file ibmi.c.
Referenced by iconv_e2a().
char* original_exepath = NULL |
Definition at line 61 of file ibmi.c.
Referenced by uv_exepath(), and uv_setup_args().
uv_mutex_t process_title_mutex |
Definition at line 62 of file ibmi.c.
Referenced by init_process_title_mutex_once(), uv_exepath(), and uv_setup_args().
uv_once_t process_title_mutex_once = UV_ONCE_INIT |
Definition at line 63 of file ibmi.c.
Referenced by uv_exepath(), and uv_setup_args().