BSD 4 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 8 Nov 1980 08:09:46 +0000 (00:09 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 8 Nov 1980 08:09:46 +0000 (00:09 -0800)
Work on file usr/man/man8/accton.8
Work on file usr/man/man8/ac.8
Work on file usr/man/man8/arff.8
Work on file usr/man/man8/adduser.8
Work on file usr/man/man8/analyze.8
Work on file usr/man/man8/arcv.8
Work on file usr/man/man8/chgrp.8
Work on file usr/man/man8/catman.8
Work on file usr/man/man8/cron.8
Work on file usr/man/man8/clri.8
Work on file usr/man/man8/crash.8
Work on file usr/man/man8/chown.8
Work on file usr/man/man8/dcheck.8
Work on file usr/man/man8/dmesg.8
Work on file usr/man/man8/delivermail.8
Work on file usr/man/man8/flcopy.8
Work on file usr/man/man8/getty.8
Work on file usr/man/man8/dumpdir.8
Work on file usr/man/man8/dump.8
Work on file usr/man/man8/fsck.8
Work on file usr/man/man8/init.8
Work on file usr/man/man8/halt.8
Work on file usr/man/man8/icheck.8
Work on file usr/man/man8/mknod.8
Work on file usr/man/man8/makekey.8
Work on file usr/man/man8/mklost+found.8
Work on file usr/man/man8/mkfs.8
Work on file usr/man/man8/ncheck.8
Work on file usr/man/man8/old.8
Work on file usr/man/man8/pstat.8
Work on file usr/man/man8/mount.8
Work on file usr/man/man8/rc.8
Work on file usr/man/man8/reboot.8
Work on file usr/man/man8/quot.8
Work on file usr/man/man8/renice.8
Work on file usr/man/man8/restor.8
Work on file usr/man/man8/swapon.8
Work on file usr/man/man8/update.8
Work on file usr/man/man8/sa.8
Work on file usr/man/man8/sticky.8
Work on file usr/man/man8/sync.8
Work on file usr/man/man8/vipw.8
Work on file usr/man/man8/vpac.8

Synthesized-from: CSRG//cd1/4.0

43 files changed:
usr/man/man8/ac.8 [new file with mode: 0644]
usr/man/man8/accton.8 [new file with mode: 0644]
usr/man/man8/adduser.8 [new file with mode: 0644]
usr/man/man8/analyze.8 [new file with mode: 0644]
usr/man/man8/arcv.8 [new file with mode: 0644]
usr/man/man8/arff.8 [new file with mode: 0644]
usr/man/man8/catman.8 [new file with mode: 0644]
usr/man/man8/chgrp.8 [new file with mode: 0644]
usr/man/man8/chown.8 [new file with mode: 0644]
usr/man/man8/clri.8 [new file with mode: 0644]
usr/man/man8/crash.8 [new file with mode: 0644]
usr/man/man8/cron.8 [new file with mode: 0644]
usr/man/man8/dcheck.8 [new file with mode: 0644]
usr/man/man8/delivermail.8 [new file with mode: 0644]
usr/man/man8/dmesg.8 [new file with mode: 0644]
usr/man/man8/dump.8 [new file with mode: 0644]
usr/man/man8/dumpdir.8 [new file with mode: 0644]
usr/man/man8/flcopy.8 [new file with mode: 0644]
usr/man/man8/fsck.8 [new file with mode: 0644]
usr/man/man8/getty.8 [new file with mode: 0644]
usr/man/man8/halt.8 [new file with mode: 0644]
usr/man/man8/icheck.8 [new file with mode: 0644]
usr/man/man8/init.8 [new file with mode: 0644]
usr/man/man8/makekey.8 [new file with mode: 0644]
usr/man/man8/mkfs.8 [new file with mode: 0644]
usr/man/man8/mklost+found.8 [new file with mode: 0644]
usr/man/man8/mknod.8 [new file with mode: 0644]
usr/man/man8/mount.8 [new file with mode: 0644]
usr/man/man8/ncheck.8 [new file with mode: 0644]
usr/man/man8/old.8 [new file with mode: 0644]
usr/man/man8/pstat.8 [new file with mode: 0644]
usr/man/man8/quot.8 [new file with mode: 0644]
usr/man/man8/rc.8 [new file with mode: 0644]
usr/man/man8/reboot.8 [new file with mode: 0644]
usr/man/man8/renice.8 [new file with mode: 0644]
usr/man/man8/restor.8 [new file with mode: 0644]
usr/man/man8/sa.8 [new file with mode: 0644]
usr/man/man8/sticky.8 [new file with mode: 0644]
usr/man/man8/swapon.8 [new file with mode: 0644]
usr/man/man8/sync.8 [new file with mode: 0644]
usr/man/man8/update.8 [new file with mode: 0644]
usr/man/man8/vipw.8 [new file with mode: 0644]
usr/man/man8/vpac.8 [new file with mode: 0644]

diff --git a/usr/man/man8/ac.8 b/usr/man/man8/ac.8
new file mode 100644 (file)
index 0000000..2d9d99c
--- /dev/null
@@ -0,0 +1,59 @@
+.TH AC 8
+.UC 4
+.SH NAME
+ac \- login accounting
+.SH SYNOPSIS
+.B /etc/ac
+[
+.B \-w
+wtmp ] [
+.B \-p
+] [
+.B \-d
+] [ people ] ...
+.SH DESCRIPTION
+.I Ac
+produces a printout giving
+connect time
+for each user who has logged in
+during the life of the current
+.I wtmp
+file.
+A total is also produced.
+.B \-w
+is used to specify an alternate
+.IR wtmp ""
+file.
+.B \-p
+prints individual totals; without this option,
+only totals are printed.
+.B \-d
+causes a printout for each midnight to midnight
+period.
+Any
+.I people
+will limit the
+printout to only the specified login names.
+If no
+.IR wtmp ""
+file is given,
+.I /usr/adm/wtmp
+is used.
+.PP
+The accounting file
+.I /usr/adm/wtmp
+is maintained by
+.I init
+and
+.I login.
+Neither of these programs creates the file,
+so if it does not exist
+no connect-time accounting is done.
+To start accounting, it should be created with length 0.
+On the other hand if the file is left undisturbed it will
+grow without bound, so periodically any information
+desired should be collected and the file truncated.
+.SH FILES
+/usr/adm/wtmp
+.SH "SEE ALSO"
+init(8), sa(8), login(1), utmp(5).
diff --git a/usr/man/man8/accton.8 b/usr/man/man8/accton.8
new file mode 100644 (file)
index 0000000..ae5388c
--- /dev/null
@@ -0,0 +1 @@
+.so /usr/man/man8/sa.8
diff --git a/usr/man/man8/adduser.8 b/usr/man/man8/adduser.8
new file mode 100644 (file)
index 0000000..c22c10b
--- /dev/null
@@ -0,0 +1,87 @@
+.TH ADDUSER 8
+.UC 4
+.SH NAME
+adduser \- procedure for adding new users
+.SH DESCRIPTION
+A new user must choose a login name, which must not already appear in
+.I /etc/passwd.
+An account can be added by editing a line into the passwd file; this must
+be done with the password file locked e.g. by using
+.IR vipw (8).
+.PP
+A new user is given a group and user id.
+User id's should be distinct across a system, since they
+are used to control access to files.
+Typically, users working on
+similar projects will be put in the same group.  Thus at UCB we have
+groups for system staff, faculty, graduate students, and a few special
+groups for large projects.  System staff is group \*(lq10\*(rq for historical
+reasons, and the super-user is in this group.
+.PP
+A skeletal account for a new user \*(lqernie\*(rq would look like:
+.IP
+ernie::235:20:& Kovacs,508E,7925,6428202:/mnt/grad/ernie:/bin/csh
+.PP
+The first field is the login name \*(lqernie\*(rq.  The next field is the
+encrypted password which is not given and must be initialized using
+.IR passwd (1).
+The next two fields are the user and group id's.
+Traditionally, users in group 20 are graduate students and have account
+names with numbers in the 200's.
+The next field gives information about ernie's real name, office and office
+phone and home phone.
+This information is used by the
+.IR finger (1)
+program.
+From this information we can tell that ernie's real name is
+\*(lqErnie Kovacs\*(rq (the & here serves to repeat \*(lqernie\*(rq
+with appropriate capitalization), that his office is 508 Evans Hall,
+his extension is x2-7925, and this his home phone number is 642-8202.
+You can modify the
+.IR finger (1)
+program if necessary to allow different information to be encoded in
+this field.  The UCB version of finger knows several things particular
+to Berkeley \- that phone extensions start \*(lq2\-\*(rq, that offices ending
+in \*(lqE\*(rq are in Evans Hall and that offices ending in \*(lqC\*(rq are
+in Cory Hall.
+.PP
+The final two fields give a login directory and a login shell name.
+Traditionally, user files live on a file system which has the machines
+single letter
+.IR net (1)
+address as the first of two characters.  Thus on the Berkeley CS Department
+VAX, whose Berknet address is ``csvax'' abbreviated ``v'' the user file
+systems are mounted on ``/va'', ``/vb'', etc.
+On each such filesystem there are subdirectories there for each group
+of users, i.e.: \*(lq/va/staff\*(rq and \*(lq/vb/prof\*(rq.
+This is not strictly necessary but keeps the number of files in the
+top level directories reasonably small.
+.PP
+The login shell will default to \*(lq/bin/sh\*(rq if none is given.
+Most users at Berkeley choose \*(lq/bin/csh\*(rq so this is usually
+specified here.
+.PP
+It is useful to give new users some help in getting started, supplying
+them with a few skeletal files such as
+.I \&.profile
+if they use \*(lq/bin/sh\*(rq, or
+.I \&.cshrc
+and
+.I \&.login
+if they use \*(lq/bin/csh\*(rq.
+The directory
+\*(lq/usr/skel\*(rq contains skeletal definitions of such files.
+New users should be given copies of these files which, for instance,
+arrange to use
+.IR tset (1)
+automatically at each login.
+.SH FILES
+.ta 2i
+/etc/passwd    password file
+.br
+/usr/skel      skeletal login directory
+.SH SEE ALSO
+passwd(1), finger(1), chsh(1), chfn(1), passwd(5), vipw(8)
+.SH BUGS
+User information should be stored in its own data base separate from
+the password file.
diff --git a/usr/man/man8/analyze.8 b/usr/man/man8/analyze.8
new file mode 100644 (file)
index 0000000..72c8769
--- /dev/null
@@ -0,0 +1,117 @@
+.lg 0
+.TH ANALYZE 8
+.UC 4
+.SH NAME
+analyze \- Virtual UNIX postmortem crash analyzer
+.SH SYNOPSIS
+.B /etc/analyze
+[
+.B \-s
+swapfile
+] [
+.B \-f
+] [
+.B \-m
+] [
+.B \-d
+] [
+.B \-D
+] [
+.B \-v
+]
+corefile
+[ system ]
+.SH DESCRIPTION
+.I Analyze
+is the post-mortem analyzer for the state of the paging system.
+In order to use
+.I analyze
+you must arrange to get a image of the memory (and possibly the
+paging area) of the system after it crashes (see
+.IR crash (8)).
+.PP
+The
+.I analyze
+program reads the relevant system data structures from the core
+image file and indexing information from 
+.B /vmunix
+(or the specified file).
+to determine the state of the paging subsystem at the point of crash.
+It looks at each process in the system, and the resources each is
+using in an attempt to determine inconsistencies in the paging system
+state.  Normally, the output consists of a sequence of lines showing
+each active process, its state (whether swapped in or not), its
+.I p0br,
+and the number and location of its page table pages.
+Any pages which are locked while raw i/o is in progress, or which
+are locked because they are
+.I intransit
+are also printed.  (Intransit text pages often diagnose as duplicated;
+you will have to weed these out by hand.)
+.PP
+The program checks that any pages in core which are marked as not
+modified are, in fact, identical to the swap space copies.
+It also checks for non-overlap of the swap space, and that the core
+map entries correspond to the page tables.
+The state of the free list is also checked.
+.PP
+Options to
+.I analyze:
+.TP
+.B \-D
+causes the diskmap for each process to be printed.
+.TP
+.B \-d
+causes the (sorted) paging area usage to be printed.
+.TP
+.B \-f
+which causes the free list to be dumped.
+.TP
+.B \-m
+causes the entire coremap state to be dumped.
+.TP
+.B \-v
+(long unused) which causes a hugely verbose output format to be used.
+.PP
+In general, the output from this program can be confused by processes
+which were forking, swapping, or exiting or
+happened to be in unusual states when the
+crash occurred.  You should examine the flags fields of relevant processes
+in the output of a
+.IR pstat (8)
+to weed out such processes.
+.PP
+It is possible to look at the core dump with
+.I adb
+if you do
+.IP
+adb /vmunix /vmcore
+.br
+.lg 0
+/m 80000000 #ffffffff
+.LP
+which fixes the map of
+.I vmcore
+so that symbols in data space will work.
+Note that the debugger is looking at the physical memory at the point
+of crash; you will have to determine which pages of physical memory
+virtual pages are in if you wish to look at them.
+If
+.I analyze
+says that a processes page tables are in page 218 (hex of course), then
+you can look at them by looking at address 0x80043000 in the dump, i.e.
+\*(lq80043000,80/X\*(rq will print the page of page tables.
+.SH FILES
+/vmunix        default system namelist
+.SH SEE ALSO
+ps(1), crash(8), pstat(8)
+.SH AUTHORS
+Ozalp Babaoglu and William Joy
+.SH DIAGNOSTICS
+Various diagnostics about overlaps in swap mappings, missing swap mappings,
+page table entries inconsistent with the core map, incore pages which
+are marked clean but differ from disk-image copies, pages which are
+locked or intransit, and inconsistencies in the free list.
+.PP
+It would be nice if this program analyzed the system in general, rather
+than just the paging system in particular.
diff --git a/usr/man/man8/arcv.8 b/usr/man/man8/arcv.8
new file mode 100644 (file)
index 0000000..a55ac19
--- /dev/null
@@ -0,0 +1,23 @@
+.TH ARCV 8
+.UC 4
+.SH NAME
+arcv \- convert archives to new format
+.SH SYNOPSIS
+.B /etc/arcv
+file ...
+.SH DESCRIPTION
+.I Arcv
+converts archive files
+(see
+.IR ar (1),
+.IR ar (5))
+from 32v and Third Berkeley editions to a new portable format.
+The conversion is done in place, and the command
+refuses to alter a file not in old archive format.
+.PP
+Old archives are marked with a magic number of 0177545 at the start;
+new archives have a first line ``!<arch>''.
+.SH FILES
+/tmp/v*, temporary copy
+.SH SEE ALSO
+ar(1), ar(5)
diff --git a/usr/man/man8/arff.8 b/usr/man/man8/arff.8
new file mode 100644 (file)
index 0000000..8c637f3
--- /dev/null
@@ -0,0 +1,126 @@
+.TH ARFF 8
+.UC 4
+.SH NAME
+arff, flcopy \- archiver and copier for floppy
+.SH SYNOPSIS
+.B /etc/arff
+[ key ] [ name ... ]
+.br
+.B /etc/flcopy
+[
+.B \-h
+] [
+\fB\-t\fIn\fR
+]
+.SH DESCRIPTION
+.I Arff
+saves and restores files
+on the console floppy disk.
+Its actions are controlled by the
+.I key
+argument.
+The
+.I key
+is a string of characters containing
+at most one function letter and possibly
+one or more function modifiers.
+Other arguments to the command are file
+names specifying which files are to be dumped or restored.
+.PP
+Files names have restrictions, because of radix50 considerations.  They
+must be in the form 1-6 alphanumerics followed by "." followed by
+0-3 alphanumerics.  Case distinctions are lost.  Only the trailing component
+of a pathname is used.
+.PP
+The function portion of
+the key is specified by one of the following letters:
+.TP 8
+.B  r
+The named files
+are replaced where found on the floppy, or added taking up
+the minimal possible portion of the first empty spot on the floppy.
+.TP 8
+.B  x
+The named files are extracted from the floppy.
+.TP 8
+.B  d
+The named files are deleted from the floppy.  Arff will combine contiguous
+deleted files into one empty entry in the rt-11 directory.
+.TP 8
+.B  t
+The names of the specified files are listed each time they occur
+on the floppy.
+If no file argument is given,
+all of the names on the floppy are listed.
+.PP
+The following characters may be used in addition to the letter
+which selects the function desired.
+.TP 10
+.B  v
+Normally
+.I arff
+does its work silently.
+The
+.B v
+(verbose)
+option causes it to type the name of each file it treats
+preceded by the function letter.
+With the
+.B t
+function,
+.B v
+gives more information about the
+floppy entries than just the name.
+.TP 10
+.B f
+causes 
+.I arff
+to use the next argument as the name of the archive instead
+of /dev/floppy. 
+.TP 10
+.B m
+causes
+.I arff
+not to use the mapping algorithm employed in interleaving sectors
+around a floppy disk.  In conjunction with the 
+.B f
+option it may be
+used for extracting files from rt11 formatted cartridge disks, for
+example.
+.PP
+.I Flcopy
+copies
+the console floppy disk
+(opened as `/dev/floppy')
+to a file created in the
+current directory, named \*(lqfloppy\*(rq,
+then prints the message
+\*(lqChange Floppy, hit return when done\*(rq.
+Then
+.I flcopy
+copies the local file back out to the floppy disk.
+.PP
+The
+.B \-h
+option to 
+.I flcopy
+causes it to
+open a file named \*(lqfloppy\*(rq in the current directory
+and copy it to
+.I /dev/floppy;
+the
+.B \-t
+option
+causes only the first
+.I n
+tracks to participate in a copy.
+.SH FILES
+/dev/floppy
+.br
+floppy (in current directory)
+.SH AUTHORS
+Keith Sklower, Richard Tuck
+.SH BUGS
+Floppy errors are handled ungracefully;
+.I Arff
+does not handle multi-segment rt11 directories.
diff --git a/usr/man/man8/catman.8 b/usr/man/man8/catman.8
new file mode 100644 (file)
index 0000000..77f3e5b
--- /dev/null
@@ -0,0 +1,61 @@
+.TH CATMAN 8
+.UC 4
+.SH NAME
+catman \- create the cat files for the manual
+.SH SYNOPSIS
+.B /etc/catman
+[
+.B \-p
+] [
+.B \-n
+] [
+.B \-w
+]
+[ sections ]
+.SH DESCRIPTION
+.I Catman
+creates the preformatted versions of the on-line manual from the nroff
+input files.
+Each manual page is examined and those whose preformatted versions are
+missing or out of date are recreated.
+If any changes are made,
+.I catman
+will recreate the
+.B /usr/lib/whatis
+database.
+.PP
+If there is one parameter not starting with a `\-',
+it is take to be a list of manual sections to look in.
+For example
+.IP
+.B catman 123
+.LP
+will cause the updating to only happen to manual sections
+1, 2, and 3.
+.PP
+Options:
+.TP
+.B \-n
+prevents creations of
+.BR /usr/lib/whatis .
+.TP
+.B \-p
+prints what would be done instead of doing it.
+.TP
+.B \-w
+causes only the 
+.B /usr/lib/whatis
+database to be created.
+No manual reformatting is done.
+.SH FILES
+.ta 2i
+/usr/man/man?/*.*      raw (nroff input) manual sections
+.br
+/usr/man/cat?/*.*      preformatted manual pages
+.br
+/usr/lib/makewhatis    commands to make whatis database
+.DT
+.SH "SEE ALSO"
+man(1)
+.SH BUGS
+Acts oddly on nights with full moons.
diff --git a/usr/man/man8/chgrp.8 b/usr/man/man8/chgrp.8
new file mode 100644 (file)
index 0000000..a788f78
--- /dev/null
@@ -0,0 +1 @@
+.so /usr/man/man8/chown.8
diff --git a/usr/man/man8/chown.8 b/usr/man/man8/chown.8
new file mode 100644 (file)
index 0000000..4b7a493
--- /dev/null
@@ -0,0 +1,36 @@
+.TH CHOWN 8 
+.UC 4
+.SH NAME
+chown, chgrp \- change owner or group
+.SH SYNOPSIS
+.B /etc/chown
+owner file ...
+.PP
+.B /etc/chgrp
+group file ...
+.SH DESCRIPTION
+.I Chown
+changes the owner of the
+.I files
+to
+.IR owner .
+The owner may be either a decimal UID or
+a login name found in the password file.
+.PP
+.I Chgrp
+changes the group-ID of the
+.I files
+to
+.IR group .
+The group may be either a decimal GID or
+a group name found in the group-ID file.
+.PP
+Only the super-user can change owner or group,
+in order to simplify as yet unimplemented accounting procedures.
+.SH FILES
+/etc/passwd
+.br
+/etc/group
+.SH "SEE ALSO"
+chown(2),
+passwd(5), group(5)
diff --git a/usr/man/man8/clri.8 b/usr/man/man8/clri.8
new file mode 100644 (file)
index 0000000..6b25c60
--- /dev/null
@@ -0,0 +1,50 @@
+.TH CLRI 8 
+.UC 4
+.SH NAME
+clri \- clear i-node
+.SH SYNOPSIS
+.B /etc/clri
+filesystem i-number ...
+.SH DESCRIPTION
+.B N.B.:
+.I Clri
+is obsoleted for normal file system repair work by
+.IR fsck (8).
+.PP
+.I Clri
+writes zeros on the i-nodes
+with the decimal
+.I i-numbers
+on the
+.I filesystem.
+After
+.I clri,
+any blocks
+in the affected file
+will show up as `missing' in an
+.IR icheck (1)
+of the
+.I filesystem.
+.PP
+Read and write permission is required on the specified
+file system device.
+The i-node becomes allocatable.
+.PP
+The primary purpose of this routine
+is to remove a file which
+for some reason appears in no
+directory.
+If it is used to zap an i-node
+which does appear in a directory, care should be taken to track down
+the entry and remove it.
+Otherwise, when the i-node is reallocated to some new file,
+the old entry will still point to that file.
+At that point removing the old entry will destroy the new file.
+The new entry will again point to an unallocated i-node,
+so the whole cycle is likely to be repeated again and again.
+.SH "SEE ALSO"
+icheck(8)
+.SH BUGS
+If the file is open,
+.I clri
+is likely to be ineffective.
diff --git a/usr/man/man8/crash.8 b/usr/man/man8/crash.8
new file mode 100644 (file)
index 0000000..e38a694
--- /dev/null
@@ -0,0 +1,268 @@
+.TH CRASH 8 VAX-11
+.UC 4
+.SH NAME
+crash \- what happens when the system crashes
+.SH DESCRIPTION
+This section explains what happens when the system crashes and how
+you can get a crash dump for analysis of non-transient problems.
+.PP
+When the system crashes voluntarily it prints a message of the form
+.IP
+panic: why i gave up the ghost
+.LP
+on the console, and then invokes an automatic reboot procedure as
+described in
+.IR reboot (8).
+If the auto-reboot switch is off on the console, then the processor
+will simply halt at this point.
+Otherwise the registers and the top few locations of the stack will
+be printed on the console, and then the system will check the disks
+and (unless some unexpected inconsistency is encountered), resume
+multi-user operations.
+.PP
+The system has a large number of internal consistency checks; if one
+of these fails, then it will panic with a very short message indicating
+which one failed.  In the absence of a dump, little can be done about
+one of these.  If the problem recurs, you should arrange to get a dump
+for further analysis by running with auto-reboot disabled during normal
+working hours and then following the procedure described below.
+.PP
+The most common cause of system failures is hardware failure, which
+can reflect itself in different ways.  Here are the messages which
+you are likely to encounter, with some hints as to causes.
+Left unstated in all cases is the possibility that hardware or software
+error produced the message in some unexpected way.
+.TP
+IO err in push
+.ns
+.TP
+hard IO err in swap
+The system encountered an error trying to write to the paging device
+or an error in reading critical information from a disk drive.
+You should fix your disk if it is broken or unreliable.
+.TP
+Timeout table overflow
+.ns
+.TP
+ran out of bdp's
+.ns
+.TP
+ran out of uba map
+These really shouldn't be panics, but until we fix up the data structures
+involved, running out of entries causes a crash.  If the timeout table
+overflows, you should make it bigger.  If you run out of bdp's or uba map
+you probably have a buggy device driver in your system, allocating and
+not releasing UNIBUS resources.
+.TP
+KSP not valid
+.ns
+.TP
+SBI fault
+.ns
+.TP
+Machine check
+.ns
+.TP
+CHM? in kernel
+These indicate either a serious bug in the system or, more often,
+a glitch or failing hardware.  For the machine check, the top part of
+the resulting stack frame gives more information.  You can refer to a
+VAX 11/780 System Maintenance Guide for information on machine checks.
+If machine checks or SBI faults recur, check out the hardware or call
+field service.  If the other faults recur, there is likely a bug somewhere
+in the system, although these can be caused by a flakey processor.
+Run processor microdiagnostics.
+.TP
+trap type %d, code=%d
+A unexpected trap has occurred within the system; the trap types are:
+.RS
+.TP 10
+0
+reserved addressing mode
+.br
+.ns
+.TP 10
+1
+privileged instruction
+.br
+.ns
+.TP 10
+2
+BPT
+.br
+.ns
+.TP 10
+3
+XFC
+.br
+.ns
+.TP 10
+4
+reserved operand
+.br
+.ns
+.TP 10
+5
+CHMK (system call)
+.br
+.ns
+.TP 10
+6
+arithmetic trap
+.br
+.ns
+.TP 10
+7
+reschedule trap (software level 3)
+.br
+.ns
+.TP 10
+8
+segmentation fault
+.br
+.ns
+.TP 10
+9
+protection fault
+.br
+.ns
+.TP 10
+10
+trace pending (TP bit)
+.RE
+.IP
+The favorite trap type in system crashes is trap type 9, indicating
+a wild reference.  The code is the referenced address.  If you look
+down the stack, just after the trap type and the code are the pc and
+the ps of the processor when it trapped, showing you where in the
+system the problem occurred.  These problems tend to be easy to track
+down if they are kernel bugs since the processor stops cold, but random
+flakiness seems to cause this sometimes, e.g. we have trapped with
+code 80000800 three times in six months as an instruction fetch went across
+this page boundary in the kernel but have been unable to find any reason
+for this to have happened.
+.TP
+init died
+The system initialization process has exited.  This is bad news, as no new
+users will then be able to log in.  Rebooting is the only fix, so the
+system just does it right away.
+.PP
+That completes the list of panic types you are likely to see.
+Now for the crash dump procedure:
+.PP
+At the moment a dump can be taken only on magnetic tape.
+Before you do anything, be sure that a clean tape is mounted with a ring-in
+on the tape drive if you plan to make a dump.
+.PP
+Write the date and time on the console log.
+Use the console commands to examine the registers, program status long word,
+and the top several locations on the stack.
+A suggested command sequence, which is executed by the \*(lq@DUMP\*(rq
+console command script, is:
+.DS
+.nf
+       E PSL<return>
+       E R0/NE:F<return>
+       E SP<return>
+       E/V @ /NE:40<return>
+.fi
+.DE
+If hardware problems dictate a special set of commands be executed when
+the system crashes, a sequence of commands can be saved using the console
+command \*(lqLINK\*(rq to be reexecuted with \*(lqPERFORM\*(rq (which can be
+abbreviated \*(lqP\*(rq).
+If a dump is to be taken on magnetic tape (this is a good idea
+in most any case where the cause of the crash is not immediately obvious)
+then the following commands will (should) be executed:
+.DS
+.nf
+       D PSL 0<return>
+       D PC 80000200<return>
+       C<return>
+.fi
+.DE
+These commands are actually part of the standard \*(lq@DUMP\*(rq script.
+This should write a copy of all of memory
+on the tape, followed by two EOF marks.
+Caution:
+Any error is taken to mean the end of memory has been reached.
+This means that you must be sure the ring is in,
+the tape is ready, and the tape is clean and new.
+.PP
+If there are not 40(hex) locations active on the kernel stack when the
+procedure is begun, then the console may begin to print error diagnostics.
+You can stop this by hitting \*(lq^C\*(rq (control-C), and then give the
+last three commands above.
+.PP
+If the dump fails, you can try again,
+but some of the registers will be lost.
+See below for what to do with the tape.
+.PP
+To restart after a crash, follow the directions in
+.IR reboot (8);
+if the virtual memory subsystem is suspected as the cause of the crash,
+then a version of the system other than \*(lqvmunix\*(rq should be booted
+which will leave the paging areas temporarily intact
+for use by the post-mortem analysis program
+.I analyze.
+After checking your root file system consistency with
+.IR fsck (8),
+you can read the core dump tape into the file /vmcore with
+.IP
+dd if=/dev/rmt0 of=/vmcore bs=20b
+.LP
+It does not work to use just
+.IR cp (1),
+as the tape is blocked.
+With the system still in single-user mode, run the analysis program
+.I analyze,
+e.g.:
+.IP
+analyze \-s /dev/drum /vmcore /vmunix
+.LP
+and save the output.
+Then boot up
+\*(lqvmunix\*(rq
+and let it do the automatic reboot, i.e. to boot multi-user from
+an RM03/RM05/RP06 on the MASSBUS
+.IP
+>>> BOOT RPM
+.PP
+After rebooting, to analyze a dump you should execute
+.I "ps \-alxk"
+to print the process table at the time of the crash.
+Use
+.IR adb (1)
+to examine
+.IR /vmcore .
+The location
+.I dumpstack\-80000000
+is the bottom of a stack onto which were pushed the stack pointer
+.BR sp ,
+.B PCBB
+(containing the physical address of a
+.IR u_area ),
+.BR MAPEN ,
+.BR IPL ,
+and registers
+.BR r13 \- r0
+(in that order).
+.BR r13 (fp)
+is the system frame pointer and the stack is used in standard
+.B calls
+format.  Use
+.IR  adb (1)
+to get a reverse calling order.
+In most cases this procedure will give
+an idea of what is wrong.
+A more complete discussion
+of system debugging is impossible here.
+See, however,
+.IR analyze (8)
+for some more hints.
+.SH "SEE ALSO"
+analyze(8), reboot(8)
+.br
+.I "VAX 11/780 System Maintenance Guide"
+for more information about machine checks.
+.SH BUGS
diff --git a/usr/man/man8/cron.8 b/usr/man/man8/cron.8
new file mode 100644 (file)
index 0000000..faf6942
--- /dev/null
@@ -0,0 +1,56 @@
+.TH CRON 8 
+.SH NAME
+cron \- clock daemon
+.SH SYNOPSIS
+.B /etc/cron
+.SH DESCRIPTION
+.I Cron
+executes commands at specified dates and times
+according to the instructions in the file
+/usr/lib/crontab.
+Since
+.I cron
+never exits,
+it should only be executed once.
+This is best done by running
+.I cron
+from the initialization
+process through the file
+/etc/rc;
+see
+.IR init (8).
+.PP
+Crontab
+consists of lines of six fields each.
+The fields are separated by spaces or tabs.
+The first five are integer patterns to
+specify the
+minute (0-59),
+hour (0-23),
+day of the month (1-31),
+month of the year (1-12),
+and day of the week (1-7 with 1=Monday).
+Each of these patterns may
+contain a number in the range above;
+two numbers separated by
+a minus
+meaning a range inclusive;
+a list of numbers separated by
+commas meaning any of the numbers;
+or an asterisk meaning all legal values.
+The sixth field is a string
+that is executed by the Shell at the
+specified times.
+A percent character
+in this field is translated to a new-line
+character.
+Only the first line (up to a % or end of line)
+of the command field is executed by the Shell.
+The other lines are made available to the
+command as standard input.
+.PP
+Crontab is examined by
+.I cron
+every minute.
+.SH FILES
+/usr/lib/crontab
diff --git a/usr/man/man8/dcheck.8 b/usr/man/man8/dcheck.8
new file mode 100644 (file)
index 0000000..f063705
--- /dev/null
@@ -0,0 +1,66 @@
+.TH DCHECK 8 
+.UC 4
+.SH NAME
+dcheck \- file system directory consistency check
+.SH SYNOPSIS
+.B /etc/dcheck
+[
+.B \-i
+numbers ]
+[ filesystem ]
+.SH DESCRIPTION
+.B N.B.:
+.I Dcheck
+is obsoleted for normal consistency checking by
+.IR fsck (8).
+.PP
+.I Dcheck
+reads the directories in a file system
+and compares
+the link-count in each i-node with the number of directory
+entries by which it is referenced.
+If the file system is not specified,
+a set of default file systems
+is checked.
+.PP
+The
+.B \-i
+flag
+is followed by a list of i-numbers;
+when one of those i-numbers turns up
+in a directory,
+the number, the i-number of the directory,
+and the name of the entry are reported.
+.PP
+The program is fastest if the
+raw version of the special file is used,
+since the i-list is read in large chunks.
+.SH FILES
+Default file systems vary with installation.
+.SH "SEE ALSO"
+fsck(8), icheck(8), filsys(5), clri(8), ncheck(8)
+.SH DIAGNOSTICS
+When a file turns up for which the link-count and the number
+of directory entries disagree,
+the relevant facts are reported.
+Allocated files which have 0 link-count and no entries are also
+listed.
+The only dangerous situation
+occurs when there are more entries than links;
+if entries are removed,
+so the link-count drops to 0,
+the remaining entries point to thin air.
+They should be removed.
+When there are more links than entries, or there is
+an allocated file with neither links nor entries,
+some disk space may be lost but the situation will not degenerate.
+.SH BUGS
+Since
+.I dcheck
+is inherently two-pass in nature, extraneous diagnostics
+may be produced if applied to active file systems.
+.PP
+.I Dcheck
+is obsoleted by
+.I fsck
+and remains for historical reasons.
diff --git a/usr/man/man8/delivermail.8 b/usr/man/man8/delivermail.8
new file mode 100644 (file)
index 0000000..5c1070b
--- /dev/null
@@ -0,0 +1,248 @@
+.TH DELIVERMAIL 8
+.UC 4
+.SH NAME
+delivermail \- deliver mail to arbitrary people
+.SH SYNOPSIS
+.B /etc/delivermail
+[
+.BR \- [ fr ]
+.I address
+] [
+.B \-a
+] [
+.BI \-e x
+] [
+.B \-n
+] [
+.B \-m
+] [
+.B \-s
+] [
+.B \-i
+] [
+.B \-h
+.I N
+] address ...
+.SH DESCRIPTION
+.I Delivermail
+delivers a letter to one or more people,
+routing the letter over whatever networks
+are necessary.
+.I Delivermail
+will do inter-net forwarding as necessary
+to deliver the mail to the correct place.
+.PP
+.I Delivermail
+is not intended as a user interface routine;
+it is expected that other programs will provide user-friendly
+front ends,
+and
+.I delivermail
+will be used only to deliver pre-formatted messages.
+.PP
+.I Delivermail
+reads its standard input
+up to a control-D
+or a line with a single dot
+and sends a copy of the letter found there
+to all of the addresses listed.
+If the
+.B \-i
+flag is given,
+single dots are ignored.
+It determines the network to use
+based on the syntax of the addresses.
+Addresses containing the character `@'
+or the word \*(lqat\*(rq
+are sent to the
+.SM ARPANET;
+addresses containing `!'
+are sent to the
+.SM UUCP
+net,
+and addresses containing `:' or `.'
+are sent to the Berkeley network.
+Other addresses are assumed to be local.
+.PP
+Local addresses are looked up in a file
+constructed by
+.IR newaliases (1)
+from the data file
+.I /usr/lib/aliases
+and aliased appropriately.
+Aliasing can be prevented by preceding the address
+with a backslash or using the
+.B \-n
+flag.
+Normally the sender is not included in any alias
+expansions, e.g.,
+if `john' sends to `group',
+and `group' includes `john' in the expansion,
+then the letter will not be delivered to `john'.
+The
+.B \-m
+flag disables this suppression.
+.PP
+.I Delivermail
+computes the person sending the mail
+by looking at your login name.
+The \*(lqfrom\*(rq person
+can be explicitly specified by using the
+.B \-f
+flag;
+or, if the
+.B \-a
+flag is given,
+delivermail looks in the body of the message
+for a \*(lqFrom:\*(rq or \*(lqSender:\*(rq
+field in
+.SM ARPANET
+format.
+The
+.B \-f
+and
+.B \-a
+flags can be used
+only by the special users
+.I root
+and
+.I network,
+or if the person you are trying to become
+is the same as the person you are.
+The
+.B \-r
+flag is entirely equivalent to the
+.B \-f
+flag; it is provided for ease of interface only.
+.PP
+The
+.BI \-e x
+flag controls the disposition of error output,
+as follows:
+.TP 3n
+.B e
+Print errors on the standard output,
+and echo a copy of the message when done.
+It is assumed that a network server will
+return the message back to the user.
+.TP
+.B m
+Mail errors back to the user.
+.TP
+.B p
+Print errors on the standard output.
+.TP
+.B q
+Throw errors away;
+only exit status is returned.
+.TP
+.B w
+Write errors back to the user's terminal,
+but only if the user is still logged in
+and write permission is enabled;
+otherwise errors are mailed back.
+.LP
+If the error is not mailed back,
+and if the mail originated on the machine where the error occurred,
+the letter is appended to the file
+.I dead.letter
+in the sender's home directory.
+.PP
+If the first character of the user name
+is a vertical bar,
+the rest of the user name is used as the name of a program
+to pipe the mail to.
+It may be necessary to quote the name of the user
+to keep
+.I delivermail
+from suppressing the blanks from between arguments.
+.PP
+The message is normally edited to eliminate \*(lqFrom\*(rq
+lines that might confuse other mailers.
+In particular,
+\*(lqFrom\*(rq lines in the header are deleted,
+and \*(lqFrom\*(rq lines in the body are prepended by `>'.
+The
+.B \-s
+flag saves \*(lqFrom\*(rq lines in the header.
+.PP
+The
+.B \-h
+flag gives a \*(lqhop-count\*(rq, i.e.,
+a measure of how many times this message
+has been processed by
+.I delivermail
+(presumably on different machines).
+Each time
+.I delivermail
+processes a message,
+it increases the hop-count by one;
+if it exceeds 30
+.I delivermail
+assumes that an alias loop has occurred
+and it aborts the message.
+The hop-count defaults to zero.
+.PP
+.I Delivermail
+returns an exit status
+describing what it did.
+The codes are defined in <sysexits.h>
+.ta 3n +\w'EX_UNAVAILABLE'u+3n
+.de XX
+.ti \n(.iu
+..
+.in +\w'EX_UNAVAILABLE'u+6n
+.XX
+       EX_OK   Successful completion on all addresses.
+.XX
+       EX_NOUSER       User name not recognized.
+.XX
+       EX_UNAVAILABLE  Catchall meaning necessary resources
+were not available.
+.XX
+       EX_SYNTAX       Syntax error in address.
+.XX
+       EX_SOFTWARE     Internal software error,
+including bad arguments.
+.XX
+       EX_OSERR        Temporary operating system error,
+such as \*(lqcannot fork\*(rq.
+.XX
+       EX_NOHOST       Host name not recognized.
+.SH FILES
+.if t .ta 2i
+.if n .ta 3i
+/usr/lib/aliases       raw data for alias names
+.br
+/usr/lib/aliases.dir   data base of alias names
+.br
+/usr/lib/aliases.pag
+.br
+/bin/mail      to deliver uucp mail
+.br
+/usr/net/bin/v6mail    to deliver local mail
+.br
+/usr/net/bin/sendmail  to deliver Berknet mail
+.br
+/usr/lib/mailers/arpa  to deliver ARPANET mail
+.br
+/tmp/mail*     temp file
+.br
+/tmp/xscript*  saved transcript
+.SH SEE\ ALSO
+biff(1), binmail(1), mail(1), newaliases(1), aliases(5)
+.SH BUGS
+.I Delivermail
+sends one copy of the letter
+to each user;
+it should send one copy
+of the letter to each host
+and distribute to multiple users there
+whenever possible.
+.PP
+.I Delivermail
+assumes the addresses can be represented as one word.
+This is incorrect according to the
+.SM ARPANET
+mail protocol RFC 733 (NIC 41952),
+but is consistent with the real world.
diff --git a/usr/man/man8/dmesg.8 b/usr/man/man8/dmesg.8
new file mode 100644 (file)
index 0000000..f7430a9
--- /dev/null
@@ -0,0 +1,42 @@
+.TH DMESG 8
+.UC 4
+.SH NAME
+dmesg \- collect system diagnostic messages to form error log
+.SH SYNOPSIS
+.B /etc/dmesg
+[ \- ]
+.SH DESCRIPTION
+.I Dmesg
+looks in a system buffer for recently printed diagnostic messages
+and prints them on the standard output.
+The messages are those printed by the system when device (hardware) errors
+occur and (occasionally) when system tables overflow non-fatally.
+If the
+.B \-
+flag is given, then
+.I dmesg
+computes (incrementally) the new messages since the last time it
+was run and places these on the standard output.
+This is typically used with
+.IR cron (8)
+to produce the error log
+.I /usr/adm/messages
+by running the command
+.IP
+/etc/dmesg \- >> /usr/adm/messages
+.LP
+every 10 minutes.
+.SH FILES
+.ta 2i
+/usr/adm/messages      error log (conventional location)
+.br
+/usr/adm/msgbuf        scratch file for memory of \- option
+.SH BUGS
+The system error message buffer is of small finite size.  As
+.I dmesg
+is run only every few minutes, not all error messages
+are guaranteed to be logged.  This can be construed as a blessing rather
+than a curse.
+.PP
+Error diagnostics generated immediately before a system crash will
+never get logged.
diff --git a/usr/man/man8/dump.8 b/usr/man/man8/dump.8
new file mode 100644 (file)
index 0000000..7ad7286
--- /dev/null
@@ -0,0 +1,240 @@
+.TH DUMP 8
+.UC 4
+.SH NAME
+dump \- incremental file system dump
+.SH SYNOPSIS
+.B /etc/dump
+[ key [
+.I argument
+\&... ] filesystem ]
+.SH DESCRIPTION
+.I Dump
+copies to magnetic tape all files
+changed after a certain date
+in the
+.I filesystem.
+The
+.I key
+specifies the date and other options about the dump.
+.I Key
+consists of characters from
+the set
+.B 0123456789fuJsdWn.
+.TP 5
+.B  0\-9
+This number is the `dump level'.
+All files modified since the last date stored
+in the file
+.I /etc/dumpdates
+for the same filesystem at lesser levels
+will be dumped.
+If no date is determined by the level,
+the beginning of time is assumed;
+thus the option
+.B 0
+causes the entire filesystem to be dumped.
+.TP 5
+.B f
+Place the dump on the next 
+.I argument 
+file
+instead of the tape.
+.TP 5
+.B u
+If the dump completes successfully,
+write the date of the beginning of the dump on
+file
+.I /etc/dumpdates.
+This file records a separate date for
+each filesystem and each dump level.
+The format of
+.I /etc/dumpdates
+is readable by people, consisting of one
+free format record per line:
+filesystem name, increment level
+and
+.I ctime(3)
+format dump date.  
+.I /etc/dumpdates
+may be edited to change any of the fields,
+if necessary.
+Note that
+.I /etc/dumpdates
+is in a format different from that previous versions of
+.I dump
+maintained in
+.I /etc/ddate,
+although the information content is identical.
+.TP 5
+.B  J
+This option is intended to be invoked only when
+the old format 
+.I /etc/ddate
+files are
+updated to the new format
+.I /etc/dumpdates
+format.
+The effect of this option is to convert between
+the old, obsolete format and to the new format.
+If the
+.B J
+option is invoked, all other options are ignored, and 
+.I dump
+terminates immediately.
+.TP 5
+.B s
+The size of the dump tape is specified in feet.
+The number of feet is taken from the next
+.I argument.
+When the specified size is reached,
+.I dump
+will wait for reels to be changed.
+The default tape size is 2300 feet.
+.TP 5
+.B d
+The density of the tape, expressed in BPI,
+is taken from the next
+.I argument.
+This is used in calculating the amount of tape
+used per reel. The default is 1600.
+.TP 5
+.B W
+.I Dump
+tells the operator what file systems need to be dumped.
+This information is gleaned from the files
+.I /etc/dumpdates
+and
+.I /etc/fstab.
+The
+.B W
+option causes
+.I dump
+to print out, for each file system in
+.I /etc/dumpdates
+the most recent dump date and level,
+and highlights those file systems that should be dumped.
+If the 
+.B W
+option is set, all other options are ignored, and
+.I dump
+exits immediately.
+.TP 5
+.B w
+Is like W, but prints only those filesystems which need to be dumped.
+.TP 5
+.B n
+Whenever
+.I dump
+requires operator attention,
+notify by means similar to a
+.I wall(1)
+all of the operators in the group \*(lqoperator\*(rq.
+.PP
+If no arguments are given,
+the
+.I key
+is assumed to be
+.B 9u
+and a default file system is dumped
+to the default tape.
+.PP
+.I Dump
+requires operator intervention on these conditions:
+end of tape,
+end of dump,
+tape write error,
+tape open error or
+disk read error (if there are more than a threshold of 32).
+In addition to alerting all operators implied by the
+.B n
+key,
+.I dump
+interacts with the operator on 
+.I dump's
+control terminal at times when
+.I dump
+can no longer proceed,
+or if something is grossly wrong.
+All questions
+.I dump
+poses
+.B must
+be answered by typing \*(lqyes\*(rq or \*(lqno\*(rq,
+appropriately.
+.PP
+Since making a dump involves a lot of time and effort for full dumps,
+.I dump
+checkpoints itself at the start of each tape volume.
+If writing that volume fails for some reason,
+.I dump
+will,
+with operator permission,
+restart itself from the checkpoint
+after the old tape has been rewound and removed,
+and a new tape has been mounted.
+.PP
+.I Dump
+tells the operator what is going on at periodic intervals,
+including usually low estimates of the number of blocks to write,
+the number of tapes it will take, the time to completion, and
+the time to the tape change.
+The output is verbose,
+so that others know that the terminal
+controlling
+.I dump
+is busy,
+and will be for some time.
+.PP
+Now a short suggestion on how to
+perform dumps.
+Start with a full level 0 dump
+.PP
+       dump 0un
+.PP
+Next, dumps of active file 
+systems are taken on a daily basis,
+using a modified Tower of Hanoi algorithm,
+with this sequence of dump levels:
+.ce 1
+3 2 5 4 7 6 9 8 9 9 ...
+For the daily dumps, a set of 10 tapes per dumped file system
+is used on a cyclical basis.
+Each week, a level 1 dump is taken, and
+the daily Hanoi sequence repeats with 3.
+For weekly dumps, a set of 5 tapes per dumped file system is
+used, also on a cyclical basis.
+Each month, a level 0 dump is taken
+on a set of fresh tapes that is saved forever.
+.SH FILES
+.nf
+.ta \w'/etc/dumpdates\ \ 'u
+/dev/rrp1g     default filesystem to dump from
+/dev/rmt8      default tape unit to dump to
+/etc/ddate     old format dump date record (obsolete after \fB\-J\fR option)
+/etc/dumpdates new format dump date record 
+/etc/fstab     Dump table: file systems and frequency
+/etc/group     to find group \fIoperator\fP
+.fi
+.DT
+.br
+.SH "SEE ALSO"
+restor(1), dump(5), dumpdir(1), fstab(5)
+.SH DIAGNOSTICS
+Many, and verbose.
+.SH BUGS
+.PP
+Sizes are based on 1600 BPI blocked tape;
+the raw magtape device has to be used to approach these densities.
+Fewer than 32 read errors on the filesystem are ignored.
+Each reel requires a new process, so parent processes for
+reels already written just hang around until the entire tape
+is written.
+.PP
+It would be nice if
+.I dump
+knew about the dump sequence,
+kept track of the tapes scribbled on,
+told the operator which tape to mount when,
+and provided more assistance
+for the operator running
+.I restor.
diff --git a/usr/man/man8/dumpdir.8 b/usr/man/man8/dumpdir.8
new file mode 100644 (file)
index 0000000..005bd8e
--- /dev/null
@@ -0,0 +1,38 @@
+.TH DUMPDIR 8 
+.UC 4
+.SH NAME
+dumpdir \- print the names of files on a dump tape
+.SH SYNOPSIS
+.B /etc/dumpdir
+[
+.B f
+filename ]
+.SH DESCRIPTION
+.I Dumpdir
+is used to read magtapes dumped with the
+.I dump
+command and list the names and inode numbers
+of all the files and directories on the tape.
+.PP
+The
+.B f
+option causes
+.I filename
+as the name of the tape instead
+of the default.
+.SH FILES
+default tape unit varies with installation
+.br
+rst*
+.SH "SEE ALSO"
+dump(1), restor(1)
+.SH DIAGNOSTICS
+If the dump extends over more than one tape,
+it may ask you to change tapes.
+Reply with a new-line when the next tape has been mounted.
+.SH BUGS
+There is redundant information on the tape
+that could be used in case of tape reading problems.
+Unfortunately,
+.I dumpdir
+doesn't use it.
diff --git a/usr/man/man8/flcopy.8 b/usr/man/man8/flcopy.8
new file mode 100644 (file)
index 0000000..d38ba48
--- /dev/null
@@ -0,0 +1 @@
+.so /usr/man/man8/arff.8
diff --git a/usr/man/man8/fsck.8 b/usr/man/man8/fsck.8
new file mode 100644 (file)
index 0000000..55d9e16
--- /dev/null
@@ -0,0 +1,317 @@
+.de us
+\\$1\l'|0\(ul'
+..
+.TH FSCK 8
+.UC 4
+.SH NAME
+fsck \- file system consistency check and interactive repair
+.SH SYNOPSIS
+.B /etc/fsck
+.B \-p
+[
+filesystem ...
+]
+.br
+.B /etc/fsck
+[
+.B \-y
+] [
+.B \-n
+] [
+.BR \-s X
+] [
+.BR \-S X
+] [
+.B \-t
+filename
+] [
+filesystem 
+] ...
+.SH DESCRIPTION
+The first form of
+.I fsck
+preens a standard set of filesystems or the specified file systems.
+It is normally used in the script
+.B /etc/rc
+during automatic reboot.
+In this case
+.I fsck
+reads the table
+.B /etc/fstab
+to determine which file systems to check.
+It uses the information there to groups of disks in parallel taking
+maximum advantage of i/o overlap to check the file systems
+as quickly as possible.
+Normally, the root file system will be checked on pass 1, other
+``root'' (``a'' partition) file systems on pass 2, other
+small file systems on separate passes (e.g. the ``d'' file systems
+on pass 3 and the ``e'' file systems on pass 4), and finally
+the large user file systems on the last pass, e.g. pass 5.
+A pass number of 0 in fstab causes a disk to not be checked; similarly
+partitions which are not shown as to be mounted ``rw'' or ``ro''
+are not checked.
+.PP
+The system takes care that only a restricted class of innocuous
+inconsistencies can happen unless hardware or software failures intervene.
+These are limited to the following:
+.IP
+Unreferenced inodes
+.ns
+.IP
+Link counts in inodes too large
+.ns
+.IP
+Missing blocks in the free list
+.ns
+.IP
+Blocks in the free list also in files
+.ns
+.IP
+Counts in the super-block wrong
+.PP
+These are the only inconsistencies which
+.I fsck
+with the
+.B \-p
+option will correct; if it encounters other inconsistencies, it exits
+with an abnormal return status and an automatic reboot will then fail.
+For each corrected inconsistency one or more lines will be printed
+identifying the file system on which the correction will take place,
+and the nature of the correction.  After successfully correcting a file
+system,
+.I fsck
+will print the number of files on that file system and the number of
+used and free blocks.
+.PP
+Without the
+.B \-p
+option,
+.I fsck
+audits and interactively repairs inconsistent conditions for file systems. 
+If the file system is inconsistent the operator is prompted for concurrence
+before each correction is attempted.
+It should be noted that a number of the corrective actions which are not
+fixable under the
+.B \-p
+option will result in some loss
+of data.
+The amount and severity of data lost may be determined from the diagnostic
+output.
+The default action for each consistency correction
+is to wait for the operator to respond \fByes\fP or \fBno\fP.
+If the operator does not have write permission 
+.I fsck
+will default to a 
+.BR "\-n " action.
+.PP
+.I Fsck
+has more consistency checks than
+its predecessors
+.IR "check, dcheck, fcheck, " "and" " icheck"
+combined.
+.PP
+The following flags are interpreted by
+.I fsck.
+.TP 6
+.B  \-y
+Assume a yes response to all questions asked by 
+.I fsck;
+this should be used with great caution as this is a free license
+to continue after essentially unlimited trouble has been encountered.
+.TP 6
+.B  \-n
+Assume a no response to all questions asked by 
+.I fsck;
+do not open the file system for writing.
+.TP 6
+.BR \-s \fIX
+Ignore the actual free list and (unconditionally) reconstruct a new
+one by rewriting the super-block of the file system.  
+The file system should be unmounted while this is done; if this
+is not possible, care should be taken that the system is quiescent
+and that it is rebooted immediately afterwards.
+This precaution is necessary so that the old, bad, in-core copy
+of the superblock will not continue to be used, or written on the file system.
+.IP
+The
+.BR \-s \fIX
+option allows for creating an optimal free-list organization.
+The following forms of
+.I X
+are supported for the following devices:
+.sp
+.nf
+       \-s3 (RP03)
+       \-s4 (RP04, RP05, RP06)
+       \-sBlocks-per-cylinder\fB:\fRBlocks-to-skip (for anything else)
+.fi
+.IP "" 6
+If 
+.I X
+is not given,
+the values used when the filesystem was created
+are used.
+If these values were not specified, then the value
+.I 400:9
+is used.
+.TP 6
+.BR \-S \fIX
+Conditionally reconstruct the free list. This option
+is like
+.BR \-s \fIX
+above except that the free list is rebuilt only
+if there were no discrepancies discovered in the
+file system. Using
+.B \-S
+will force a no response to all questions asked
+by
+.I fsck.
+This option is useful for forcing free list reorganization
+on uncontaminated file systems.
+.TP 6
+.B \-t
+If
+.I fsck
+cannot obtain enough memory to keep its tables,
+it uses a scratch file. If the \f3\-t\fP option is
+specified, the file named in the next argument
+is used as the scratch file, if needed. Without the
+.BR "\-t " flag,
+.I fsck
+will prompt the operator for the name of the
+scratch file. The file chosen should not be on the
+filesystem being checked, and if it is not
+a special file or did not already exist, it is
+removed when
+.I fsck
+completes.
+.PP
+If no filesystems are given to 
+.I fsck
+then a default list of file systems is read from
+the file
+.BR /etc/fstab .
+.PP
+.ne 10
+Inconsistencies checked are as follows:
+.TP 6
+1.
+Blocks claimed by more than one inode or the free list.
+.br
+.br
+.ns
+.TP 6
+2.
+Blocks claimed by an inode or the free list outside the range of the file system.
+.br
+.br
+.ns
+.TP 6
+3.
+Incorrect link counts.
+.br
+.br
+.ns
+.TP 6
+4.
+Size checks:
+.br
+.ns
+.IP "" 12
+Directory size not 16-byte aligned.
+.br
+.br
+.ns
+.TP 6
+5.
+Bad inode format.
+.br
+.br
+.ns
+.TP 6
+6.
+Blocks not accounted for anywhere.
+.br
+.br
+.ns
+.TP 6
+7.
+Directory checks:
+.br
+.br
+.ns
+.IP "" 12
+File pointing to unallocated inode.
+.br
+Inode number out of range.
+.br
+.br
+.ns
+.TP 6
+8.
+Super Block checks:
+.br
+.br
+.ns
+.IP "" 12
+More than 65536 inodes.
+.br
+More blocks for inodes than there are in the file system.
+.br
+.br
+.ns
+.TP 6
+9.
+Bad free block list format.
+.br
+.br
+.ns
+.TP 6
+10.
+Total free block and/or free inode count incorrect.
+.PP
+Orphaned files and directories (allocated but unreferenced) are,
+with the operator's concurrence, reconnected by
+placing them in the 
+.B lost+found
+directory.
+The name assigned is the inode number. The only restriction
+is that the directory 
+.B lost+found
+must preexist
+in the root of the filesystem being checked and
+must have empty slots in which entries can be made.
+This is accomplished by making 
+.BR lost+found ,
+copying a number of files to the directory, and then removing them
+(before
+.I
+fsck
+is executed).
+.PP
+Checking the raw device is almost always faster.
+.SH FILES
+.br
+.ns
+.TP 21
+/etc/fstab
+contains default list of file systems to check.
+.SH DIAGNOSTICS
+The diagnostics produced by 
+.I fsck
+are intended to be self-explanatory.
+.SH "SEE ALSO"
+fstab(5), fs(5), crash(8), reboot(8)
+.SH BUGS
+Inode numbers for
+.BR . ""
+and
+.BR .. ""
+in each directory should be checked for validity.
+.PP
+\f3\-g\fP and \f3\-b\fP options from 
+.I check
+should be available in
+.I fsck.
+.PP
+There should be some way to start a \fBfsck \-p\fR at pass \fIn\fR.
diff --git a/usr/man/man8/getty.8 b/usr/man/man8/getty.8
new file mode 100644 (file)
index 0000000..f55239e
--- /dev/null
@@ -0,0 +1,59 @@
+.TH GETTY 8 
+.UC 4
+.SH NAME
+getty  \- set terminal mode
+.SH SYNOPSIS
+.B /etc/getty
+[ char ]
+.SH DESCRIPTION
+.I Getty
+is invoked by
+.IR  init (8)
+immediately after a terminal is opened,
+following the making of a connection.
+While reading the name
+.I getty
+attempts to adapt the system to the speed and type of terminal
+being used.
+.PP
+.I Init
+calls
+.I getty
+with an argument specified by the
+.I ttys
+file entry for the terminal line.
+Arguments other than `0' can be used to make
+.I getty
+treat the line specially.
+Normally, it
+sets the speed of the interface to 300 baud,
+specifies that raw mode is to be used (break on every character),
+that echo is to be suppressed, and either parity
+allowed.
+It types a banner identifying the system (from
+/usr/include/ident.h and the `login:' message.
+Then the user's name is read, a character at a time.
+If a null character is received, it is assumed to be the result
+of the user pushing the `break' (`interrupt') key.
+The speed is then
+changed to 1200 baud and the `login:' is typed again;
+a second `break' changes the speed to 150 baud and the `login:'
+is typed again.  Successive `break' characters cycle through the
+speeds 300, 1200, and 150 baud.
+.PP
+The user's name is terminated by a new-line or
+carriage-return character.
+The latter results in the system being set to
+treat carriage returns appropriately (see
+.IR  stty (2)).
+.PP
+The user's name is scanned to see if
+it contains any lower-case alphabetic characters; if not,
+and if the name is nonempty, the
+system is told to map any future upper-case characters
+into the corresponding lower-case characters.
+.PP
+Finally, login is called with the user's name as argument.
+.SH "SEE ALSO"
+init(8), login(1), stty(2), ttys(5)
+.SH BUGS
diff --git a/usr/man/man8/halt.8 b/usr/man/man8/halt.8
new file mode 100644 (file)
index 0000000..cd4de60
--- /dev/null
@@ -0,0 +1,21 @@
+.TH HALT 8
+.UC 4
+.SH NAME
+halt \- halt the processor
+.SH SYNOPSIS
+.B /etc/halt
+[
+.B \-n
+]
+.SH DESCRIPTION
+.I Halt
+writes out sandbagged information to the disks and then halts
+the processor.  The machine does not reboot, even if the auto-reboot
+switch is set on the console.
+.PP
+The
+.B \-n
+option prevent the sync before the reboot.
+.SH SEE ALSO
+reboot(8)
+.SH BUGS
diff --git a/usr/man/man8/icheck.8 b/usr/man/man8/icheck.8
new file mode 100644 (file)
index 0000000..8e5a90c
--- /dev/null
@@ -0,0 +1,105 @@
+.TH ICHECK 8 
+.UC 4
+.SH NAME
+icheck \- file system storage consistency check
+.SH SYNOPSIS
+.B /etc/icheck
+[
+.B \-s
+]  [
+.B \-b
+numbers ]
+[ filesystem ]
+.SH DESCRIPTION
+.B N.B.:
+.I Icheck
+is obsoleted for normal consistency checking by
+.IR fsck (8).
+.PP
+.I Icheck
+examines a file system,
+builds a bit map of used blocks,
+and compares this bit map against
+the free list maintained on the file system.
+If the file system is not specified,
+a set of default file systems
+is checked.
+The normal output of
+.I icheck
+includes a report of
+.IP ""
+The total number of files and the numbers of
+regular, directory, block special and character special files.
+.IP ""
+The total number of blocks in use and the numbers of 
+single-, double-, and triple-indirect blocks and directory blocks.
+.IP ""
+The number of free blocks.
+.IP ""
+The number of blocks missing; i.e. not in any file
+nor in the free list.
+.PP
+The
+.B \-s
+option causes
+.I icheck
+to ignore the actual free list and reconstruct a new one
+by rewriting the super-block of the file system.
+The file system should be dismounted while this is done;
+if this is not possible (for example if
+the root file system has to be salvaged)
+care should be taken that the system is quiescent and that
+it is rebooted immediately afterwards so that the old, bad in-core
+copy of the super-block will not continue to be used.
+Notice also that
+the words in the super-block
+which indicate the size of the free list and of the
+i-list are believed.
+If the super-block has been curdled
+these words will have to be patched.
+The
+.B \-s
+option
+causes the normal output reports to be suppressed.
+.PP
+Following the
+.B \-b
+option is a list of block numbers;
+whenever any of the named blocks turns up in a file,
+a diagnostic is produced.
+.PP
+.I Icheck
+is faster if the raw version of the special file is used,
+since it reads the i-list many blocks at a time.
+.SH FILES
+Default file systems vary with installation.
+.SH "SEE ALSO"
+fsck(8), dcheck(8), ncheck(8),
+filsys(5), clri(8)
+.SH DIAGNOSTICS
+For duplicate blocks
+and bad blocks (which lie outside the file system)
+.I icheck
+announces the difficulty, the i-number, and the kind of block involved.
+If a read error is encountered,
+the block number of the bad block is printed and
+.I icheck
+considers it to contain 0.
+`Bad freeblock' means that
+a block number outside the available space was encountered in the free list.
+`\fIn\fR dups in free'
+means that
+.IR n ""
+blocks were found in the free list which
+duplicate blocks either in some file or in the earlier part of the free list.
+.SH BUGS
+Since
+.I icheck
+is inherently two-pass in nature, extraneous diagnostics
+may be produced if applied to active file systems.
+.PP
+It believes even preposterous super-blocks and
+consequently can get core images.
+.PP
+The system should be fixed so that the reboot after fixing the root
+file system is not necessary.
diff --git a/usr/man/man8/init.8 b/usr/man/man8/init.8
new file mode 100644 (file)
index 0000000..0799500
--- /dev/null
@@ -0,0 +1,120 @@
+.TH INIT 8
+.UC 4
+.SH NAME
+init \- process control initialization
+.SH SYNOPSIS
+.B /etc/init
+.SH DESCRIPTION
+.I Init
+is invoked inside UNIX as the last step in the boot procedure.
+It normally then runs the automatic reboot sequence as described in
+.IR reboot (8),
+and if this succeeds, begins multi-user operation.
+If the reboot fails, it commences single user operation by giving
+the super-user a shell on the console.  It is possible to pass parameters
+from the boot program to
+.I init
+so that single user operation is commenced immediately.
+When such single user operation is terminated by killing the single-user
+shell (i.e. by hitting ^D),
+.I init
+runs
+.I /etc/rc
+without the reboot parameter.
+This command file
+performs housekeeping operations
+such as removing temporary files,
+mounting file systems, and starting
+daemons.
+.PP
+In multi-user operation, 
+.I init's
+role is to create a process for each
+terminal port on which a user may log in.
+To begin such operations, it reads the file
+.I /etc/ttys
+and
+forks several times to create a process
+for each terminal specified in the file.
+Each of these processes opens the appropriate terminal
+for reading and writing.  These channels thus
+receive file descriptors 0, 1 and 2, the standard input and
+output and the diagnostic output.
+Opening the terminal will usually involve a delay,
+since the
+.IR open ""
+is not completed until someone
+is dialed up and carrier established on the channel.
+Then
+.I /etc/getty
+is called with argument as specified by the second character of
+the
+.I ttys
+file line.
+.I Getty
+reads the user's name and invokes
+.I login
+to log in the user and execute the Shell.
+.PP
+Ultimately the Shell will terminate
+because of an end-of-file either
+typed explicitly or generated as a result of hanging up.
+The main path of
+.IR init ,
+which has been waiting
+for such an event,
+wakes up and removes the appropriate entry from the
+file
+.IR utmp ,
+which records current users, and
+makes an entry in
+.IR /usr/adm/wtmp ,
+which maintains a history
+of logins and logouts.
+Then the appropriate terminal is reopened and
+.I getty
+is
+reinvoked.
+.PP
+.I Init
+catches the
+.I hangup
+signal (signal SIGHUP) and interprets it to mean that
+the file
+.I /etc/ttys
+should be read again.
+The Shell process on each line which used to be active
+in
+.I ttys
+but is no longer there is terminated;
+a new process is created for each added line;
+lines unchanged in the file are undisturbed.
+Thus it is possible to drop or add phone lines without
+rebooting the system by changing the
+.I ttys
+file and sending a
+.I hangup
+signal to the
+.I init
+process: use `kill \-HUP 1.'
+.PP
+.I Init
+will terminate multi-user operations and resume single-user mode
+if sent a terminate (TERM) signal, i.e. ``kill \-TERM 1''.
+If there are processes outstanding which are deadlocked (due to
+hardware or software failure),
+.I init
+will not wait for them all to die (which might take forever), but
+will time out after 30 seconds and print a warning message.
+.PP
+.I Init's
+role is so critical that if it dies, the system will reboot itself
+automatically.
+If, at bootstrap time, the
+.I init
+process cannot be located, the system will loop in user mode at location
+0x13.
+.SH FILES
+/dev/console, /dev/tty?, /etc/utmp, /usr/adm/wtmp, /etc/ttys, /etc/rc
+.SH "SEE ALSO"
+login(1), kill(1), sh(1), ttys(5), crash(8), getty(8), rc(8), reboot(8)
diff --git a/usr/man/man8/makekey.8 b/usr/man/man8/makekey.8
new file mode 100644 (file)
index 0000000..cba13d1
--- /dev/null
@@ -0,0 +1,47 @@
+.TH MAKEKEY 8
+.SH NAME
+makekey \- generate encryption key
+.SH SYNOPSIS
+.B /usr/lib/makekey
+.SH DESCRIPTION
+.I Makekey
+improves the usefulness of encryption schemes depending on a key by
+increasing the amount of time required to search the key space.  It
+reads 10 bytes from its standard input, and writes 13 bytes on its
+standard output.  The output depends on the input in a way intended to
+be difficult to compute (i.e. to require a substantial fraction of a
+second).
+.PP
+The first eight input bytes
+(the
+.IR "input key" )
+can be arbitrary ASCII characters.
+The last 
+two (the
+.IR salt )
+are best chosen from the set of digits, upper- and lower-case
+letters, and `.' and `/'.
+The salt characters are repeated as the first two characters of the output.
+The remaining 11 output characters are chosen from the same set as the salt
+and constitute the
+.I "output key."
+.PP
+The transformation performed is essentially the following:
+the salt is used to select one of 4096 cryptographic
+machines all based on the National Bureau of Standards
+DES algorithm, but modified in 4096 different ways.
+Using the input key as key,
+a constant string is fed into the machine and recirculated
+a number of times.
+The 64 bits that come out are distributed into the
+66 useful key bits in the result.
+.PP
+.I Makekey
+is intended for programs that perform encryption
+(e.g.
+.I ed
+and
+.IR crypt (1)).
+Usually its input and output will be pipes.
+.SH SEE ALSO
+crypt(1), ed(1)
diff --git a/usr/man/man8/mkfs.8 b/usr/man/man8/mkfs.8
new file mode 100644 (file)
index 0000000..5f6288b
--- /dev/null
@@ -0,0 +1,146 @@
+.TH MKFS 8 
+.UC 4
+.SH NAME
+mkfs \- construct a file system
+.SH SYNOPSIS
+.B /etc/mkfs
+special size
+.br
+.B /etc/mkfs
+special proto
+.SH DESCRIPTION
+.I Mkfs
+constructs a file system
+by writing on the special file
+.I special.
+In the first form of the command a numeric size is given and
+.I mkfs
+builds a file system with a single empty directory on it.
+The number of i-nodes is calculated as a function of the filesystem size.
+(No boot program is initialized in this form of
+.I mkfs.)
+.PP
+.B N.B.:
+All filesystems should have a
+.I lost+found
+directory for
+.IR fsck (8);
+this should be created for each file system by running
+.IR mklost+found (8)
+in the root directory of a newly created file system, after
+the file system is first mounted.
+.PP
+In bootstrapping, the second form of
+.I mkfs
+is sometimes used.
+In this form, the file system is constructed according to the directions
+found in the prototype file
+.I proto.
+The prototype file
+contains tokens separated by spaces or
+new lines.
+The first token is the name of a file
+to be copied onto block zero as
+the bootstrap program,
+see
+.IR bproc (8).
+The second token is a number specifying the
+size of the created file system.
+Typically it will be the number of blocks on the device,
+perhaps diminished
+by space for swapping.
+The next token is the number of i-nodes
+in the i-list.
+The next set of tokens comprise the specification
+for the root file.
+File specifications consist of tokens
+giving the mode,
+the user-id,
+the group id,
+and the initial contents of the file.
+The syntax of the contents field
+depends on the mode.
+.PP
+The mode token for a file is a 6 character string.
+The first character
+specifies the type of the file.
+(The characters
+.B \-bcd
+specify regular, block special,
+character special and directory files
+respectively.)
+The second character of the type
+is either
+.B u
+or
+.B \-
+to specify set-user-id mode or not.
+The third is
+.B g
+or
+.B \-
+for the set-group-id mode.
+The rest of the mode
+is a three digit octal number giving the
+owner, group, and other read, write, execute
+permissions, see
+.IR chmod (1).
+.PP
+Two decimal number
+tokens come after the mode; they specify the
+user and group ID's of the owner of the file.
+.PP
+If the file is a regular file,
+the next token is a pathname
+whence the contents and size are copied.
+.PP
+If the file is a block or character special file,
+two decimal number tokens
+follow which give the major and minor device numbers.
+.PP
+If the file is a directory,
+.I mkfs
+makes the entries
+.BR . ""
+and
+.B  ..
+and then
+reads a list of names and
+(recursively)
+file specifications for the entries
+in the directory.
+The scan is terminated with the
+token
+.BR $ .
+.PP
+A sample prototype specification follows:
+.PP
+.nf
+.in +5
+/usr/mdec/uboot
+4872 55
+d\-\-777 3 1
+usr    d\-\-777 3 1
+       sh      \-\-\-755 3 1 /bin/sh
+       ken     d\-\-755 6 1
+               $
+       b0      b\-\-644 3 1 0 0
+       c0      c\-\-644 3 1 0 0
+       $
+$
+.in -5
+.fi
+.SH "SEE ALSO"
+filsys(5),
+dir(5),
+bproc(8),
+fsck(8),
+mklost+found(8)
+.SH BUGS
+There should be some way to specify links.
+.PP
+There should be some way to specify bad blocks.
+.PP
+Should make
+.I lost+found
+automatically.
diff --git a/usr/man/man8/mklost+found.8 b/usr/man/man8/mklost+found.8
new file mode 100644 (file)
index 0000000..bbe6c0a
--- /dev/null
@@ -0,0 +1,20 @@
+.TH MKLOST+FOUND 8
+.UC 4
+.SH NAME
+mklost+found \- make a lost+found directory for fsck
+.SH SYNOPSIS
+.B /etc/mklost+found
+.SH DESCRIPTION
+A directory
+.I lost+found
+is created in the current directory and a number of empty files
+are created therein and then removed so that there will be
+empty slots for
+.IR fsck (8).
+This command should be run immediately after first mounting a newly
+created file system.
+.SH SEE\ ALSO
+fsck(8), mkfs(8)
+.SH BUGS
+Should be done automatically by
+.I mkfs.
diff --git a/usr/man/man8/mknod.8 b/usr/man/man8/mknod.8
new file mode 100644 (file)
index 0000000..2b076b6
--- /dev/null
@@ -0,0 +1,39 @@
+.TH MKNOD 8 
+.UC 4
+.SH NAME
+mknod \- build special file
+.SH SYNOPSIS
+.B /etc/mknod
+name
+[
+.B c
+] [
+.B b
+]
+major
+minor
+.SH DESCRIPTION
+.I Mknod
+makes a special file.
+The first argument is the
+.I name
+of the entry.
+The second is
+.B b
+if the special file is block-type (disks, tape) or
+.B c
+if it is character-type (other devices).
+The last two arguments are
+numbers specifying the
+.I major
+device type
+and the
+.I minor
+device (e.g. unit, drive, or line number).
+.PP
+The assignment of major device numbers is specific to each system.
+They have to be dug out of the
+system source file
+.I conf.c.
+.SH "SEE ALSO"
+mknod(2)
diff --git a/usr/man/man8/mount.8 b/usr/man/man8/mount.8
new file mode 100644 (file)
index 0000000..9aa15b8
--- /dev/null
@@ -0,0 +1,84 @@
+.TH MOUNT 8 
+.UC 4
+.SH NAME
+mount, umount \- mount and dismount file system
+.SH SYNOPSIS
+.B /etc/mount
+[ special name [
+.B \-r
+] ]
+.PP
+.B /etc/mount
+.B \-a
+.PP
+.B /etc/umount
+special
+.PP
+.B /etc/umount
+.B \-a
+.SH DESCRIPTION
+.I Mount
+announces to the system that a removable file system
+is present on the device
+.I special.
+The file
+.I name
+must exist already; it
+must be a directory (unless the root of the
+mounted file system is not a directory).
+It becomes the name of the newly mounted root.
+The optional argument
+.B \-r
+indicates that the file system
+is to be mounted read-only.
+.PP
+.I Umount
+announces to the system that the removable file system previously
+mounted on device
+.I special
+is to be removed.
+.PP
+If the
+.B \-a
+option is present for either
+.I mount
+or
+.I umount,
+all of the file systems described in
+.I /etc/fstab
+are attempted to be mounted or unmounted.
+In this case,
+.I special
+and
+.I name
+are taken from
+.I /etc/fstab.
+The
+.I special
+file name from
+.I /etc/fstab
+is the block special name.
+.PP
+These commands
+maintain a table of mounted devices in
+.I /etc/mtab.
+If invoked without an argument,
+.I mount
+prints the table.
+.PP
+Physically write-protected and magnetic tape file
+systems must be mounted read-only
+or errors will occur when access times are updated,
+whether or not any explicit write is attempted.
+.SH FILES
+/etc/mtab      mount table
+.br
+/etc/fstab     file system table
+.SH "SEE ALSO"
+mount(2),
+mtab(5), fstab(5)
+.SH BUGS
+Mounting file systems full of garbage will crash the system.
+.br
+Mounting a root directory on a non-directory
+makes some apparently good pathnames invalid.
diff --git a/usr/man/man8/ncheck.8 b/usr/man/man8/ncheck.8
new file mode 100644 (file)
index 0000000..63dee95
--- /dev/null
@@ -0,0 +1,56 @@
+.TH NCHECK 8 
+.UC 4
+.SH NAME
+ncheck  \-  generate names from i-numbers
+.SH SYNOPSIS
+.B /etc/ncheck
+[
+.B \-i
+numbers ]  [
+.B \-a
+] [
+.B \-s
+]  [ filesystem ]
+.SH DESCRIPTION
+.B N.B.:
+For most normal file system maintenance, the function of
+.I ncheck
+is subsumed by
+.IR fsck (8).
+.PP
+.I Ncheck
+with no argument
+generates a pathname vs. i-number
+list of all files
+on a set of default file systems.
+Names of directory files are followed by `/\fB.\fR'.
+The
+.B \-i
+option reduces the report to only those files whose i-numbers follow.
+The
+.B \-a
+option
+allows printing of the names
+.RB ` . '
+and
+.RB ` .. ',
+which are ordinarily suppressed.
+suppressed.
+The
+.B \-s
+option reduces the report to special files
+and files with set-user-ID mode;
+it is intended to discover concealed violations
+of security policy.
+.PP
+A file system may be specified.
+.PP
+The report is in no useful
+order, and probably should be sorted.
+.SH "SEE ALSO"
+sort(1), dcheck(8), fsck(8), icheck(8)
+.SH DIAGNOSTICS
+When the filesystem structure is improper,
+`??' denotes the `parent' of
+a parentless file and
+a pathname beginning with `...' denotes a loop.
diff --git a/usr/man/man8/old.8 b/usr/man/man8/old.8
new file mode 100644 (file)
index 0000000..4b9f7c7
--- /dev/null
@@ -0,0 +1,57 @@
+.TH OLD 8
+.UC 4
+.SH NAME
+old \- directory of old programs
+.SH SYNOPSIS
+.B /usr/old/bin
+.br
+.B /usr/old/include
+.br
+.B /usr/old/lib
+.sp
+.B /usr/old/cc \-I/usr/old/include
+\&...
+.SH DESCRIPTION
+After the 3rd Berkeley Distribution,
+the formats for binary and archive files were changed.
+The binaries were modified to allow arbitrary length symbols,
+which required adding a string table
+at the end of the symbol table,
+and having symbol table entries point into the names in that table.
+The archive was modified to be a portable format,
+using strings instead of binary numbers,
+to avoid problems of different sizes of integers
+on different machines.
+These changes are incompatible with
+older formats.
+.PP
+.B /usr/old
+is a the root of a hierarchy of
+binaries,
+include files,
+and libraries
+in the old
+binary and archive formats.
+They contain a complete set of programs and files
+necessary for people
+who need to deal
+with the original \s-2UNIX\s+2
+formats.
+.PP
+In order to create new binaries in the old format,
+one must include the right header files.
+For example,
+to create a program called \*(lqfoo\*(rq
+which uses the old math library
+in the old format,
+say
+.br
+.IP
+.B /usr/old/cc \-I/usr/old/include
+[ 
+.I flags
+] foo.c
+.B \-lm
+.SH "SEE ALSO"
+arcv(8), ar(1), cc(1), a.out(5), ar(5)
+.SH BUGS
diff --git a/usr/man/man8/pstat.8 b/usr/man/man8/pstat.8
new file mode 100644 (file)
index 0000000..ceab42e
--- /dev/null
@@ -0,0 +1,337 @@
+.TH PSTAT 8
+.UC 4
+.SH NAME
+pstat \- print system facts
+.SH SYNOPSIS
+.B /etc/pstat
+[
+.B \-aixptufT
+] [ suboptions ]
+[ file ]
+.SH DESCRIPTION
+.I Pstat
+interprets the contents of certain system tables.
+If
+.I file
+is given, the tables are sought there, otherwise
+in
+.I /dev/kmem.
+The required namelist is taken from
+.I /vmunix.
+Options are
+.TP \w'WCHAN\ 'u
+.B \-a
+Under
+.BR \-p ,
+describe all process slots rather than just active ones.
+.TP
+.B \-i
+Print the inode table with the these headings:
+.IP LOC
+The core location of this table entry.
+.PD 0
+.IP FLAGS
+Miscellaneous state variables encoded thus:
+.RS
+.IP L
+locked
+.IP U
+update time
+.IR (filsys (5))
+must be corrected
+.IP A
+access time must be corrected
+.IP M
+file system is mounted here
+.IP W
+wanted by another process (L flag is on)
+.IP T
+contains a text file
+.IP C
+changed time must be corrected
+.RE
+.IP CNT
+Number of open file table entries for this inode.
+.IP DEV
+Major and minor device number of file system in which
+this inode resides.
+.IP INO
+I-number within the device.
+.IP MODE
+Mode bits, see
+.IR chmod (2).
+.IP NLK
+Number of links to this inode.
+.IP UID
+User ID of owner.
+.IP SIZ/DEV
+Number of bytes in an ordinary file, or
+major and minor device of special file.
+.PD
+.TP
+.B \-x
+Print the text table with these headings:
+.IP LOC
+The core location of this table entry.
+.PD 0
+.IP FLAGS
+Miscellaneous state variables encoded thus:
+.RS
+.IP T
+.IR ptrace (2)
+in effect
+.IP W
+text not yet written on swap device
+.IP L
+loading in progress
+.IP K
+locked
+.IP w
+wanted (L flag is on)
+.IP P
+resulted from demand-page-from-inode exec format (see
+.IR exec (2))
+.RE
+.PD
+.IP DADDR
+Disk address in swap, measured in multiples of 512 bytes.
+.IP CADDR
+Head of a linked list of loaded processes using this text segment.
+.IP SIZE
+Size of text segment, measured in multiples of 512 bytes.
+.IP IPTR
+Core location of corresponding inode.
+.IP CNT
+Number of processes using this text segment.
+.IP CCNT
+Number of processes in core using this text segment.
+.PD
+.TP
+.B \-p
+Print process table for active processes with these headings:
+.IP LOC
+The core location of this table entry.
+.PD 0
+.IP S
+Run state encoded thus:
+.RS
+.IP 0
+no process
+.IP 1
+waiting for some event
+.IP 3
+runnable
+.IP 4
+being created
+.IP 5
+being terminated
+.IP 6
+stopped under trace
+.RE
+.IP F
+Miscellaneous state variables, or-ed together (hexadecimal):
+.RS
+.IP 000001 9n
+loaded
+.IP 000002
+the scheduler process
+.IP 000004
+locked for swap out
+.IP 000008
+swapped out
+.IP 000010
+traced
+.IP 000020
+used in tracing
+.IP 000040
+locked in by
+.IR lock (2).
+.IP 000080
+in page-wait
+.IP 000100
+prevented from swapping during
+.IR fork (2)
+.IP 000200
+gathering pages for raw i/o
+.IP 000400
+exiting
+.IP 001000
+process resulted from a
+.IR vfork (2)
+which is not yet complete
+.IP 002000
+another flag for
+.IR vfork (2)
+.IP 004000
+process has no virtual memory, as it is a parent in the context of
+.IR vfork (2)
+.IP 008000
+process is demand paging data pages from its text inode.
+.IP 010000
+process has warned of anomalous behavior with
+.IR vlimit (2).
+.IP 020000
+system detected anomalous behavior.
+.IP 040000
+process is in a sleep which will timeout.
+.IP 080000
+a parent of this process has exited and this process
+is now considered detached.
+.IP 100000
+process used some new signal primitives, i.e.
+.IR sigset (3);
+more system calls will restart.
+.RE
+.IP POIP
+number of pages currently being pushed out from this process.
+.IP PRI
+Scheduling priority, see
+.IR nice (2).
+.IP SIGNAL
+Signals received (signals 1-32 coded in bits 0-31),
+.IP UID
+Real user ID.
+.IP SLP
+Amount of time process has been blocked.
+.IP TIM
+Time resident in seconds; times over 127 coded as 127.
+.IP CPU
+Weighted integral of CPU time, for scheduler.
+.IP NI
+Nice level,
+see
+.IR nice (2).
+.IP PGRP
+Process number of root of process group
+(the opener of the controlling terminal).
+.IP PID
+The process ID number.
+.IP PPID
+The process ID of parent process.
+.IP ADDR
+If in core, the page frame number of the first page of the `u-area' of
+the process.
+If swapped out, the position in the swap area
+measured in multiples of 512 bytes.
+.IP RSS
+Resident set size \- the number of physical page frames allocated
+to this process.
+.IP SRSS
+RSS at last swap (0 if never swapped).
+.IP SIZE
+Virtual size of process image (data+stack) in multiples of 512 bytes.
+.IP WCHAN
+Wait channel number of a waiting process.
+.IP LINK
+Link pointer in list of runnable processes.
+.IP TEXTP
+If text is pure, pointer to location of text table entry.
+.IP CLKT
+Countdown for
+.IR alarm (2)
+measured in seconds.
+.PD
+.TP
+.B \-t
+Print table for terminals
+with these headings:
+.IP RAW
+Number of characters in raw input queue.
+.PD 0
+.IP CAN
+Number of characters in canonicalized input queue.
+.IP OUT
+Number of characters in putput queue.
+.IP MODE
+See
+.IR tty (4).
+.IP ADDR
+Physical device address.
+.IP DEL
+Number of delimiters (newlines) in canonicalized input queue.
+.IP COL
+Calculated column position of terminal.
+.IP STATE
+Miscellaneous state variables encoded thus:
+.RS
+.IP W
+waiting for open to complete
+.IP O
+open
+.IP S
+has special (output) start routine
+.IP C
+carrier is on
+.IP B
+busy doing output
+.IP A
+process is awaiting output
+.IP X
+open for exclusive use
+.IP H
+hangup on close
+.RE
+.IP PGRP
+Process group for which this is controlling terminal.
+.IP DISC
+Line discipline; blank is old tty OTTYDISC or ``new tty'' for NTTYDISC
+or ``net'' for NETLDISC (see
+.IR bk (4)).
+.PD
+.TP
+.B \-u
+print information about a user process;
+the next argument is its address as given
+by
+.IR ps (1).
+The process must be in main memory, or the file used can
+be a core image and the address 0.
+.TP
+.B \-f
+Print the open file table with these headings:
+.IP LOC
+The core location of this table entry.
+.PD 0
+.IP FLG
+Miscellaneous state variables encoded thus:
+.RS
+.IP R
+open for reading
+.IP W
+open for writing
+.IP P
+pipe
+.RE
+.IP CNT
+Number of processes that know this open file.
+.IP INO
+The location of the inode table entry for this file.
+.IP OFFS
+The file offset, see
+.IR lseek (2).
+.PD
+.PP
+.B \-s
+print information about swap space usage: the number of (1k byte) pages used
+and free is given as well as the number of used pages which belong
+to text images.
+.PP
+.B \-T
+prints the number of used and free slots in the several system tables
+and is useful for checking to see how full system tables have become if the
+system is under heavy load.
+.SH FILES
+.ta \w'/dev/kmem  'u
+/vmunix        namelist
+.br
+/dev/kmem      default source of tables
+.SH SEE ALSO
+ps(1), stat(2), filsys(5)
+.br
+K. Thompson,
+.I UNIX Implementation
+.SH BUGS
+It would be very useful if the system recorded \*(lqmaximum occupancy\*(rq
+on the tables reported by
+.B \-T;
+even more useful if these tables were dynamically allocated.
diff --git a/usr/man/man8/quot.8 b/usr/man/man8/quot.8
new file mode 100644 (file)
index 0000000..471081c
--- /dev/null
@@ -0,0 +1,38 @@
+.TH QUOT 8 
+.UC 4
+.SH NAME
+quot \- summarize file system ownership
+.SH SYNOPSIS
+.B /etc/quot
+[ option ] ...
+[ filesystem ]
+.SH DESCRIPTION
+.I Quot
+prints the number of blocks in the named
+.I filesystem
+currently owned by each user.
+If no 
+.I filesystem
+is named, a default name is assumed.
+The following options are available:
+.TP
+.B \-n
+Cause the pipeline
+.B "ncheck filesystem | sort +0n | quot \-n filesystem
+to produce a list of all files and their owners.
+.TP
+.B \-c
+Print three columns giving file size in blocks, number of
+files of that size, and cumulative total of blocks
+in that size or smaller file.
+.TP
+.B \-f
+Print count of number of files as well as space owned by each user.
+.SH FILES
+Default file system varies with system.
+.br
+/etc/passwd    to get user names
+.SH "SEE ALSO"
+ls(1), du(1)
+.SH BUGS
+Holes in files are counted as if they actually occupied space.
diff --git a/usr/man/man8/rc.8 b/usr/man/man8/rc.8
new file mode 100644 (file)
index 0000000..60bd2fe
--- /dev/null
@@ -0,0 +1,41 @@
+.TH RC 8
+.UC 4
+.SH NAME
+rc \- command script for auto-reboot and daemons
+.SH SYNOPSIS
+.B /etc/rc
+.SH DESCRIPTION
+.I Rc
+is the command script which controls the automatic reboot
+.PP
+When an automatic reboot is in progress,
+.I rc
+is invoked with the argument
+.I autoboot
+and runs a
+.I fsck
+with option
+.B \-p
+to ``preen'' all the disks of minor inconsistencies resulting
+from the last system shutdown and to check for serious inconsistencies
+caused by hardware or software failure.
+If this auto-check and repair succeeds, then the second part of
+.I rc
+is run.
+.PP
+The second part of
+.I rc,
+which is run after a auto-reboot succeeds and also if
+.I rc
+is invoked when a single user shell terminates (see
+.IR init (8)),
+starts all the daemons on the system, preserves editor files
+and clears the scratch directory
+.B /tmp.
+.SH SEE ALSO
+init(8), reboot(8)
+.SH BUGS
+After making changes to the root file system,
+the system must be rebooted to keep the incore copy of the super-block
+from corrupting the newly computed super-block.  This is silly.
+The system should be fixed so that this super-block is updated in core.
diff --git a/usr/man/man8/reboot.8 b/usr/man/man8/reboot.8
new file mode 100644 (file)
index 0000000..c6a29b4
--- /dev/null
@@ -0,0 +1,219 @@
+.TH REBOOT 8
+.UC 4
+.SH NAME
+reboot \- UNIX bootstrapping procedures
+.SH SYNOPSIS
+.B /etc/reboot
+[
+.B \-s
+] [
+.B \-n
+] [
+.B \-a
+]
+.SH DESCRIPTION
+.PP
+UNIX is started by placing it in memory
+at location zero and transferring to zero.
+Since the system is not reenterable,
+it is necessary to read it in from disk or tape
+each time it is to be bootstrapped.
+.PP
+.B Rebooting a running system.
+When a UNIX is running and a reboot is desired,
+.B /etc/reboot
+can be used.
+It normally causes the disks to be synced, and then a multi-user
+reboot (as described below) is initiated.  This causes a system to be
+booted and an automatic disk check to be performed.  If all this succeeds
+without incident, the system is then brought up for many users.
+.PP
+The options to the
+.I reboot
+command are:
+.TP
+.B \-s
+Come up single user after the reboot, rather than doing a disk
+check and going multi-user.
+.TP
+.B \-n
+Don't sync out the disks before performing the reboot.  This is useful
+if the reboot is immediately following rebuilding of the free list
+on the root file system.
+.TP
+.B \-a
+Reload the bootstrap program and have it wait and ask for a filename
+to be booted from.
+.PP
+.B "Power fail and crash recovery."
+Normally, the system will reboot itself at power-up or after crashes.
+Provided the auto-restart is enabled on the machine front panel,
+an automatic consistency check of the file systems will be performed
+then and unless this fails the system will resume multi-user operations.
+.PP
+.B Cold starts.
+Files on the console floppy make cold-starting the system easy.
+For each disk controller there are two floppy files
+from the root file system of unit 0 of that controller: one which
+gives a single user shell, while the other invokes the multi-user
+automatic reboot.  Thus these files are RPS and RPM for the single
+and multi-user boot from MASSBUS RP06/RM03/RM05 disks,
+UPS and UPM for UNIBUS controller and disks such as the EMULEX SC-21
+and AMPEX 9300 pair, or RKS and RKM for RK07 disks.
+.PP
+Giving the command
+.IP
+>>>BOOT RPM
+.LP
+Would boot the system from (e.g.) an RP06 and run the automatic consistency
+check as described in
+.IR fsck (8).
+(Note that it may
+be necessary to type control-P
+to gain the attention of the LSI-11 before getting the >>> prompt.)
+The command
+.IP
+>>>BOOT ANY
+.LP
+invokes a version of the boot program in a way which allows you to
+specify any system as the system to be booted.
+It reads from the console a device specification (see below) followed
+immediately by a pathname.
+.I Boot
+finds the corresponding file on the given device, loads that file
+into memory location zero, and starts the program at the entry address
+specified in the program header (after clearing off the high bit
+of the specified entry address.)
+Normal line editing characters can be used in specifying the pathname.
+.PP
+If you have an rp06, rm05 or rm03 disk and wish to boot off of a file
+system which starts at cylinder 0 of unit 0, you can type \*(lqhp(0,0)vmunix\*(rq
+to the boot prompt; \*(lqup(0,0)vmunix\*(rq would specify
+a UNIBUS ampex 9300 drive, ``rk(0,0)vmunix'' would specify
+a RK-07 disk drive.
+.PP
+A device specification has the following form:
+.IP
+device(unit, minor)
+.PP
+where
+.I device
+is the type of the device to be searched,
+.I unit
+is the unit number of the device,
+and
+.I minor
+is the minor device index.
+The following list of supported devices may vary from installation to
+installation:
+.ta 5 10
+.nf
+       hp      RP06, RM05 or RM03 on MASSBUS
+       up      AMPEX 9300 on UNIBUS
+       ht      TE16
+       rk      RK07
+       tm      TM11
+.fi
+.PP
+For tapes, the minor device number gives a file offset.
+.PP
+.B "Emergency bootstraps."
+If the console BOOT command does not work, here is a position-independent
+program which will read the boot block (block 0) from a RP06, RM05,
+or RM03 disk
+on the MASSBUS; the boot block will then boot in the file
+.I /boot
+off the file system at cylinder 0 of the RP.
+.PP
+.nf
+.if n .ta 3 14 21 41 49
+.if t .ta .3i 1i 1.6i 3.5i
+RP06 disk (MBA 0, drive 0)
+       00009fde        moval   *$0x20010000,r1 # MBA 0
+       \0\0512001
+       d0              movl    $1,4(r1)        # initialize MBA
+       \0\004a101
+       d0              movl    $0x13,0x400(r1) # volume valid
+       0400c113
+       10008f32        cvtwl   $0x1000,0x424(r1)       # 16-bit format
+       \0\00424c1
+       d4              clrl    12(r1)  # map reg. 0, offset 0
+       \0\0\0\00ca1
+       8fd0            movl    $0x80000000,0x800(r1)   # valid, page 0/0
+       80000000
+       \0\00800c1
+       32              cvtwl   $-512,16(r1)    # byte count
+       a1fe008f
+       \0\0\0\0\0\010
+       28c1d4          clrl    0x428(r1)       # cylinder
+       \0\0\0\0\0\004
+       14c1d4          clrl    0x414(r1)       # sector, track
+       \0\0\0\0\0\004
+       c139d0          movl    $0x39,0x400(r1) # read 1 block
+       \0\0\0\00400
+       \0\000          halt
+.fi
+.PP
+To boot from magnetic tape:  The
+.IR tp (1)
+command places the bootstrap program
+.I mboot
+on block 0 of the tape.  When read into memory at location 0 and executed,
+.I mboot
+prompts with an equal sign `=', reads a file name from the console,
+then loads and executes that file from the
+.I tp
+tape.  Unfortunately DEC does not provide a console command to read
+a block from tape to memory.  Here is a position-independent program
+which does:
+.PP
+.nf
+TM03 magtape (MBA 1, drive 0) from load point:
+.if n .ta 3 14 21 41 49
+.if t .ta .3i 1i 1.6i 3.5i
+       20009fde        moval   *$0x20012000,r1 # MBA 1
+       \0\0512001
+       d0              movl    $1,4(r1)        # initialize
+       \0\004a101
+       32              cvtwl   $0x14c0,0x424(r1)       # drive characteristics
+       c114c08f
+       \0\0\0\00424
+       a1d4            clrl    12(r1)  # map reg. 0, offset 0
+       \0\0\0\0\0\00c
+       008fd0          movl    $0x80000000,0x800(r1)   # valid, page 0/0
+       c1800000
+       \0\0\0\00800
+       8f32            cvtwl   $-512,16(r1)    # byte count
+       10a1fe00
+       00c139d0        movl    $0x39,0x400(r1) # read 1 block
+       \0\0\0\0\0\004
+       \0\0\0\000      halt
+Then give the console command \*(lqSTART 0\er\*(rq.
+.fi
+.PP
+.I mboot
+does not perform character erase and line kill editing.  Instead,
+it starts over with the prompt for file name whenever the requested
+file cannot be found.
+.PP
+Be sure that
+.I mboot
+exists whenever a
+.I tp
+tape is made.  Remember to put an appropriate block 0 boot and a
+.IR /boot
+in file systems when running
+.IR mkfs .
+.SH FILES
+.ta \w'/usr/mdec/mboot   'u
+/vmunix        UNIX code
+.br
+/usr/mdec/uboot        rp disk bootstrap
+.br
+/boot  backup system bootstrap
+.br
+/usr/mdec/mboot        
+.IR tp ""
+magtape bootstrap
+.SH "SEE ALSO"
+tp(1), crash(8), fsck(8), init(8), rc(8)
diff --git a/usr/man/man8/renice.8 b/usr/man/man8/renice.8
new file mode 100644 (file)
index 0000000..d5c9768
--- /dev/null
@@ -0,0 +1,28 @@
+.TH RENICE 8
+.UC 4
+.SH NAME
+renice \- alter priority of running process by changing nice
+.SH SYNOPSIS
+.B /etc/renice
+pid
+[ priority ]
+.SH DESCRIPTION
+.I Renice
+can be used by the super-user to alter the 
+priority of a running process.
+By default, the nice of the process is made \*(lq19\*(rq which means that it
+will run only when nothing else in the system wants to.  This can be used
+to nail long running processes which are interfering with interactive work.
+.PP
+.I Renice
+can be given a second argument to choose a nice other than the default.
+Negative nices can be used to make things go very fast.
+.SH FILES
+/vmunix
+.br
+/dev/kmem
+.SH SEE ALSO
+nice(1)
+.SH BUGS
+If you make the nice very negative, then the process cannot be interrupted.
+To regain control you must put the nice back (e.g. to 0.)
diff --git a/usr/man/man8/restor.8 b/usr/man/man8/restor.8
new file mode 100644 (file)
index 0000000..629cd2c
--- /dev/null
@@ -0,0 +1,134 @@
+.TH RESTOR 8 
+.UC 4
+.SH NAME
+restor \- incremental file system restore
+.SH SYNOPSIS
+.B /etc/restor
+key [ argument ... ]
+.SH DESCRIPTION
+.I Restor
+is used to read magtapes dumped with the
+.I dump
+command.
+The
+.I key
+specifies what is to be done.
+.I Key
+is one of the characters
+.B rRxt
+optionally combined with
+.BR f .
+.TP
+.B  f
+Use the first
+.I argument
+as the name of the tape instead
+of the default.
+.TP
+.B  r or R
+The tape
+is read and loaded into the file system
+specified in
+.I argument.
+This should not be done lightly (see below).
+If the key is
+.B R
+.I restor
+asks which tape of a multi volume set to start on.
+This allows restor to be interrupted and then
+restarted (an
+.I icheck
+\-s must be done before restart).
+.TP
+.B  x
+Each file on the
+tape named by an 
+.I argument
+is extracted.
+The file extracted is placed in a file with a numeric name
+supplied by
+.I restor
+(actually the inode number).
+In order to keep the amount of tape read to a minimum,
+the following procedure is recommended:
+.IP
+Mount volume 1 of the set of dump tapes.
+.IP
+Type the
+.I restor
+command.
+.IP
+.I Restor
+will announce whether or not it found the files,
+give the number it will name the file, and rewind the tape.
+.IP
+It then
+asks you to `mount the desired tape volume'.
+Type the number of the volume you choose.
+On a
+multivolume dump the recommended procedure is to mount the
+last through the first volume in that order.
+.I Restor
+checks to see if any of the files requested are on the
+mounted tape (or a later tape, thus the reverse order) and doesn't
+read through the tape if no files are.
+If you are working with a single volume dump or the number of files
+being restored is large, respond to the query with `1' and
+.I restor
+will read the tapes in sequential order.
+.IP
+If you have a hierarchy to restore you can use
+.IR dumpdir (8)
+to produce the list of names and a shell script to move
+the resulting files to their homes.
+.TP
+.B t
+Print the date the tape was written and the date
+the filesystem was dumped from.
+.PP
+The
+.B r
+option should only be used to restore
+a complete dump tape onto a clear file system
+or to restore an incremental dump tape onto this.
+Thus
+.PP
+       /etc/mkfs /dev/rrp0g 145673
+.br
+       restor r /dev/rrp0g
+.PP
+is a typical sequence to restore a complete dump.
+Another
+.I restor
+can be done to get an incremental dump
+in on top of this.
+.PP
+A
+.I dump
+followed by a
+.I mkfs
+and a
+.I restor
+is used to
+change the size of a file system.
+.SH FILES
+default tape unit varies with installation
+.br
+rst*
+.SH "SEE ALSO"
+dump(8), mkfs(8), dumpdir(8)
+.SH DIAGNOSTICS
+There are various diagnostics
+involved with reading the tape and writing the disk.
+There are also diagnostics if the i-list or the free list
+of the file system is not large enough to hold the dump.
+.PP
+If the dump extends over more than one tape,
+it may ask you to change tapes.
+Reply with a new-line when the next tape has been mounted.
+.SH BUGS
+There is redundant information on the tape
+that could be used in case of tape reading problems.
+Unfortunately,
+.I restor
+doesn't use it.
diff --git a/usr/man/man8/sa.8 b/usr/man/man8/sa.8
new file mode 100644 (file)
index 0000000..84f4026
--- /dev/null
@@ -0,0 +1,138 @@
+.TH SA 8 4/20/80
+.UC 4
+.SH NAME
+sa, accton \- system accounting
+.SH SYNOPSIS
+.B /etc/sa
+[
+.B \-abcdDijkKlnrstuv
+] [ file ]
+.PP
+.B /etc/accton 
+[ file ]
+.SH DESCRIPTION
+With an argument naming an existing
+.I file,
+.I accton
+causes system accounting information for
+every process executed to be placed at the end of the file.
+If no argument is given, accounting is turned off.
+.PP
+.I Sa
+reports on, cleans up, and generally maintains
+accounting files.
+.PP
+.I Sa
+is able to condense
+the information in
+.I /usr/adm/acct
+into a summary file
+.I /usr/adm/savacct
+which contains a count of the
+number of times each command was called and the time resources
+consumed.
+This condensation is desirable because on a large system
+.I /usr/adm/acct
+can grow by 100 blocks per day.
+The summary file is normally read before the accounting file,
+so the reports include all available information.
+.PP
+If a file name is given as the last argument,
+that file will be treated
+as the accounting file;
+.I /usr/adm/acct
+is the default.
+.PP
+Output fields are labelled: \*(lqcpu\*(rq for the sum of user+system time
+(in minutes), \*(lqre\*(rq for real time (also in minutes),
+\*(lqk\*(rq for cpu-time averaged core usage (in 1k units),
+\*(lqavio\*(rq for average number of i/o operations per execution.
+With options fields labelled \*(lqtio\*(rq for total i/o operations,
+\*(lqk*sec\*(rq for cpu storage integral (kilo-core seconds), \*(lqu\*(rq and \*(lqs\*(rq
+for user and system cpu time alone (both in minutes) will sometimes
+appear.
+.PP
+There are near a googol of options:
+.PP
+.TP
+a
+Place all command names containing unprintable characters
+and those used only once under the name `***other.'
+.TP
+b
+Sort output by sum of user and system time divided by number of
+calls.
+Default sort is by sum of user and system times.
+.TP
+c
+Besides total user, system, and real time for each command print percentage
+of total time over all commands.
+.TP
+d
+Sort by average number of disk i/o operations.
+.TP
+D
+Print and sort by total number of disk i/o operations.
+.TP
+i
+Don't read in summary file.
+.TP
+j
+Instead of total minutes time for each category,
+give seconds per call.
+.TP
+k
+Sort by cpu-time average memory usage.
+.TP
+K
+Print and sort by cpu-storage integral.
+.TP
+l
+Separate system and user time; normally they are combined.
+.TP
+m
+Print number of processes and number of CPU minutes for each user.
+.TP
+n
+Sort by number of calls.
+.TP
+r
+Reverse order of sort.
+.TP
+s
+Merge accounting file into summary file
+.I /usr/adm/savacct
+when done.
+.TP
+t
+For each command report ratio of real time to the sum of user and
+system times.
+.TP
+u
+Superseding all other flags,
+print for each command in the accounting file the
+user ID and command name.
+.TP
+v
+If the next character is a digit
+.I n,
+then type the name of
+each command used
+.I n
+times or fewer.
+Await a reply from the terminal;
+if it begins with `y', add the command to
+the category `**junk**.'
+This is used to strip out garbage.
+.dt
+.SH FILES
+.ta 2i
+/usr/adm/acct  raw accounting
+.br
+/usr/adm/savacct       summary
+.br
+/usr/adm/usracct       per-user summary
+.SH "SEE ALSO"
+ac(8), acct(2)
+.SH BUGS
+The number of options to this program is absurd.
diff --git a/usr/man/man8/sticky.8 b/usr/man/man8/sticky.8
new file mode 100644 (file)
index 0000000..e9d9e1a
--- /dev/null
@@ -0,0 +1,44 @@
+.TH STICKY 8
+.UC 4
+.SH NAME
+sticky \- executable files with persistent text
+.SH DESCRIPTION
+While the `sticky bit', mode 01000 (see
+.IR chmod (2)),
+is set on a sharable executable file,
+the text of that file will not be removed from the system swap area.
+Thus the file does not have to be fetched from the file system
+upon each execution.
+As long as a copy remains in the swap area, the
+original text cannot be overwritten in the file system,
+nor can the file be deleted.
+(Directory entries can be removed so long as one link remains.)
+.PP
+Sharable files are made by the
+.B \-n
+and
+.B \-z
+options of
+.IR ld (1).
+.PP
+To replace a sticky file that has been used do:
+(1) Clear the sticky bit with
+.IR chmod (1).
+(2) Execute the old program to flush the swapped copy.
+This can be done safely even if others are using it.
+(3) Overwrite the sticky file.
+If the file is being executed by any process,
+writing will be prevented; it suffices to simply remove the file
+and then rewrite it, being careful to reset the owner and mode with
+.I chmod
+and
+.IR chown (2).
+(4) Set the sticky bit again.
+.PP
+Only the super-user can set the sticky bit.
+.SH BUGS
+Are self-evident.
+.PP
+Is largely unnecessary on the VAX; matters only for large programs that
+will page heavily to start, since text pages are normally cached incore
+as long as possible after all instances of a text image exit.
diff --git a/usr/man/man8/swapon.8 b/usr/man/man8/swapon.8
new file mode 100644 (file)
index 0000000..b002178
--- /dev/null
@@ -0,0 +1,42 @@
+.TH SWAPON 8
+.UC 4
+.SH NAME
+swapon \- specify additional device for paging and swapping
+.SH SYNOPSIS
+.B "/etc/swapon"
+.B \-a
+.br
+.B "/etc/swapon"
+name ...
+.SH DESCRIPTION
+.I Swapon
+is used to specify additional devices on which paging and swapping
+are to take place.
+The system begins by swapping and paging on only a single device
+so that only one disk is required at bootstrap time.
+Calls to
+.I swapon
+normally occur in the system multi-user initialization file
+.I /etc/rc
+making all swap devices available, so that the paging and swapping
+activity is interleaved across several devices.
+.PP
+Normally, the
+.B \-a
+argument is given, causing all devices marked as ``sw''
+swap devices in
+.B /etc/fstab
+to be made available.
+.PP
+The second form gives individual block devices as given
+in the system swap configuration table.  The call makes only this space
+available to the system for swap allocation.
+.SH SEE ALSO
+swapon(2), init(8)
+.SH FILES
+.DT
+/dev/[ru][pk]?b        normal paging devices
+.SH BUGS
+There is no way to stop paging and swapping on a device.
+It is therefore not possible to make use of devices which may be
+dismounted during system operation.
diff --git a/usr/man/man8/sync.8 b/usr/man/man8/sync.8
new file mode 100644 (file)
index 0000000..2983941
--- /dev/null
@@ -0,0 +1,23 @@
+.TH SYNC 8 
+.UC 4
+.SH NAME
+sync \- update the super block
+.SH SYNOPSIS
+.B sync
+.SH DESCRIPTION
+.I Sync
+executes the
+.I sync
+system primitive.
+.I Sync
+can be called to insure all disk writes have been completed before the
+processor is halted in a way not suitably done by
+.IR reboot (8)
+or
+.IR halt (8).
+.PP
+See
+.IR sync (2)
+for details on the system primitive.
+.SH "SEE ALSO"
+sync(2), halt(8), reboot(8), update(8)
diff --git a/usr/man/man8/update.8 b/usr/man/man8/update.8
new file mode 100644 (file)
index 0000000..0940221
--- /dev/null
@@ -0,0 +1,36 @@
+.TH UPDATE 8 
+.SH NAME
+update \- periodically update the super block
+.SH SYNOPSIS
+.B /etc/update
+.SH DESCRIPTION
+.I Update
+is a program that executes
+the
+.IR sync (2)
+primitive every 30 seconds.
+This insures that the file system
+is fairly up to date in case of a crash.
+This command should not be executed directly,
+but should be executed out of the
+initialization shell command file.
+.SH "SEE ALSO"
+sync(2), sync(1), init(8)
+.SH BUGS
+With
+.I update
+running,
+if the CPU is
+halted just as
+the
+.I sync
+is executed,
+a file system can be damaged.
+This is partially due to DEC hardware that
+writes zeros when NPR requests fail.
+A fix would be to have
+.IR sync (1)
+temporarily increment the system time by at
+least 30 seconds to trigger the execution of
+.I update.
+This would give 30 seconds grace to halt the CPU.
diff --git a/usr/man/man8/vipw.8 b/usr/man/man8/vipw.8
new file mode 100644 (file)
index 0000000..05f4645
--- /dev/null
@@ -0,0 +1,23 @@
+.TH VIPW 8
+.UC 4
+.SH NAME
+vipw \- edit the password file with vi
+.SH SYNOPSIS
+.B vipw
+.SH DESCRIPTION
+.I Vipw
+edits the password file while setting the appropriate locks,
+and does any necessary processing after the password file is unlocked.
+If the password file is already being edited, then you will be told
+to try again later
+.SH SEE ALSO
+chfn(1), chsh(1), passwd(1), passwd(5), adduser(8)
+.SH FILES
+/etc/vipw.lock
+.SH BUGS
+.I Vipw
+does not remove the vipw.lock file; this is not a bug, but people tend
+to think it is.
+.PP
+No one deals with left-over /etc/ptmp (the real lock) files after a system
+crash.
diff --git a/usr/man/man8/vpac.8 b/usr/man/man8/vpac.8
new file mode 100644 (file)
index 0000000..6acf1fc
--- /dev/null
@@ -0,0 +1,49 @@
+.TH VPAC 8 2/21/80
+.UC 4
+.SH NAME
+vpac \- print raster printer/ploter accounting information
+.SH SYNOPSIS
+.B /etc/vpac
+[
+.B \-W
+] [
+.B \-s
+] [
+.B \-r
+] [
+.B \-t
+] [ name ... ]
+.SH DESCRIPTION
+.I Vpac
+reads the raster printer/plotter accounting files, accumulating the number
+of pages (for narrow fan-fold devices) or feet (for wide, roll paper devices)
+of paper consumed by each user, and printing out
+how much each user consumed in pages or feet and dollars (billed at
+2 cents / page or 8 cents / foot).  If any
+.I names
+are specified, then statistics are only printed for those users;
+usually, statistics are printed for every user who has used any paper.
+.PP
+The
+.B \-W
+flag causes accounting to be done for a wide roll paper device.  The default is
+to do accounting for a narrow, fan-fold device.
+The
+.B \-t
+flag causes the output to be sorted by feet of paper; usually the
+output is sorted alphabetically by name.  The
+.B \-r
+flag reverses the sorting order.
+The
+.B \-s
+flag causes the accounting information to be summarized on the
+summary accounting file; this summarization is necessary since on a
+busy system, the accounting file can grow by several lines per day.
+.SH FILES
+.ta 2i
+/usr/adm/v?acct        raw accounting files
+.br
+/usr/adm/v?_sum        summary accounting files
+.SH BUGS
+The relationship between the computed price and reality is
+as yet unknown.