Plan 9 from Bell Labs’s /usr/web/sources/contrib/pdt/gphrfs/dat.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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;

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.