~kris/9p

9hist

b6f244f6d783c34aba0ac00e8557f103af42616d — David du Colombier 26 years ago c3dd29c
Plan 9 from Bell Labs 2000-05-30
3 files changed, 6 insertions(+), 3 deletions(-)

M alphapc/devvga.c
M pc/devvga.c
M port/devsd.c
M alphapc/devvga.c => alphapc/devvga.c +1 -0
@@ 329,6 329,7 @@ vgactl(char* a)
		if(n < 2)
			error(Ebadarg);
		blanktime = strtoul(field[1], 0, 0);
		return;
	}
	else if(strcmp(field[0], "hwaccel") == 0){
		if(n < 2)

M pc/devvga.c => pc/devvga.c +1 -0
@@ 309,6 309,7 @@ vgactl(char* a)
		if(n < 2)
			error(Ebadarg);
		blanktime = strtoul(field[1], 0, 0);
		return;
	}
	else if(strcmp(field[0], "hwaccel") == 0){
		if(n < 2)

M port/devsd.c => port/devsd.c +4 -3
@@ 128,7 128,7 @@ sdinitpart(SDunit* unit)
{
	int nf;
	ulong start, end;
	char *f[4], *p, *q;
	char *f[4], *p, *q, buf[10];

	unit->sectors = unit->secsize = 0;
	unit->npart = 0;


@@ 157,12 157,13 @@ sdinitpart(SDunit* unit)
		/*
		 * Use partitions passed from boot program,
		 * e.g.
		 *	sdC0=dos 63 123123/plan9 123123 456456
		 *	sdC0part=dos 63 123123/plan9 123123 456456
		 * This happens before /boot sets hostname so the
		 * partitions will have the null-string for user.
		 * The gen functions patch it up.
		 */
		for(p = getconf(unit->name); p != nil; p = q){
		snprint(buf, sizeof buf, "%spart", unit->name);
		for(p = getconf(buf); p != nil; p = q){
			if(q = strchr(p, '/'))
				*q++ = '\0';
			nf = getfields(p, f, nelem(f), 1, " \t\r");