enum{ Stacksz = 32*1024, }; Channel *ifcchan; /* file.c */ typedef struct Filectl Filectl; struct Filectl { int ro; /* read-only */ int self; /* loner */ char p, op; char r; /* current read */ int B, W; /* file descriptors */ int ev; Channel *c; }; Filectl *filectl; Filectl *initfile(char*,char*,int);