Macros | Functions | Variables
aix.c File Reference
#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 <libperfstat.h>
#include <procinfo.h>
#include <sys/proc.h>
#include <sys/procfs.h>
#include <sys/poll.h>
#include <sys/pollset.h>
#include <ctype.h>
#include <sys/mntctl.h>
#include <sys/vmount.h>
#include <limits.h>
#include <strings.h>
#include <sys/vnode.h>
Include dependency graph for aix.c:

Go to the source code of this file.

Macros

#define ADDR_SIZE(p)   MAX((p).sa_len, sizeof(p))
 
#define EQ(a, b)   (strcmp(a,b) == 0)
 
#define RDWR_BUF_SIZE   4096
 

Functions

static void init_process_title_mutex_once (void)
 
void uv__fs_event_close (uv_fs_event_t *handle)
 
int uv__io_check_fd (uv_loop_t *loop, int fd)
 
int uv__io_fork (uv_loop_t *loop)
 
void uv__io_poll (uv_loop_t *loop, int timeout)
 
void uv__platform_invalidate_fd (uv_loop_t *loop, int fd)
 
void uv__platform_loop_delete (uv_loop_t *loop)
 
int uv__platform_loop_init (uv_loop_t *loop)
 
int uv_cpu_info (uv_cpu_info_t **cpu_infos, int *count)
 
 UV_DESTRUCTOR (static void free_args_mem(void))
 
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)
 
int uv_get_process_title (char *buffer, size_t size)
 
uint64_t uv_get_total_memory (void)
 
int uv_interface_addresses (uv_interface_address_t **addresses, int *count)
 
void uv_loadavg (double avg[3])
 
int uv_resident_set_memory (size_t *rss)
 
int uv_set_process_title (const char *title)
 
char ** uv_setup_args (int argc, char **argv)
 
int uv_uptime (double *uptime)
 

Variables

static void * args_mem = NULL
 
static int process_argc = 0
 
static char ** process_argv = NULL
 
static uv_mutex_t process_title_mutex
 
static uv_once_t process_title_mutex_once = UV_ONCE_INIT
 
static char * process_title_ptr = NULL
 

Macro Definition Documentation

◆ ADDR_SIZE

#define ADDR_SIZE (   p)    MAX((p).sa_len, sizeof(p))

◆ EQ

#define EQ (   a,
  b 
)    (strcmp(a,b) == 0)

Definition at line 66 of file aix.c.

◆ RDWR_BUF_SIZE

#define RDWR_BUF_SIZE   4096

Definition at line 65 of file aix.c.

Function Documentation

◆ init_process_title_mutex_once()

static void init_process_title_mutex_once ( void  )
static

Definition at line 75 of file aix.c.

◆ uv__fs_event_close()

void uv__fs_event_close ( uv_fs_event_t handle)

Definition at line 823 of file aix.c.

◆ uv__io_check_fd()

int uv__io_check_fd ( uv_loop_t loop,
int  fd 
)

Definition at line 114 of file aix.c.

◆ uv__io_fork()

int uv__io_fork ( uv_loop_t loop)

Definition at line 107 of file aix.c.

◆ uv__io_poll()

void uv__io_poll ( uv_loop_t loop,
int  timeout 
)

Definition at line 132 of file aix.c.

◆ uv__platform_invalidate_fd()

void uv__platform_invalidate_fd ( uv_loop_t loop,
int  fd 
)

Definition at line 1222 of file aix.c.

◆ uv__platform_loop_delete()

void uv__platform_loop_delete ( uv_loop_t loop)

Definition at line 94 of file aix.c.

◆ uv__platform_loop_init()

int uv__platform_loop_init ( uv_loop_t loop)

Definition at line 80 of file aix.c.

◆ uv_cpu_info()

int uv_cpu_info ( uv_cpu_info_t **  cpu_infos,
int count 
)

Definition at line 986 of file aix.c.

◆ UV_DESTRUCTOR()

UV_DESTRUCTOR ( static void   free_args_memvoid)

Definition at line 929 of file aix.c.

◆ uv_free_interface_addresses()

void uv_free_interface_addresses ( uv_interface_address_t addresses,
int  count 
)

Definition at line 1210 of file aix.c.

◆ uv_fs_event_init()

int uv_fs_event_init ( uv_loop_t loop,
uv_fs_event_t handle 
)

Definition at line 717 of file aix.c.

◆ uv_fs_event_start()

int uv_fs_event_start ( uv_fs_event_t handle,
uv_fs_event_cb  cb,
const char *  filename,
unsigned int  flags 
)

Definition at line 727 of file aix.c.

◆ uv_fs_event_stop()

int uv_fs_event_stop ( uv_fs_event_t handle)

Definition at line 798 of file aix.c.

◆ uv_get_constrained_memory()

uint64_t uv_get_constrained_memory ( void  )

Definition at line 347 of file aix.c.

◆ uv_get_free_memory()

uint64_t uv_get_free_memory ( void  )

Definition at line 327 of file aix.c.

◆ uv_get_process_title()

int uv_get_process_title ( char *  buffer,
size_t  size 
)

Definition at line 906 of file aix.c.

◆ uv_get_total_memory()

uint64_t uv_get_total_memory ( void  )

Definition at line 337 of file aix.c.

◆ uv_interface_addresses()

int uv_interface_addresses ( uv_interface_address_t **  addresses,
int count 
)

Definition at line 1042 of file aix.c.

◆ uv_loadavg()

void uv_loadavg ( double  avg[3])

Definition at line 352 of file aix.c.

◆ uv_resident_set_memory()

int uv_resident_set_memory ( size_t *  rss)

Definition at line 935 of file aix.c.

◆ uv_set_process_title()

int uv_set_process_title ( const char *  title)

Definition at line 875 of file aix.c.

◆ uv_setup_args()

char** uv_setup_args ( int  argc,
char **  argv 
)

Definition at line 832 of file aix.c.

◆ uv_uptime()

int uv_uptime ( double *  uptime)

Definition at line 959 of file aix.c.

Variable Documentation

◆ args_mem

void* args_mem = NULL
static

Definition at line 70 of file aix.c.

◆ process_argc

int process_argc = 0
static

Definition at line 72 of file aix.c.

◆ process_argv

char** process_argv = NULL
static

Definition at line 71 of file aix.c.

◆ process_title_mutex

uv_mutex_t process_title_mutex
static

Definition at line 68 of file aix.c.

◆ process_title_mutex_once

uv_once_t process_title_mutex_once = UV_ONCE_INIT
static

Definition at line 69 of file aix.c.

◆ process_title_ptr

char* process_title_ptr = NULL
static

Definition at line 73 of file aix.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02