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

1992/0812/port/streboot.c (diff list | history)

1992/0303/sys/src/9/port/streboot.c:1,51992/0321/sys/src/9/port/streboot.c:1,5 (short | long)
Move lib.h to ../port.
rsc Fri Mar 4 12:44:25 2005
1992/0303    
#include	"u.h" 
#include	"lib.h" 
1992/0321    
#include	"../port/lib.h" 
1992/0303    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
1992/0321/sys/src/9/port/streboot.c:26,311992/0711/sys/src/9/port/streboot.c:26,32 (short | long)
1992/0303    
rebootopen(Queue *q, Stream *s) 
{ 
	USED(q); 
1992/0711    
	USED(s); 
1992/0303    
	if(strcmp(u->p->user, eve) != 0) 
		error(Eperm); 
} 
1992/0711/sys/src/9/port/streboot.c:42,481992/0812/sys/src/9/port/streboot.c:42,48 (short | long)
1992/0303    
{ 
	if(bp->type == M_HANGUP){ 
		print("lost connection to fs, rebooting"); 
		exit(); 
1992/0812    
		exit(0); 
1992/0303    
	} 
	PUTNEXT(q, bp); 
} 
1992/0812/sys/src/9/port/streboot.c:27,331993/0501/sys/src/9/port/streboot.c:27,33 (short | long)
1992/0303    
{ 
	USED(q); 
1992/0711    
	USED(s); 
1992/0303    
	if(strcmp(u->p->user, eve) != 0) 
1993/0501    
	if(strcmp(up->user, eve) != 0) 
1992/0303    
		error(Eperm); 
} 
 
1993/0501/sys/src/9/port/streboot.c:1,481993/0804/sys/src/9/port/streboot.c:0 (short | long)
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)