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

1999/1005/port/devcons.c (diff list | history)

1999/0825/sys/src/9/port/devcons.c:5,111999/1005/sys/src/9/port/devcons.c:5,11 (short | long | prev | next)
1990/0227    
#include	"fns.h" 
1992/0111    
#include	"../port/error.h" 
1990/0227    
 
1997/0327    
void	(*consdebug)(void); 
1999/1005    
void	(*consdebug)(void) = rdb; 
1990/0227    
 
1997/0327    
Queue*	kbdq;			/* unprocessed console input */ 
Queue*	lineq;			/* processed console input */ 
1999/0825/sys/src/9/port/devcons.c:141,1461999/1005/sys/src/9/port/devcons.c:141,148
1996/0214    
	return n; 
1990/0227    
} 
 
1999/1005    
int noprint; 
 
1990/0227    
int 
print(char *fmt, ...) 
{ 
1999/0825/sys/src/9/port/devcons.c:148,1531999/1005/sys/src/9/port/devcons.c:150,158
1997/0327    
	va_list arg; 
	char buf[PRINTSIZE]; 
1990/0227    
 
1999/1005    
	if(noprint) 
		return -1; 
 
1996/0214    
	va_start(arg, fmt); 
	n = doprint(buf, buf+sizeof(buf), fmt, arg) - buf; 
	va_end(arg); 
1999/0825/sys/src/9/port/devcons.c:168,1731999/1005/sys/src/9/port/devcons.c:173,179
1999/0820    
	n = doprint(buf, buf+sizeof(buf), fmt, arg) - buf; 
	va_end(arg); 
	serialputs(buf, n); 
1999/1005    
//	screenputs(buf, n); 
1999/0820    
	splx(s); 
 
	return n; 
1999/0825/sys/src/9/port/devcons.c:180,1901999/1005/sys/src/9/port/devcons.c:186,199
1997/0327    
	va_list arg; 
	char buf[PRINTSIZE]; 
1990/0227    
 
1999/1005    
	splhi(); 
1991/1011    
	strcpy(buf, "panic: "); 
1996/0214    
	va_start(arg, fmt); 
	n = doprint(buf+strlen(buf), buf+sizeof(buf), fmt, arg) - buf; 
	va_end(arg); 
1990/0227    
	buf[n] = '\n'; 
1999/1005    
	serialputs(buf, n+1); 
	rdb(); 
1990/0227    
	putstrn(buf, n+1); 
1994/0224    
	spllo(); 
1993/0829    
	prflush(); 
1999/0825/sys/src/9/port/devcons.c:207,2131999/1005/sys/src/9/port/devcons.c:216,222
1996/0214    
	va_list arg; 
1997/0327    
	char buf[2*PRINTSIZE]; 
1990/0227    
 
1993/0501    
	if(up->fgrp == 0) 
1999/1005    
	if(up == nil || up->fgrp == nil) 
1991/0720    
		return 0; 
 
1993/0501    
	c = up->fgrp->fd[2]; 
1999/0825/sys/src/9/port/devcons.c:267,2751999/1005/sys/src/9/port/devcons.c:276,281
1997/0327    
			if(consdebug != nil) 
				consdebug(); 
1999/0820    
			return; 
		case 'D': 
			consdebug = rdb; 
1992/0411    
			return; 
1991/0607    
		case 'p': 
1998/0808    
			x = spllo(); 
1991/0608    
			procdump(); 
1999/0825/sys/src/9/port/devcons.c:378,3831999/1005/sys/src/9/port/devcons.c:384,390
1992/0428    
	Qkey, 
1993/0330    
	Qhostdomain, 
	Qhostowner, 
1999/1005    
	Qnewkernel, 
1990/0227    
	Qnull, 
	Qpgrpid, 
	Qpid, 
1999/0825/sys/src/9/port/devcons.c:409,4141999/1005/sys/src/9/port/devcons.c:416,422
1993/0402    
	"hostdomain",	{Qhostdomain},	DOMLEN,		0664, 
	"hostowner",	{Qhostowner},	NAMELEN,	0664, 
1992/0428    
	"key",		{Qkey},		DESKEYLEN,	0622, 
1999/1005    
	"newkernel",	{Qnewkernel},	0,	0000,	/* stupid hack -rsc */ 
1991/1112    
	"null",		{Qnull},	0,		0666, 
1991/1127    
	"pgrpid",	{Qpgrpid},	NUMSIZE,	0444, 
	"pid",		{Qpid},		NUMSIZE,	0444, 


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