]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/psd/05.sysman/1.7.t
Update compiler-rt to release_39 branch r288513. Since this contains a
[FreeBSD/FreeBSD.git] / share / doc / psd / 05.sysman / 1.7.t
1 .\" Copyright (c) 1983, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)1.7.t       8.1 (Berkeley) 6/8/93
29 .\"
30 .sh "System operation support
31 .PP
32 Unless noted otherwise,
33 the calls in this section are permitted only to a privileged user.
34 .NH 3
35 Bootstrap operations
36 .PP
37 The call
38 .DS
39 mount(blkdev, dir, ronly);
40 char *blkdev, *dir; int ronly;
41 .DE
42 extends the UNIX name space.  The \fImount\fP call specifies
43 a block device \fIblkdev\fP containing a UNIX file system
44 to be made available starting at \fIdir\fP.  If \fIronly\fP is
45 set then the file system is read-only; writes to the file system
46 will not be permitted and access times will not be updated
47 when files are referenced.
48 \fIDir\fP is normally a name in the root directory.
49 .PP
50 The call
51 .DS
52 swapon(blkdev, size);
53 char *blkdev; int size;
54 .DE
55 specifies a device to be made available for paging and swapping.
56 .PP
57 .NH 3
58 Shutdown operations
59 .PP
60 The call
61 .DS
62 unmount(dir);
63 char *dir;
64 .DE
65 unmounts the file system mounted on \fIdir\fP.
66 This call will succeed only if the file system is
67 not currently being used.
68 .PP
69 The call
70 .DS
71 sync();
72 .DE
73 schedules input/output to clean all system buffer caches.
74 (This call does not require privileged status.)
75 .PP
76 The call
77 .DS
78 reboot(how)
79 int how;
80 .DE
81 causes a machine halt or reboot.  The call may request a reboot
82 by specifying \fIhow\fP as RB_AUTOBOOT, or that the machine be halted
83 with RB_HALT.  These constants are defined in \fI<sys/reboot.h>\fP.
84 .NH 3
85 Accounting
86 .PP
87 The system optionally keeps an accounting record in a file
88 for each process that exits on the system.
89 The format of this record is beyond the scope of this document.
90 The accounting may be enabled to a file \fIname\fP by doing
91 .DS
92 acct(path);
93 char *path;
94 .DE
95 If \fIpath\fP is null, then accounting is disabled.  Otherwise,
96 the named file becomes the accounting file.