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

1995/0117/port/devsd.c (diff list | history)

1995/0108/sys/src/9/port/devsd.c:279,2881995/0117/sys/src/9/port/devsd.c:279,288 (short | long | prev | next)
1994/0913    
	/* 
	 *  parse partition table. 
	 */ 
	n = getfields(b, line, Npart+2, '\n'); 
1995/0117    
	n = getfields(b, line, Npart+2, "\n"); 
1994/0913    
	if(n > 0 && strncmp(line[0], MAGIC, sizeof(MAGIC)-1) == 0) { 
		for(i = 1; i < n; i++) { 
			switch(getfields(line[i], field, 3, ' ')) { 
1995/0117    
			switch(getfields(line[i], field, 3, " ")) { 
1994/0913    
			case 2: 
				if(strcmp(field[0], "unit") == 0) 
					strncpy(d->vol, field[1], NAMELEN); 


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