4 * util routines for do the various select activities
6 * Copyright 1996 (c) D-J Koopman
11 * Revision 1.2 2000-03-26 14:22:59 djk
12 * removed some irrelevant log info
14 * Revision 1.1 2000/03/26 00:03:30 djk
17 * Revision 1.1 1997/01/03 23:44:31 djk
26 static char _sel_h_rcsid[] = "$Id$";
31 int cnum; /* from open */
32 short err; /* error flag, to delay closing if required */
33 short sort; /* this thing's sort */
34 short flags; /* fdset flags */
35 char *name; /* device name */
36 void *fcb; /* any fcb associated with this thing */
37 reft *msgbase; /* any messages for this port */
38 int (*handler)(); /* the handler for this thingy */
45 extern time_t sel_systime;
46 extern struct timeval sel_tv;
53 void sel_init(int, long, long); /* initialise the select thing */
54 void sel_run(); /* run the select multiplexor */
55 sel_t *sel_open(int, void *, char *, int (*)(), int, int);/* initialise a slot */
56 void sel_close(sel_t *);
57 int sel_error(sel_t *, int); /* set/clear error flag */