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

1991/1220/port/dev.c (diff list | history)

1991/1220/sys/src/9/port/dev.c:3,91992/0111/sys/src/9/port/dev.c:3,9 (short | long | prev | next)
Move error.h to ../port. Change errors to actual strings.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
#include	"errno.h" 
1992/0111    
#include	"../port/error.h" 
1990/0227    
#define	DEVTAB 
#include	"devtab.h" 
 
1991/1220/sys/src/9/port/dev.c:98,1041992/0111/sys/src/9/port/dev.c:98,104
1990/0227    
	for(i=0;; i++) 
		switch((*gen)(c, tab, ntab, i, &dir)){ 
		case -1: 
1990/11211    
			strncpy(u->error, errstrtab[Enonexist], NAMELEN); 
1992/0111    
			strncpy(u->error, Enonexist, NAMELEN); 
1990/0227    
			return 0; 
		case 0: 
			continue; 


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