plan 9 kernel history: overview | file list | diff list

power/fcall.h (diff list | history)

1990/0227/sys/src/9/power/fcall.h:4,321990/11211/sys/src/9/power/fcall.h:4,32 (short | long)
1990/0227    
{ 
	char	type; 
	short	fid; 
	short	err; 
1990/11211    
	short	tag; 
1990/0227    
	union 
	{ 
		struct 
		{ 
			short	uid;		/* T-Userstr */ 
			short	newfid;		/* T-Clone */ 
			char	lang;		/* T-Session */ 
			ulong	qid;		/* R-Attach, R-Walk, R-Open, R-Create */ 
1990/11211    
			short	oldtag;		/* T-Flush */ 
			Qid	qid;		/* R-Attach, R-Walk, R-Open, R-Create */ 
1990/0227    
		}; 
		struct 
		{ 
			char	uname[28];	/* T-Attach, R-Userstr */ 
			char	aname[28];	/* T-Attach */ 
1990/11211    
			char	uname[NAMELEN];	/* T-Attach */ 
			char	aname[NAMELEN];	/* T-Attach */ 
			char	auth[NAMELEN];	/* T-Attach */ 
1990/0227    
		}; 
		struct 
		{ 
			char	ename[64];	/* R-Errstr */ 
1990/11211    
			char	ename[ERRLEN];	/* R-Error */ 
1990/0227    
		}; 
		struct 
		{ 
			long	perm;		/* T-Create */  
			char	name[28];	/* T-Walk, T-Create, T-Remove */ 
1990/11211    
			char	name[NAMELEN];	/* T-Walk, T-Create */ 
1990/0227    
			char	mode;		/* T-Create, T-Open */ 
		}; 
		struct 
1990/0227/sys/src/9/power/fcall.h:46,851990/11211/sys/src/9/power/fcall.h:46,81
1990/0227    
 
enum 
{ 
	Tnop =		0, 
1990/11211    
	Tnop =		50, 
1990/0227    
	Rnop, 
	Tsession =	2, 
1990/11211    
	Tsession =	52, 
1990/0227    
	Rsession, 
	Tattach =	10, 
1990/11211    
/*	Terror =	54,	illegal */ 
	Rerror =	55, 
	Tflush =	56, 
	Rflush, 
	Tattach =	58, 
1990/0227    
	Rattach, 
	Tclone =	12, 
1990/11211    
	Tclone =	60, 
1990/0227    
	Rclone, 
	Twalk =		14, 
1990/11211    
	Twalk =		62, 
1990/0227    
	Rwalk, 
	Topen =		16, 
1990/11211    
	Topen =		64, 
1990/0227    
	Ropen, 
	Tcreate =	18, 
1990/11211    
	Tcreate =	66, 
1990/0227    
	Rcreate, 
	Toread =	20, 
	Roread, 
	Towrite =	22, 
	Rowrite, 
	Tclunk =	24, 
1990/11211    
	Tread =		68, 
	Rread, 
	Twrite =	70, 
	Rwrite, 
	Tclunk =	72, 
1990/0227    
	Rclunk, 
	Tremove =	26, 
1990/11211    
	Tremove =	74, 
1990/0227    
	Rremove, 
	Tstat =		28, 
1990/11211    
	Tstat =		76, 
1990/0227    
	Rstat, 
	Twstat =	30, 
1990/11211    
	Twstat =	78, 
1990/0227    
	Rwstat, 
	Terrstr =	32, 
	Rerrstr, 
	Tuserstr =	34, 
	Ruserstr, 
	Tread =		36, 
	Rread, 
	Twrite =	38, 
	Rwrite, 
}; 
 
int	convM2S(char*, Fcall*, int); 
1990/0227/sys/src/9/power/fcall.h:87,891990/11211/sys/src/9/power/fcall.h:83,88
1990/0227    
 
int	convM2D(char*, Dir*); 
int	convD2M(Dir*, char*); 
1990/11211    
 
int	fcallconv(void *, int, int, int, int); 
int	dirconv(void *, int, int, int, int); 
1990/11211/sys/src/9/power/fcall.h:1,881991/0220/sys/src/9/power/fcall.h:0 (short | long)
Deleted.
rsc Mon Mar 7 10:32:54 2005
1990/0227    
typedef	struct	Fcall	Fcall; 
                 
struct	Fcall 
{ 
	char	type; 
	short	fid; 
1990/11211    
	short	tag; 
1990/0227    
	union 
	{ 
		struct 
		{ 
			short	newfid;		/* T-Clone */ 
1990/11211    
			short	oldtag;		/* T-Flush */ 
			Qid	qid;		/* R-Attach, R-Walk, R-Open, R-Create */ 
1990/0227    
		}; 
		struct 
		{ 
1990/11211    
			char	uname[NAMELEN];	/* T-Attach */ 
			char	aname[NAMELEN];	/* T-Attach */ 
			char	auth[NAMELEN];	/* T-Attach */ 
1990/0227    
		}; 
		struct 
		{ 
1990/11211    
			char	ename[ERRLEN];	/* R-Error */ 
1990/0227    
		}; 
		struct 
		{ 
			long	perm;		/* T-Create */  
1990/11211    
			char	name[NAMELEN];	/* T-Walk, T-Create */ 
1990/0227    
			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 
{ 
1990/11211    
	Tnop =		50, 
1990/0227    
	Rnop, 
1990/11211    
	Tsession =	52, 
1990/0227    
	Rsession, 
1990/11211    
/*	Terror =	54,	illegal */ 
	Rerror =	55, 
	Tflush =	56, 
	Rflush, 
	Tattach =	58, 
1990/0227    
	Rattach, 
1990/11211    
	Tclone =	60, 
1990/0227    
	Rclone, 
1990/11211    
	Twalk =		62, 
1990/0227    
	Rwalk, 
1990/11211    
	Topen =		64, 
1990/0227    
	Ropen, 
1990/11211    
	Tcreate =	66, 
1990/0227    
	Rcreate, 
1990/11211    
	Tread =		68, 
	Rread, 
	Twrite =	70, 
	Rwrite, 
	Tclunk =	72, 
1990/0227    
	Rclunk, 
1990/11211    
	Tremove =	74, 
1990/0227    
	Rremove, 
1990/11211    
	Tstat =		76, 
1990/0227    
	Rstat, 
1990/11211    
	Twstat =	78, 
1990/0227    
	Rwstat, 
}; 
                 
int	convM2S(char*, Fcall*, int); 
int	convS2M(Fcall*, char*); 
                 
int	convM2D(char*, Dir*); 
int	convD2M(Dir*, char*); 
1990/11211    
                 
int	fcallconv(void *, int, int, int, int); 
int	dirconv(void *, int, int, int, int); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)