#ifndef _UNIX_H #define _UNIX_H #include "config.h" #ifndef NUMLINKS #define NUMLINKS 4 #endif extern int availbyte(int fd); extern char inbyte(int fd); extern int outbyte(int fd,char x); /* Under UNIX we use named FS FIFOs for node-node communication. The FIFOs are connected to links. All port fifo file deescriptors [N0} P0 --- P0 [N1] P1 | | P2 [N2] */ extern char *portfilerd[NUMPORTS]; extern char *portfilewr[NUMPORTS]; int ioinit(); int iowait(context_t *C, int nonblock); char* readFile(char *path); // FIFO communication int port_open(); void port_close(); // Timer support int timer_init(); int timer_start(int index, int millis); int timer_stop(int index); void vLog(const char* fmtStr, ...); #endif