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

https://bitbucket.org/freebsd/freebsd-head/ · Raku · 100 lines · 100 code · 0 blank · 0 comment · 8 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
  36. Unless noted otherwise,
  37. the calls in this section are permitted only to a privileged user.
  38. .NH 3
  39. Bootstrap operations
  40. .PP
  41. The call
  42. .DS
  43. mount(blkdev, dir, ronly);
  44. char *blkdev, *dir; int ronly;
  45. .DE
  46. extends the UNIX name space. The \fImount\fP call specifies
  47. a block device \fIblkdev\fP containing a UNIX file system
  48. to be made available starting at \fIdir\fP. If \fIronly\fP is
  49. set then the file system is read-only; writes to the file system
  50. will not be permitted and access times will not be updated
  51. when files are referenced.
  52. \fIDir\fP is normally a name in the root directory.
  53. .PP
  54. The call
  55. .DS
  56. swapon(blkdev, size);
  57. char *blkdev; int size;
  58. .DE
  59. specifies a device to be made available for paging and swapping.
  60. .PP
  61. .NH 3
  62. Shutdown operations
  63. .PP
  64. The call
  65. .DS
  66. unmount(dir);
  67. char *dir;
  68. .DE
  69. unmounts the file system mounted on \fIdir\fP.
  70. This call will succeed only if the file system is
  71. not currently being used.
  72. .PP
  73. The call
  74. .DS
  75. sync();
  76. .DE
  77. schedules input/output to clean all system buffer caches.
  78. (This call does not require privileged status.)
  79. .PP
  80. The call
  81. .DS
  82. reboot(how)
  83. int how;
  84. .DE
  85. causes a machine halt or reboot. The call may request a reboot
  86. by specifying \fIhow\fP as RB_AUTOBOOT, or that the machine be halted
  87. with RB_HALT. These constants are defined in \fI<sys/reboot.h>\fP.
  88. .NH 3
  89. Accounting
  90. .PP
  91. The system optionally keeps an accounting record in a file
  92. for each process that exits on the system.
  93. The format of this record is beyond the scope of this document.
  94. The accounting may be enabled to a file \fIname\fP by doing
  95. .DS
  96. acct(path);
  97. char *path;
  98. .DE
  99. If \fIpath\fP is null, then accounting is disabled. Otherwise,
  100. the named file becomes the accounting file.