Home | History | Annotate | Download | only in minadbd

Lines Matching full:fdevent

1 /* http://frotznet.googlecode.com/svn/trunk/utils/fdevent.c
31 #include "fdevent.h"
70 static void dump_fde(fdevent *fde, const char *info)
92 static void fdevent_plist_enqueue(fdevent *node);
93 static void fdevent_plist_remove(fdevent *node);
94 static fdevent *fdevent_plist_dequeue(void);
97 static fdevent list_pending = {
102 static fdevent **fd_table = 0;
126 static void fdevent_connect(fdevent *fde)
142 static void fdevent_disconnect(fdevent *fde)
158 static void fdevent_update(fdevent *fde, unsigned events)
207 fdevent *fde;
260 static void fdevent_connect(fdevent *fde)
267 static void fdevent_disconnect(fdevent *fde)
281 static void fdevent_update(fdevent *fde, unsigned events)
308 fdevent *fde;
329 fdevent *fde;
368 fdevent *fde;
428 static void fdevent_register(fdevent *fde)
446 fd_table = realloc(fd_table, sizeof(fdevent*) * fd_table_max);
456 static void fdevent_unregister(fdevent *fde)
474 static void fdevent_plist_enqueue(fdevent *node)
476 fdevent *list = &list_pending;
484 static void fdevent_plist_remove(fdevent *node)
492 static fdevent *fdevent_plist_dequeue(void)
494 fdevent *list = &list_pending;
495 fdevent *node = list->next;
507 static void fdevent_call_fdfunc(fdevent* fde)
526 fdevent *fde = fd_table[fd];
540 fdevent *subproc_fde = fd_table[subproc_fd];
575 fdevent *fdevent_create(int fd, fd_func func, void *arg)
577 fdevent *fde = (fdevent*) malloc(sizeof(fdevent));
584 void fdevent_destroy(fdevent *fde)
593 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg)
595 memset(fde, 0, sizeof(fdevent));
611 void fdevent_remove(fdevent *fde)
628 void fdevent_set(fdevent *fde, unsigned events)
654 void fdevent_add(fdevent *fde, unsigned events)
660 void fdevent_del(fdevent *fde, unsigned events)
674 fdevent *fde;
677 FATAL("cannot create fdevent for shell-exit handler\n");
683 fdevent *fde;