PageRenderTime 60ms CodeModel.GetById 16ms app.highlight 40ms RepoModel.GetById 2ms app.codeStats 0ms

/share/doc/psd/05.sysman/1.7.t

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