typedef struct Handles Handles;
typedef struct Proc Proc;
struct Handles
{
	HANDLE	hserversig;
	HANDLE	hclientsig;
	HANDLE	hclientproc;
	HANDLE	hmem;
	HANDLE	hkillsig;
};

typedef struct Syscallmem Syscallmem;
struct Syscallmem
{
	Proc*	p;	/* kernel process */
	char		exitstatus[ERRMAX];
	int		exitnow;
	Handles 	hs;	/* server copy */
	Handles 	hc;	/* client copy */
	ulong	nr;	/* system call number */
	ulong	ret;	/* return value */
	ulong	arg[10];	/* arguments */
};

enum
{
	CallMem = 16384,
	CallBuf = CallMem - sizeof(Syscallmem),
};

