Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

io_wait.c File Reference

#include <stdlib.h>
#include "io_wait.h"
#include "ut.h"
#include "mem/mem.h"

Go to the source code of this file.

Defines

#define local_malloc   pkg_malloc
#define local_free   pkg_free

Functions

char * check_poll_method (enum poll_types poll_method)
enum poll_types choose_poll_method ()
char * poll_method_name (enum poll_types poll_method)
enum poll_types get_poll_type (char *s)
int init_io_wait (io_wait_h *h, int max_fd, enum poll_types poll_method)
void destroy_io_wait (io_wait_h *h)

Variables

char * poll_support = "poll"
char * poll_method_str [POLL_END]
int _os_ver = 0


Define Documentation

#define local_free   pkg_free
 

Definition at line 55 of file io_wait.c.

Referenced by destroy_io_wait(), dns_cname_parser(), dns_naptr_parser(), dns_srv_parser(), free_rdata_list(), and get_record().

#define local_malloc   pkg_malloc
 

Definition at line 52 of file io_wait.c.

Referenced by dns_a_parser(), dns_aaaa_parser(), dns_cname_parser(), dns_naptr_parser(), dns_srv_parser(), get_record(), and init_io_wait().


Function Documentation

char* check_poll_method enum poll_types  poll_method  ) 
 

Definition at line 293 of file io_wait.c.

References _os_ver, get_sys_version(), POLL_DEVPOLL, POLL_EPOLL_ET, POLL_EPOLL_LT, POLL_KQUEUE, POLL_NONE, POLL_POLL, POLL_SELECT, and POLL_SIGIO_RT.

Referenced by init_io_wait(), and io_listen_loop().

enum poll_types choose_poll_method  ) 
 

Definition at line 370 of file io_wait.c.

References _os_ver, get_sys_version(), and poll_types.

Referenced by init_io_wait(), and io_listen_loop().

void destroy_io_wait io_wait_h h  ) 
 

Definition at line 583 of file io_wait.c.

References io_wait_handler::fd_array, io_wait_handler::fd_hash, io_wait_h, local_free, POLL_DEVPOLL, POLL_EPOLL_ET, POLL_EPOLL_LT, POLL_KQUEUE, and POLL_SIGIO_RT.

enum poll_types get_poll_type char *  s  ) 
 

Definition at line 426 of file io_wait.c.

References POLL_END, poll_method_str, poll_types, and s.

Referenced by main(), and yyparse().

int init_io_wait io_wait_h h,
int  max_fd,
enum poll_types  poll_method
 

Definition at line 446 of file io_wait.c.

References _os_ver, check_poll_method(), choose_poll_method(), io_wait_handler::fd_hash, get_sys_version(), io_wait_h, L_CRIT, L_ERR, L_INFO, local_malloc, LOG, io_wait_handler::max_fd_no, POLL_DEVPOLL, POLL_EPOLL_ET, POLL_EPOLL_LT, POLL_KQUEUE, poll_method_str, POLL_POLL, POLL_SELECT, and POLL_SIGIO_RT.

Referenced by io_listen_loop().

char* poll_method_name enum poll_types  poll_method  ) 
 

Definition at line 413 of file io_wait.c.

References poll_method_str.

Referenced by io_listen_loop().


Variable Documentation

int _os_ver = 0
 

Definition at line 81 of file io_wait.c.

Referenced by check_poll_method(), choose_poll_method(), and init_io_wait().

char* poll_method_str[POLL_END]
 

Initial value:

{ "none", "poll", "epoll_lt", "epoll_et", 
                                                                  "sigio_rt", "select", "kqueue",  "/dev/poll"
                                                                }

Definition at line 77 of file io_wait.c.

Referenced by get_poll_type(), init_io_wait(), io_watch_add(), io_watch_chg(), io_watch_del(), and poll_method_name().

char* poll_support = "poll"
 

Definition at line 58 of file io_wait.c.

Referenced by main(), print_ct_constants(), and yyparse().


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1