plan 9 kernel history: overview | file list | diff list

1998/0326/port/dev.c (diff list | history)

1998/0319/sys/src/9/port/dev.c:23,291998/0326/sys/src/9/port/dev.c:23,29 (short | long | prev | next)
Use length properly.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
} 
 
void 
1991/1109    
devdir(Chan *c, Qid qid, char *n, long length, char *user, long perm, Dir *db) 
1998/0326    
devdir(Chan *c, Qid qid, char *n, vlong length, char *user, long perm, Dir *db) 
1990/0227    
{ 
	strcpy(db->name, n); 
	db->qid = qid; 
1998/0319/sys/src/9/port/dev.c:37,441998/0326/sys/src/9/port/dev.c:37,43
1993/0323    
		db->mode |= CHMOUNT; 
1990/0227    
	db->atime = seconds(); 
1991/1220    
	db->mtime = kerndate; 
1998/0319    
	db->length1 = length;	/* BOTCH */ 
	db->length2 = length;	/* BOTCH */ 
1998/0326    
	db->length = length; 
1993/1210    
	memmove(db->uid, user, NAMELEN); 
	memmove(db->gid, eve, NAMELEN); 
1990/0227    
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)