~kris/9p

9hist

9518889e98a19a45006be474bf326d12debdddcd — David du Colombier 29 years ago 393b646
Plan 9 from Bell Labs 1997-04-11
3 files changed, 12 insertions(+), 11 deletions(-)

M carrera/devrtc.c
M ip/udp.c
M port/taslock.c
M carrera/devrtc.c => carrera/devrtc.c +6 -0
@@ 175,6 175,7 @@ _rtctime(void)
long
rtctime(void)
{
#ifdef notdef
	int i;
	long t, ot;



@@ 191,6 192,11 @@ rtctime(void)
	iunlock(&rtclock);

	return t;
#else
	extern ulong boottime;

	return boottime+TK2SEC(MACHP(0)->ticks);
#endif /* notdef */
}

static long	 

M ip/udp.c => ip/udp.c +6 -1
@@ 81,8 81,13 @@ udpstate(char **s, Conv *c)
}

static char*
udpannounce(Conv *c, char**, int)
udpannounce(Conv *c, char** argv, int argc)
{
	char *e;

	e = Fsstdannounce(c, argv, argc);
	if(e != nil)
		return e;
	Fsconnected(&fs, c, nil);

	return nil;

M port/taslock.c => port/taslock.c +0 -10
@@ 69,18 69,8 @@ ilock(Lock *l)
	}

	for(;;){
#ifdef notdef
		while(l->key)
			;
#else
{   int i;
    i = 0;
    while(l->key){
	if(i++ > 100000000)
	    panic("ilock loop: caller pc %luX, held by %luX\n", pc, l->pc);
    }
}
#endif /* notdef */
		if(tas(&l->key) == 0){
			l->sr = x;
			l->pc = pc;