/* * 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); }