1: /*
2: * Copyright (c) 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)kern_xxx.c 1.2 (2.11BSD) 2000/2/20
7: */
8:
9: #include "param.h"
10: #include "user.h"
11: #include "signal.h"
12: #include "reboot.h"
13: #include "kernel.h"
14: #include "systm.h"
15: #include "fs.h"
16:
17: reboot()
18: {
19: register struct a {
20: int opt;
21: };
22:
23: if (suser())
24: boot(rootdev, ((struct a *)u.u_ap)->opt);
25: }
Defined functions
Defined struct's
a
defined in line
19; used 2 times