~kris/9p

9hist

cbfd66a7f9dbb473c080d4c7cb42a5c334951655 — David du Colombier 26 years ago bc28498
Plan 9 from Bell Labs 1999-11-09
4 files changed, 3 insertions(+), 18 deletions(-)

M ip/ipaux.c
M pc/main.c
M port/devmnt.c
M port/systab.h
M ip/ipaux.c => ip/ipaux.c +1 -1
@@ 109,7 109,7 @@ enum
	Isprefix= 16,
};

uchar prefixvals[256] =
static uchar prefixvals[256] =
{
[0x00] 0 | Isprefix,
[0x80] 1 | Isprefix,

M pc/main.c => pc/main.c +1 -7
@@ 372,9 372,8 @@ void
confinit(void)
{
	char *p;
	int i, userpcnt;
	int userpcnt;
	ulong kpages, maxmem;
	extern int defmaxmsg;

	if(p = getconf("*maxmem"))
		maxmem = strtoul(p, 0, 0);


@@ 384,11 383,6 @@ confinit(void)
		userpcnt = 100 - strtol(p, 0, 0);
	else
		userpcnt = 0;
	if(p = getconf("*defmaxmsg")){
		i = strtol(p, 0, 0);
		if(i < defmaxmsg && i >=128)
			defmaxmsg = i;
	}

	meminit(maxmem);


M port/devmnt.c => port/devmnt.c +1 -4
@@ 35,8 35,6 @@ struct Mntalloc
	int	rpctag;
}mntalloc;

#define MAXRPC		(16*1024+MAXMSG)

void	mattach(Mnt*, Chan*, char*);
void	mntauth(Mnt*, Mntrpc*, char*, ushort);
Mnt*	mntchk(Chan*);


@@ 57,7 55,6 @@ int	rpcattn(void*);
void	mclose(Mnt*, Chan*);
Chan*	mntchan(void);

int defmaxmsg = MAXFDATA;
void (*mntstats)(int, Chan*, uvlong, ulong);

enum


@@ 145,7 142,7 @@ mntattach(char *muxattach)
		bogus.spec = "";
	}
	else
		m->blocksize = defmaxmsg;
		m->blocksize = MAXFDATA;
	m->flags = bogus.flags & ~MCACHE;

	incref(m->c);

M port/systab.h => port/systab.h +0 -6
@@ 43,8 43,6 @@ Syscall syswait;
Syscall syswrite9p;
Syscall sysread9p;
Syscall sysseek;
Syscall systunnel;
Syscall sysexportfs;
Syscall	sysdeath;

Syscall *systab[]={


@@ 88,8 86,6 @@ Syscall *systab[]={
	[WRITE9P]	syswrite9p,
	[READ9P]	sysread9p,
	[SEEK]		sysseek,
	[TUNNEL]	systunnel,
	[EXPORTFS]	sysexportfs,
};

char *sysctab[]={


@@ 133,8 129,6 @@ char *sysctab[]={
	[WRITE9P]	"Write9p",
	[READ9P]	"Read9p",
	[SEEK]		"Seek",
	[TUNNEL]	"Tunnel",
	[EXPORTFS]	"Exportfs",
};

int nsyscall = (sizeof systab/sizeof systab[0]);