typedef struct Conn Conn;
/* XXX not used */
enum{
Dnil = 0,
Dtxtfile = '0',
Dmenu = '1',
Dnserver = '2',
Derror = '3',
Dbhfile = '4',
Ddosfile = '5',
Duufile = '6',
Dsearch = '7',
Dtelnet = '8',
Dbinfile = '9',
Dmirror = '+',
Dgiffile = 'g',
Dimgfile = 'I',
Dtelnet3270 = 'T',
Ddocfile = 'd',
Dhtmlfile = 'h',
Dinfo = 'i',
Dsndfile = 's',
};
struct Conn
{
int typ; /* XXX not used */
char* addrbuf;
char* net;
char* host;
char* service;
char* selbuf;
char* selector;
char* error;
char* datbuf;
int n, offset;
};
/* fs.c */
extern Conn conn;
extern Srv fs;
|