X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/a3ddb7786215525dc1c17b4bbce251f1d06be083..898dd094b1f9e1742d432e90b88d09092a5d09f3:/sel.h diff --git a/sel.h b/sel.h index 37b5b5f..8d121ef 100644 --- a/sel.h +++ b/sel.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: sel.h,v 1.2 1999/05/15 10:33:32 mdw Exp $ + * $Id: sel.h,v 1.4 1999/05/22 13:39:15 mdw Exp $ * * I/O multiplexing support * @@ -30,6 +30,13 @@ /*----- Revision history --------------------------------------------------* * * $Log: sel.h,v $ + * Revision 1.4 1999/05/22 13:39:15 mdw + * Change spelling of `multiplexor'. ;-) + * + * Revision 1.3 1999/05/17 20:36:36 mdw + * Make the selector type symbols an enumeration rather than a bunch of + * #defines. + * * Revision 1.2 1999/05/15 10:33:32 mdw * Fix copyright notices. * @@ -100,10 +107,12 @@ typedef struct sel_file { void *p; } sel_file; -#define SEL_READ 0 -#define SEL_WRITE 1 -#define SEL_EXC 2 -#define SEL_MODES 3 +enum { + SEL_READ, + SEL_WRITE, + SEL_EXC, + SEL_MODES +}; /* --- Waiting for a timeout --- */ @@ -115,7 +124,7 @@ typedef struct sel_timer { void *p; } sel_timer; -/* --- A multiplexer --- * +/* --- A multiplexor --- * * * The files are sorted in reverse order of file descriptor number; the * timers are in normal order of occurrence. Thus, the interesting one