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 <ifaddrs.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_arp.h>
#include <sys/sockio.h>
#include <sys/loadavg.h>
#include <sys/time.h>
#include <unistd.h>
#include <kstat.h>
#include <fcntl.h>
#include <sys/port.h>
#include <port.h>
#include <procfs.h>
Go to the source code of this file.
Macros | |
#define | PORT_FIRED 0x69 |
#define | PORT_UNUSED 0x0 |
#define | PORT_LOADED 0x99 |
#define | PORT_DELETED -1 |
#define | PROCFS_FILE_OFFSET_BITS_HACK 0 |
void uv__fs_event_close | ( | uv_fs_event_t * | handle | ) |
Definition at line 588 of file sunos.c.
References UNREACHABLE.
uint64_t uv__hrtime | ( | uv_clocktype_t | type | ) |
Definition at line 372 of file sunos.c.
Referenced by UV_UNUSED().
Definition at line 785 of file sunos.c.
References AF_INET, AF_INET6, ifaddrs::ifa_addr, ifaddrs::ifa_flags, and NULL.
Referenced by uv_interface_addresses().
Definition at line 102 of file sunos.c.
References loop, uv__io_stop(), uv__platform_loop_delete(), and uv__platform_loop_init().
Definition at line 147 of file sunos.c.
References ARRAY_SIZE, assert(), count, EINTR, err, fd, flags, i, loop, nfds, NULL, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INIT, QUEUE_INSERT_TAIL, QUEUE_REMOVE, SAVE_ERRNO, timeout, timespec::tv_nsec, timespec::tv_sec, uv__get_internal_fields, uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), UV_LOOP_BLOCK_SIGPROF, UV_METRICS_IDLE_TIME, and w.
void uv__platform_loop_delete | ( | uv_loop_t * | loop | ) |
Definition at line 89 of file sunos.c.
References loop, and uv__close().
Referenced by uv__io_fork().
Definition at line 67 of file sunos.c.
References err, fd, loop, uv__cloexec, uv__close(), and UV__ERR.
Referenced by uv__io_fork().
|
static |
Definition at line 742 of file sunos.c.
References uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET, AF_INET6, i, ifaddrs::ifa_addr, ioctl, memcpy(), memset(), uv_interface_address_s::phys_addr, in_addr::s_addr, sockaddr_in6::sin6_addr, sockaddr_in::sin_addr, SOCK_DGRAM, socket, sockfd, uv__close(), and UV__ERR.
Referenced by uv_interface_addresses().
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 640 of file sunos.c.
References assert(), count, uv_cpu_info_s::cpu_times, uv_cpu_times_s::idle, 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().
Definition at line 382 of file sunos.c.
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 | ||
) |
int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_free_memory | ( | void | ) |
uint64_t uv_get_total_memory | ( | void | ) |
int uv_interface_addresses | ( | uv_interface_address_t ** | addresses, |
int * | count | ||
) |
Definition at line 796 of file sunos.c.
References uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET6, count, freeifaddrs(), getifaddrs(), ifaddrs::ifa_addr, ifaddrs::ifa_flags, ifaddrs::ifa_name, ifaddrs::ifa_netmask, ifaddrs::ifa_next, 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__ERR, uv__ifaddr_exclude(), uv__malloc(), uv__set_phys_addr(), and uv__strdup().
void uv_loadavg | ( | double | avg[3] | ) |