summaryrefslogtreecommitdiff
path: root/fd.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-06-08 00:32:52 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-04 18:13:07 -0700
commit062412a066cc62635c1d1eb99999ee774775ca6f (patch)
tree3a72f748e101900c292cf242055862ecce4bccb7 /fd.h
parent306057f2475b216fb73686bcb0003355cf88944a (diff)
downloadxscope-062412a066cc62635c1d1eb99999ee774775ca6f.tar.gz
Import xscope bits into keithp.com CVS
Diffstat (limited to 'fd.h')
-rw-r--r--fd.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/fd.h b/fd.h
index 8836638..da48544 100644
--- a/fd.h
+++ b/fd.h
@@ -32,23 +32,21 @@
and if it is in use, by whom.
*/
-#include <sys/select.h>
-
typedef int FD;
struct FDDescriptor
{
Boolean Busy;
int (*InputHandler)();
+ int (*FlushHandler)();
};
-struct FDDescriptor *FDD /* array of FD descriptors */ ;
-short MaxFD /* maximum number of FD's possible */ ;
-
-short nFDsInUse /* number of FD's actually in use */ ;
+extern struct FDDescriptor *FDD /* array of FD descriptors */ ;
+extern short MaxFD /* maximum number of FD's possible */ ;
-fd_set ReadDescriptors /* bit map of FD's in use -- for select */ ;
-short HighestFD /* highest FD in use -- for select */ ;
+extern short nFDsInUse /* number of FD's actually in use */ ;
-Boolean ValidFD();
-Boolean InputAvailable();
+extern long ReadDescriptors /* bit map of FD's in use -- for select */ ;
+extern long WriteDescriptors /* bit map of write blocked FD's -- for select */;
+extern long BlockedReadDescriptors /* bit map of FD's blocked from reading */;
+extern short HighestFD /* highest FD in use -- for select */ ;