~kris/9p

9hist

753958f7baef67762150954a68879eb9c5b75d6b — David du Colombier 27 years ago c0c85bb
Plan 9 from Bell Labs 1999-03-31
3 files changed, 8 insertions(+), 2 deletions(-)

M carrera/mem.h
M ip/il.c
M port/auth.c
M carrera/mem.h => carrera/mem.h +1 -1
@@ 22,7 22,7 @@
/*
 * Time
 */
#define	HZ		250			/* clock frequency */
#define	HZ		500			/* clock frequency */
#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */
#define	TK2SEC(t)	((t)/HZ)		/* ticks to seconds */
#define	TK2MS(t)	((t)*MS2HZ)		/* ticks to milliseconds */

M ip/il.c => ip/il.c +2 -0
@@ 1055,6 1055,7 @@ loop:
				ilbackoff(ic);
			}
			break;

		case Ilsyncee:
		case Ilsyncer:
			if(ic->timeout <= msec) {


@@ 1066,6 1067,7 @@ loop:
				ilbackoff(ic);
			}
			break;

		case Ilestablished:
			if(ic->recvd != ic->acksent && ic->acktime <= msec)
				ilsendctl(p, nil, Ilack, ic->next, ic->recvd, 0);

M port/auth.c => port/auth.c +5 -1
@@ 215,10 215,13 @@ sysfauth(ulong *arg)
	validaddr(arg[1], 2*TICKETLEN, 0);
	c = fdtochan(arg[0], OWRITE, 0, 1);
	s = c->session;
	if(s == 0)
	if(s == 0){
		cclose(c);
		error("fauth must follow fsession");
	}
	cp = newcrypt();
	if(waserror()){
		cclose(c);
		freecrypt(cp);
		nexterror();
	}


@@ 249,6 252,7 @@ sysfauth(ulong *arg)
	cp->next = s->cache;
	s->cache = cp;
	unlock(s);
	cclose(c);
	poperror();
	return 0;
}