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

1993/0804/port/streboot.c (diff list | history)

1993/0501/sys/src/9/port/streboot.c:1,481993/0804/sys/src/9/port/streboot.c:0 (short | long | prev)
Deleted.
rsc Mon Mar 7 10:32:15 2005
1992/0303    
#include	"u.h" 
1992/0321    
#include	"../port/lib.h" 
1992/0303    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
#include	"../port/error.h" 
                 
/* 
 *  reboot stream module definition 
 */ 
static void rebootopen(Queue*, Stream*); 
static void rebootiput(Queue*, Block*); 
static void rebootoput(Queue*, Block*); 
static void rebootreset(void); 
Qinfo rebootinfo = 
{ 
	rebootiput, 
	rebootoput, 
	rebootopen, 
	0, 
	"reboot", 
	0 
}; 
                 
static void 
rebootopen(Queue *q, Stream *s) 
{ 
	USED(q); 
1992/0711    
	USED(s); 
1993/0501    
	if(strcmp(up->user, eve) != 0) 
1992/0303    
		error(Eperm); 
} 
                 
void 
rebootoput(Queue *q, Block *bp) 
{ 
	PUTNEXT(q, bp); 
} 
                 
static void 
rebootiput(Queue *q, Block *bp) 
{ 
	if(bp->type == M_HANGUP){ 
		print("lost connection to fs, rebooting"); 
1992/0812    
		exit(0); 
1992/0303    
	} 
	PUTNEXT(q, bp); 
} 


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