From cbfd66a7f9dbb473c080d4c7cb42a5c334951655 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 9 Nov 1999 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1999-11-09 --- ip/ipaux.c | 2 +- pc/main.c | 8 +------- port/devmnt.c | 5 +---- port/systab.h | 6 ------ 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/ip/ipaux.c b/ip/ipaux.c index a5aaee56699d9b4b54a98ac5fb0bc9107ee0890a..3021fe60130fbb92977692a8991f81cf0eef3fca 100644 --- a/ip/ipaux.c +++ b/ip/ipaux.c @@ -109,7 +109,7 @@ enum Isprefix= 16, }; -uchar prefixvals[256] = +static uchar prefixvals[256] = { [0x00] 0 | Isprefix, [0x80] 1 | Isprefix, diff --git a/pc/main.c b/pc/main.c index dfc6112152cd4a3bea617e8f81579f775b4227d2..a1ddd38c841c624ed964efcce60706b28aba1ae1 100644 --- a/pc/main.c +++ b/pc/main.c @@ -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); diff --git a/port/devmnt.c b/port/devmnt.c index a2865ba53d06af85729f1617f8a4d0ddc827718f..3364545b3ac7428330567f70e04b913742b91701 100644 --- a/port/devmnt.c +++ b/port/devmnt.c @@ -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); diff --git a/port/systab.h b/port/systab.h index 168aa657472a7d08ef608dac83ee9c62df84d289..ffa86f227bdffde01daf6bfd25e66cbad5959078 100644 --- a/port/systab.h +++ b/port/systab.h @@ -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]);