Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/gnot/fcall.h

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


## diffname gnot/fcall.h 1990/03091
## diff -e /dev/null /n/bootesdump/1990/03091/sys/src/9/68020/fcall.h
0a
typedef	struct	Fcall	Fcall;

struct	Fcall
{
	char	type;
	short	fid;
	short	err;
	union
	{
		struct
		{
			short	uid;		/* T-Userstr */
			short	newfid;		/* T-Clone */
			char	lang;		/* T-Session */
			ulong	qid;		/* R-Attach, R-Walk, R-Open, R-Create */
		};
		struct
		{
			char	uname[28];	/* T-Attach, R-Userstr */
			char	aname[28];	/* T-Attach */
		};
		struct
		{
			char	ename[64];	/* R-Errstr */
		};
		struct
		{
			long	perm;		/* T-Create */ 
			char	name[28];	/* T-Walk, T-Create, T-Remove */
			char	mode;		/* T-Create, T-Open */
		};
		struct
		{
			long	offset;		/* T-Read, T-Write */
			long	count;		/* T-Read, T-Write, R-Read */
			char	*data;		/* T-Write, R-Read */
		};
		struct
		{
			char	stat[DIRLEN];	/* T-Wstat, R-Stat */
		};
	};
};

#define	MAXFDATA	8192

enum
{
	Tnop =		0,
	Rnop,
	Tsession =	2,
	Rsession,
	Tattach =	10,
	Rattach,
	Tclone =	12,
	Rclone,
	Twalk =		14,
	Rwalk,
	Topen =		16,
	Ropen,
	Tcreate =	18,
	Rcreate,
	Toread =	20,
	Roread,
	Towrite =	22,
	Rowrite,
	Tclunk =	24,
	Rclunk,
	Tremove =	26,
	Rremove,
	Tstat =		28,
	Rstat,
	Twstat =	30,
	Rwstat,
	Terrstr =	32,
	Rerrstr,
	Tuserstr =	34,
	Ruserstr,
	Tread =		36,
	Rread,
	Twrite =	38,
	Rwrite,
};

int	convM2S(char*, Fcall*, int);
int	convS2M(Fcall*, char*);

int	convM2D(char*, Dir*);
int	convD2M(Dir*, char*);
.
## diffname gnot/fcall.h 1990/11211
## diff -e /n/bootesdump/1990/03091/sys/src/9/68020/fcall.h /n/bootesdump/1990/11211/sys/src/9/68020/fcall.h
89a

int	fcallconv(void *, int, int, int, int);
int	dirconv(void *, int, int, int, int);
.
75,82d
73c
	Twstat =	78,
.
71c
	Tstat =		76,
.
69c
	Tremove =	74,
.
63,67c
	Tread =		68,
	Rread,
	Twrite =	70,
	Rwrite,
	Tclunk =	72,
.
61c
	Tcreate =	66,
.
59c
	Topen =		64,
.
57c
	Twalk =		62,
.
55c
	Tclone =	60,
.
53c
/*	Terror =	54,	illegal */
	Rerror =	55,
	Tflush =	56,
	Rflush,
	Tattach =	58,
.
51c
	Tsession =	52,
.
49c
	Tnop =		50,
.
29c
			char	name[NAMELEN];	/* T-Walk, T-Create */
.
24c
			char	ename[ERRLEN];	/* R-Error */
.
19,20c
			char	uname[NAMELEN];	/* T-Attach */
			char	aname[NAMELEN];	/* T-Attach */
			char	auth[NAMELEN];	/* T-Attach */
.
14,15c
			short	oldtag;		/* T-Flush */
			Qid	qid;		/* R-Attach, R-Walk, R-Open, R-Create */
.
12d
7c
	short	tag;
.
## diffname gnot/fcall.h 1991/0220 # deleted
## diff -e /n/bootesdump/1991/0201/sys/src/9/68020/fcall.h /n/bootesdump/1991/0220/sys/src/9/gnot/fcall.h
1,88d

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.