2.11BSD/sys/sys/kern_xxx.c

Compare this file to the similar file:
Show the results in this format:

/*
 * Copyright (c) 1986 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 *
 *	@(#)kern_xxx.c	1.2 (2.11BSD) 2000/2/20
 */

#include "param.h"
#include "user.h"
#include "signal.h"
#include "reboot.h"
#include "kernel.h"
#include "systm.h"
#include "fs.h"

reboot()
{
	register struct a {
		int	opt;
	};

	if (suser())
		boot(rootdev, ((struct a *)u.u_ap)->opt);
}