Rizin
unix-like reverse engineering framework and cli tools
|
#include "internal.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <utmpx.h>
#include <unistd.h>
#include <sys/ps.h>
#include <builtins.h>
#include <termios.h>
#include <sys/msg.h>
#include "//'SYS1.SAMPLIB(CSRSIC)'"
Go to the source code of this file.
Classes | |
union | data_area_ptr |
Macros | |
#define | CVT_PTR 0x10 |
#define | PSA_PTR 0x00 |
#define | CSD_OFFSET 0x294 |
#define | RCTLACS_OFFSET 0xC4 |
#define | CSD_NUMBER_ONLINE_CPUS 0xD4 |
#define | CVTOPCTP_OFFSET 0x25C |
#define | RMCTRCT_OFFSET 0xE4 |
#define | CVTRCEP_OFFSET 0x490 |
#define | RCEPOOL_OFFSET 0x004 |
#define | RCEAFC_OFFSET 0x088 |
#define | CPCMODEL_LENGTH 16 |
#define | PSAAOLD 0x224 |
#define | ASCBRSME 0x16C |
#define | RAXFMCT 0x2C |
#define | PGTH_CURRENT 1 |
#define | PGTH_LEN 26 |
#define | PGTHAPATH 0x20 |
#define | TOD_RES 4.096 |
#define | MAX(a, b) (((a)>(b))?(a):(b)) |
#define | ADDR_SIZE(p) MAX((p).sa_len, sizeof(p)) |
Typedefs | |
typedef unsigned | data_area_ptr_assign_type |
typedef unsigned data_area_ptr_assign_type |
Definition at line 151 of file os390.c.
References assert(), ENOBUFS, len, memset(), path, PGTH_CURRENT, PGTH_LEN, PGTHAPATH, pid, and uv__strscpy().
Referenced by uv_exepath().
|
static |
Definition at line 710 of file os390.c.
References handle, msg, uv__os390_epoll::msg_queue, UV_CHANGE, and UV_RENAME.
Referenced by uv__io_poll().
void uv__fs_event_close | ( | uv_fs_event_t * | handle | ) |
uint64_t uv__hrtime | ( | uv_clocktype_t | type | ) |
|
static |
Definition at line 372 of file os390.c.
References uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET, AF_INET6, count, ioctl, uv_interface_address_s::is_internal, memset(), uv_interface_address_s::name, p, uv_interface_address_s::phys_addr, SOCK_DGRAM, socket, sockfd, uv__calloc(), uv__close(), UV__ERR, uv__malloc(), and uv__strdup().
Referenced by uv_interface_addresses().
Definition at line 610 of file os390.c.
Definition at line 966 of file os390.c.
References loop, NULL, uv__platform_loop_delete(), and uv__platform_loop_init().
Definition at line 742 of file os390.c.
References ARRAY_SIZE, assert(), container_of, count, e, EEXIST, EINTR, epoll_ctl(), EPOLL_CTL_ADD, EPOLL_CTL_DEL, EPOLL_CTL_MOD, epoll_wait(), epoll_event::events, fd, epoll_event::fd, flags, i, epoll_event::is_msg, loop, nfds, NULL, op, os390_message_queue_handler(), QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INIT, QUEUE_REMOVE, SAVE_ERRNO, timeout, uv__get_internal_fields, uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), UV_METRICS_IDLE_TIME, and w.
Definition at line 587 of file os390.c.
References assert(), epoll_ctl(), EPOLL_CTL_DEL, epoll_event::events, fd, i, loop, nfds, and NULL.
void uv__platform_loop_delete | ( | uv_loop_t * | loop | ) |
Definition at line 131 of file os390.c.
References epoll_queue_close(), loop, and NULL.
Referenced by uv__io_fork().
Definition at line 119 of file os390.c.
References epoll_create1(), loop, NULL, and UV__ERR.
Referenced by uv__io_fork().
void uv__set_process_title | ( | const char * | title | ) |
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 328 of file os390.c.
References data_area_ptr::assign, count, CPCMODEL_LENGTH, uv_cpu_info_s::cpu_times, CSD_NUMBER_ONLINE_CPUS, CSD_OFFSET, CVT_PTR, CVTOPCTP_OFFSET, data_area_ptr::deref, uv_cpu_times_s::idle, setup::idx, info(), uv_cpu_times_s::irq, memcpy(), memset(), uv_cpu_info_s::model, uv_cpu_times_s::nice, RCTLACS_OFFSET, RMCTRCT_OFFSET, uv_cpu_info_s::speed, uv_cpu_times_s::sys, uv_cpu_times_s::user, and uv__malloc().
Definition at line 254 of file os390.c.
References args, getexe(), NULL, pid, and uv__search_path().
void uv_free_interface_addresses | ( | uv_interface_address_t * | addresses, |
int | count | ||
) |
int uv_fs_event_init | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
int uv_fs_event_start | ( | uv_fs_event_t * | handle, |
uv_fs_event_cb | cb, | ||
const char * | filename, | ||
unsigned int | flags | ||
) |
Definition at line 642 of file os390.c.
References assert(), cb, handle, memcpy(), uv__os390_epoll::msg_queue, NULL, path, UV__ERR, uv__handle_start, uv__is_active, and uv__strdup().
int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
Definition at line 678 of file os390.c.
References assert(), EALREADY, ENOENT, handle, memcpy(), uv__os390_epoll::msg_queue, uv__handle_stop, and uv__is_active.
Referenced by uv__fs_event_close().
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_free_memory | ( | void | ) |
Definition at line 271 of file os390.c.
References data_area_ptr::assign, CVT_PTR, CVTRCEP_OFFSET, data_area_ptr::deref, and RCEAFC_OFFSET.
uint64_t uv_get_total_memory | ( | void | ) |
Definition at line 283 of file os390.c.
References data_area_ptr::assign, CVT_PTR, CVTRCEP_OFFSET, data_area_ptr::deref, and RCEPOOL_OFFSET.
int uv_interface_addresses | ( | uv_interface_address_t ** | addresses, |
int * | count | ||
) |
Definition at line 456 of file os390.c.
References ADDR_SIZE, uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET, AF_INET6, count, ioctl, uv_interface_address_s::is_internal, memcpy(), memset(), uv_interface_address_s::name, NULL, p, uv_interface_address_s::phys_addr, SOCK_DGRAM, socket, sockfd, uv__calloc(), uv__close(), UV__ERR, uv__free(), uv__interface_addresses_v6(), uv__malloc(), and uv__strdup().
void uv_loadavg | ( | double | avg[3] | ) |