23 #include <sys/types.h>
56 new_iochan->
flags = flags;
60 new_iochan->
next = NULL;
93 for (p = *iochans; p; p = p->
next)
96 for (i = 0, p = *iochans; p; p = p->
next, i++)
124 res =
yaz_poll(fds, no_fds, tv_sec, 0);
130 if (watch_sig && *watch_sig)
142 for (i = 0, p = *iochans; p; p = p->
next, i++)
174 for (p = *iochans; p; p = nextp)
190 for (pr = *iochans; pr; pr = pr->
next)
int yaz_errno(void)
returns errno
Header for errno utilities.
int iochan_event_loop(IOCHAN *iochans, int *watch_sig)
IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, int chan_id)
int iochan_is_alive(IOCHAN chan)
static int log_level_initialized
Definitions for event loop handling for GFS.
void statserv_remove(IOCHAN pIOChannel)
void(* IOC_CALLBACK)(struct iochan *i, int event)
void yaz_log(int level, const char *fmt,...)
Writes log message.
int yaz_log_module_level(const char *name)
returns level for module
#define YLOG_WARN
log level: warning
#define YLOG_ERRNO
log level: append system error message
int yaz_poll(struct yaz_poll_fd *fds, int num_fds, int sec, int nsec)
poll wrapper for poll or select
#define yaz_poll_add(var, value)
yaz_poll_mask
select/poll masks .. timeout is "output" only
int ir_read(IOCHAN h, int event)
Header for GFS (Obsolete. Use yaz/backend.h)
enum yaz_poll_mask output_mask
enum yaz_poll_mask input_mask
Header for memory handling functions.
#define xfree(x)
utility macro which calls xfree_f
#define xmalloc(x)
utility macro which calls malloc_f