Macros | Functions | Variables
os390-syscalls.c File Reference
#include "os390-syscalls.h"
#include <errno.h>
#include <stdlib.h>
#include <search.h>
#include <termios.h>
#include <sys/msg.h>
Include dependency graph for os390-syscalls.c:

Go to the source code of this file.

Macros

#define CW_CONDVAR   32
 
#define CW_INTRPT   1
 
#define EP_MAX_EVENTS   (INT_MAX / sizeof(struct epoll_event))
 
#define EP_MAX_PFDS   (ULONG_MAX / sizeof(struct pollfd))
 

Functions

static void after_fork (void)
 
static void before_fork (void)
 
static void child_fork (void)
 
uv__os390_epollepoll_create1 (int flags)
 
int epoll_ctl (uv__os390_epoll *lst, int op, int fd, struct epoll_event *event)
 
int epoll_file_close (int fd)
 
static void epoll_init (void)
 
void epoll_queue_close (uv__os390_epoll *lst)
 
int epoll_wait (uv__os390_epoll *lst, struct epoll_event *events, int maxevents, int timeout)
 
static void init_message_queue (uv__os390_epoll *lst)
 
static void maybe_resize (uv__os390_epoll *lst, unsigned int len)
 
char * mkdtemp (char *path)
 
int nanosleep (const struct timespec *req, struct timespec *rem)
 
static unsigned int next_power_of_two (unsigned int val)
 
ssize_t os390_readlink (const char *path, char *buf, size_t len)
 
int scandir (const char *maindir, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
 
int sem_destroy (UV_PLATFORM_SEM_T *semid)
 
int sem_init (UV_PLATFORM_SEM_T *semid, int pshared, unsigned int value)
 
int sem_post (UV_PLATFORM_SEM_T *semid)
 
int sem_trywait (UV_PLATFORM_SEM_T *semid)
 
int sem_wait (UV_PLATFORM_SEM_T *semid)
 
size_t strnlen (const char *str, size_t maxlen)
 

Variables

static uv_mutex_t global_epoll_lock
 
static QUEUE global_epoll_queue
 
static int number_of_epolls
 
static uv_once_t once = UV_ONCE_INIT
 

Macro Definition Documentation

◆ CW_CONDVAR

#define CW_CONDVAR   32

Definition at line 31 of file os390-syscalls.c.

◆ CW_INTRPT

#define CW_INTRPT   1

Definition at line 30 of file os390-syscalls.c.

◆ EP_MAX_EVENTS

#define EP_MAX_EVENTS   (INT_MAX / sizeof(struct epoll_event))

Definition at line 282 of file os390-syscalls.c.

◆ EP_MAX_PFDS

#define EP_MAX_PFDS   (ULONG_MAX / sizeof(struct pollfd))

Definition at line 281 of file os390-syscalls.c.

Function Documentation

◆ after_fork()

static void after_fork ( void  )
static

Definition at line 177 of file os390-syscalls.c.

◆ before_fork()

static void before_fork ( void  )
static

Definition at line 172 of file os390-syscalls.c.

◆ child_fork()

static void child_fork ( void  )
static

Definition at line 182 of file os390-syscalls.c.

◆ epoll_create1()

uv__os390_epoll* epoll_create1 ( int  flags)

Definition at line 215 of file os390-syscalls.c.

◆ epoll_ctl()

int epoll_ctl ( uv__os390_epoll lst,
int  op,
int  fd,
struct epoll_event event 
)

Definition at line 238 of file os390-syscalls.c.

◆ epoll_file_close()

int epoll_file_close ( int  fd)

Definition at line 354 of file os390-syscalls.c.

◆ epoll_init()

static void epoll_init ( void  )
static

Definition at line 205 of file os390-syscalls.c.

◆ epoll_queue_close()

void epoll_queue_close ( uv__os390_epoll lst)

Definition at line 371 of file os390-syscalls.c.

◆ epoll_wait()

int epoll_wait ( uv__os390_epoll lst,
struct epoll_event events,
int  maxevents,
int  timeout 
)

Definition at line 284 of file os390-syscalls.c.

◆ init_message_queue()

static void init_message_queue ( uv__os390_epoll lst)
static

Definition at line 146 of file os390-syscalls.c.

◆ maybe_resize()

static void maybe_resize ( uv__os390_epoll lst,
unsigned int  len 
)
static

Definition at line 113 of file os390-syscalls.c.

◆ mkdtemp()

char* mkdtemp ( char *  path)

Definition at line 425 of file os390-syscalls.c.

◆ nanosleep()

int nanosleep ( const struct timespec *  req,
struct timespec *  rem 
)

Definition at line 385 of file os390-syscalls.c.

◆ next_power_of_two()

static unsigned int next_power_of_two ( unsigned int  val)
static

Definition at line 101 of file os390-syscalls.c.

◆ os390_readlink()

ssize_t os390_readlink ( const char *  path,
char *  buf,
size_t  len 
)

Definition at line 485 of file os390-syscalls.c.

◆ scandir()

int scandir ( const char *  maindir,
struct dirent ***  namelist,
int(*)(const struct dirent *)  filter,
int(*)(const struct dirent **, const struct dirent **)  compar 
)

Definition at line 41 of file os390-syscalls.c.

◆ sem_destroy()

int sem_destroy ( UV_PLATFORM_SEM_T semid)

Definition at line 568 of file os390-syscalls.c.

◆ sem_init()

int sem_init ( UV_PLATFORM_SEM_T semid,
int  pshared,
unsigned int  value 
)

Definition at line 563 of file os390-syscalls.c.

◆ sem_post()

int sem_post ( UV_PLATFORM_SEM_T semid)

Definition at line 573 of file os390-syscalls.c.

◆ sem_trywait()

int sem_trywait ( UV_PLATFORM_SEM_T semid)

Definition at line 578 of file os390-syscalls.c.

◆ sem_wait()

int sem_wait ( UV_PLATFORM_SEM_T semid)

Definition at line 583 of file os390-syscalls.c.

◆ strnlen()

size_t strnlen ( const char *  str,
size_t  maxlen 
)

Definition at line 554 of file os390-syscalls.c.

Variable Documentation

◆ global_epoll_lock

uv_mutex_t global_epoll_lock
static

Definition at line 38 of file os390-syscalls.c.

◆ global_epoll_queue

QUEUE global_epoll_queue
static

Definition at line 37 of file os390-syscalls.c.

◆ number_of_epolls

int number_of_epolls
static

Definition at line 36 of file os390-syscalls.c.

◆ once

uv_once_t once = UV_ONCE_INIT
static

Definition at line 39 of file os390-syscalls.c.



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