4 * util routines for do the various select activities
6 * Copyright 1996 (c) D-J Koopman
11 * Revision 1.1 2000-03-26 00:03:30 djk
14 * Revision 1.3 1998/01/02 19:39:57 djk
15 * made various changes to cope with glibc
16 * fixed problem with extended status in etsi_router
18 * Revision 1.2 1997/06/18 18:44:31 djk
19 * A working hayes implementation!
21 * Revision 1.1 1997/01/28 16:14:23 djk
22 * moved these into lib as general routines to use with sel
24 * Revision 1.3 1997/01/20 22:30:31 djk
25 * Added modem connection for incoming SMS messages
29 * Revision 1.2 1997/01/13 23:34:56 djk
30 * The first working test version of smsd
32 * Revision 1.1 1997/01/03 23:44:31 djk
41 static char _sel_h_rcsid[] = "$Id$";
46 int cnum; /* from open */
47 short err; /* error flag, to delay closing if required */
48 short sort; /* this thing's sort */
49 short flags; /* fdset flags */
50 char *name; /* device name */
51 void *fcb; /* any fcb associated with this thing */
52 reft *msgbase; /* any messages for this port */
53 int (*handler)(); /* the handler for this thingy */
60 extern time_t sel_systime;
61 extern struct timeval sel_tv;
77 void sel_init(int, long, long); /* initialise the select thing */
78 void sel_run(); /* run the select multiplexor */
79 sel_t *sel_open(int, void *, char *, int (*)(), int, int);/* initialise a slot */
80 void sel_close(sel_t *);
81 int sel_error(sel_t *, int); /* set/clear error flag */