Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/src/dsPIC33F/include/9p.h

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


/*
 *  Minimalist 9p implementation.
 *
 *  Copyright (c) 2010 Corpus Callosum Corporation. All rights reserved.
 */

typedef struct Fid		Fid;
typedef struct Req		Req;
typedef struct File		File;

struct Fid
{
	int	fid;
	File	*file;
	ushort	flags;
	short	readers;
	ulong	vers;
	Fid		*next;
};

struct File
{
	Dir dir;
};

struct Req
{
	uint8	port;
	uchar	indata[Messagesize];
	uchar	outdata[Messagesize];
	Fcall	ifcall;
	Fcall	ofcall;
	Fid*	fid;
};

void	readstr(Req*, char*);
void	readbuf(Req*, void*, long);

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.