~kris/9p

9hist

eb48cfbc390b678bc9cc3572ae7040ff9e1c2303 — David du Colombier 33 years ago 069ed67
Plan 9 from Bell Labs 1993-05-02
2 files changed, 4 insertions(+), 1 deletions(-)

M port/devcons.c
M port/sysproc.c
M port/devcons.c => port/devcons.c +3 -0
@@ 509,6 509,8 @@ consread(Chan *c, void *buf, long n, ulong offset)
			qunlock(&kbdq);
			nexterror();
		}
		return getline((char*)buf, n);
#ifdef asdf
		while(!cangetc(&lineq)){
			sleep(&kbdq.r, isbrkc, &kbdq);
			do{


@@ 547,6 549,7 @@ consread(Chan *c, void *buf, long n, ulong offset)
			*cbuf++ = ch;
			--n;
		}
#endif asdf
		poperror();
		qunlock(&kbdq);
		return i;

M port/sysproc.c => port/sysproc.c +1 -1
@@ 373,7 373,7 @@ sysexec(ulong *arg)
	up->seg[SSEG] = s;
	s->base = USTKTOP-USTKSIZE;
	s->top = USTKTOP;
	relocateseg(s, TSTKTOP-USTKTOP);
	relocateseg(s, USTKTOP-TSTKTOP);

	close(tc);