~kris/9p

9hist

58219691db8a368da5b7f6d8bc684782016f5384 — David du Colombier 24 years ago 6130dd0
Plan 9 from Bell Labs 2002-03-25
2 files changed, 4 insertions(+), 0 deletions(-)

M ip/devip.c
M ip/ip.h
M ip/devip.c => ip/devip.c +3 -0
@@ 180,6 180,8 @@ ip1gen(Chan *c, int i, Dir *dp)
		break;
	}
	devdir(c, q, p, len, network, prot, dp);
	if(i == Qndb)
		dp->mtime = f->ndbmtime;
	return 1;
}



@@ 1374,6 1376,7 @@ ndbwrite(Fs *f, char *a, ulong off, int n)
	memmove(f->ndb+off, a, n);
	f->ndb[off+n] = 0;
	f->ndbvers++;
	f->ndbmtime = seconds();
	return n;
}


M ip/ip.h => ip/ip.h +1 -0
@@ 294,6 294,7 @@ struct Fs

	char	ndb[1024];		/* an ndb entry for this interface */
	int	ndbvers;
	long	ndbmtime;
};

int	Fsconnected(Conv*, char*);