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

1991/0710/gnot/trap.c (diff list | history)

1991/0709/sys/src/9/gnot/trap.c:207,2131991/0710/sys/src/9/gnot/trap.c:207,213 (short | long | prev | next)
1990/03091    
} 
 
#undef	CHDIR	/* BUG */ 
#include "/sys/src/libc/680209sys/sys.h" 
1991/0710    
#include "/sys/src/libc/9syscall/sys.h" 
1990/03091    
 
typedef long Syscall(ulong*); 
1990/11211    
Syscall	sysr1, sysfork, sysexec, sysgetpid, syssleep, sysexits, sysdeath, syswait; 
1991/0709/sys/src/9/gnot/trap.c:328,3541991/0710/sys/src/9/gnot/trap.c:328,331
1990/1226    
execpc(ulong entry) 
{ 
	((Ureg*)UREGADDR)->pc = entry; 
} 
                 
1990/11211    
#include "errstr.h" 
                 
1990/03091    
void 
1990/11211    
error(int code) 
1990/03091    
{ 
1991/0115    
	strncpy(u->error, errstrtab[code], ERRLEN); 
1990/03091    
	nexterror(); 
} 
1990/11211    
                 
void 
errors(char *err) 
{ 
1991/0322    
	strncpy(u->error, err, ERRLEN); 
1990/11211    
	nexterror(); 
} 
                 
1990/03091    
                 
void 
nexterror(void) 
{ 
	gotolabel(&u->errlab[--u->nerrlab]); 
} 


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