|
|
1.1 root 1: .\" Copyright (c) 1983 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)1.7.t 6.3 (Berkeley) 5/12/86
6: .\"
7: .sh "System operation support
8: .PP
9: Unless noted otherwise,
10: the calls in this section are permitted only to a privileged user.
11: .NH 3
12: Bootstrap operations
13: .PP
14: The call
15: .DS
16: mount(blkdev, dir, ronly);
17: char *blkdev, *dir; int ronly;
18: .DE
19: extends the UNIX name space. The \fImount\fP call specifies
20: a block device \fIblkdev\fP containing a UNIX file system
21: to be made available starting at \fIdir\fP. If \fIronly\fP is
22: set then the file system is read-only; writes to the file system
23: will not be permitted and access times will not be updated
24: when files are referenced.
25: \fIDir\fP is normally a name in the root directory.
26: .PP
27: The call
28: .DS
29: swapon(blkdev, size);
30: char *blkdev; int size;
31: .DE
32: specifies a device to be made available for paging and swapping.
33: .PP
34: .NH 3
35: Shutdown operations
36: .PP
37: The call
38: .DS
39: unmount(dir);
40: char *dir;
41: .DE
42: unmounts the file system mounted on \fIdir\fP.
43: This call will succeed only if the file system is
44: not currently being used.
45: .PP
46: The call
47: .DS
48: sync();
49: .DE
50: schedules input/output to clean all system buffer caches.
51: (This call does not require privileged status.)
52: .PP
53: The call
54: .DS
55: reboot(how)
56: int how;
57: .DE
58: causes a machine halt or reboot. The call may request a reboot
59: by specifying \fIhow\fP as RB_AUTOBOOT, or that the machine be halted
60: with RB_HALT. These constants are defined in \fI<sys/reboot.h>\fP.
61: .NH 3
62: Accounting
63: .PP
64: The system optionally keeps an accounting record in a file
65: for each process that exits on the system.
66: The format of this record is beyond the scope of this document.
67: The accounting may be enabled to a file \fIname\fP by doing
68: .DS
69: acct(path);
70: char *path;
71: .DE
72: If \fIpath\fP is null, then accounting is disabled. Otherwise,
73: the named file becomes the accounting file.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.