Bell 32V development
authorTom London <tbl@research.uucp>
Mon, 6 Nov 1978 03:55:26 +0000 (22:55 -0500)
committerTom London <tbl@research.uucp>
Mon, 6 Nov 1978 03:55:26 +0000 (22:55 -0500)
Work on file usr/man/man1/basename.1
Work on file usr/man/man1/cal.1
Work on file usr/man/man1/awk.1
Work on file usr/man/man1/cat.1
Work on file usr/man/man1/cb.1
Work on file usr/man/man1/call.1c
Work on file usr/man/man1/cd.1
Work on file usr/man/man1/col.1
Work on file usr/man/man1/chmod.1
Work on file usr/man/man1/cmp.1
Work on file usr/man/man1/chown.1
Work on file usr/man/man1/comm.1
Work on file usr/man/man1/clri.1m
Work on file usr/man/man1/cp.1
Work on file usr/man/man1/dc.1
Work on file usr/man/man1/dcheck.1m
Work on file usr/man/man1/crypt.1
Work on file usr/man/man1/dd.1
Work on file usr/man/man1/cron.1m
Work on file usr/man/man1/dump.1m
Work on file usr/man/man1/diff.1
Work on file usr/man/man1/df.1m
Work on file usr/man/man1/f77.1
Work on file usr/man/man1/expr.1
Work on file usr/man/man1/ed.1
Work on file usr/man/man1/false.1
Work on file usr/man/man1/find.1
Work on file usr/man/man1/icheck.1m
Work on file usr/man/man1/file.1
Work on file usr/man/man1/lex.1
Work on file usr/man/man1/kill.1
Work on file usr/man/man1/lookbib.1
Work on file usr/man/man1/ln.1
Work on file usr/man/man1/look.1
Work on file usr/man/man1/make.1
Work on file usr/man/man1/lpr.1
Work on file usr/man/man1/ls.1
Work on file usr/man/man1/mkdir.1
Work on file usr/man/man1/mkfs.1m
Work on file usr/man/man1/mount.1m
Work on file usr/man/man1/mknod.1m
Work on file usr/man/man1/mv.1
Work on file usr/man/man1/mesg.1
Work on file usr/man/man1/nohup.1
Work on file usr/man/man1/ncheck.1m
Work on file usr/man/man1/number.1
Work on file usr/man/man1/nm.1
Work on file usr/man/man1/nice.1
Work on file usr/man/man1/newgrp.1
Work on file usr/man/man1/od.1
Work on file usr/man/man1/pr.1
Work on file usr/man/man1/passwd.1
Work on file usr/man/man1/prof.1
Work on file usr/man/man1/ptx.1
Work on file usr/man/man1/quot.1m
Work on file usr/man/man1/rc.1
Work on file usr/man/man1/pwd.1
Work on file usr/man/man1/rev.1
Work on file usr/man/man1/sa.1m
Work on file usr/man/man1/rm.1
Work on file usr/man/man1/sed.1
Work on file usr/man/man1/sort.1
Work on file usr/man/man1/spline.1g
Work on file usr/man/man1/struct.1
Work on file usr/man/man1/strip.1
Work on file usr/man/man1/split.1
Work on file usr/man/man1/tbl.1
Work on file usr/man/man1/sync.1m
Work on file usr/man/man1/su.1
Work on file usr/man/man1/tail.1
Work on file usr/man/man1/sum.1
Work on file usr/man/man1/test.1
Work on file usr/man/man1/tk.1
Work on file usr/man/man1/tee.1
Work on file usr/man/man1/touch.1
Work on file usr/man/man1/tc.1
Work on file usr/man/man1/time.1
Work on file usr/man/man1/tr.1
Work on file usr/man/man1/true.1
Work on file usr/man/man1/tp.1
Work on file usr/man/man1/tsort.1
Work on file usr/man/man1/tty.1
Work on file usr/man/man1/uniq.1
Work on file usr/man/man1/uulog.1c
Work on file usr/man/man1/uudiff.1c
Work on file usr/man/man1/wc.1
Work on file usr/man/man1/wait.1
Work on file usr/man/man1/wall.1m
Work on file usr/man/man1/who.1
Work on file usr/man/man1/write.1
Work on file usr/man/man1/yacc.1

Co-Authored-By: John Reiser <jfr@research.uucp>
Synthesized-from: 32v

91 files changed:
usr/man/man1/awk.1 [new file with mode: 0644]
usr/man/man1/basename.1 [new file with mode: 0644]
usr/man/man1/cal.1 [new file with mode: 0644]
usr/man/man1/call.1c [new file with mode: 0644]
usr/man/man1/cat.1 [new file with mode: 0644]
usr/man/man1/cb.1 [new file with mode: 0644]
usr/man/man1/cd.1 [new file with mode: 0644]
usr/man/man1/chmod.1 [new file with mode: 0644]
usr/man/man1/chown.1 [new file with mode: 0644]
usr/man/man1/clri.1m [new file with mode: 0644]
usr/man/man1/cmp.1 [new file with mode: 0644]
usr/man/man1/col.1 [new file with mode: 0644]
usr/man/man1/comm.1 [new file with mode: 0644]
usr/man/man1/cp.1 [new file with mode: 0644]
usr/man/man1/cron.1m [new file with mode: 0644]
usr/man/man1/crypt.1 [new file with mode: 0644]
usr/man/man1/dc.1 [new file with mode: 0644]
usr/man/man1/dcheck.1m [new file with mode: 0644]
usr/man/man1/dd.1 [new file with mode: 0644]
usr/man/man1/df.1m [new file with mode: 0644]
usr/man/man1/diff.1 [new file with mode: 0644]
usr/man/man1/dump.1m [new file with mode: 0644]
usr/man/man1/ed.1 [new file with mode: 0644]
usr/man/man1/expr.1 [new file with mode: 0644]
usr/man/man1/f77.1 [new file with mode: 0644]
usr/man/man1/false.1 [new file with mode: 0644]
usr/man/man1/file.1 [new file with mode: 0644]
usr/man/man1/find.1 [new file with mode: 0644]
usr/man/man1/icheck.1m [new file with mode: 0644]
usr/man/man1/kill.1 [new file with mode: 0644]
usr/man/man1/lex.1 [new file with mode: 0644]
usr/man/man1/ln.1 [new file with mode: 0644]
usr/man/man1/look.1 [new file with mode: 0644]
usr/man/man1/lookbib.1 [new file with mode: 0644]
usr/man/man1/lpr.1 [new file with mode: 0644]
usr/man/man1/ls.1 [new file with mode: 0644]
usr/man/man1/make.1 [new file with mode: 0644]
usr/man/man1/mesg.1 [new file with mode: 0644]
usr/man/man1/mkdir.1 [new file with mode: 0644]
usr/man/man1/mkfs.1m [new file with mode: 0644]
usr/man/man1/mknod.1m [new file with mode: 0644]
usr/man/man1/mount.1m [new file with mode: 0644]
usr/man/man1/mv.1 [new file with mode: 0644]
usr/man/man1/ncheck.1m [new file with mode: 0644]
usr/man/man1/newgrp.1 [new file with mode: 0644]
usr/man/man1/nice.1 [new file with mode: 0644]
usr/man/man1/nm.1 [new file with mode: 0644]
usr/man/man1/nohup.1 [new file with mode: 0644]
usr/man/man1/number.1 [new file with mode: 0644]
usr/man/man1/od.1 [new file with mode: 0644]
usr/man/man1/passwd.1 [new file with mode: 0644]
usr/man/man1/pr.1 [new file with mode: 0644]
usr/man/man1/prof.1 [new file with mode: 0644]
usr/man/man1/ptx.1 [new file with mode: 0644]
usr/man/man1/pwd.1 [new file with mode: 0644]
usr/man/man1/quot.1m [new file with mode: 0644]
usr/man/man1/rc.1 [new file with mode: 0644]
usr/man/man1/rev.1 [new file with mode: 0644]
usr/man/man1/rm.1 [new file with mode: 0644]
usr/man/man1/sa.1m [new file with mode: 0644]
usr/man/man1/sed.1 [new file with mode: 0644]
usr/man/man1/sort.1 [new file with mode: 0644]
usr/man/man1/spline.1g [new file with mode: 0644]
usr/man/man1/split.1 [new file with mode: 0644]
usr/man/man1/strip.1 [new file with mode: 0644]
usr/man/man1/struct.1 [new file with mode: 0644]
usr/man/man1/su.1 [new file with mode: 0644]
usr/man/man1/sum.1 [new file with mode: 0644]
usr/man/man1/sync.1m [new file with mode: 0644]
usr/man/man1/tail.1 [new file with mode: 0644]
usr/man/man1/tbl.1 [new file with mode: 0644]
usr/man/man1/tc.1 [new file with mode: 0644]
usr/man/man1/tee.1 [new file with mode: 0644]
usr/man/man1/test.1 [new file with mode: 0644]
usr/man/man1/time.1 [new file with mode: 0644]
usr/man/man1/tk.1 [new file with mode: 0644]
usr/man/man1/touch.1 [new file with mode: 0644]
usr/man/man1/tp.1 [new file with mode: 0644]
usr/man/man1/tr.1 [new file with mode: 0644]
usr/man/man1/true.1 [new file with mode: 0644]
usr/man/man1/tsort.1 [new file with mode: 0644]
usr/man/man1/tty.1 [new file with mode: 0644]
usr/man/man1/uniq.1 [new file with mode: 0644]
usr/man/man1/uudiff.1c [new file with mode: 0644]
usr/man/man1/uulog.1c [new file with mode: 0644]
usr/man/man1/wait.1 [new file with mode: 0644]
usr/man/man1/wall.1m [new file with mode: 0644]
usr/man/man1/wc.1 [new file with mode: 0644]
usr/man/man1/who.1 [new file with mode: 0644]
usr/man/man1/write.1 [new file with mode: 0644]
usr/man/man1/yacc.1 [new file with mode: 0644]

diff --git a/usr/man/man1/awk.1 b/usr/man/man1/awk.1
new file mode 100644 (file)
index 0000000..f40daf2
--- /dev/null
@@ -0,0 +1,237 @@
+.TH AWK 1 
+.SH NAME
+awk \- pattern scanning and processing language
+.SH SYNOPSIS
+.B awk
+[
+.BI \-F c
+]
+[ prog ] [ file ] ...
+.SH DESCRIPTION
+.I Awk
+scans each input
+.I file
+for lines that match any of a set of patterns specified in
+.IR prog .
+With each pattern in
+.I prog
+there can be an associated action that will be performed
+when a line of a
+.I file
+matches the pattern.
+The set of patterns may appear literally as
+.I prog,
+or in a file
+specified as
+.B \-f
+.IR file .
+.PP
+Files are read in order;
+if there are no files, the standard input is read.
+The file name `\-'
+means the standard input.
+Each line is matched against the
+pattern portion of every pattern-action statement;
+the associated action is performed for each matched pattern.
+.PP
+An input line is made up of fields separated by white space.
+(This default can be changed by using FS,
+.IR "vide infra" ".)"
+The fields are denoted $1, $2, ... ;
+$0 refers to the entire line.
+.PP
+.PP
+A pattern-action statement has the form
+.PP
+       pattern { action }
+.PP
+A missing { action } means print the line;
+a missing pattern always matches.
+.PP
+An action is a sequence of statements.
+A statement can be one of the following:
+.PP
+.nf
+       if ( conditional ) statement [ else statement ]
+       while ( conditional ) statement
+       for ( expression ; conditional ; expression ) statement
+       break
+       continue
+       { [ statement ] ... }
+       variable = expression
+       print [ expression-list ] [ >expression ]
+       printf format [ , expression-list ] [ >expression ]
+       next    # skip remaining patterns on this input line 
+       exit    # skip the rest of the input
+.fi
+.PP
+Statements are terminated by
+semicolons, newlines or right braces.
+An empty expression-list stands for the whole line.
+Expressions take on string or numeric values as appropriate,
+and are built using the operators
++, \-, *, /, %,  and concatenation (indicated by a blank).
+The C operators ++, \-\-, +=, \-=, *=, /=, and %=
+are also available in expressions.
+Variables may be scalars, array elements
+(denoted
+x[i])
+or fields.
+Variables are initialized to the null string.
+Array subscripts may be any string,
+not necessarily numeric;
+this allows for a form of associative memory.
+String constants are quoted "...".
+.PP
+The 
+.I print
+statement prints its arguments on the standard output
+(or on a file if 
+.I >file
+is present), separated by the current output field separator,
+and terminated by the output record separator.
+The
+.I printf
+statement formats its expression list according to the format
+(see
+.IR printf (3)).
+.PP
+The built-in function
+.I length
+returns the length of its argument
+taken as a string,
+or of the whole line if no argument.
+There are also built-in functions
+.I exp,
+.I log,
+.I sqrt,
+and
+.IR int .
+The last truncates its argument to an integer.
+.IR substr(s,\ m,\ n)
+returns the 
+.IR n -character
+substring of
+.I s
+that begins at position
+.IR m .
+The function
+.IR sprintf(fmt,\ expr,\ expr,\ ...)
+formats the expressions
+according to the
+.IR printf (3)
+format given by
+.I fmt
+and returns the resulting string.
+.PP
+Patterns are arbitrary Boolean combinations
+(!, \(or\(or, &&, and parentheses) of 
+regular expressions and
+relational expressions.
+Regular expressions must be surrounded
+by slashes and are as in
+.IR egrep .
+Isolated regular expressions
+in a pattern apply to the entire line.
+Regular expressions may also occur in
+relational expressions.
+.PP
+A pattern may consist of two patterns separated by a comma;
+in this case, the action is performed for all lines
+between an occurrence of the first pattern
+and the next occurrence of the second.
+.PP
+.nf
+A relational expression is one of the following:
+.PP
+.nf
+       expression matchop regular-expression
+       expression relop expression
+.PP
+.fi
+where a relop is any of the six relational operators in C,
+and a matchop is either ~ (for contains)
+or !~ (for does not contain).
+A conditional is an arithmetic expression,
+a relational expression,
+or a Boolean combination
+of these.
+.PP
+The special patterns
+BEGIN
+and
+END
+may be used to capture control before the first input line is read
+and after the last.
+BEGIN must be the first pattern, END the last.
+.PP
+A single character
+.I c
+may be used to separate the fields by starting
+the program with
+.PP
+       BEGIN { FS = "c" }
+.PP
+or by using the
+.BI \-F c
+option.
+.PP
+Other variable names with special meanings
+include NF, the number of fields in the current record;
+NR, the ordinal number of the current record;
+FILENAME, the name of the current input file;
+OFS, the output field separator (default blank);
+ORS, the output record separator (default newline);
+and
+OFMT, the output format for numbers (default "%.6g").
+.PP
+.SH EXAMPLES
+.PP
+Print lines longer than 72 characters:
+.PP
+.nf
+       length > 72
+.fi
+.PP
+Print first two fields in opposite order:
+.PP
+.nf
+       { print $2, $1 }
+.fi
+.PP
+Add up first column, print sum and average:
+.PP
+.nf
+               { s += $1 }
+       END     { print "sum is", s, " average is", s/NR }
+.fi
+.PP
+Print fields in reverse order:
+.PP
+.nf
+       { for (i = NF; i > 0; \-\-i) print $i }
+.fi
+.PP
+Print all lines between start/stop pairs:
+.PP
+.nf
+       /start/, /stop/
+.fi
+.PP
+Print all lines whose first field is different from previous one:
+.PP
+.nf
+       $1 != prev { print; prev = $1 }
+.fi
+.SH SEE ALSO
+.PP
+lex(1), sed(1)
+.br
+A. V. Aho, B. W. Kernighan, P. J. Weinberger,
+.I
+Awk \- a pattern scanning and processing language
+.SH BUGS
+There are no explicit conversions between numbers and strings.
+To force an expression to be treated as a number add 0 to it;
+to force it to be treated as a string concatenate ""
+to it.
diff --git a/usr/man/man1/basename.1 b/usr/man/man1/basename.1
new file mode 100644 (file)
index 0000000..661f3c9
--- /dev/null
@@ -0,0 +1,29 @@
+.TH BASENAME 1 
+.SH NAME
+basename \- strip filename affixes
+.SH SYNOPSIS
+.B basename
+string [ suffix ]
+.SH DESCRIPTION
+.I Basename
+deletes any prefix ending in `/' and the
+.I suffix,
+if present in
+.I string,
+from
+.I string,
+and prints the result on the standard output.
+It is normally used inside substitution marks \`\ \`
+in shell procedures.
+.PP
+This shell procedure invoked with the argument
+.I /usr/src/cmd/cat.c
+compiles the named file and moves the output to
+.I cat
+in the current directory:
+.IP "" 15n
+cc $1
+.br
+mv a.out \`basename $1 .c\`
+.SH "SEE ALSO"
+sh(1)
diff --git a/usr/man/man1/cal.1 b/usr/man/man1/cal.1
new file mode 100644 (file)
index 0000000..d34b849
--- /dev/null
@@ -0,0 +1,27 @@
+.TH CAL 1 
+.SH NAME
+cal \- print calendar
+.SH SYNOPSIS
+.B cal
+[ month ] year
+.SH DESCRIPTION
+.I Cal
+prints a calendar for the specified year.
+If a month is also specified, a calendar
+just for that month is printed.
+.I Year
+can be between 1
+and 9999.
+The
+.I month
+is a number between 1 and 12.
+The calendar
+produced is that for England and her colonies.
+.PP
+Try September 1752.
+.SH BUGS
+The year is always considered to start in January even though this
+is historically naive.
+.br
+Beware that `cal 78' refers to the early Christian era,
+not the 20th century.
diff --git a/usr/man/man1/call.1c b/usr/man/man1/call.1c
new file mode 100644 (file)
index 0000000..9f4ae99
--- /dev/null
@@ -0,0 +1,19 @@
+.TH CALL 1C 
+.SH NAME
+call \- ring a telephone
+.SH SYNOPSIS
+.B call
+phonenumber
+.SH DESCRIPTION
+.I Call
+places an outgoing call to the specified
+.IR phonenumber .
+Nothing special happens when the called party answers.
+.I Phonenumber
+may have any number of digits;
+a `+' sign may be used to specify a point at
+which to wait for a second dial tone.
+.SH FILES
+/dev/dn0
+.SH "SEE ALSO"
+cu(1), dn(5)
diff --git a/usr/man/man1/cat.1 b/usr/man/man1/cat.1
new file mode 100644 (file)
index 0000000..d7f4fd8
--- /dev/null
@@ -0,0 +1,41 @@
+.TH CAT 1 
+.SH NAME
+cat \- catenate and print
+.SH SYNOPSIS
+.B cat
+[
+.B \-u
+]
+file ...
+.SH DESCRIPTION
+.I Cat
+reads each
+.I file
+in sequence
+and writes it on the standard output.
+Thus
+.PP
+.ti+15n
+cat file
+.PP
+prints the file, and
+.PP
+.ti+15n
+cat file1 file2 >file3
+.PP
+concatenates the first two files and places the result on the third.
+.PP
+If no input file is given,
+or if the argument `\-' is encountered,
+.I cat
+reads from the standard
+input file.
+Output is buffered in 512-byte blocks unless the standard
+output is a terminal or the
+.B \-u
+option is specified.
+.SH "SEE ALSO"
+pr(1), cp(1)
+.SH BUGS
+Beware of `cat a b >a' and `cat a b >b', which destroy
+the input files before reading them.
diff --git a/usr/man/man1/cb.1 b/usr/man/man1/cb.1
new file mode 100644 (file)
index 0000000..cf68591
--- /dev/null
@@ -0,0 +1,11 @@
+.TH CB 1
+.SH NAME
+cb \- C program beautifier
+.SH SYNOPSIS
+.B cb
+.SH DESCRIPTION
+.I Cb
+places a copy of the C program from the standard input
+on the standard output with spacing and indentation
+that displays the structure of the program.
+.SH BUGS
diff --git a/usr/man/man1/cd.1 b/usr/man/man1/cd.1
new file mode 100644 (file)
index 0000000..9160ce7
--- /dev/null
@@ -0,0 +1,20 @@
+.TH CD 1 
+.SH NAME
+cd \- change working directory
+.SH SYNOPSIS
+.B cd
+directory
+.SH DESCRIPTION
+.I Directory
+becomes the new working directory.
+The process must have execute (search)
+permission in
+.IR directory .
+.PP
+Because a new process is created to execute each command,
+.I cd
+would be ineffective if it were written as a
+normal command.  It is therefore recognized and executed
+by the Shell.
+.SH "SEE ALSO"
+sh(1), pwd(1), chdir(2)
diff --git a/usr/man/man1/chmod.1 b/usr/man/man1/chmod.1
new file mode 100644 (file)
index 0000000..dc61d36
--- /dev/null
@@ -0,0 +1,172 @@
+.TH CHMOD 1 
+.SH NAME
+chmod \- change mode
+.SH SYNOPSIS
+.B chmod
+mode file ...
+.SH DESCRIPTION
+The mode of
+each named file
+is changed
+according to
+.I mode,
+which may be absolute or symbolic.
+An absolute
+.I mode
+is an octal
+number constructed
+from the OR of the
+following modes:
+.TP 10
+4000
+set user ID on execution
+.br
+.br
+.ns
+.TP 10
+2000
+set group ID on execution
+.br
+.br
+.ns
+.TP 10
+1000
+sticky bit, see
+.IR  chmod (2)
+.br
+.br
+.ns
+.TP 10
+0400
+read by owner
+.br
+.br
+.ns
+.TP 10
+0200
+write by owner
+.br
+.br
+.ns
+.TP 10
+0100
+execute (search in directory) by owner
+.br
+.br
+.ns
+.TP 10
+0070
+read, write, execute (search) by group
+.br
+.br
+.ns
+.TP 10
+0007
+read, write, execute (search) by others
+.PP
+A symbolic
+.I mode
+has the form:
+.IP
+.RI [ who ]
+.I op permission
+.RI [ "op permission" "] ..."
+.PP
+The
+.I who
+part is a combination
+of the letters 
+.B u
+(for user's permissions),
+.B g
+(group)
+and
+.B o
+(other).
+The letter
+.B a
+stands for
+.B ugo.
+If
+.I who
+is omitted,
+the default is
+.I a
+but the setting of
+the file creation mask
+(see umask(2))
+is taken into account.
+.PP
+.I Op
+can be
+.B +
+to add
+.I permission
+to the file's mode,
+.B \-
+to take away
+.I permission
+and
+.B =
+to assign
+.I permission
+absolutely
+(all other bits will
+be reset).
+.PP
+.I Permission
+is any combination of the letters
+.B r
+(read),
+.B w
+(write),
+.B x
+(execute),
+.B s
+(set owner or group id)
+and
+.B t
+(save text \- sticky).
+Letters
+.BR u,
+.B g
+or
+.B o
+indicate that
+.I permission
+is to be taken
+from the current
+mode.
+Omitting
+.I permission
+is only useful
+with
+.B =
+to take away
+all permissions.
+.PP
+The first example denies write permission to others,
+the second makes a file executable:
+.IP
+chmod o\-w file
+.br
+chmod +x file
+.PP
+Multiple symbolic modes separated by commas may be given.
+Operations are performed
+in the order specified.
+The letter
+.B s
+is only useful
+with
+.B u
+or
+.B g.
+.PP
+Only the owner of a file (or the super-user) may change its mode.
+.SH "SEE ALSO"
+ls(1),
+chmod(2),
+chown (1),
+stat(2),
+umask(2)
diff --git a/usr/man/man1/chown.1 b/usr/man/man1/chown.1
new file mode 100644 (file)
index 0000000..7be9fe5
--- /dev/null
@@ -0,0 +1,35 @@
+.TH CHOWN 1 
+.SH NAME
+chown, chgrp \- change owner or group
+.SH SYNOPSIS
+.B chown
+owner file ...
+.PP
+.B 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/man1/clri.1m b/usr/man/man1/clri.1m
new file mode 100644 (file)
index 0000000..5754b92
--- /dev/null
@@ -0,0 +1,44 @@
+.TH CLRI 1M 
+.SH NAME
+clri \- clear i-node
+.SH SYNOPSIS
+.B clri
+filesystem i-number ...
+.SH DESCRIPTION
+.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(1)
+.SH BUGS
+If the file is open,
+.I clri
+is likely to be ineffective.
diff --git a/usr/man/man1/cmp.1 b/usr/man/man1/cmp.1
new file mode 100644 (file)
index 0000000..415bbc8
--- /dev/null
@@ -0,0 +1,42 @@
+.TH CMP 1 
+.SH NAME
+cmp \- compare two files
+.SH SYNOPSIS
+.B cmp
+[
+.B \-l
+] [
+.B \-s
+]
+file1 file2
+.SH DESCRIPTION
+The two files are
+compared.
+(If
+.I file1
+is `\-',
+the standard input is used.)
+Under default options,
+.I cmp
+makes no comment if the files are the same;
+if they differ, it announces the byte and line number
+at which the difference occurred.
+If one file is an initial subsequence
+of the other, that fact is noted.
+.PP
+Options:
+.TP 6
+.B  \-l
+Print the byte number (decimal) and the
+differing bytes (octal) for each difference.
+.TP 6
+.B  \-s
+Print nothing for differing files;
+return codes only.
+.dt
+.SH "SEE ALSO"
+diff(1), comm(1)
+.SH DIAGNOSTICS
+Exit code 0 is returned for identical
+files, 1 for different files, and 2 for an
+inaccessible or missing argument.
diff --git a/usr/man/man1/col.1 b/usr/man/man1/col.1
new file mode 100644 (file)
index 0000000..5374efb
--- /dev/null
@@ -0,0 +1,67 @@
+.TH COL 1
+.SH NAME
+col \- filter reverse line feeds
+.SH SYNOPSIS
+.B col [\|\-bfx\|]
+.SH DESCRIPTION
+.I Col
+reads the standard input and writes the standard output.
+It performs the line overlays implied by reverse line
+feeds (ESC-7 in ASCII)
+and by forward and reverse half line feeds (ESC-9 and ESC-8).
+.I Col
+is particularly useful for filtering multicolumn
+output made with the `.rt' command of
+.I nroff
+and output resulting from use of the
+.IR tbl (1)
+preprocessor.
+.PP
+Although
+.I col
+accepts half line motions in its input, it normally does not
+emit them on output.
+Instead, text that would appear between lines is moved to the next lower
+full line boundary.
+This treatment can be suppressed by the
+.B \-f
+(fine) option; in this case
+the output from
+.I col
+may contain forward half line feeds (ESC-9), but will still never contain
+either kind of reverse line motion.
+.PP
+If the
+.B \-b
+option is given,
+.I col
+assumes that the output device in use is not capable of backspacing.
+In this case, if several characters are to appear in the same place,
+only the last one read will be taken.
+.PP
+The control characters SO (ASCII code 017),
+and SI (016) are assumed
+to start and end text in an alternate character set.
+The character set (primary or alternate) associated with each printing
+character read is remembered; on output, SO and SI characters are generated
+where necessary to maintain the correct treatment of each character.
+.PP
+.I Col
+normally converts white space to tabs to shorten printing time.
+If the
+.B \-x
+option is given, this conversion is suppressed.
+.PP
+All control characters are removed from the input except space,
+backspace,
+tab, return, newline, ESC (033) followed by one of 7, 8, 9, SI, SO, and VT
+(013).
+This last character is an alternate form of full reverse line feed, for
+compatibility with some other hardware conventions.
+All other non-printing characters are ignored.
+.SH "SEE ALSO"
+troff(1), tbl(1), greek(1)
+.SH BUGS
+Can't back up more than 128 lines.
+.br
+No more than 800 characters, including backspaces, on a line.
diff --git a/usr/man/man1/comm.1 b/usr/man/man1/comm.1
new file mode 100644 (file)
index 0000000..f7cba5f
--- /dev/null
@@ -0,0 +1,40 @@
+.TH COMM 1 
+.SH NAME
+comm \- select or reject lines common to two sorted files
+.SH SYNOPSIS
+.B comm
+[
+.B \-
+[
+.B 123
+]
+] file1 file2
+.SH DESCRIPTION
+.I Comm
+reads
+.I file1
+and
+.I file2,
+which should be ordered in ASCII collating sequence,
+and produces a three column output: lines only in
+.I file1;
+lines only in
+.I file2;
+and lines in both files.
+The filename `\-' means the standard input.
+.PP
+Flags 1, 2, or 3 suppress printing of the corresponding
+column.
+Thus
+.B comm
+.B \-12
+prints only the lines common to the two files;
+.B comm
+.B \-23
+prints only lines in the first file but not in the second;
+.B comm
+.B \-123
+is a no-op.
+.PP
+.SH "SEE ALSO"
+cmp(1), diff(1), uniq(1)
diff --git a/usr/man/man1/cp.1 b/usr/man/man1/cp.1
new file mode 100644 (file)
index 0000000..605e486
--- /dev/null
@@ -0,0 +1,29 @@
+.TH CP 1 
+.SH  NAME
+cp \- copy
+.SH SYNOPSIS
+.B cp
+file1 file2
+.PP
+.B cp
+file ... directory
+.SH DESCRIPTION
+.I File1
+is copied onto
+.IR file2 .
+The mode and owner of  
+.I file2
+are preserved if it already
+existed; the mode of the source file
+is used otherwise.
+.PP
+In the second form, one or more
+.I files
+are copied into the
+.I directory
+with their original file-names.
+.PP
+.I Cp
+refuses to copy a file onto itself.
+.SH "SEE ALSO"
+cat(1), pr(1), mv(1)
diff --git a/usr/man/man1/cron.1m b/usr/man/man1/cron.1m
new file mode 100644 (file)
index 0000000..959c7af
--- /dev/null
@@ -0,0 +1,56 @@
+.TH CRON 1M 
+.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/man1/crypt.1 b/usr/man/man1/crypt.1
new file mode 100644 (file)
index 0000000..b041371
--- /dev/null
@@ -0,0 +1,85 @@
+.TH CRYPT 1 
+.SH NAME
+crypt \- encode/decode
+.SH SYNOPSIS
+.B crypt
+[ password ]
+.SH DESCRIPTION
+.I Crypt
+reads from the standard input and writes
+on the standard output.
+The
+.I password
+is a key that selects a particular transformation.
+If no
+.I password 
+is given,
+.I crypt
+demands a key from the terminal and turns
+off printing while the key is being typed in.
+.I Crypt
+encrypts and decrypts with the same key:
+.PP
+       crypt key <clear >cypher
+.br
+       crypt key <cypher | pr
+.PP
+will print the clear.
+.PP
+Files encrypted by
+.I crypt
+are compatible with those treated by the editor
+.I ed
+in encryption mode.
+.PP
+The security of encrypted files depends on three factors:
+the fundamental method must be hard to solve;
+direct search of the key space must be infeasible;
+`sneak paths' by which keys or cleartext can become
+visible must be minimized.
+.PP
+.I Crypt
+implements a one-rotor machine designed along the lines
+of the German Enigma, but with a 256-element rotor.
+Methods of attack on such machines are known, but not widely;
+moreover the amount of work required is likely to be large.
+.PP
+The transformation of a key into the internal
+settings of the machine is deliberately designed to
+be expensive, i.e. to take a substantial fraction of
+a second to compute.
+However,
+if keys are restricted to (say)
+three lower-case letters,
+then encrypted files can be read by expending only
+a substantial fraction of
+five minutes of machine time.
+.PP
+Since the key is an argument to the
+.I crypt
+command,
+it is potentially visible to users executing
+.IR ps (1)
+or a derivative.
+To minimize this possibility,
+.I crypt
+takes care to destroy any record of the key
+immediately upon entry.
+No doubt the choice of keys and key security
+are the most vulnerable aspect of
+.I crypt.
+.SH FILES
+/dev/tty for typed key
+.SH "SEE ALSO"
+ed(1),
+makekey(8)
+.SH BUGS
+There is no warranty of merchantability nor any warranty
+of fitness for a particular purpose nor any other warranty,
+either express or implied, as to the accuracy of the
+enclosed materials or as to their suitability for any
+particular purpose.  Accordingly, Bell Telephone
+Laboratories assumes no responsibility for their use by the
+recipient.   Further, Bell Laboratories assumes no obligation
+to furnish any assistance of any kind whatsoever, or to
+furnish any additional information or documentation.
diff --git a/usr/man/man1/dc.1 b/usr/man/man1/dc.1
new file mode 100644 (file)
index 0000000..4b53d72
--- /dev/null
@@ -0,0 +1,198 @@
+.TH DC 1 
+.SH NAME
+dc \- desk calculator
+.SH SYNOPSIS
+.B dc
+[ file ]
+.SH DESCRIPTION
+.I Dc
+is an arbitrary precision arithmetic package.
+Ordinarily it operates on decimal integers,
+but one may specify an input base, output base,
+and a number of fractional digits to be maintained.
+The overall structure of
+.I dc
+is
+a stacking (reverse Polish) calculator.
+If an argument is given,
+input is taken from that file until its end,
+then from the standard input.
+The following constructions are recognized:
+.HP 6
+number
+.br
+The value of the number is pushed on the stack.
+A number is an unbroken string of the digits 0-9.
+It may be preceded by an underscore _ to input a
+negative number.
+Numbers may contain decimal points.
+.HP 6
++  \- /  *  %  ^
+.br
+The
+top two values on the stack are added
+(+),
+subtracted
+(\-),
+multiplied (*),
+divided (/),
+remaindered (%),
+or exponentiated (^).
+The two entries are popped off the stack;
+the result is pushed on the stack in their place.
+Any fractional part of an exponent is ignored.
+.TP
+.BI s x
+The
+top of the stack is popped and stored into
+a register named
+.I x,
+where
+.I x
+may be any character.
+If
+the
+.B s
+is capitalized,
+.I x
+is treated as a stack and the value is pushed on it.
+.TP
+.BI l x
+The
+value in register
+.I x
+is pushed on the stack.
+The register
+.I x
+is not altered.
+All registers start with zero value.
+If the
+.B l
+is capitalized,
+register
+.I x
+is treated as a stack and its top value is popped onto the main stack.
+.TP
+.B  d
+The
+top value on the stack is duplicated.
+.TP
+.B  p
+The top value on the stack is printed.
+The top value remains unchanged.
+.B P
+interprets the top of the stack as an ascii string,
+removes it, and prints it.
+.TP
+.B  f
+All values on the stack and in registers are printed.
+.TP
+.B  q
+exits the program.
+If executing a string, the recursion level is
+popped by two.
+If
+.B q
+is capitalized,
+the top value on the stack is popped and the string execution level is popped
+by that value.
+.TP
+.B  x
+treats the top element of the stack as a character string
+and executes it as a string of dc commands.
+.TP
+.B  X
+replaces the number on the top of the stack with its scale factor.
+.TP
+.B  "[ ... ]"
+puts the bracketed ascii string onto the top of the stack.
+.HP 6
+.I  "<x  >x  =x"
+.br
+The
+top two elements of the stack are popped and compared.
+Register
+.I x
+is executed if they obey the stated
+relation.
+.TP
+.B  v
+replaces the top element on the stack by its square root.
+Any existing fractional part of the argument is taken
+into account, but otherwise the scale factor is ignored.
+.TP
+.B  !
+interprets the rest of the line as a UNIX command.
+.TP
+.B  c
+All values on the stack are popped.
+.TP
+.B  i
+The top value on the stack is popped and used as the
+number radix for further input.
+.B I
+pushes the input base on the top of the stack.
+.TP
+.B  o
+The top value on the stack is popped and used as the
+number radix for further output.
+.TP
+.SM
+.B O
+pushes the output base on the top of the stack.
+.TP
+.B  k
+the top of the stack is popped, and that value is used as
+a non-negative scale factor:
+the appropriate number of places
+are printed on output,
+and maintained during multiplication, division, and exponentiation.
+The interaction of scale factor,
+input base, and output base will be reasonable if all are changed
+together.
+.TP
+.B  z
+The stack level is pushed onto the stack.
+.TP
+.SM
+.B  Z
+replaces the number on the top of the stack with its length.
+.TP
+.B  ?
+A line of input is taken from the input source (usually the terminal)
+and executed.
+.TP
+.B "; :"
+are used by 
+.I bc
+for array operations.
+.PP
+An example which prints the first ten values of n! is
+.nf
+.PP
+.in +3
+[la1+dsa*pla10>y]sy
+.br
+0sa1
+.br
+lyx
+.fi
+.SH "SEE ALSO"
+bc(1),
+which is a preprocessor for
+.I dc
+providing infix notation and a C-like syntax
+which implements functions and reasonable control
+structures for programs.
+.SH DIAGNOSTICS
+`x is unimplemented' where x is an octal number.
+.br
+`stack empty' for not enough elements on the stack to do what was asked.
+.br
+`Out of space' when the free list is exhausted (too many digits).
+.br
+`Out of headers' for too many numbers being kept around.
+.br
+`Out of pushdown' for too many items on the stack.
+.br
+`Nesting Depth' for too many levels of nested execution.
diff --git a/usr/man/man1/dcheck.1m b/usr/man/man1/dcheck.1m
new file mode 100644 (file)
index 0000000..99493c5
--- /dev/null
@@ -0,0 +1,55 @@
+.TH DCHECK 1M 
+.SH NAME
+dcheck \- file system directory consistency check
+.SH SYNOPSIS
+.B dcheck
+[
+.B \-i
+numbers ]
+[ filesystem ]
+.SH DESCRIPTION
+.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"
+icheck(1), filsys(5), clri(1), ncheck(1)
+.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.
diff --git a/usr/man/man1/dd.1 b/usr/man/man1/dd.1
new file mode 100644 (file)
index 0000000..b16addf
--- /dev/null
@@ -0,0 +1,190 @@
+.TH DD 1 
+.SH NAME
+dd \- convert and copy a file
+.SH SYNOPSIS
+.B dd
+[option=value] ...
+.SH DESCRIPTION
+.I Dd
+copies the specified input file
+to the specified output with
+possible conversions.
+The standard input and output are used by default.
+The input and output block size may be
+specified to take advantage of raw physical I/O.
+.PP
+.br
+.ns
+.TP 15
+.I option
+.I values
+.br
+.ns
+.TP 
+if=
+input file name; standard input is default
+.br
+.ns
+.TP 
+of=
+output file name; standard output is default
+.br
+.ns
+.TP 
+.RI ibs= n
+input block size
+.I n
+bytes (default 512)
+.br
+.ns
+.TP 
+.RI obs= n
+output block size (default 512)
+.br
+.ns
+.TP 
+.RI bs= n
+set both input and output block size,
+superseding
+.I ibs
+and
+.I obs;
+also, if no conversion is specified,
+it is particularly efficient since no copy need be done
+.br
+.ns
+.TP 
+.RI cbs= n
+conversion buffer size
+.br
+.ns
+.TP 
+.RI skip= n
+skip
+.IR n ""
+input records before starting copy
+.br
+.ns
+.TP
+.RI files= n
+skip
+.I n
+input files before starting copy
+.br
+.ns
+.TP 
+.RI seek= n
+seek
+.I n
+records from beginning of output file before copying
+.br
+.ns
+.TP 
+count=\fIn\fR
+copy only
+.IR n ""
+input records
+.br
+.ns
+.TP 
+conv=ascii
+.ds h \h'\w'conv='u'
+convert EBCDIC to ASCII
+.br
+.ns
+.IP \*hebcdic
+convert ASCII to EBCDIC
+.br
+.ns
+.IP \*hibm
+slightly different map of ASCII to EBCDIC
+.br
+.ns
+.IP \*hlcase
+map alphabetics to lower case
+.br
+.ns
+.IP \*hucase
+map alphabetics to upper case
+.br
+.ns
+.IP \*hswab
+swap every pair of bytes
+.br
+.ns
+.IP \*hnoerror
+do not stop processing on an error
+.br
+.ns
+.IP \*hsync
+pad every input record to
+.I  ibs
+.br
+.ns
+.IP "\*h... , ..."
+several comma-separated conversions
+.PP
+.fi
+Where sizes are specified,
+a number of bytes is expected.
+A number may end with
+.B "k, b"
+or
+.B w
+to specify multiplication by
+1024, 512, or 2 respectively;
+a pair of numbers may be separated by
+.B x
+to indicate a product.
+.PP
+.I Cbs
+is used only if
+.I ascii
+or
+.I ebcdic
+conversion is specified.
+In the former case
+.I cbs
+characters are placed into the conversion buffer, converted to
+ASCII, and trailing blanks trimmed and new-line added
+before sending the line to the output.
+In the latter case ASCII characters are read into the
+conversion buffer, converted to EBCDIC, and blanks added
+to make up an
+output record of size
+.IR cbs .
+.PP
+After completion,
+.I dd
+reports the number of whole and partial input and output
+blocks.
+.PP
+For example, to read an EBCDIC tape blocked ten 80-byte
+EBCDIC card images per record into the ASCII file
+.I x:
+.IP
+.nf
+dd if=/dev/rmt0 of=x ibs=800 cbs=80 conv=ascii,lcase
+.fi
+.PP
+Note the use of raw magtape.
+.I Dd
+is especially suited to I/O on the raw
+physical devices because it allows reading
+and writing in arbitrary record sizes.
+.SH "SEE ALSO"
+cp(1), tr(1)
+.SH DIAGNOSTICS
+f+p records in(out): numbers of full and partial records read(written)
+.SH BUGS
+The ASCII/EBCDIC conversion tables are
+taken
+from the 256 character standard in
+the CACM Nov, 1968.
+The `ibm' conversion, while less blessed as a standard,
+corresponds better to certain IBM print train conventions.
+There is no universal solution.
+.PP
+Newlines are inserted only on conversion to ASCII;
+padding is done only on conversion to EBCDIC.
+These should be separate options.
diff --git a/usr/man/man1/df.1m b/usr/man/man1/df.1m
new file mode 100644 (file)
index 0000000..d55545f
--- /dev/null
@@ -0,0 +1,19 @@
+.TH DF 1M 
+.SH NAME
+df \- disk free
+.SH SYNOPSIS
+.B df
+[ filesystem ] ...
+.SH DESCRIPTION
+.I Df
+prints out the number of free blocks
+available on the
+.I filesystems.
+If no file system is specified,
+the free space on all of
+the normally mounted file systems
+is printed.
+.SH FILES
+Default file systems vary with installation.
+.SH "SEE ALSO"
+icheck(1)
diff --git a/usr/man/man1/diff.1 b/usr/man/man1/diff.1
new file mode 100644 (file)
index 0000000..b71adb4
--- /dev/null
@@ -0,0 +1,138 @@
+.TH DIFF 1 
+.SH NAME
+diff \- differential file comparator
+.SH SYNOPSIS
+.B diff
+[
+.B \-efbh
+] file1 file2
+.SH DESCRIPTION
+.I Diff
+tells what lines must be changed in two files to bring them
+into agreement.
+If
+.I file1
+.RI ( file2 )
+is `\-', the standard input is used.
+If
+.I file1
+.RI ( file2 )
+is a directory, then a file in that directory
+whose file-name is the same as the file-name of 
+.I file2
+.RI ( file1 )
+is used.
+The normal output contains lines of these forms:
+.IP "" 5
+.I n1
+a
+.I n3,n4
+.br
+.I n1,n2
+d
+.I n3
+.br
+.I n1,n2
+c
+.I n3,n4
+.PP
+These lines resemble
+.I ed
+commands to convert
+.I file1
+into
+.IR file2 .
+The numbers after the letters pertain to
+.IR file2 .
+In fact, by exchanging `a' for `d' and reading backward
+one may ascertain equally how to convert 
+.I file2
+into
+.IR file1 .
+As in 
+.I ed,
+identical pairs where
+.I n1
+=
+.I n2
+or
+.I n3
+=
+.I n4
+are abbreviated as a single number.
+.PP
+Following each of these lines come all the lines that are
+affected in the first file flagged by `<', 
+then all the lines that are affected in the second file
+flagged by `>'.
+.PP
+The
+.B \-b
+option causes
+trailing blanks (spaces and tabs) to be ignored
+and other strings of blanks to compare equal.
+.PP
+The
+.B \-e
+option produces a script of
+.I "a, c"
+and 
+.I d
+commands for the editor
+.I ed,
+which will recreate
+.I file2
+from
+.IR file1 .
+The
+.B \-f
+option produces a similar script,
+not useful with
+.I ed,
+in the opposite order.
+In connection with
+.BR \-e ,
+the following shell program may help maintain
+multiple versions of a file.
+Only an ancestral file ($1) and a chain of 
+version-to-version
+.I ed
+scripts ($2,$3,...) made by
+.I diff
+need be on hand.
+A `latest version' appears on
+the standard output.
+.IP "" 5
+(shift; cat $*; echo \'1,$p\') \(bv ed \- $1
+.PP
+Except in rare circumstances,
+.I diff
+finds a smallest sufficient set of file
+differences.
+.PP
+Option
+.B \-h
+does a fast, half-hearted job.
+It works only when changed stretches are short
+and well separated,
+but does work on files of unlimited length.
+Options 
+.B \-e
+and
+.B \-f
+are unavailable with
+.BR \-h .
+.SH FILES
+/tmp/d?????
+.br
+/usr/lib/diffh for 
+.B \-h
+.SH "SEE ALSO"
+cmp(1), comm(1), ed(1)
+.SH DIAGNOSTICS
+Exit status is 0 for no differences, 1 for some, 2 for trouble.
+.SH BUGS
+Editing scripts produced under the
+.BR \-e " or"
+.BR \-f " option are naive about"
+creating lines consisting of a single `\fB.\fR'.
diff --git a/usr/man/man1/dump.1m b/usr/man/man1/dump.1m
new file mode 100644 (file)
index 0000000..44d9fa7
--- /dev/null
@@ -0,0 +1,113 @@
+.TH DUMP 1M 
+.SH NAME
+dump \- incremental file system dump
+.SH SYNOPSIS
+.B dump
+[ key [ 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 0123456789fusd.
+.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 `/etc/ddate'.
+This file records a separate date for
+each filesystem and each dump level.
+.TP 5
+.B  0\-9
+This number is the `dump level'.
+All files modified since the last date stored
+in the file `/etc/ddate' 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  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,
+the dump will wait for reels to be changed.
+The default 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 write. The default is 1600.
+.PP
+.DT
+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
+Now a short suggestion on how
+perform dumps.
+Start with a full level 0 dump
+.PP
+       dump 0u
+.PP
+Next,
+periodic level 9 dumps should be made on an
+exponential progression of tapes.
+(Sometimes called Tower of Hanoi \- 1 2 1 3 1 2 1 4 ...
+tape 1 used every other time,
+tape 2 used every fourth,
+tape 3 used every eighth, etc.)
+.PP
+       dump 9u
+.PP
+When the level 9 incremental approaches a full
+tape (about 78000 blocks at 1600 BPI blocked 20),
+a level 1 dump should be made.
+.PP
+       dump 1u
+.PP
+After this,
+the exponential series should progress as uninterrupted.
+These level 9 dumps are based on the level 1 dump which
+is based on the level 0 full dump.
+This progression of levels of dump can be carried
+as far as desired.
+.SH FILES
+default filesystem and tape vary with installation.
+.br
+/etc/ddate     record dump dates of filesystem/level.
+.SH "SEE ALSO"
+restor(1), dump(5), dumpdir(1)
+.SH DIAGNOSTICS
+If the dump requires more than one tape,
+it will ask you to change tapes.
+Reply with a new-line when this has been done.
+.SH BUGS
+Sizes are based on 1600 BPI blocked tape.
+The raw magtape device has to be used to
+approach these densities.
+Read errors on the filesystem are ignored.
+Write errors on the magtape are usually fatal.
diff --git a/usr/man/man1/ed.1 b/usr/man/man1/ed.1
new file mode 100644 (file)
index 0000000..1fbedc4
--- /dev/null
@@ -0,0 +1,652 @@
+.TH ED 1 
+.if t .ds q \(aa
+.if n .ds q '
+.SH NAME
+ed \- text editor
+.SH SYNOPSIS
+.B ed
+[
+.B \-
+] [
+.B \-x
+] [ name ]
+.SH DESCRIPTION
+.I Ed
+is the standard text editor.
+.PP
+If a
+.I name
+argument is given,
+.I ed
+simulates an
+.I e
+command (see below)\| on the named file; that is to say,
+the file is read into
+.I ed's
+buffer so that it can be edited.
+If 
+.B \-x
+is present, an
+.I x
+command is simulated first to handle an encrypted file.
+The optional
+.B \-
+suppresses the printing
+of character counts by
+.I e,
+.I r,
+and
+.I w
+commands.
+.PP
+.I Ed
+operates on a copy of any file it is editing; changes made
+in the copy have no effect on the file until a
+.IR w ""
+(write)\|
+command is given.
+The copy of the text being edited resides
+in a temporary file called the 
+.IR buffer .
+.PP
+Commands to
+.I ed
+have a simple and regular structure: zero or
+more
+.I addresses
+followed by a single character
+.I command,
+possibly
+followed by parameters to the command.
+These addresses specify one or more lines in the buffer.
+Missing addresses are supplied by default.
+.PP
+In general, only one command may appear on a line.
+Certain commands allow the 
+addition of text to the buffer.
+While
+.I ed
+is accepting text, it is said
+to be in
+.I  "input mode."
+In this mode, no commands are recognized;
+all input is merely collected.
+Input mode is left by typing a period `\fB.\fR' alone at the
+beginning of a line.
+.PP
+.I Ed
+supports a limited form of
+.I "regular expression"
+notation.
+A regular expression specifies
+a set of strings of characters.
+A member of this set of strings is said to be
+.I matched
+by the regular expression.
+In the following specification for regular expressions
+the word `character' means any character but newline.
+.IP 1.
+Any character except a special character
+matches itself.
+Special characters are
+the regular expression delimiter plus
+.RB \e\|[\| .
+and sometimes ^\|*\|$.
+.IP 2.
+A
+.B .
+matches any character.
+.IP 3.
+A \e followed by any character except a digit or (\|) matches that character.
+.IP 4.
+A nonempty string
+.I s
+bracketed
+.RI [ \|s\| ]
+(or
+.RI [^ s\| ])
+matches any character in (or not in)
+.I s.
+In 
+.I s,
+\e has no special meaning, and ] may only appear as
+the first letter.
+A substring 
+.I a\-b,
+with
+.I a
+and
+.I b
+in ascending ASCII order, stands for the inclusive
+range of ASCII characters.
+.IP 5.
+A regular expression of form 1-4 followed by * matches a sequence of
+0 or more matches of the regular expression.
+.IP 6.
+A regular expression,
+.I x,
+of form 1-8, bracketed
+.RI \e( \|x\| \e)
+matches what
+.I x
+matches.
+.IP 7.
+A \e followed by a digit 
+.I n
+matches a copy of the string that the
+bracketed regular expression beginning with the
+.IR n th
+\e( matched.
+.IP 8.
+A regular expression of form 1-8,
+.I x,
+followed by a regular expression of form 1-7,
+.I y
+matches a match for
+.I x
+followed by a match for
+.I y,
+with the
+.I x
+match being as long as possible while still permitting a
+.I y
+match.
+.IP 9.
+A regular expression of form 1-8 preceded by ^
+(or followed by $), is constrained to matches that
+begin at the left (or end at the right) end of a line.
+.IP 10.
+A regular expression of form 1-9 picks out the
+longest among the leftmost matches in a line.
+.IP 11.
+An empty regular expression stands for a copy of the
+last regular expression encountered.
+.PP
+Regular expressions are used in addresses to specify
+lines and in one command
+(see
+.I s
+below)\|
+to specify a portion of a line which is to be replaced.
+If it is desired to use one of
+the regular expression metacharacters as an ordinary
+character, that character may be preceded by `\e'.
+This also applies to the character bounding the regular
+expression (often `/')\| and to `\e' itself.
+.PP
+To understand addressing in
+.I ed
+it is necessary to know that at any time there is a
+.I  "current line."
+Generally speaking, the current line is
+the last line affected by a command; however,
+the exact effect on the current line
+is discussed under the description of
+the command.
+Addresses are constructed as follows.
+.TP
+1.
+The character `\fB.\fR' addresses the current line.
+.TP
+2.
+The character `$' addresses the last line of the buffer.
+.TP
+3.
+A decimal number
+.I n
+addresses the
+.IR n -th
+line of the buffer.
+.TP
+4.
+`\(fm\fIx\fR' addresses the line marked with the name
+.IR x ,
+which must be a lower-case letter.
+Lines are marked with the
+.I k
+command described below.
+.TP
+5.
+A regular expression enclosed in slashes `/' addresses
+the line found by searching forward from the current line
+and stopping at the first line containing a
+string that matches the regular expression.
+If necessary the search wraps around to the beginning of the
+buffer.
+.TP
+6.
+A regular expression enclosed in queries `?' addresses
+the line found by searching backward from the current line
+and stopping at the first line containing
+a string that matches the regular expression.
+If necessary
+the search wraps around to the end of the buffer.
+.TP
+7.
+An address followed by a plus sign `+'
+or a minus sign `\-' followed by a decimal number specifies that address plus
+(resp. minus)\| the indicated number of lines.
+The plus sign may be omitted.
+.TP
+8.
+If an address begins with `+' or `\-'
+the addition or subtraction is taken with respect to the current line;
+e.g. `\-5' is understood to mean `\fB.\fR\-5'.
+.TP
+9.
+If an address ends with `+' or `\-',
+then 1 is added (resp. subtracted).
+As a consequence of this rule and rule 8,
+the address `\-' refers to the line before the current line.
+Moreover,
+trailing
+`+' and `\-' characters
+have cumulative effect, so `\-\-' refers to the current
+line less 2.
+.TP
+10.
+To maintain compatibility with earlier versions of the editor,
+the character `^' in addresses is 
+equivalent to `\-'.
+.PP
+Commands may require zero, one, or two addresses.
+Commands which require no addresses regard the presence
+of an address as an error.
+Commands which accept one or two addresses
+assume default addresses when insufficient are given.
+If more addresses are given than such a command requires,
+the last one or two (depending on what is accepted)\| are used.
+.PP
+Addresses are separated from each other typically by a comma
+`\fB,\fR'.
+They may also be separated by a semicolon
+`\fB;\fR'.
+In this case the current line `\fB.\fR' is set to
+the previous address before the next address is interpreted.
+This feature can be used to determine the starting
+line for forward and backward searches (`/', `?')\|.
+The second address of any two-address sequence
+must correspond to a line following the line corresponding to the first address.
+.PP
+In the following list of
+.I ed
+commands, the default addresses
+are shown in parentheses.
+The parentheses are not part of
+the address, but are used to show that the given addresses are
+the default.
+.PP
+As mentioned, it is generally illegal for more than one
+command to appear on a line.
+However, most commands may be suffixed by `p'
+or by `l', in which case
+the current line is either
+printed or listed respectively
+in the way discussed below.
+.TP 5
+.RB (\| .\| )\|a
+.br
+.ns
+.TP 5
+<text>
+.br
+.ns
+.TP 5
+.B .
+.br
+The append command reads the given text
+and appends it after the addressed line.
+`\fB.\fR' is left
+on the last line input, if there
+were any, otherwise at the addressed line.
+Address `0' is legal for this command; text is placed
+at the beginning of the buffer.
+.TP 5
+.RB (\| .\| ,\  .\| )\|c
+.br
+.ns
+.TP 5
+<text>
+.br
+.ns
+.TP 5
+.B .
+.br
+The change
+command deletes the addressed lines, then accepts input
+text which replaces these lines.
+`\fB.\fR' is left at the last line input; if there were none,
+it is left at the line preceding the deleted lines.
+.TP 5
+.RB (\| .\| ,\  .\| )\|d
+The delete command deletes the addressed lines from the buffer.
+The line originally after the last line deleted becomes the current line;
+if the lines deleted were originally at the end,
+the new last line becomes the current line.
+.TP 5
+e filename
+The edit
+command causes the entire contents of the buffer to be deleted,
+and then the named file to be read in.
+`\fB.\fR' is set to the last line of the buffer.
+The number of characters read is typed.
+`filename' is remembered for possible use as a default file name
+in a subsequent
+.I r
+or
+.I w
+command.
+If `filename' is missing, the remembered name is used.
+.TP 5
+E filename
+This command is the same as
+.I e,
+except that no diagnostic results when no
+.I w
+has been given since the last buffer alteration.
+.TP 5
+f filename
+The filename command prints the currently remembered file name.
+If `filename' is given,
+the currently remembered file name is changed to `filename'.
+.TP 5
+(1,$)\|g/regular expression/command list
+In the global
+command, the first step is to mark every line which matches
+the given regular expression.
+Then for every such line, the
+given command list is executed with `\fB.\fR' initially set to that line.
+A single command or the first of multiple commands
+appears on the same line with the global command.
+All lines of a multi-line list except the last line must be ended with `\e'.
+.I A,
+.I i,
+and
+.I c
+commands and associated input are permitted;
+the `\fB.\fR' terminating input mode may be omitted if it would be on the
+last line of the command list.
+The commands
+.I g
+and
+.I v
+are not permitted in the command list.
+.TP 5
+.RB (\| .\| )\|i
+.ns
+.TP 5
+<text>
+.br
+.ns
+.TP 5
+.B .
+.br
+This command inserts the given text before the addressed line.
+`\fB.\fR' is left at the last line input, or, if there were none,
+at the line before the addressed line.
+This command differs from the
+.I a
+command only in the placement of the
+text.
+.TP 5
+.RB (\| .\| ,\  . +1)\|j
+This command joins the addressed lines into a single line;
+intermediate newlines simply disappear.
+`\fB.\fR' is left at the resulting line.
+.TP 5
+( \fB. \fR)\|k\fIx\fR
+The mark command marks the addressed line with
+name
+.I x,
+which must be a lower-case letter.
+The address form `\(fm\fIx\fR' then addresses this line.
+.ne 2.5
+.TP 5
+.RB (\| .\| ,\  .\| )\|l
+The list command
+prints the addressed lines in an unambiguous way:
+non-graphic characters are
+printed in two-digit octal,
+and long lines are folded.
+The
+.I l
+command may be placed on the same line after any non-i/o
+command.
+.TP 5
+.RB (\| .\| ,\  .\| )\|m\fIa
+The move command repositions the addressed lines after the line
+addressed by
+.IR a .
+The last of the moved lines becomes the current line.
+.TP 5
+.RB (\| .\| ,\  .\| )\|p
+The print command prints the addressed lines.
+`\fB.\fR'
+is left at the last line printed.
+The
+.I p
+command
+may
+be placed on the same line after any non-i/o command.
+.TP
+.RB (\| .\| ,\  .\| )\|P
+This command is a synonym for
+.I p.
+.TP 5
+q
+The quit command causes
+.I ed
+to exit.
+No automatic write
+of a file is done.
+.TP 5
+Q
+This command is the same as
+.I q,
+except that no diagnostic results when no
+.I w
+has been given since the last buffer alteration.
+.TP 5
+($)\|r filename
+The read command
+reads in the given file after the addressed line.
+If no file name is given,
+the remembered file name, if any, is used
+(see
+.I e
+and
+.I f
+commands)\|.
+The file name is remembered if there was no
+remembered file name already.
+Address `0' is legal for
+.I r
+and causes the
+file to be read at the beginning of the buffer.
+If the read is successful, the number of characters
+read is typed.
+`\fB.\fR' is left at the last line read in from the file.
+.TP 5
+(\| \fB.\fR\|, \fB.\fR\|)\|s/regular expression/replacement/       or,
+.br
+.ns
+.TP 5
+(\| \fB.\fR\|, \fB.\fR\|)\|s/regular expression/replacement/g
+The substitute command searches each addressed
+line for an occurrence of the specified regular expression.
+On each line in which a match is found,
+all matched strings are replaced by the replacement specified,
+if the global replacement indicator `g' appears after the command.
+If the global indicator does not appear, only the first occurrence
+of the matched string is replaced.
+It is an error for the substitution to fail on all addressed lines.
+Any character other than space or new-line
+may be used instead of `/' to delimit the regular expression
+and the replacement.
+`\fB.\fR' is left at the last line substituted.
+.IP
+An ampersand `&' appearing in the replacement
+is replaced by the string matching the regular expression.
+The special meaning of `&' in this context may be
+suppressed by preceding it by `\e'.
+The characters
+.I `\|\en'
+where
+.I n
+is a digit,
+are replaced by the text matched by the
+.IR n -th
+regular subexpression
+enclosed between `\e(' and `\e)'.
+When
+nested, parenthesized subexpressions
+are present,
+.I n
+is determined by counting occurrences of `\e(' starting from the left.
+.IP
+Lines may be split by substituting new-line characters into them.
+The new-line in the
+replacement string
+must be escaped by preceding it by `\e'.
+.TP 5
+.RB (\| .\| ,\  .\| )\|t\|\fIa
+This command acts just like the
+.I m
+command, except that a copy of the addressed lines is placed
+after address
+.I a
+(which may be 0).
+`\fB.\fR' is left on the last line of the copy.
+.TP 5
+.RB (\| .\| ,\  .\| )\|u
+The undo command restores the preceding contents
+of the current line, which must be the last line
+in which a substitution was made.
+.TP 5
+(1, $)\|v/regular expression/command list
+This command is the same as the global command
+.I g
+except that the command list is executed
+.I g
+with `\fB.\fR' initially set to every line
+.I except
+those
+matching the regular expression.
+.TP 5
+(1, $)\|w filename
+.br
+The write command writes the addressed lines onto
+the given file.
+If the file does not exist,
+it is created mode 666 (readable and writable by everyone)\|.
+The file name is remembered if there was no 
+remembered file name already.
+If no file name is given,
+the remembered file name, if any, is used
+(see
+.I e
+and
+.I f
+commands)\|.
+`\fB.\fR' is unchanged.
+If the command is successful, the number of characters written is
+printed.
+.TP
+(1,$)W filename
+This command is the same as
+.I w,
+except that the addressed lines are appended to the file.
+.TP 5
+x
+A key string is demanded from the standard input.
+Later
+.I r, e
+and
+.I w
+commands will encrypt and decrypt the text 
+with this key by the algorithm of 
+.IR crypt (1).
+An explicitly empty key turns off encryption.
+.TP 5
+($)\|=
+The line number of the addressed line is typed.
+`\fB.\fR' is unchanged by this command.
+.TP 5
+!<shell command>
+The remainder of the line after the `!' is sent
+to
+.IR sh (1)
+to be interpreted as a command.
+.RB ` . '
+is unchanged.
+.TP 5
+.RB (\| . +1)\|<newline>
+An address alone on a line causes the addressed line to be printed.
+A blank line alone is equivalent to `.+1p'; it is useful
+for stepping through text.
+.PP
+If an interrupt signal (ASCII DEL)\| is sent,
+.I ed
+prints a `?' and returns to its command level.
+.PP
+Some size limitations:
+512 characters per line,
+256 characters per global command list,
+64 characters per file name,
+and 128K characters in the temporary file.
+The limit on the number of lines depends on the amount of core:
+each line takes 1 word.
+.PP
+When reading a file,
+.I ed
+discards ASCII NUL characters
+and all characters after the last newline.
+It refuses to read files containing non-ASCII characters.
+.SH FILES
+/tmp/e*
+.br
+ed.hup: work is saved here if terminal hangs up
+.SH "SEE ALSO"
+B. W. Kernighan,
+.I
+A Tutorial Introduction to the ED Text Editor
+.br
+B. W. Kernighan,
+.I Advanced editing on UNIX
+.br
+sed(1), crypt(1)
+.SH DIAGNOSTICS
+`?name' for inaccessible file;
+`?' for
+errors in commands;
+`?TMP' for temporary file overflow.
+.PP
+To protect against throwing away valuable work,
+a
+.I q
+or
+.I e
+command is considered to be in error, unless a
+.I w
+has occurred since the last buffer change.
+A second
+.I q
+or
+.I e
+will be obeyed regardless.
+.SH BUGS
+The 
+.I l
+command mishandles DEL.
+.br
+A
+.I !
+command cannot be subject to a
+.I g
+command.
+.br
+Because 0 is an illegal address for a
+.I w
+command, it is not possible to
+create an empty file with
+.I ed.
diff --git a/usr/man/man1/expr.1 b/usr/man/man1/expr.1
new file mode 100644 (file)
index 0000000..dd63e6a
--- /dev/null
@@ -0,0 +1,96 @@
+.TH EXPR 1 
+.SH NAME
+expr \- evaluate arguments as an expression
+.SH SYNOPSIS
+.B expr
+arg
+.B .\|.\|.
+.SH DESCRIPTION
+The arguments are taken as an expression.
+After evaluation, the result is written on the standard output.
+Each token of the expression is a separate argument.
+.PP
+The operators and keywords are listed below.
+The list is in order of increasing precedence,
+with equal precedence operators grouped.
+.TP
+.I expr | expr
+yields the first
+.I expr
+if it is neither null nor `0', otherwise
+yields the second
+.I expr.
+.TP
+.I expr & expr
+yields the first
+.I expr
+if neither
+.I expr
+is null or `0', otherwise yields `0'.
+.TP
+.I expr relop expr
+where
+.I relop is one of
+< <= = != >= >,
+yields `1' if the indicated comparison is true, `0' if false.
+The comparison is numeric if both
+.I expr
+are integers, otherwise lexicographic.
+.TP
+.IR expr " + " expr
+.br
+.IR expr " - " expr
+.br
+addition or subtraction of the arguments.
+.TP
+.IR expr " * " expr
+.br
+.IR expr " / " expr
+.br
+.IR expr " % " expr
+.br
+multiplication, division, or remainder of the arguments.
+.TP
+.IR expr " : " expr
+The matching operator compares the string first argument
+with the regular expression second argument;
+regular expression syntax is the same as that of
+.IR ed (1).
+The
+\fB\\(\|.\|.\|.\|\\)\fP
+pattern symbols can be used to select a portion of the
+first argument.
+Otherwise,
+the matching operator yields the number of characters matched
+(`0' on failure).
+.TP
+.RI ( " expr " )
+parentheses for grouping.
+.PP
+Examples:
+.PP
+To add 1 to the Shell variable
+.IR a :
+.IP
+a=\`expr $a + 1\`
+.PP
+To find the filename part (least significant part)
+of the pathname stored in variable
+.I a,
+which may or may not contain `/':
+.IP
+expr $a : \'.*/\e(\^.*\e)\' \'\^|\' $a
+.LP
+Note the quoted Shell metacharacters.
+.SH "SEE ALSO"
+ed(1), sh(1), test(1)
+.SH DIAGNOSTICS
+.I Expr
+returns the following exit codes:
+.PP
+       0       if the expression is neither null nor `0',
+.br
+       1       if the expression
+is null or `0',
+.br
+       2       for invalid expressions.
diff --git a/usr/man/man1/f77.1 b/usr/man/man1/f77.1
new file mode 100644 (file)
index 0000000..6d24b9e
--- /dev/null
@@ -0,0 +1,138 @@
+.TH F77 1
+.SH NAME
+f77 \- Fortran 77 compiler
+.SH SYNOPSIS
+.B f77
+[ option ] ... file ...
+.SH DESCRIPTION
+.I F77
+is the UNIX Fortran 77 compiler.
+It accepts several types of arguments:
+.PP
+Arguments whose names end with `.f' are taken to be
+Fortran 77 source programs;
+they are compiled, and
+each object program is left on the file in the current directory
+whose name is that of the source with `.o' substituted
+for '.f'.
+.PP
+Arguments whose names end with `.r' or `.e' are taken to be Ratfor or EFL
+source programs, respectively; these are first transformed by the
+appropriate preprocessor, then compiled by f77.
+.PP
+In the same way,
+arguments whose names end with `.c' or `.s' are taken to be C or assembly source programs
+and are compiled or assembled, producing a `.o' file.
+.PP
+The following options have the same meaning as in
+.IR cc (1).
+See
+.IR ld (1)
+for load-time options.
+.TP
+.B \-c
+Suppress loading and produce `.o' files for each source 
+file.
+.TP
+.B \-p
+Prepare object files for profiling, see
+.IR  prof (1).
+.TP
+.SM
+.B \-O
+Invoke an
+object-code optimizer.
+.TP
+.SM
+.B \-S
+Compile the named programs, and leave the
+assembler-language output on corresponding files suffixed `.s'.
+(No `.o' is created.).
+.TP
+.B \-f
+Use a floating point interpreter (for PDP11's that lack
+11/70-style floating point).
+.TP
+.BR \-o " output"
+Name the final output file
+.I output
+instead of `a.out'.
+.PP
+The following options are peculiar to
+.IR f77 .
+.TP
+.SM
+.BR \-onetrip
+Compile DO loops that are performed at least once if reached.
+(Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.)
+.TP
+.BR \-u
+Make the default type of a variable `undefined' rather than using the default Fortran rules.
+.TP
+.BR \-C
+Compile code to check that subscripts are within declared array bounds.
+.TP
+.BR \-w
+Suppress all warning messages.
+If the option is `\-w66', only Fortran 66 compatibility warnings are suppressed.
+.TP
+.BR \-F
+Apply EFL and Ratfor preprocessor to relevant files, put the result in the file
+with the suffix changed to `.f', but do not compile.
+.TP
+.BR \-m
+Apply the M4 preprocessor to each `.r' or `.e' file before transforming
+it with the Ratfor or EFL preprocessor.
+.TP
+.TP
+.BI \-E x
+Use the string
+.I x
+as an EFL option in processing `.e' files.
+.TP
+.BI \-R x
+Use the string 
+.I x
+as a Ratfor option in processing `.r' files.
+.PP
+Other arguments
+are taken
+to be either loader option arguments, or F77-compatible
+object programs, typically produced by an earlier
+run,
+or perhaps libraries of F77-compatible routines.
+These programs, together with the results of any
+compilations specified, are loaded (in the order
+given) to produce an executable program with name
+`a.out'.
+.SH FILES
+.nf
+.ta \w'/usr/lib/libF77.a   'u
+file.[fresc]   input file
+file.o object file
+a.out  loaded output
+./fort[pid].?  temporary
+/usr/lib/f77pass1      compiler
+/lib/f1        pass 2
+/lib/c2        optional optimizer
+/usr/lib/libF77.a      intrinsic function library
+/usr/lib/libI77.a      Fortran I/O library
+/lib/libc.a    C library, see section 3
+.fi
+.SH "SEE ALSO"
+S. I. Feldman,
+P. J. Weinberger,
+.I
+A Portable Fortran 77 Compiler
+.br
+prof(1), cc(1), ld(1)
+.SH DIAGNOSTICS
+The diagnostics produced by
+.I f77
+itself are intended to be
+self-explanatory.
+Occasional messages may be produced by the loader.
+.SH BUGS
+The Fortran 66 subset of the language has been
+exercised extensively;
+the newer features have not.
diff --git a/usr/man/man1/false.1 b/usr/man/man1/false.1
new file mode 100644 (file)
index 0000000..0336736
--- /dev/null
@@ -0,0 +1 @@
+.so /usr/man/man1/true.1
diff --git a/usr/man/man1/file.1 b/usr/man/man1/file.1
new file mode 100644 (file)
index 0000000..7c7786c
--- /dev/null
@@ -0,0 +1,18 @@
+.TH FILE 1 
+.SH NAME
+file \- determine file type
+.SH SYNOPSIS
+.B file
+file ...
+.SH DESCRIPTION
+.I File
+performs a series of tests on each argument
+in an attempt to classify it.
+If an argument appears to be ascii,
+.I file
+examines the first 512 bytes
+and tries to guess its language.
+.SH BUGS
+It often makes mistakes.
+In particular it often suggests that
+command files are C programs.
diff --git a/usr/man/man1/find.1 b/usr/man/man1/find.1
new file mode 100644 (file)
index 0000000..bad926d
--- /dev/null
@@ -0,0 +1,169 @@
+.TH FIND 1 
+.SH NAME
+find \- find files
+.SH SYNOPSIS
+.B find
+pathname-list  expression
+.SH DESCRIPTION
+.I Find
+recursively descends
+the directory hierarchy for
+each pathname in the
+.I pathname-list
+(i.e., one or more pathnames)
+seeking files that match a boolean
+.I expression
+written in the primaries given below.
+In the descriptions, the argument
+.I n
+is used as a decimal integer
+where
+.I +n
+means more than
+.I n,
+.I \-n
+means less than
+.I n
+and
+.I n
+means exactly
+.IR n .
+.TP 10n
+.BR \-name " filename"
+True if the
+.I filename
+argument matches the current file name.
+Normal
+Shell
+argument syntax may be used if escaped (watch out for
+`[', `?' and `*').
+.TP
+.BR \-perm " onum"
+True if the file permission flags
+exactly
+match the
+octal number
+.I onum
+(see
+.IR  chmod (1)).
+If
+.I onum
+is prefixed by a minus sign,
+more flag bits (017777, see
+.IR   stat (2))
+become significant and
+the flags are compared:
+.IR (flags&onum)==onum .
+.TP
+.BR \-type " c"
+True if the type of the file
+is
+.I c,
+where
+.I c
+is
+.B "b, c, d"
+or
+.B f
+for
+block special file, character special file,
+directory or plain file.
+.TP
+.BR \-links " n"
+True if the file has
+.I n
+links.
+.TP
+.BR \-user " uname"
+True if the file belongs to the user
+.I uname
+(login name or numeric user ID).
+.TP
+.BR \-group " gname"
+True if the file belongs to group
+.I gname
+(group name or numeric group ID).
+.TP
+.BR \-size " n"
+True if the file is
+.I n
+blocks long (512 bytes per block).
+.TP
+.BR \-inum " n"
+True if the file has inode number
+.I n.
+.TP
+.BR \-atime " n"
+True if the file has been accessed in
+.I n
+days.
+.TP
+.BR \-mtime " n"
+True if the file has been modified in
+.I n
+days.
+.TP
+.BR \-exec " command"
+True if the executed command returns
+a zero value as exit status.
+The end of the command must be punctuated by an escaped
+semicolon.
+A command argument `{}' is replaced by the
+current pathname.
+.TP
+.BR \-ok " command"
+Like
+.B \-exec
+except that the generated command is written on
+the standard output, then the standard input is read
+and the command executed only upon response
+.BR y .
+.TP
+.B  \-print
+Always true;
+causes the current pathname to be printed.
+.TP
+.BR \-newer " file"
+True if
+the current file has been modified more recently than the argument
+.I file.
+.PP
+The primaries may be combined using the following operators
+(in order of decreasing precedence):
+.TP 4
+1)
+A parenthesized group of primaries and operators
+(parentheses are special to the Shell and must be escaped).
+.TP 4
+2)
+The negation of a primary
+(`!' is the unary
+.I not
+operator).
+.TP 4
+3)
+Concatenation of primaries
+(the
+.I and
+operation
+is implied by the juxtaposition of two primaries).
+.TP 4
+4)
+Alternation of primaries
+.RB "(`" \-o "' is the"
+.I or
+operator).
+.SH EXAMPLE
+To remove all files named
+`a.out' or `*.o' that have not been accessed for a week:
+.IP "" .2i
+find / \\( \-name a.out \-o \-name '*.o' \\)
+\-atime +7 \-exec rm {} \\;
+.SH FILES
+/etc/passwd
+.br
+/etc/group
+.SH "SEE ALSO"
+sh(1), test(1), filsys(5)
+.SH BUGS
+The syntax is painful.
diff --git a/usr/man/man1/icheck.1m b/usr/man/man1/icheck.1m
new file mode 100644 (file)
index 0000000..70fd421
--- /dev/null
@@ -0,0 +1,96 @@
+.TH ICHECK 1M 
+.SH NAME
+icheck \- file system storage consistency check
+.SH SYNOPSIS
+.B icheck
+[
+.B \-s
+]  [
+.B \-b
+numbers ]
+[ filesystem ]
+.SH DESCRIPTION
+.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"
+dcheck(1), ncheck(1),
+filsys(5), clri(1)
+.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.
+.br
+It believes even preposterous super-blocks and
+consequently can get core images.
diff --git a/usr/man/man1/kill.1 b/usr/man/man1/kill.1
new file mode 100644 (file)
index 0000000..9eef9b1
--- /dev/null
@@ -0,0 +1,38 @@
+.TH KILL 1 
+.SH NAME
+kill \- terminate a process with extreme prejudice
+.SH SYNOPSIS
+.B kill
+[
+.BR \- signo
+]
+processid ...
+.SH DESCRIPTION
+.I Kill
+sends signal 15 (terminate) to the specified processes.
+If a signal number preceded by `\-' is given
+as first argument, that signal is sent instead of
+terminate
+(see
+.IR  signal (2)).
+This will kill processes that do not catch the signal;
+in particular `kill \-9 ...' is a sure kill.
+.PP
+By convention, if process number 0 is specified, all members
+in the process group (i.e. processes resulting from 
+the current login) are signaled.
+.PP
+The killed processes must belong
+to the current user unless
+he is the super-user.
+To shut the system down and bring it up single user
+the super-user may
+use `kill \-1 1'; see
+.IR init (8).
+.PP
+The process number of an asynchronous process
+started with `&' is reported by the shell.
+Process numbers can also be found by using
+.IR ps (1).
+.SH "SEE ALSO"
+ps(1), kill(2), signal(2)
diff --git a/usr/man/man1/lex.1 b/usr/man/man1/lex.1
new file mode 100644 (file)
index 0000000..f1f06be
--- /dev/null
@@ -0,0 +1,64 @@
+.TH LEX 1 
+.SH NAME
+lex \- generator of lexical analysis programs
+.SH SYNOPSIS
+.B lex
+[
+.B \-tvfn
+] [ file ] ...
+.SH DESCRIPTION
+.I Lex
+generates programs to be used in simple lexical analyis of text.
+The input
+.I files
+(standard input default)
+contain regular expressions
+to be searched for, and actions written in C to be executed when
+expressions are found.
+.PP
+A C source program, `lex.yy.c' is generated, to be compiled thus:
+.IP
+cc lex.yy.c \-ll
+.LP
+This program, when run, copies unrecognized portions of
+the input to the output,
+and executes the associated
+C action for each regular expression that is recognized.
+.PP
+The following 
+.I lex
+program converts upper case to lower,
+removes blanks at the end of lines,
+and replaces multiple blanks by single blanks.
+.IP ""
+.nf
+.ta \w'[A\-Z] 'u
+%%
+[A\-Z] putchar(yytext[0]+\'a\'\-\'A\');
+[ ]+$
+[ ]+   putchar(\' \');
+.fi
+.PP
+The options have the following meanings.
+.TP
+.B \-t
+Place the result on the standard output instead of in file
+`lex.yy.c'.
+.TP
+.B \-v
+Print a one-line summary of statistics of the generated analyzer.
+.TP
+.B \-n
+Opposite of
+.BR \-v ;
+.B \-n
+is default.
+.TP
+.B \-f
+`Faster' compilation: don't bother to pack
+the resulting tables; limited to small programs.
+.SH "SEE ALSO"
+yacc(1)
+.br
+M. E. Lesk and E. Schmidt,
+.I LEX \- Lexical Analyzer Generator
diff --git a/usr/man/man1/ln.1 b/usr/man/man1/ln.1
new file mode 100644 (file)
index 0000000..4cf4c1a
--- /dev/null
@@ -0,0 +1,33 @@
+.TH LN 1 
+.SH NAME
+ln  \-  make a link
+.SH SYNOPSIS
+.B ln
+name1 [ name2 ]
+.SH DESCRIPTION
+A link is a directory entry referring
+to a file; the same file (together with
+its size, all its protection
+information, etc.)
+may have several links to it.
+There is no way to distinguish a link to a file
+from its original directory entry;
+any changes in the
+file are effective
+independently of the name by which the file is known.
+.PP
+.I Ln
+creates a link to an existing file
+.IR name1 .
+If
+.I name2
+is given, the link has that name;
+otherwise it is placed in the current directory
+and its name is the last component
+of
+.IR name1 .
+.PP
+It is forbidden to link to a directory
+or to link across file systems.
+.SH "SEE ALSO"
+rm(1)
diff --git a/usr/man/man1/look.1 b/usr/man/man1/look.1
new file mode 100644 (file)
index 0000000..e8a3f9a
--- /dev/null
@@ -0,0 +1,44 @@
+.TH LOOK 1 
+.SH NAME
+look \- find lines in a sorted list
+.SH SYNOPSIS
+.B look
+[
+.B \-df
+]
+string
+[ file ]
+.SH DESCRIPTION
+.I Look
+consults a sorted
+.I file
+and prints all lines that begin with
+.IR string .
+It uses binary search.
+.PP
+The options 
+.B d
+and
+.B f
+affect comparisons as in
+.IR  sort (1):
+.TP 4
+.B  d
+`Dictionary' order:
+only letters, digits,
+tabs and blanks participate in comparisons.
+.TP 4
+.B  f
+Fold.
+Upper case letters compare equal to lower case.
+.PP
+If no
+.I file
+is specified,
+.I /usr/dict/words
+is assumed with collating sequence
+.B \-df.
+.SH FILES
+/usr/dict/words
+.SH "SEE ALSO"
+sort(1), grep(1)
diff --git a/usr/man/man1/lookbib.1 b/usr/man/man1/lookbib.1
new file mode 100644 (file)
index 0000000..c782038
--- /dev/null
@@ -0,0 +1 @@
+.so /usr/man/man1/refer.1
diff --git a/usr/man/man1/lpr.1 b/usr/man/man1/lpr.1
new file mode 100644 (file)
index 0000000..bd5956b
--- /dev/null
@@ -0,0 +1,50 @@
+.TH LPR 1 
+.SH NAME
+lpr, vpr \- line printer spooler
+.SH SYNOPSIS
+.B lpr
+[ option ] ... [ file ] ...
+.br
+.B vpr
+[
+.B \-b
+banner ] [ file ] ...
+.SH DESCRIPTION
+.I Lpr 
+causes the
+.I files
+to be queued for printing on a line printer.
+If no files are named, the standard input is read.
+The following options are available:
+.TP
+.B \-r
+Remove the file when it has been queued.
+.TP
+.B \-c
+Copy the file to insulate against changes
+that may happen before printing.
+.TP
+.B \-m
+Report by
+.IR mail (1)
+when printing is complete.
+.TP
+.B \-n
+Do not report by mail.
+This is the default option.
+.PP
+.I Vpr
+is the program used by
+.I lpr
+when the online printer is a Versatec machine
+to insert an identifying
+.I banner
+before the output, strip overstrikes,
+and, where possible, remove blank lines to make
+66-line pages fit on 64 lines.
+.SH FILES
+/usr/lpd/* spool area
+.br
+/usr/bin/vpr for Versatec printer.
+.SH SEE ALSO
+opr(1), lpd(8)
diff --git a/usr/man/man1/ls.1 b/usr/man/man1/ls.1
new file mode 100644 (file)
index 0000000..8dfe64e
--- /dev/null
@@ -0,0 +1,172 @@
+.TH LS 1 
+.SH NAME
+ls  \-  list contents of directory
+.SH SYNOPSIS
+.B ls
+[
+.B \-ltasdrucifg
+] name ...
+.SH DESCRIPTION
+For each directory argument,
+.I ls
+lists the contents of the directory;
+for each file argument,
+.I ls
+repeats its name and any other information requested.
+The output is sorted alphabetically by default.
+When no argument is given, the current directory is listed.
+When several arguments are given,
+the arguments are first sorted appropriately,
+but file arguments appear
+before directories and their contents.
+There are several options:
+.TP
+.B  \-l
+List in long format, giving mode, number of links, owner,
+size in bytes, and time of last modification
+for each file.
+(See below.)
+If the file is a special file the size field will instead contain
+the major and minor device numbers.
+.TP
+.B  \-t
+Sort by time modified (latest first) instead of
+by name, as is normal.
+.TP
+.B  \-a
+List all entries; usually
+.RB ` . '
+and
+.RB ` .. '
+are suppressed.
+.TP
+.B  \-s
+Give size in blocks,
+including indirect blocks, for each entry.
+.TP
+.B  \-d
+If argument is a directory, list only its name, not
+its contents (mostly used with
+.B \-l
+to get status
+on directory).
+.TP
+.B  \-r
+Reverse the order of sort to get reverse alphabetic
+or oldest first as appropriate.
+.TP
+.B  \-u
+Use time of last access instead of last
+modification for sorting
+.RB ( \-t )
+or printing
+.RB ( \-l ).
+.TP
+.B \-c
+Use time of last modification to inode (mode, etc.)
+instead of last modification to file for sorting
+.RB ( \-t )
+or printing
+.RB ( \-l ).
+.TP
+.B  \-i
+Print i-number in first column
+of the report for each file listed.
+.TP
+.B  \-f
+Force each argument to be interpreted as a directory
+and list the name found in each slot.
+This option turns off
+.B "\-l, \-t, \-s,"
+and
+.B \-r,
+and
+turns on
+.B \-a;
+the order is the order in which entries
+appear in the directory.
+.TP
+.B  \-g
+Give group ID instead of owner ID in long listing.
+.PP
+The mode printed under the
+.B \-l
+option contains 11 characters
+which are interpreted
+as follows:
+the first character is
+.TP 3
+.B  d
+if the entry is a directory;
+.br
+.ns
+.TP 3
+.B  b
+if the entry is a block-type special file;
+.br
+.ns
+.TP 3
+.B  c
+if the entry is a character-type special file;
+.br
+.ns
+.TP 3
+.B  \-
+if the entry is a plain file.
+.PP
+The next 9 characters are interpreted
+as three sets of three bits each.
+The first set refers to owner permissions;
+the next to permissions to others in the same user-group;
+and the last to all others.
+Within each set the three characters indicate
+permission respectively to read, to write, or to
+execute the file as a program.
+For a directory, `execute' permission is interpreted
+to mean permission to search the directory
+for a specified file.
+The permissions are indicated as follows:
+.TP 3
+.B  r
+if the file is readable;
+.br
+.ns
+.TP 3
+.B  w
+if the file is writable;
+.br
+.ns
+.TP 3
+.B  x
+if the file is executable;
+.br
+.ns
+.TP 3
+.B  \-
+if the indicated permission is not granted.
+.PP
+The group-execute permission character is given
+as
+.B s
+if the file has set-group-ID mode;
+likewise the user-execute permission character is given
+as
+.B s
+if the file has set-user-ID mode.
+.PP
+The last character of the mode (normally `x' or `\-') is 
+.B t
+if the 1000 bit of the mode is on.
+See
+.IR  chmod (1)
+for the meaning of this mode.
+.PP
+When the sizes of the files in a directory
+are listed, a total count of blocks,
+including indirect blocks is printed.
+.SH FILES
+/etc/passwd to get user ID's for
+`ls \-l'.
+.br
+/etc/group to get group ID's for
+`ls \-g'.
diff --git a/usr/man/man1/make.1 b/usr/man/man1/make.1
new file mode 100644 (file)
index 0000000..ab8ab35
--- /dev/null
@@ -0,0 +1,206 @@
+.TH MAKE 1 
+.SH NAME
+make \- maintain program groups
+.SH SYNOPSIS
+.B make
+[
+.B \-f
+makefile ] [ option ] ...
+file ...
+.SH DESCRIPTION
+.I Make
+executes commands in
+.I makefile
+to update
+one or more target
+.IR names .
+.I Name
+is typically a program.
+If no
+.B \-f
+option is present, `makefile' and `Makefile' are
+tried in order.
+If
+.I makefile
+is `\-', the standard input is taken.
+More than one
+.B \-f
+option may appear
+.PP
+.I Make
+updates a target if it depends on prerequisite files
+that have been modified since the target was last modified,
+or if the target does not exist.
+.PP
+.I Makefile
+contains a sequence of entries that specify dependencies.
+The first line of an entry is a
+blank-separated list of targets, then a colon,
+then a list of prerequisite files.
+Text following a semicolon, and all following lines
+that begin with a tab, are shell commands
+to be executed to update the target.
+.PP
+Sharp and newline surround comments.
+.PP
+The following makefile says that `pgm' depends on two
+files `a.o' and `b.o', and that they in turn depend on
+`.c' files and a common file `incl'.
+.RS 
+.HP
+.PD 0
+.nf
+pgm: a.o b.o
+cc a.o b.o \-lm \-o pgm
+.HP
+a.o: incl a.c
+cc \-c a.c
+.HP
+b.o: incl b.c
+cc \-c b.c
+.fi
+.RE
+.PD
+.PP
+.I Makefile
+entries of the form
+.PP
+.IP
+string1 = string2
+.PP
+are macro definitions.
+Subsequent appearances of 
+.I $(string1)
+are replaced by
+.IR string2 .
+If
+.I string1
+is a single character, the parentheses are optional.
+.PP
+.I Make 
+infers prerequisites for files for which
+.I makefile
+gives no construction commands.
+For example, a
+`.c' file may be inferred as prerequisite for a `.o' file
+and be compiled to produce the `.o' file.
+Thus the preceding example can be done more briefly:
+.RS
+.HP
+.PD 0
+.nf
+pgm: a.o b.o
+cc a.o b.o \-lm \-o pgm
+.HP
+a.o b.o: incl
+.fi
+.RE
+.PD
+.PP
+Prerequisites are inferred according to selected suffixes
+listed as the `prerequisites' for the special name `.SUFFIXES';
+multiple lists accumulate;
+an empty list clears what came before.
+Order is significant; the first possible name for which both
+a file and a rule as described in the next paragraph exist
+is inferred.
+The default list is
+.IP
+\&.SUFFIXES: .out .o .c .e .r .f .y .l .s
+.PP
+The rule to create a file with suffix
+.I s2
+that depends on a similarly named file with suffix
+.I s1
+is specified as an entry
+for the `target'
+.IR s1s2 .
+In such an entry, the special macro $* stands for
+the target name with suffix deleted, $@ for the full target name,
+$< for the complete list of prerequisites,
+and
+$? for the list of prerequisites that are out of date.
+For example, a rule for making
+optimized `.o' files from `.c' files is
+.IP
+\&.c.o: ; cc \-c \-O \-o $@ $*.c
+.PP
+Certain macros are used by the default inference rules
+to communicate optional arguments to
+any resulting compilations.
+In particular, `CFLAGS' is used for
+.I cc
+and 
+.IR f77 (1)
+options, `LFLAGS' and `YFLAGS' for 
+.I lex
+and
+.IR yacc (1)
+options.
+.PP
+Command lines are executed one at a time, each by its
+own shell.
+A line is printed when it is executed unless
+the special target `.SILENT'
+is in 
+.I makefile,
+or the first character of the command is `@'.
+.PP
+Commands returning nonzero status (see
+.IR intro (1))
+cause
+.I make
+to terminate unless
+the special target `.IGNORE' is in
+.I makefile
+or the command begins with
+<tab><hyphen>.
+.PP
+Interrupt and quit cause the target to be deleted
+unless the target depends on the special name `.PRECIOUS'.
+.PP
+Other options:
+.TP
+.B \-i
+Equivalent to the special entry `.IGNORE:'.
+.TP
+.B \-k
+When a command returns nonzero status,
+abandon work on the current entry, but
+continue on branches that do not depend on the current entry.
+.TP
+.B \-n
+Trace and print, but do not execute the commands
+needed to update the targets.
+.TP
+.B \-t
+Touch, i.e. update the modified date of targets, without
+executing any commands.
+.TP
+.B \-r
+Equivalent to an initial special entry `.SUFFIXES:'
+with no list.
+.TP 
+.B \-s
+Equivalent to the special entry
+`.SILENT:'.
+.SH FILES
+makefile, Makefile
+.br
+.SH "SEE ALSO"
+sh(1), touch(1)
+.br
+S. I. Feldman
+.I
+Make \- A Program for Maintaining Computer Programs
+.SH BUGS
+Some commands return nonzero status inappropriately.
+Use
+.B \-i
+to overcome the difficulty.
+.br
+Commands that are directly executed by the shell,
+notably
+.IR  cd (1),
+are ineffectual across newlines in
+.I make.
diff --git a/usr/man/man1/mesg.1 b/usr/man/man1/mesg.1
new file mode 100644 (file)
index 0000000..fa81cb3
--- /dev/null
@@ -0,0 +1,34 @@
+.TH MESG 1 
+.SH NAME
+mesg  \-  permit or deny messages
+.SH SYNOPSIS
+.B mesg
+[
+.B n
+] [
+.B y
+]
+.SH DESCRIPTION
+.I Mesg
+with argument
+.B n
+forbids messages via
+.IR  write (1)
+by revoking non-user
+write permission on the user's terminal.
+.I Mesg
+with argument
+.B y
+reinstates permission.
+All by itself,
+.I mesg
+reports the current state without changing it.
+.SH FILES
+/dev/tty*
+.br
+/dev
+.SH "SEE ALSO"
+write(1)
+.SH DIAGNOSTICS
+Exit status is 0 if messages are receivable,
+1 if not, 2 on error.
diff --git a/usr/man/man1/mkdir.1 b/usr/man/man1/mkdir.1
new file mode 100644 (file)
index 0000000..73b8684
--- /dev/null
@@ -0,0 +1,25 @@
+.TH MKDIR 1 
+.SH NAME
+mkdir  \-  make a directory
+.SH SYNOPSIS
+.B mkdir
+dirname ...
+.SH DESCRIPTION
+.I Mkdir
+creates specified directories
+in mode 777.
+Standard entries,
+.RB ` . ',
+for the directory itself,
+and 
+.BR ` .. '
+for its parent, are made automatically.
+.PP
+.I Mkdir
+requires write permission in the parent directory.
+.SH "SEE ALSO"
+rm(1)
+.SH DIAGNOSTICS
+.I Mkdir
+returns exit code 0 if all directories were successfully made.
+Otherwise it prints a diagnostic and returns nonzero.
diff --git a/usr/man/man1/mkfs.1m b/usr/man/man1/mkfs.1m
new file mode 100644 (file)
index 0000000..69e73fd
--- /dev/null
@@ -0,0 +1,130 @@
+.TH MKFS 1M 
+.SH NAME
+mkfs \- construct a file system
+.SH SYNOPSIS
+.B /etc/mkfs
+special
+proto
+.SH DESCRIPTION
+.I Mkfs
+constructs a file system
+by writing on the special file
+.I special
+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
+If the prototype file cannot be opened and
+its name consists of a string of digits,
+.I mkfs
+builds a file system with a single
+empty directory on it.
+The size of the file system is the value
+of
+.I proto
+interpreted as a decimal number.
+The number of i-nodes is calculated
+as a function of the filsystem size.
+The boot program is left uninitialized.
+.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)
+.SH BUGS
+There should be some way to specify links.
+There should be some way to specify bad blocks.
diff --git a/usr/man/man1/mknod.1m b/usr/man/man1/mknod.1m
new file mode 100644 (file)
index 0000000..36ca9db
--- /dev/null
@@ -0,0 +1,38 @@
+.TH MKNOD 1M 
+.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/man1/mount.1m b/usr/man/man1/mount.1m
new file mode 100644 (file)
index 0000000..1ce2221
--- /dev/null
@@ -0,0 +1,51 @@
+.TH MOUNT 1M 
+.SH NAME
+mount, umount \- mount and dismount file system
+.SH SYNOPSIS
+.B /etc/mount
+[ special name [
+.B \-r
+] ]
+.PP
+.B /etc/umount
+special
+.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 last argument 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
+These commands
+maintain a table of mounted devices.
+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
+.SH "SEE ALSO"
+mount(2),
+mtab(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/man1/mv.1 b/usr/man/man1/mv.1
new file mode 100644 (file)
index 0000000..9b8dbcf
--- /dev/null
@@ -0,0 +1,72 @@
+.TH MV 1 
+.SH NAME
+mv  \-  move or rename files
+.SH SYNOPSIS
+.B mv
+file1 file2
+.PP
+.B mv
+file ... directory
+.SH DESCRIPTION
+.I Mv
+moves (changes the name of)
+.I file1
+to
+.IR file2 .
+.PP
+If
+.I file2
+already exists,
+it is removed before
+.I file1
+is moved.
+If
+.I file2
+has a mode which forbids writing,
+.I mv
+prints the mode (see
+.IR chmod (2))
+and
+reads the standard input to obtain a line;
+if the line begins with
+.B y,
+the move takes place;
+if not,
+.I mv
+exits.
+.PP
+In the second form,
+one or more
+.I files
+are moved to the
+.I directory
+with their original
+file-names.
+.PP
+.I Mv
+refuses to move a file onto itself.
+.SH "SEE ALSO"
+cp(1), chmod(2)
+.SH BUGS
+If
+.I file1
+and
+.I file2
+lie on different file systems,
+.I mv
+must copy the file and delete the original.
+In this case the owner name becomes
+that of the copying process and any
+linking relationship with other files
+is lost.
+.PP
+Directories may only be moved within the same parent
+directory.
+.PP
+.I Mv
+should take
+.B \-f
+flag, like
+.I rm,
+to suppress the question
+if the target exists and is not writable.
diff --git a/usr/man/man1/ncheck.1m b/usr/man/man1/ncheck.1m
new file mode 100644 (file)
index 0000000..7a91b5c
--- /dev/null
@@ -0,0 +1,49 @@
+.TH NCHECK 1M 
+.SH NAME
+ncheck  \-  generate names from i-numbers
+.SH SYNOPSIS
+.B ncheck
+[
+.B \-i
+numbers ]  [
+.B \-a
+] [
+.B \-s
+]  [ filesystem ]
+.SH DESCRIPTION
+.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"
+dcheck(1), icheck(1), sort(1)
+.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/man1/newgrp.1 b/usr/man/man1/newgrp.1
new file mode 100644 (file)
index 0000000..6109b41
--- /dev/null
@@ -0,0 +1,28 @@
+.TH NEWGRP 1 
+.SH NAME
+newgrp \- log in to a new group
+.SH SYNOPSIS
+.B newgrp
+group
+.SH DESCRIPTION
+.I Newgrp
+changes the group identification of its caller,
+analogously to
+.IR  login (1).
+The same person remains logged in,
+and the current directory is unchanged,
+but calculations of access permissions to files are
+performed with respect to the
+new group ID.
+.PP
+A password is demanded if the group has
+a password and the user himself does not.
+.PP
+When most users log in, they
+are members of the group named `other.'
+.I Newgrp
+is known to the shell, which executes it directly without a fork.
+.SH FILES
+/etc/group, /etc/passwd
+.SH "SEE ALSO"
+login(1), group(5)
diff --git a/usr/man/man1/nice.1 b/usr/man/man1/nice.1
new file mode 100644 (file)
index 0000000..2127c05
--- /dev/null
@@ -0,0 +1,48 @@
+.TH NICE 1 
+.SH NAME
+nice, nohup \- run a command at low priority
+.SH SYNOPSIS
+.B nice
+[
+.BI \- number
+]
+command [ arguments ]
+.PP
+.B nohup
+command [ arguments ]
+.SH DESCRIPTION
+.I Nice
+executes
+.I command
+with low scheduling priority.
+If the
+.I number
+argument is present, the priority is incremented (higher
+numbers mean lower priorities) by that amount up to a limit of 20.
+The default
+.I number
+is 10.
+.PP
+The super-user may run commands with
+priority higher than normal
+by using a negative priority,
+e.g. `\-\-10'.
+.PP
+.I Nohup
+executes
+.I command
+immune to hangup and terminate signals from the controlling terminal.
+The priority is incremented by 5.
+.I Nohup
+should be invoked from the shell with `&' in order to 
+prevent it from responding to interrupts by or
+stealing the input from
+the next person who logs in on the same terminal.
+.SH FILES
+nohup.out      standard output and standard error file under
+.I nohup
+.SH "SEE ALSO"
+nice(2)
+.SH DIAGNOSTICS
+.I Nice
+returns the exit status of the subject command.
diff --git a/usr/man/man1/nm.1 b/usr/man/man1/nm.1
new file mode 100644 (file)
index 0000000..8a012b2
--- /dev/null
@@ -0,0 +1,71 @@
+.TH NM 1 
+.SH NAME
+nm  \-  print name list
+.SH SYNOPSIS
+.B nm
+[
+.B \-gnopru
+]
+[ file ... ]
+.SH DESCRIPTION
+.I Nm
+prints the name list (symbol table) of each object
+.I file
+in the argument list.
+If an argument
+is an archive, a listing for each object
+file in the archive will be produced.
+If no
+.I file
+is given, the symbols in
+`a.out'
+are listed.
+.PP
+Each symbol name is preceded by its value (blanks if undefined)
+and one of the letters
+.SM
+.B U
+(undefined),
+.SM
+.B A
+(absolute),
+.SM
+.B  T
+(text segment symbol),
+.SM
+.B D
+(data segment symbol),
+.SM
+.B B
+(bss segment symbol),
+or
+.SM
+.B C
+(common symbol).
+If the symbol is local (non-external) the type letter is in
+lower case.
+The output is sorted alphabetically.
+.PP
+Options are:
+.TP
+.B  \-g
+Print only global (external) symbols.
+.TP
+.B \-n
+Sort numerically rather than alphabetically.
+.TP
+.B  \-o
+Prepend file or archive element name to each
+output line rather than only once.
+.TP
+.B  \-p
+Don't sort; print in symbol-table order.
+.TP
+.B  \-r
+Sort in reverse order.
+.TP
+.B  \-u
+Print only undefined symbols.
+.sh FILES
+.SH SEE ALSO
+ar(1), ar(5), a.out(5)
diff --git a/usr/man/man1/nohup.1 b/usr/man/man1/nohup.1
new file mode 100644 (file)
index 0000000..dd15040
--- /dev/null
@@ -0,0 +1,25 @@
+.TH NOHUP 1 
+.SH NAME
+nohup \- run a command immune to hangups
+.SH SYNOPSIS
+.B nohup
+command [ arguments ]
+.SH DESCRIPTION
+.I Nohup
+executes
+.I command
+with signals 1, 3 and 13
+(hangup, quit and soft kill) ignored.
+The priority of the command is run at
+nice \-5.
+Signal 2 (interrupt) will be ignored if
+the command is run asynchronously
+(with &)
+from the shell.
+If the command whould have had a terminal as standard
+output,
+it is redirected to the file `nohup.out'.
+.SH FILES
+nohup.out      redirected standard output.
+.SH "SEE ALSO"
+nice(1), signal(2)
diff --git a/usr/man/man1/number.1 b/usr/man/man1/number.1
new file mode 100644 (file)
index 0000000..61246bd
--- /dev/null
@@ -0,0 +1,14 @@
+.TH NUMBER 1 
+.SH NAME
+number \- convert Arabic numerals to English
+.SH SYNOPSIS
+.B number
+.SH DESCRIPTION
+.I Number
+copies the standard input to the standard output,
+changing each decimal number to a fully spelled out version.
+Punctuation is added to make the output sound well when
+played through
+.IR speak (1).
+.SH "SEE ALSO"
+speak(1)
diff --git a/usr/man/man1/od.1 b/usr/man/man1/od.1
new file mode 100644 (file)
index 0000000..043ec46
--- /dev/null
@@ -0,0 +1,70 @@
+.TH OD 1 
+.SH NAME
+od  \-  octal dump
+.SH SYNOPSIS
+.B od
+[
+.B \-abcdox
+] [ file ] [ [
+.B +
+]offset[
+.BR ". " "]["
+\fBb\fR ] ]
+.SH DESCRIPTION
+.I Od
+dumps
+.I file
+in
+one or more formats
+as
+selected by the first argument.
+If the first argument is missing,
+.B \-o
+is default.
+The meanings of the format argument characters
+are:
+.TP 3
+.B  b
+Interpret bytes in octal.
+.TP 3
+.B  c
+Interpret bytes in ASCII.
+Certain non-graphic characters appear as C escapes:
+null=\e0,
+backspace=\eb,
+formfeed=\ef,
+newline=\en,
+return=\er,
+tab=\et;
+others appear as 3-digit octal numbers.
+.TP 3
+.B  d
+Interpret words in decimal.
+.TP 3
+.B  o
+Interpret words in octal.
+.TP 3
+.B  x
+Interpret words in hex.
+.PP
+The
+.I file
+argument specifies which file is to be dumped.
+If no file argument is specified,
+the standard input is used.
+.PP
+The offset argument specifies the offset
+in the file where dumping is to commence.
+This argument is normally interpreted
+as octal bytes.
+If `\fB.\fR' is appended, the offset is interpreted in
+decimal.
+If `\fBb\fR' is appended, the offset is interpreted in
+blocks of 512 bytes.
+If the file argument is omitted,
+the offset argument must be preceded 
+.RB ` + '.
+.PP
+Dumping continues until end-of-file.
+.SH "SEE ALSO"
+adb(1)
diff --git a/usr/man/man1/passwd.1 b/usr/man/man1/passwd.1
new file mode 100644 (file)
index 0000000..a7984ae
--- /dev/null
@@ -0,0 +1,30 @@
+.TH PASSWD 1 
+.SH NAME
+passwd \- change login password
+.SH SYNOPSIS
+.B passwd
+[ name ]
+.SH DESCRIPTION
+This command changes (or installs) a password
+associated with the user
+.IR name
+(your own name by default).
+.PP
+The program prompts for the old password and then for the new one.
+The caller must supply both.
+The new password must be typed twice, to forestall mistakes.
+.PP
+New passwords must be at least four characters long if they use
+a sufficiently rich alphabet and at least six characters long
+if monocase.
+These rules are relaxed if you are insistent enough.
+.PP
+Only the owner of the name or the super-user may change a password;
+the owner must prove he knows the old password.
+.SH FILES
+/etc/passwd
+.SH "SEE ALSO"
+login(1), passwd(5), crypt(3)
+.br
+Robert Morris and Ken Thompson,
+.I UNIX password security
diff --git a/usr/man/man1/pr.1 b/usr/man/man1/pr.1
new file mode 100644 (file)
index 0000000..a4fe1a3
--- /dev/null
@@ -0,0 +1,75 @@
+.TH PR 1 
+.SH NAME
+pr  \-  print file
+.SH SYNOPSIS
+.B pr
+[ option ] ...
+[ file ] ...
+.SH DESCRIPTION
+.I Pr
+produces a printed listing of one or more
+.I files.
+The output is separated into pages headed by a date,
+the name of the file or a specified header, and the page number.
+If there are no file arguments,
+.I pr
+prints its standard input.
+.PP
+Options apply to all following files but may be reset
+between files:
+.TP
+.BI \- n
+Produce
+.IR n -column
+output.
+.TP
+.BI + n
+Begin printing with page
+.I  n.
+.TP
+.B  \-h
+Take the next argument as a page header.
+.TP
+.BI \-w n
+For purposes of multi-column output,
+take the width of the page to be
+.I n
+characters instead of the default 72.
+.TP
+.BI \-l n
+Take the length of the page to be
+.I n
+lines instead of the default 66.
+.TP
+.B  \-t
+Do not print the 5-line header or the
+5-line trailer normally supplied for each page.
+.TP
+.BI \-s c
+Separate columns by the single character
+.I c
+instead of by the appropriate amount of white space.
+A missing
+.I c
+is taken to be a tab.
+.TP
+.B  \-m
+Print all
+.I files
+simultaneously,
+each in one column,
+.PP
+Inter-terminal messages via
+.IR write (1)
+are
+forbidden during a
+.IR pr .
+.SH FILES
+/dev/tty?
+to suspend messages.
+.SH "SEE ALSO"
+cat(1)
+.SH DIAGNOSTICS
+There are no diagnostics when
+.I pr
+is printing on a terminal.
diff --git a/usr/man/man1/prof.1 b/usr/man/man1/prof.1
new file mode 100644 (file)
index 0000000..53b3b9a
--- /dev/null
@@ -0,0 +1,85 @@
+.TH PROF 1 
+.SH NAME
+prof \- display profile data
+.SH SYNOPSIS
+.B prof
+[
+.B \-v
+] [
+.B \-a
+] [
+.B \-l
+] [
+.BI \- "low\fR [ \fB\-\fIhigh\fR ]"
+] [ file ]
+.SH DESCRIPTION
+.I Prof
+interprets the file
+.I mon.out
+produced by the
+.I monitor
+subroutine.
+Under default modes,
+the symbol table in the
+named object file
+.I (a.out
+default)
+is read and correlated with the
+.I mon.out
+profile file.
+For each external symbol, the percentage
+of time spent executing between that symbol
+and the next
+is printed (in decreasing order),
+together with the number of times that routine was called
+and the number of milliseconds per call.
+.PP
+If the
+.B \-a
+option is used,
+all symbols are reported rather than
+just external symbols.
+If the
+.B \-l
+option
+is used,
+the output is listed by
+symbol value rather than
+decreasing percentage.
+.PP
+If the
+.B \-v
+option is used,
+all printing is suppressed
+and a graphic version of the profile
+is produced
+on the standard output for display by the
+.IR  plot (1)
+filters.
+The numbers
+.I low
+and 
+.I high,
+by default 0 and 100, cause a selected
+percentage of the profile to be plotted
+with accordingly higher resolution.
+.PP
+In order for the number of calls to a routine to be tallied,
+the
+.B \-p
+option of
+.I cc
+must have been given when the file containing the
+routine was compiled.
+This option also arranges for the
+.I mon.out
+file to be produced automatically.
+.SH FILES
+.ta \w'mon.out  'u
+mon.out        for profile
+.br
+a.out          for namelist
+.SH "SEE ALSO"
+monitor(3), profil(2), cc(1), plot(1)
+.SH BUGS
+Beware of quantization errors.
diff --git a/usr/man/man1/ptx.1 b/usr/man/man1/ptx.1
new file mode 100644 (file)
index 0000000..ccd2e87
--- /dev/null
@@ -0,0 +1,106 @@
+.TH PTX 1
+.SH NAME
+ptx \- permuted index
+.SH SYNOPSIS
+.B ptx
+[ option ] ...
+[ input [ output ] ]
+.SH DESCRIPTION
+.I Ptx
+generates a permuted index to file
+.I input
+on file
+.I output
+(standard input and output default).
+It has three phases: the first does the permutation, generating
+one line for each keyword in an input line.
+The keyword is rotated to the front.
+The permuted file is then
+sorted.
+Finally, the sorted lines are rotated so the keyword
+comes at the middle of the page.
+.I Ptx
+produces output in the form:
+.br
+.IP
+\&.xx "tail" "before keyword" "keyword and after" "head"
+.LP
+where .xx may be an
+.I nroff
+or
+.IR troff (1)
+macro
+for user-defined formatting.
+The
+.I before keyword
+and
+.I keyword and after
+fields incorporate as much of the line as will fit
+around the keyword when it is printed at the middle of the page.
+.I Tail
+and
+.I head,
+at least one of which is an empty string "",
+are wrapped-around pieces small enough to fit
+in the unused space at the opposite end of the line.
+When original text must be discarded, `/' marks the spot.
+.PP
+The following options can be applied:
+.TP
+.BR \-f
+Fold upper and lower case letters for sorting.
+.TP 
+.BR \-t
+Prepare the output for the phototypesetter;
+the default line length is 100 characters.
+.TP 
+.BI \-w " n"
+Use the next argument,
+.I n,
+as the width of the output line.
+The default line length is 72 characters.
+.TP
+.BI \-g " n"
+Use the next argument,
+.I n,
+as the number of characters to allow for each gap
+among the four parts of the line as finally printed.
+The default gap is 3 characters.
+.TP 
+.BR \-o " only"
+Use as keywords only the words given in the \fIonly\fR file.
+.TP 
+.BR \-i " ignore"
+Do not use as keywords any words given in the
+.I
+ignore
+file.
+If the \fB-\fIi\fR and \fB-\fIo\fR options are missing, use /usr/lib/eign
+as the 
+.I
+ignore
+file.
+.TP 
+.BR \-b " break"
+Use the characters in the 
+.I
+break
+file to separate words.
+In any case, tab, newline, and space characters are always used as break characters.
+.TP
+.BR \-r
+Take any leading nonblank characters of each input line to
+be a reference identifier (as to a page or chapter)
+separate from the text of the line.
+Attach that identifier as a 5th field on each output line.
+.PP
+The index for this manual was generated using
+.I ptx.
+.SH FILES
+/bin/sort
+.br
+/usr/lib/eign
+.SH BUGS
+Line length counts do not account for overstriking or
+proportional spacing.
+.br
diff --git a/usr/man/man1/pwd.1 b/usr/man/man1/pwd.1
new file mode 100644 (file)
index 0000000..4962aac
--- /dev/null
@@ -0,0 +1,10 @@
+.TH PWD 1 
+.SH NAME
+pwd \- working directory name
+.SH SYNOPSIS
+.B pwd
+.SH DESCRIPTION
+.I Pwd
+prints the pathname of the working (current) directory.
+.SH "SEE ALSO"
+cd(1)
diff --git a/usr/man/man1/quot.1m b/usr/man/man1/quot.1m
new file mode 100644 (file)
index 0000000..766f878
--- /dev/null
@@ -0,0 +1,37 @@
+.TH QUOT 1M 
+.SH NAME
+quot \- summarize file system ownership
+.SH SYNOPSIS
+.B 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/man1/rc.1 b/usr/man/man1/rc.1
new file mode 100644 (file)
index 0000000..2206be2
--- /dev/null
@@ -0,0 +1,106 @@
+.TH RC 1 
+.SH NAME
+rc \- Ratfor compiler
+.SH SYNOPSIS
+.B rc
+[ option ] [ file ] ...
+.SH DESCRIPTION
+.I Rc
+invokes the Ratfor preprocessor on a set of Ratfor source files.
+It accepts three types of arguments:
+.PP
+Arguments whose names end with `.r' are taken to be
+Ratfor source programs; they are 
+preprocessed into Fortran and compiled.
+Each subroutine or function `name' is placed on a separate file
+.I name.f,
+and its object code is left on
+.IR name.o .
+The main routine is on
+.I MAIN.f
+and
+.I MAIN.o;
+block data subprograms go on
+.I BLOCKDATA?.f
+and
+.IR BLOCKDATA?.o .
+The files resulting from a `.r' file are
+loaded into a single object file
+.I file.o,
+and the intermediate object and Fortran files are removed.
+.PP
+The following flags are interpreted by
+.IR rc .
+See
+.I ld
+and
+.IR  fc (1)
+for other flags.
+.TP 6
+.B  \-c
+Suppresses the loading phase of the compilation,
+as does any error in anything.
+.TP 6
+.B  \-f
+Save Fortran intermediate files.
+This is primarily for debugging.
+.TP 6
+.B  \-r
+Ratfor only; don't try to compile the Fortran.
+This implies
+.B \-f
+and
+.B \-c.
+.TP 6
+.B  \-v
+Don't list intermediate file names while compiling.
+.TP 6
+.B \-C
+Preserve comments in output, and format esthetically (indentation, mostly).
+.TP 6
+.BR \-6 x
+Place continuation character
+.IT x
+in column 6, instead of non-standard convention used
+by
+.IR fc (1).
+.PP
+Arguments whose names end with `.f' are taken to be
+Fortran source programs;
+they are compiled in the normal manner.
+(Only one Fortran routine is allowed in a `.f' file.)
+.PP
+Other arguments
+are taken
+to be either loader flag arguments, or Fortran-compatible
+object programs, typically produced by an earlier
+.I rc
+run,
+or perhaps libraries of Fortran-compatible routines.
+These programs, together with the results of any
+compilations specified, are loaded
+to produce an executable program with name
+.BR a.out .
+.SH FILES
+ratjunk                temporary
+.br
+/usr/fort/fc1  Fortran compiler
+.SH "SEE ALSO"
+B. W. Kernighan,
+.IR "RATFOR \- A preprocessor for a Rational Fortran" ,
+Bell Laboratories CSTR #55, 1977.
+.br
+fc(1) for Fortran flags and error messages
+.br
+ld(1) for loader flags
+.br
+f77(1) for the latest Fortran
+.SH DIAGNOSTICS
+Yes, both from
+.I rc
+itself and from Fortran.
+.SH BUGS
+#define and #include lines in
+`.f' files are not processed.
+.br
+fc(1) is unsupported.
diff --git a/usr/man/man1/rev.1 b/usr/man/man1/rev.1
new file mode 100644 (file)
index 0000000..fdde69c
--- /dev/null
@@ -0,0 +1,11 @@
+.TH REV 1 
+.SH NAME
+rev \- reverse lines of a file
+.SH SYNOPSIS
+.B rev
+[ file ] ...
+.SH DESCRIPTION
+.I Rev
+copies the named files to the standard output,
+reversing the order of characters in every line.
+If no file is specified, the standard input is copied.
diff --git a/usr/man/man1/rm.1 b/usr/man/man1/rm.1
new file mode 100644 (file)
index 0000000..1c3c46c
--- /dev/null
@@ -0,0 +1,63 @@
+.TH RM 1 
+.SH NAME
+rm, rmdir  \- remove (unlink) files
+.SH SYNOPSIS
+.B rm
+[
+.B \-fri
+] file ...
+.PP
+.B rmdir
+dir ...
+.PP
+.SH DESCRIPTION
+.I Rm
+removes the entries for one or more
+files
+from a directory.
+If an entry was the last link to the file, the file
+is destroyed.
+Removal of a file requires write permission in its directory,
+but neither read nor write permission on the file itself.
+.PP
+If a file has no write permission
+and the standard input is a terminal,
+its permissions are printed and a line is read from
+the standard input.
+If that line begins with `y' the file is deleted,
+otherwise the file remains.
+No questions are asked
+when the
+.B \-f
+(force) option is given.
+.PP
+If a designated file is a directory,
+an error comment is printed unless the optional
+argument
+.B \-r
+has been used.
+In that case,
+.I rm
+recursively deletes the
+entire contents of the specified directory,
+and the directory itself.
+.PP
+If the
+.B \-i
+(interactive) option is in effect,
+.I rm
+asks whether to delete each file,
+and, under
+.BR \-r ,
+whether to examine each directory.
+.PP
+.I Rmdir
+removes entries for the named directories,
+which must be empty.
+.SH "SEE ALSO"
+unlink(2)
+.SH DIAGNOSTICS
+Generally self-explanatory.
+It is forbidden to remove the file `..' merely to avoid the
+antisocial consequences of inadvertently doing something like
+`rm \-r .*'.
diff --git a/usr/man/man1/sa.1m b/usr/man/man1/sa.1m
new file mode 100644 (file)
index 0000000..5fcc2f0
--- /dev/null
@@ -0,0 +1,109 @@
+.TH SA 1M 
+.SH NAME
+sa, accton \- system accounting
+.SH SYNOPSIS
+.B sa
+[
+.B \-abcjlnrstuv
+] [ 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 arguemnt 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 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.
+There are zillions 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
+j
+Instead of total minutes time for each category,
+give seconds per call.
+.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
+/usr/adm/acct  raw accounting
+.br
+/usr/adm/savacct       summary
+.br
+/usr/adm/usracct       per-user summary
+.SH "SEE ALSO"
+ac(1), acct(2)
diff --git a/usr/man/man1/sed.1 b/usr/man/man1/sed.1
new file mode 100644 (file)
index 0000000..57f07b6
--- /dev/null
@@ -0,0 +1,296 @@
+.TH SED 1 
+.SH NAME
+sed \- stream editor
+.SH SYNOPSIS
+.B sed
+[
+.B \-n
+]
+[
+.B \-e
+script ] [
+.B \-f
+sfile ] [ file ] ...
+.SH DESCRIPTION
+.I Sed
+copies the named
+.I files
+(standard input default) to the standard output,
+edited according to a script of commands.
+The
+.B \-f
+option causes the script to be taken from file
+.IR sfile ;
+these options accumulate.
+If there is just one
+.B \-e
+option and no
+.BR \-f 's,
+the flag
+.B \-e
+may be omitted.
+The
+.B \-n
+option suppresses the default output.
+.PP
+A script consists of editing commands, one per line,
+of the following form:
+.IP
+[address [, address] ] function [arguments]
+.PP
+In normal operation
+.I sed
+cyclically copies a line of input into a
+.I pattern space
+(unless there is something left after
+a `D' command),
+applies in sequence
+all commands whose
+.I addresses
+select that pattern space,
+and at the end of the script copies the pattern space
+to the standard output (except under
+.BR \-n )
+and deletes the pattern space.
+.PP
+An
+.I address
+is either a decimal number that counts
+input lines cumulatively across files, a `$' that
+addresses the last line of input, or a context address,
+`/regular expression/', in the style of
+.IR ed (1)
+modified thus:
+.IP
+The escape sequence `\en' matches a
+newline embedded in the pattern space.
+.PP
+A command line with no addresses selects every pattern space.
+.PP
+A command line with
+one address selects each pattern space that matches the address.
+.PP
+A command line with
+two addresses selects the inclusive range from the first
+pattern space that matches the first address through
+the next pattern space that matches 
+the second.
+(If the second address is a number less than or equal
+to the line number first selected, only one
+line is selected.)
+Thereafter the process is repeated, looking again for the
+first address.
+.PP
+Editing commands can be applied only to non-selected pattern
+spaces by use of the negation function `!' (below).
+.PP
+In the following list of functions the 
+maximum number of permissible addresses
+for each function is indicated in parentheses.
+.PP
+An argument denoted
+.I text
+consists of one or more lines,
+all but the last of which end with `\e' to hide the
+newline.
+Backslashes in text are treated like backslashes
+in the replacement string of an `s' command,
+and may be used to protect initial blanks and tabs
+against the stripping that is done on
+every script line.
+.PP
+An argument denoted
+.I rfile
+or
+.I wfile
+must terminate the command
+line and must be preceded by exactly one blank.
+Each
+.I wfile
+is created before processing begins.
+There can be at most 10 distinct
+.I wfile
+arguments.
+.TP
+(1)\|a\e
+.br
+.ns
+.TP
+.I text
+.br
+Append.
+Place
+.I text
+on the output before
+reading the next input line.
+.TP
+.RI (2)\|b " label"
+Branch to the `:' command bearing the
+.IR label .
+If
+.I label
+is empty, branch to the end of the script.
+.TP
+(2)\|c\e
+.br
+.ns
+.TP
+.I text
+.br
+Change.
+Delete the pattern space.
+With 0 or 1 address or at the end of a 2-address range, place
+.I text
+on the output.
+Start the next cycle.
+.TP
+(2)\|d
+Delete the pattern space.
+Start the next cycle.
+.TP
+(2)\|D
+Delete the initial segment of the 
+pattern space through the first newline.
+Start the next cycle.
+.TP
+(2)\|g
+Replace the contents of the pattern space
+by the contents of the hold space.
+.TP
+(2)\|G
+Append the contents of the hold space to the pattern space.
+.TP
+(2)\|h
+Replace the contents of the hold space by the contents of the pattern space.
+.TP
+(2)\|H
+Append the contents of the pattern space to the hold space.
+.TP
+(1)\|i\e
+.br
+.ns
+.TP
+.I text
+.br
+Insert.
+Place
+.I text
+on the standard output.
+.TP
+(2)\|n
+Copy the pattern space to the standard output.
+Replace the pattern space with the next line of input.
+.TP
+(2)\|N
+Append the next line of input to the pattern space
+with an embedded newline.
+(The current line number changes.)
+.TP
+(2)\|p
+Print.
+Copy the pattern space to the standard output.
+.TP
+(2)\|P
+Copy the initial segment of the pattern space through
+the first newline to the standard output.
+.TP
+(1)\|q
+Quit.
+Branch to the end of the script.
+Do not start a new cycle.
+.TP
+.RI (2)\|r " rfile"
+Read the contents of
+.IR rfile .
+Place them on the output before reading
+the next input line.
+.TP
+.RI (2)\|s /regular\ expression/replacement/flags
+Substitute the
+.I replacement
+string for instances of the
+.I regular expression
+in the pattern space.
+Any character may be used instead of `/'.
+For a fuller description see
+.IR ed (1).
+.I Flags
+is zero or more of
+.RS
+.TP
+g
+Global.
+Substitute for all nonoverlapping instances of the
+.I regular expression
+rather than just the
+first one.
+.TP
+p
+Print the pattern space if a replacement was made.
+.TP
+.RI w " wfile"
+Write.
+Append the pattern space to
+.I wfile
+if a replacement
+was made.
+.RE
+.TP
+.RI (2)\|t " label"
+Test.
+Branch to the `:' command bearing the
+.I label
+if any
+substitutions have been made since the most recent
+reading of an input line or execution of a `t'.
+If 
+.I label
+is empty, branch to the end of the script.
+.TP
+.RI (2)\|w " wfile"
+Write.
+Append the pattern space to
+.IR wfile .
+.TP
+.RI (2)\|x
+Exchange the contents of the pattern and hold spaces.
+.TP
+.RI (2)\|y /string1/string2/
+Transform.
+Replace all occurrences of characters in
+.I string1
+with the corresponding character in
+.I string2.
+The lengths of
+.I
+string1
+and
+.I string2
+must be equal.
+.TP
+.RI (2)! " function"
+Don't.
+Apply the
+.I function
+(or group, if
+.I function
+is `{') only to lines
+.I not
+selected by the address(es).
+.TP
+.RI (0)\|: " label"
+This command does nothing; it bears a
+.I label
+for `b' and `t' commands to branch to.
+.TP
+(1)\|=
+Place the current line number on the standard output as a line.
+.TP
+(2)\|{
+Execute the following commands through a matching `}'
+only when the pattern space is selected.
+.TP
+(0)\|
+An empty command is ignored.
+.SH SEE ALSO
+ed(1), grep(1), awk(1)
diff --git a/usr/man/man1/sort.1 b/usr/man/man1/sort.1
new file mode 100644 (file)
index 0000000..5b62e72
--- /dev/null
@@ -0,0 +1,176 @@
+.TH SORT 1 
+.SH NAME
+sort \- sort or merge files
+.SH SYNOPSIS
+.B sort
+[
+.if t \fB\-mubdf\&inrt\fIx\fR
+.if n -mubdfinrt\b\b\b\b\b\b\b\b\b_________x
+]
+[ \fB+\fIpos1 \fR [ \fB\-\fIpos2 \fR]
+] ...
+[ 
+.B \-o 
+name ] [
+.B \-T
+directory ] [ name ] ...
+.SH DESCRIPTION
+.I Sort
+sorts
+lines of all the named files together
+and writes the result on
+the standard output.
+The name `\-' means
+the standard input.
+If no input files are named, the standard input is sorted.
+.PP
+The default sort key is an entire line.
+Default ordering is
+lexicographic by bytes in machine
+collating sequence.
+The ordering is affected globally by the following options,
+one or more of which may appear.
+.TP 5
+.B  b
+Ignore leading blanks (spaces and tabs) in field comparisons.
+.TP 5
+.B  d
+`Dictionary' order: only letters, digits and blanks
+are significant in comparisons.
+.TP 5
+.B  f
+Fold upper case
+letters onto lower case.
+.TP 5
+.B  i
+Ignore characters outside the ASCII range 040-0176
+in nonnumeric comparisons.
+.TP 5
+.B  n
+An initial numeric string,
+consisting of optional blanks, optional minus sign,
+and zero or more digits with optional decimal point,
+is sorted by arithmetic value.
+Option
+.B n
+implies option
+.B b.
+.TP 5
+.B  r
+Reverse the sense of comparisons.
+.TP 5
+.BI t x
+`Tab character' separating fields is
+.IR x .
+.PP
+The notation
+.BI + "pos1 " "\-\fIpos2"
+restricts a sort key to a field beginning at
+.I pos1
+and ending just before
+.IR pos2 .
+.I Pos1
+and
+.I pos2
+each have the form
+.IB m . n\fR,
+optionally followed by one or more of the flags
+.B bdf\&inr,
+where
+.I m
+tells a number of fields to skip from the beginning of the line and
+.I n
+tells a number of characters to skip further.
+If any flags are present they override all the global
+ordering options for this key.
+If the
+.B b
+option is in effect
+.I n
+is counted from the first nonblank in the field;
+.B b
+is attached independently to 
+.IR pos2 .
+A missing
+\&\fB.\fIn\fR
+means .0;
+a missing
+.BI \- pos2
+means the end of the line.
+Under the
+.BI \-t x
+option, fields are strings separated by
+.IR x ;
+otherwise fields are
+nonempty nonblank strings separated by blanks.
+.PP
+When there are multiple sort keys, later keys
+are compared only after all earlier keys
+compare equal.
+Lines that otherwise compare equal are ordered
+with all bytes significant.
+.PP
+These option arguments are also understood:
+.TP 5
+.B c
+Check that the input file is sorted according to the ordering rules;
+give no output unless the file is out of sort.
+.TP 5
+.B  m
+Merge only, the input files are already sorted.
+.TP 5
+.B  o
+The next argument is the name of an output file
+to use instead of the standard output.
+This file may be the same as one of the inputs.
+.TP 5
+.B T
+The next argument is the name of a directory in which temporary files
+should be made.
+.TP 5
+.B  u
+Suppress all but one in each
+set of equal lines.
+Ignored bytes
+and bytes outside keys
+do not participate in
+this comparison.
+.PP
+.B Examples.
+Print in alphabetical order all the unique spellings
+in a list of words.
+Capitalized words differ from uncapitalized.
+.PP
+.ti +8
+sort \-u +0f +0 list
+.PP
+Print the password file
+.RI ( passwd (5))
+sorted by user id number (the 3rd colon-separated field).
+.PP
+.ti +8
+sort \-t: +2n /etc/passwd
+.PP
+Print the first instance of each month in an already sorted file
+of (month day) entries.
+The options
+.B \-um
+with just one input file make the choice of a
+unique representative from a set of equal lines predictable.
+.PP
+.ti +8
+sort \-um +0 \-1 dates
+.SH FILES
+/usr/tmp/stm*, /tmp/*  first and second tries for
+temporary files
+.SH "SEE ALSO"
+uniq(1),
+comm(1),
+rev(1),
+join(1)
+.SH DIAGNOSTICS
+Comments and exits with nonzero status for various trouble
+conditions and for disorder discovered under option
+.BR \-c .
+.SH BUGS
+Very long lines are silently truncated.
diff --git a/usr/man/man1/spline.1g b/usr/man/man1/spline.1g
new file mode 100644 (file)
index 0000000..4b0de58
--- /dev/null
@@ -0,0 +1,190 @@
+.TH SPLINE 1G 
+.SH NAME
+spline \- interpolate smooth curve
+.SH SYNOPSIS
+.B spline
+[ option ] ...
+.SH DESCRIPTION
+.I Spline
+takes pairs of numbers from the standard input as abcissas and ordinates
+of a function.
+It produces a similar set, which
+is approximately equally spaced and
+includes the input set, on the standard output.
+The cubic spline output
+(R. W. Hamming,
+.ft I
+Numerical Methods for Scientists and Engineers,
+.ft R
+2nd ed., 349ff)
+has two continuous derivatives,
+and sufficiently many points to look smooth when plotted, for
+example by
+.IR  graph (1).
+.PP
+The following options are recognized,
+each as a separate argument.
+.TP 5
+.B  \-a
+Supply abscissas automatically (they are missing from
+the input); spacing is given by the next
+argument, or is assumed to be 1 if next argument is not a number.
+.TP 5
+.B  \-k
+The constant
+.IR k ""
+used in the boundary value computation
+.IP
+.if n .ig
+.ti +1.5i
+.ds ' \h'-\w'\(fm\(fm'u'
+.EQ
+.nr 99 \n(.s
+.nr 98 \n(.f
+'ps 10
+.ft I
+.ds 11 "y\(fm\(fm
+.nr 11 \w'\*(11'
+.ds 12 "\*'
+.nr 12 \w'\*(12'
+'ps 8
+.ds 13 "\fR0\fP
+.nr 13 \w'\*(13'
+.as 12 \v'18u'\s8\*(13\|\s10\v'-18u'
+'ps 10
+.nr 12 \n(12+\n(13+\w'\s8\|'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|=\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "ky\(fm\(fm
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\*'
+.nr 12 \w'\*(12'
+'ps 8
+.ds 13 "\fR1\fP
+.nr 13 \w'\*(13'
+.as 12 \v'18u'\s8\*(13\|\s10\v'-18u'
+'ps 10
+.nr 12 \n(12+\n(13+\w'\s8\|'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 ",
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "y\(fm\(fm
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\*'
+.nr 12 \w'\*(12'
+'ps 8
+.ds 13 "n
+.nr 13 \w'\*(13'
+.as 12 \v'18u'\s8\*(13\|\s10\v'-18u'
+'ps 10
+.nr 12 \n(12+\n(13+\w'\s8\|'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|=\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\|\|
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "ky\(fm\(fm
+.nr 12 \w'\*(12'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 12 "\*'
+.nr 12 \w'\*(12'
+'ps 8
+.ds 13 "n\|\(mi\|\fR1\fP
+.nr 13 \w'\*(13'
+.as 12 \v'18u'\s8\*(13\|\s10\v'-18u'
+'ps 10
+.nr 12 \n(12+\n(13+\w'\s8\|'
+.as 11 "\*(12
+.nr 11 \w'\*(11'
+.ds 11 \x'0'\fI\*(11\s\n(99\f\n(98
+.ne 78u
+\*(11
+'ps \n(99
+.ft \n(98
+.EN
+..
+.if t .ig
+.ce
+(2nd deriv. at end) = k*(2nd deriv. next to end)
+..
+.IP
+.br
+is set by the next argument.
+By default
+.IR k ""
+= 0.
+.TP 5
+.B  \-n
+Space output points
+so that approximately
+.I n
+intervals occur between the lower and upper
+.I x
+limits.
+(Default
+.I n
+= 100.)
+.TP 5
+.B  \-p
+Make output periodic, i.e. match
+derivatives at ends.
+First and last input values should normally agree.
+.TP 5
+.B  \-x
+Next 
+1 (or 2) arguments are lower (and upper) 
+.I x
+limits.
+Normally these limits are calculated from the data.
+Automatic abcissas start at lower limit
+(default 0).
+.SH "SEE ALSO"
+graph(1)
+.SH DIAGNOSTICS
+When data is not strictly monotone in
+.I x,
+.I spline
+reproduces the input without interpolating extra points.
+.SH BUGS
+A limit of 1000 input points is enforced silently.
diff --git a/usr/man/man1/split.1 b/usr/man/man1/split.1
new file mode 100644 (file)
index 0000000..0e5c682
--- /dev/null
@@ -0,0 +1,35 @@
+.TH SPLIT 1 
+.SH NAME
+split \- split a file into pieces
+.SH SYNOPSIS
+.B split
+[
+.B \-\fIn
+]
+[ file [ name ] ]
+.SH DESCRIPTION
+.I Split
+reads
+.I file
+and writes
+it in
+.IR n -line
+pieces
+(default 1000), as many as necessary,
+onto
+a set of output files.  The name of the first output
+file is
+.I name
+with
+.B aa
+appended, and so on
+lexicographically.
+If no output name is given,
+.B x
+is default.
+.PP
+If no input file is given, or
+if
+.B \-
+is given in its stead,
+then the standard input file is used.
diff --git a/usr/man/man1/strip.1 b/usr/man/man1/strip.1
new file mode 100644 (file)
index 0000000..7e189d5
--- /dev/null
@@ -0,0 +1,25 @@
+.TH STRIP 1 
+.SH NAME
+strip  \-  remove symbols and relocation bits
+.SH SYNOPSIS
+.B strip
+name ...
+.SH DESCRIPTION
+.I Strip
+removes the symbol
+table and relocation bits ordinarily attached to the output
+of the assembler and loader.
+This is useful to save space after a program has been
+debugged.
+.PP
+The effect of
+.I strip
+is the same as use of the
+.B \-s
+option
+of
+.IR ld .
+.SH FILES
+/tmp/stm?      temporary file
+.SH "SEE ALSO"
+ld(1)
diff --git a/usr/man/man1/struct.1 b/usr/man/man1/struct.1
new file mode 100644 (file)
index 0000000..357457a
--- /dev/null
@@ -0,0 +1,110 @@
+.TH STRUCT 1 
+.SH NAME
+struct \- structure Fortran programs
+.SH SYNOPSIS
+.B struct
+[ option ] ...
+file
+.SH DESCRIPTION
+.LP
+.I Struct
+translates the Fortran program specified by
+.I file
+(standard input default)
+into a Ratfor program.
+Wherever possible, Ratfor control constructs
+replace the original Fortran.
+Statement numbers appear only where still necessary.
+Cosmetic changes are made, including changing Hollerith strings
+into quoted strings
+and relational operators into symbols (.e.g. ".GT." into ">").
+The output is appropriately indented.
+.PP
+The following options may occur in any order.
+.TP
+.B  \-s
+Input is accepted in standard format, i.e.
+comments are specified by a c, C, or * in column 1, and continuation lines
+are specified by a nonzero, nonblank character in column 6.
+Normally input is in the form accepted by 
+.IR f77 (1)
+.TP
+.B  \-i
+Do not turn computed goto statements into
+switches.
+(Ratfor does not turn switches back
+into computed goto statements.)
+.TP
+.B  \-a
+Turn sequences of else ifs into a
+non-Ratfor switch of the form
+.IP
+.nf
+.ta 5 7
+switch
+       {       case pred1: code
+               case pred2: code
+               case pred3: code
+               default: code
+       }
+.fi
+.DT
+.IP
+The case predicates are tested in order;
+the code appropriate to only one case is executed.
+This generalized form of switch statement does not
+occur in Ratfor.
+.TP
+.B  \-b
+Generate goto's instead of multilevel break statements.
+.TP
+.B  \-n
+Generate goto's instead of multilevel next statements.
+.TP
+.BI \-t n
+Make
+the nonzero integer
+.I n
+the lowest valued label in the output program
+(default 10).
+.TP
+.BI \-c n
+Increment successive labels
+in the output program
+by the nonzero integer
+.I n
+(default 1).
+.TP
+.BI \-e n
+If 
+.I n
+is 0 (default),
+place code within a loop only if it can
+lead to an iteration of the loop.
+If
+.I n
+is nonzero,
+admit a small code segments to a loop
+if otherwise the loop would have exits to several places including the segment,
+and the segment can be reached only from the loop.
+`Small' is close to, but not equal to, the
+number of statements in the code segment.
+Values of n under 10 are suggested.
+.SH FILES
+/tmp/struct*
+.br
+/usr/lib/struct/*
+.SH SEE ALSO
+f77(1)
+.SH BUGS
+Struct knows Fortran 66 syntax, but not full Fortran 77.
+.br
+If an input Fortran program contains identifiers which
+are reserved words in Ratfor, the structured
+version of the program
+will not be a valid Ratfor program.
+.br
+The labels generated cannot go above 32767.
+.br
+If you get a goto without a target, try
+.B \-e .
diff --git a/usr/man/man1/su.1 b/usr/man/man1/su.1
new file mode 100644 (file)
index 0000000..14646aa
--- /dev/null
@@ -0,0 +1,27 @@
+.TH SU 1 
+.SH NAME
+su  \-  substitute user id temporarily
+.SH SYNOPSIS
+.B su
+[ userid ]
+.SH DESCRIPTION
+.I Su
+demands the password of the specified
+.I userid,
+and if it is given,
+changes to that 
+.I userid
+and invokes the Shell
+.IR sh (1)
+without changing the current directory or the
+user environment (see
+.IR environ (5)).
+The new user ID stays in force until the Shell exits.
+.PP
+If no 
+.I userid
+is specified, `root' is assumed.
+To remind the super-user of his responsibilities,
+the Shell substitutes `#' for its usual prompt.
+.SH "SEE ALSO"
+sh(1)
diff --git a/usr/man/man1/sum.1 b/usr/man/man1/sum.1
new file mode 100644 (file)
index 0000000..58182c3
--- /dev/null
@@ -0,0 +1,19 @@
+.TH SUM 1 
+.SH NAME
+sum \- sum and count blocks in a file
+.SH SYNOPSIS
+.B sum
+file
+.SH DESCRIPTION
+.I Sum
+calculates and prints a 16-bit checksum for the named file,
+and also prints the number of blocks in the file.
+It is typically used to look for bad spots, or
+to validate a file communicated over
+some transmission line.
+.SH "SEE ALSO"
+wc(1)
+.SH DIAGNOSTICS
+`Read error'
+is indistinuishable from end of file on
+most devices; check the block count.
diff --git a/usr/man/man1/sync.1m b/usr/man/man1/sync.1m
new file mode 100644 (file)
index 0000000..350b4a7
--- /dev/null
@@ -0,0 +1,19 @@
+.TH SYNC 1M 
+.SH NAME
+sync \- update the super block
+.SH SYNOPSIS
+.B sync
+.SH DESCRIPTION
+.I Sync
+executes the
+.I sync
+system primitive.
+If the system is to be stopped,
+.I sync
+must be called to insure
+file system integrity.
+See
+.IR sync (2)
+for details.
+.SH "SEE ALSO"
+sync(2), update(8)
diff --git a/usr/man/man1/tail.1 b/usr/man/man1/tail.1
new file mode 100644 (file)
index 0000000..82edce4
--- /dev/null
@@ -0,0 +1,35 @@
+.TH TAIL 1 
+.SH NAME
+tail \- deliver the last part of a file
+.SH SYNOPSIS
+.B tail
+.if t [ \(+-number[\fBlbc\fR] ]
+.if n +\b_number[lbc\b\b\b___]
+[ file ]
+.SH DESCRIPTION
+.I Tail
+copies the named file to the standard output beginning
+at a designated place.
+If no file is named, the standard input is used.
+.PP
+Copying begins at distance
+.I +number
+from the beginning, or
+.I \-number
+from the end of the input.
+.I Number
+is counted in units of lines, blocks or characters,
+according to the appended option
+.B l,
+.B b
+or
+.B c.
+When no units are specified, counting is by lines.
+.SH "SEE ALSO"
+dd(1)
+.SH BUGS
+Tails relative to the end of the file
+are treasured up in a buffer, and thus 
+are limited in length.
+Various kinds of anomalous behavior may happen
+with character special files.
diff --git a/usr/man/man1/tbl.1 b/usr/man/man1/tbl.1
new file mode 100644 (file)
index 0000000..a8b45b7
--- /dev/null
@@ -0,0 +1,215 @@
+.TH TBL 1 
+.SH NAME
+tbl \- format tables for nroff or troff
+.SH SYNOPSIS
+.B tbl
+[ files ] ...
+.SH DESCRIPTION
+.I Tbl
+is a preprocessor for formatting tables for
+.I nroff
+or
+.IR troff (1).
+The input files are copied to the standard output,
+except for lines between .TS and .TE
+command lines, which are assumed to describe tables
+and reformatted.
+Details are given in the reference manual.
+.PP
+As an example, letting \\t represent a tab (which should
+be typed as a genuine tab)
+the input
+.IP ""
+\&.TS
+.nf
+c s s
+c c s
+c c c
+l n n.
+Household Population
+Town\\tHouseholds
+\\tNumber\\tSize
+Bedminster\\t789\\t3.26
+Bernards Twp.\\t3087\\t3.74
+Bernardsville\\t2018\\t3.30
+Bound Brook\\t3425\\t3.04
+Branchburg\\t1644\\t3.49
+Bridgewater\\t7897\\t3.81
+Far Hills\\t240\\t3.19
+\&.TE
+.LP
+.fi
+yields
+.ne 10
+.IP " "
+.TS
+.nr 35 \n(.u
+.nf
+.nr 79 0n
+.nr 80 \n(79
+.nr 40 \n(79
+.nr 38 \n(79+\w!Town!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Bedminster!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Bernards Twp.!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Bernardsville!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Bound Brook!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Branchburg!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Bridgewater!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 38 \n(79+\w!Far Hills!
+.if \n(80<\n(38 .nr 80 \n(38
+.nr 81 \n(80
+.nr 41 \n(80
+.nr 38 \n(80+\w!Number!
+.if \n(81<\n(38 .nr 81 \n(38
+.nr 31 0
+.nr 32 0
+.nr 38 \w!789!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3087!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!2018!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3425!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!1644!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!7897!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!240!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 61 \n(80+\n(31
+.nr 38 \n(61+\n(32
+.if \n(38>\n(81 .nr 81 \n(38
+.if \n(38<\n(81 .nr 61 +(\n(81-\n(38)/2
+.nr 82 \n(81
+.nr 42 \n(81
+.nr 38 \n(81+\w!Size!
+.if \n(82<\n(38 .nr 82 \n(38
+.nr 31 0
+.nr 32 0
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.26!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.74!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.30!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.04!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.49!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.81!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 38 \w!3!
+.if \n(31<\n(38 .nr 31 \n(38
+.nr 38 \w!.19!
+.if \n(32<\n(38 .nr 32 \n(38
+.nr 62 \n(81+\n(31
+.nr 38 \n(62+\n(32
+.if \n(38>\n(82 .nr 82 \n(38
+.if \n(38<\n(82 .nr 62 +(\n(82-\n(38)/2
+.nr 38 \n(79+\w!Household Population!-\n(82
+.if \n(38>0 .nr 38 \n(38/2
+.if \n(38<0 .nr 38 0
+.nr 61 +1*\n(38
+.nr 81 +1*\n(38
+.nr 41 +1*\n(38
+.nr 62 +2*\n(38
+.nr 82 +2*\n(38
+.nr 42 +2*\n(38
+.nr 38 \n(80+\w!Households!-\n(82
+.if \n(38>0 .nr 38 \n(38/1
+.if \n(38<0 .nr 38 0
+.nr 62 +1*\n(38
+.nr 82 +1*\n(38
+.nr 42 +1*\n(38
+.nr 38 1n
+.nr 41 +3*\n(38
+.nr 81 +3*\n(38
+.nr 61 +3*\n(38
+.if n .if \n(61%24>0 .nr 61 +12u
+.nr 42 +6*\n(38
+.nr 82 +6*\n(38
+.nr 62 +6*\n(38
+.if n .if \n(62%24>0 .nr 62 +12u
+.nr TW \n(82
+.fc ! :
+.ta \n(82u 
+\&!:Household Population:!
+.ta \n(80u \n(82u 
+\&\h'|\n(40u'!:Town:!\h'|\n(41u'!:Households:!
+.ta \n(80u \n(81u \n(82u 
+\&\h'|\n(40u'!::!\h'|\n(41u'!:Number:!\h'|\n(42u'!:Size:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Bedminster:!\h'|\n(41u'!:789!\h'|\n(42u'!:3!!.26:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Bernards Twp.:!\h'|\n(41u'!:3087!\h'|\n(42u'!:3!!.74:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Bernardsville:!\h'|\n(41u'!:2018!\h'|\n(42u'!:3!!.30:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Bound Brook:!\h'|\n(41u'!:3425!\h'|\n(42u'!:3!!.04:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Branchburg:!\h'|\n(41u'!:1644!\h'|\n(42u'!:3!!.49:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Bridgewater:!\h'|\n(41u'!:7897!\h'|\n(42u'!:3!!.81:!
+.ta \n(80u \n(61u \n(62u \n(82u 
+\&\h'|\n(40u'!Far Hills:!\h'|\n(41u'!:240!\h'|\n(42u'!:3!!.19:!
+.fc
+.mk ##
+.nr ## -1v
+.if \n(35>0 .fi
+.TE
+.fi
+.PP
+If no arguments are given,
+.I tbl
+reads the standard input,
+so it may be used as a filter.
+When it is used with
+.I eqn
+or
+.I neqn
+the
+.I tbl
+command should be first, to minimize the volume
+of data passed through
+pipes.
+.SH SEE ALSO
+troff(1), eqn(1)
+.br
+M. E. Lesk,
+.I TBL.
diff --git a/usr/man/man1/tc.1 b/usr/man/man1/tc.1
new file mode 100644 (file)
index 0000000..250457e
--- /dev/null
@@ -0,0 +1,86 @@
+.TH TC 1 
+.SH NAME
+tc \- photypesetter simulator
+.SH SYNOPSIS
+.B tc
+[
+.B \-t
+]
+[
+.B \-s\c
+N
+]
+[
+.B \-p\c
+L
+]
+[
+file
+]
+.SH DESCRIPTION
+.I Tc
+interprets its
+input (standard input default)
+as device codes for a Graphic Systems phototypesetter (cat).
+The standard output of
+.I tc
+is intended for a Tektronix 4015 (a 4014 teminal
+with ASCII and APL character sets).
+The sixteen typesetter sizes are mapped into the 4014's
+four sizes;
+the entire TROFF character set is drawn using the 4014's
+character generator,
+using overstruck combinations where necessary.
+Typical usage:
+.IP "" 15
+troff \-t file | tc
+.PP
+At the end of each page
+.I tc
+waits for a newline (empty line) from the keyboard before
+continuing on to the next page.
+In this wait state, the command
+.B e
+will suppress the screen erase before the next page;
+.B s\c
+N will cause the next N pages to be skipped;
+and
+.B !\c
+line will send line to the shell.
+.PP
+The command line options are:
+.TP
+.B  \-t
+Don't wait between pages; for directing output into a file.
+.TP 
+.BR \-s N
+Skip the first N pages.
+.TP 
+.BR \-p L
+Set page length to L.
+L may include the scale factors
+.B p
+(points),
+.B i
+(inches),
+.B c
+(centimeters),
+and
+.B P
+(picas);
+default is picas.
+.TP
+.BI \(fm\- l\ w \(fm
+Multiply the default aspect ratio, 1.5, of a displayed page
+by
+.I l/w.
+.SH "SEE ALSO"
+troff(1),
+plot(1)
+.SH BUGS
+Font distinctions are lost.
+.br
+.I tc's
+character set is limited to ASCII in just one size.
+.br
+The aspect ratio option is unbelievable.
diff --git a/usr/man/man1/tee.1 b/usr/man/man1/tee.1
new file mode 100644 (file)
index 0000000..609a4cb
--- /dev/null
@@ -0,0 +1,24 @@
+.TH TEE 1 
+.SH NAME
+tee \- pipe fitting
+.SH SYNOPSIS
+.B tee
+[
+.B \-i
+] [
+.B \-a
+]
+[ file ] ...
+.SH DESCRIPTION
+.I Tee
+transcribes the standard input to the standard
+output and makes copies in the 
+.I files.
+Option
+.B \-i
+ignores interrupts;
+option
+.B \-a
+causes the output to be appended to the
+.I files
+rather than overwriting them.
diff --git a/usr/man/man1/test.1 b/usr/man/man1/test.1
new file mode 100644 (file)
index 0000000..ae95867
--- /dev/null
@@ -0,0 +1,115 @@
+.TH TEST 1 
+.SH NAME
+test \-  condition command
+.SH SYNOPSIS
+.B test
+expr
+.SH DESCRIPTION
+.I test
+evaluates the expression
+.IR expr ,
+and if its value is true then returns zero exit status; otherwise, a
+non zero exit status is returned.
+.I test
+returns a non zero exit if there are no arguments.
+.PP
+The following primitives are used to construct
+.IR expr .
+.TP 9n
+.BR \-r " file"
+true if the file exists and is readable.
+.TP 
+.BR \-w " file"
+true if the file exists and is writable.
+.TP 
+.BR \-f " file"
+true if the file exists and is not a directory.
+.TP 
+.BR \-d " file"
+true if the file exists exists and is a directory.
+.TP 
+.BR \-s " file"
+true if the file exists and has a size greater than zero.
+.TP 
+.BR \-t " [ fildes ]"
+true if the open file whose file descriptor number is
+.I fildes
+(1 by default)
+is associated with a terminal device.
+.TP 
+.BR \-z " s1"
+true if the length of string
+.I s1
+is zero.
+.TP 
+.BR \-n " s1"
+true if the length of the string
+.I s1
+is nonzero.
+.TP 
+.RB s1 " = " s2
+true
+if the strings
+.I s1
+and
+.I s2
+are equal.
+.TP 
+.RB s1 " != " s2
+true
+if the strings
+.I s1
+and
+.I s2
+are not equal.
+.TP 
+s1
+true if
+.I s1
+is not the null string.
+.TP 
+.RB n1 " \-eq " n2
+true if the integers
+.I n1
+and
+.I n2
+are algebraically equal.
+Any of the comparisons
+.BR \-ne ,
+.BR \-gt ,
+.BR \-ge ,
+.BR \-lt ,
+or
+.BR \-le
+may be used in place of
+.BR \-eq .
+.PP
+These primaries may be combined with the
+following operators:
+.TP 
+.B  !
+unary negation operator
+.TP 
+.B  \-a
+binary
+.I and
+operator
+.TP 
+.B  \-o
+binary
+.I or
+operator
+.TP 
+.BR "( " "expr" " )"
+parentheses for grouping.
+.PP
+.B \-a
+has higher precedence than
+.B \-o.
+Notice that all the operators and flags are separate
+arguments to
+.IR test .
+Notice also that parentheses are meaningful
+to the Shell and must be escaped.
+.SH "SEE ALSO"
+sh(1), find(1)
diff --git a/usr/man/man1/time.1 b/usr/man/man1/time.1
new file mode 100644 (file)
index 0000000..9f7848a
--- /dev/null
@@ -0,0 +1,26 @@
+.TH TIME 1 
+.SH NAME
+time \- time a command
+.SH SYNOPSIS
+.B time
+command
+.SH DESCRIPTION
+The
+given command is executed; after it is complete,
+.I time
+prints the elapsed time during the command, the time
+spent in the system, and the time spent in execution
+of the command.
+Times are reported in seconds.
+.PP
+On a PDP-11, the execution time can depend on what kind of memory
+the program happens to land in;
+the user time in MOS is often half what it is in core.
+.PP
+The times are printed on the diagnostic output stream.
+.SH BUGS
+Elapsed time is accurate to the second,
+while the CPU times are measured
+to the 60th second.
+Thus the sum of the CPU times can be up to a second larger
+than the elapsed time.
diff --git a/usr/man/man1/tk.1 b/usr/man/man1/tk.1
new file mode 100644 (file)
index 0000000..d2ebd72
--- /dev/null
@@ -0,0 +1,60 @@
+.TH TK 1 
+.SH NAME
+tk \- paginator for the Tektronix 4014
+.SH SYNOPSIS
+.B tk
+[
+.B \-t
+]
+[
+.B \-\c
+.I  N
+]
+[
+.B \-p\c
+.I  L
+]
+[
+file
+]
+.SH DESCRIPTION
+The output of
+.I tk
+is intended for a Tektronix 4014 terminal.
+.I Tk
+arranges for 66 lines to fit on the screen,
+divides the screen into
+.I N
+columns,
+and
+contributes an eight space page offset
+in the (default) single-column case.
+Tabs, spaces, and backspaces are collected and plotted
+when necessary.
+Teletype Model 37 half- and reverse-line sequences
+are interpreted and plotted.
+At the end of each page
+.I tk
+waits for a newline (empty line) from the keyboard before
+continuing on to the next page.
+In this wait state, the command
+.BI ! command
+will send the
+.I command
+to the shell.
+.PP
+The command line options are:
+.TP
+.B \-t
+Don't wait between pages; for directing output into a file.
+.PP
+.TP
+.BI \- N
+Divide the screen into \fIN\fR columns and
+wait after the last column.
+.TP
+.BI \-p L
+Set page length to \fIL\fR
+lines.
+.SH SEE ALSO
+pr(1)
diff --git a/usr/man/man1/touch.1 b/usr/man/man1/touch.1
new file mode 100644 (file)
index 0000000..6ec9db2
--- /dev/null
@@ -0,0 +1,22 @@
+.TH TOUCH 1 
+.SH NAME
+touch \- update date last modified of a file
+.SH SYNOPSIS
+.B touch
+[
+.B \-c
+]
+file ...
+.SH DESCRIPTION
+.I Touch
+attempts to set the modified date of each
+.I file.
+This is done by reading a character from the file
+and writing it back.
+.PP
+If a
+.I file
+does not exist,
+an attempt will be made to create it unless the
+.B \-c
+option is specified.
diff --git a/usr/man/man1/tp.1 b/usr/man/man1/tp.1
new file mode 100644 (file)
index 0000000..0b09c27
--- /dev/null
@@ -0,0 +1,165 @@
+.TH TP 1  deprecated
+.SH NAME
+tp \- manipulate tape archive
+.SH SYNOPSIS
+.B tp
+[ key ] [ name ... ]
+.SH DESCRIPTION
+.I Tp
+saves and restores files
+on DECtape or magtape.
+Its actions are controlled by the
+.I key
+argument.
+The 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 or directory
+names specifying which files are to be dumped, restored,
+or listed.
+In all cases, appearance of a directory name refers to
+the files and (recursively) subdirectories of that directory.
+.PP
+The function portion of
+the key is specified by one of the following letters:
+.TP 8
+.B  r
+The named files
+are written
+on the tape.
+If files with the same names
+already exist, they are replaced.
+`Same' is determined by string comparison, so
+`./abc' can never be the same as `/usr/dmr/abc' even
+if `/usr/dmr' is the current directory.
+If no file argument is given, `\fB.\fR' is the default.
+.TP 8
+.B  u
+updates the tape.
+.B u
+is like
+.B r,
+but a file is replaced only if its
+modification date is later than the date stored on the tape;
+that is to say, if it has changed since it was dumped.
+.B u
+is the default command if none is given.
+.TP 8
+.B  d
+deletes the named files from
+the tape.
+At least one name argument must be given.
+This function is not permitted on magtapes.
+.TP 8
+.B  x
+extracts the named files from the tape to the file system.
+The owner and mode are restored.
+If no file argument is given, the entire contents of the
+tape are extracted.
+.TP 8
+.B  t
+lists the names of the specified files.
+If no file argument is given,
+the entire contents of the tape is listed.
+.PP
+The following characters may be used in addition to the letter
+which selects the function desired.
+.TP 10
+.B  m
+Specifies magtape as opposed to DECtape.
+.TP 10
+.B  0,...,7
+This
+modifier selects the drive on which the tape is mounted.
+For DECtape, 
+.B x
+is default; for magtape
+`0' is the default.
+.TP 10
+.B  v
+Normally
+.I tp
+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
+tape entries than just the name.
+.TP 10
+.B  c
+means a fresh dump is being created; the tape directory
+is cleared before beginning.
+Usable only with
+.B r
+and
+.B u.
+This option is assumed with magtape since
+it is impossible to selectively overwrite
+magtape.
+.TP 10
+.B  i
+Errors reading and writing the
+tape are noted, but no action is taken.
+Normally, errors cause a return to the command level.
+.TP 10
+.B f
+Use the first named file, rather than a tape,
+as the archive.
+This option is known to work only with
+.BR x .
+.TP 10
+.B  w
+causes
+.I tp
+to pause before treating each file, type
+the indicative letter and the file name (as with
+.BR v )
+and await the user's response.
+Response
+.B y
+means `yes', so the file is treated.
+Null response
+means `no', and the file does not take part
+in whatever is being done.
+Response
+.B x
+means `exit';
+the
+.I tp
+command terminates immediately.
+In the
+.B x
+function,
+files previously asked about
+have been extracted already.
+With
+.B "r, u,"
+and
+.B d
+no change has been made to the tape.
+.PP
+.SH FILES
+/dev/tap?
+.br
+/dev/mt?
+.SH SEE ALSO
+ar(1), tar(1)
+.SH DIAGNOSTICS
+Several; the non-obvious one is
+`Phase error', which means the file changed after it was selected for
+dumping but before it was dumped.
+.SH BUGS
+A single file with several links to it is treated like several files.
+.PP
+Binary-coded control information makes
+magnetic tapes written by
+.I tp
+difficult to carry to other machines;
+.IR tar (1)
+avoids the problem.
diff --git a/usr/man/man1/tr.1 b/usr/man/man1/tr.1
new file mode 100644 (file)
index 0000000..5850782
--- /dev/null
@@ -0,0 +1,67 @@
+.TH TR 1 
+.SH NAME
+tr \- translate characters
+.SH SYNOPSIS
+.B tr
+[
+.B \-cds
+] [ string1 [ string2 ] ]
+.SH DESCRIPTION
+.I Tr
+copies the standard input to the standard output with 
+substitution or deletion of selected characters.
+Input characters found in 
+.I string1
+are mapped into the corresponding characters of
+.IR string2 .
+When 
+.I string2
+is short it is padded to the length of 
+.I string1
+by duplicating its last character.
+Any combination of the options
+.B \-cds
+may be used:
+.B \-c
+complements the set of characters in
+.I string1
+with respect to the universe of characters
+whose ASCII codes are 01 through 0377 octal;
+.B \-d
+deletes all input characters in
+.I string1;
+.B \-s
+squeezes all strings of repeated output characters that are
+in 
+.I string2
+to single characters.
+.PP
+In either string the notation
+.IB a \- b
+means a range of characters from
+.I a
+to
+.I b
+in increasing ASCII order.
+The character
+`\e' followed by 1, 2 or 3 octal digits stands for the
+character whose ASCII code is given by those digits.
+A `\e' followed by any other character stands
+for that character.
+.PP
+The following example creates a list of all
+the words in `file1' one per line in `file2',
+where a word is taken to be a maximal string of alphabetics.
+The second string is quoted
+to protect `\e' from the Shell.
+012 is the ASCII code for newline.
+.IP
+tr \-cs A\-Za\-z \'\e012\' <file1 >file2
+.SH "SEE ALSO"
+ed(1), ascii(7)
+.SH BUGS
+Won't handle ASCII NUL in
+.I string1
+or
+.I string2;
+always deletes NUL from input.
diff --git a/usr/man/man1/true.1 b/usr/man/man1/true.1
new file mode 100644 (file)
index 0000000..cf41571
--- /dev/null
@@ -0,0 +1,30 @@
+.TH TRUE 1 
+.SH NAME
+true, false \- provide truth values
+.SH SYNOPSIS
+.B true
+.PP
+.B false
+.SH DESCRIPTION
+.I True
+does nothing, successfully.
+.I False
+does nothing, unsuccessfully.
+They are typically used in input to
+.IR  sh (1)
+such as:
+.PP
+       while true
+.br
+       do
+.br
+               command
+.br
+       done
+.SH "SEE ALSO"
+sh(1)
+.SH DIAGNOSTICS
+.I True
+has exit status zero,
+.I false
+nonzero.
diff --git a/usr/man/man1/tsort.1 b/usr/man/man1/tsort.1
new file mode 100644 (file)
index 0000000..3893259
--- /dev/null
@@ -0,0 +1,28 @@
+.TH TSORT 1 
+.SH NAME
+tsort \- topological sort
+.SH SYNOPSIS
+.B tsort
+[ file ]
+.SH DESCRIPTION
+.I Tsort
+produces on the standard output a totally ordered list of items
+consistent with a partial ordering of items
+mentioned in the input
+.IR file .
+If no
+.I file
+is specified, the standard input is understood.
+.PP
+The input consists of pairs of items (nonempty strings)
+separated by blanks.
+Pairs of different items indicate ordering.
+Pairs of identical items indicate presence, but not ordering.
+.SH "SEE ALSO"
+lorder(1)
+.SH DIAGNOSTICS
+Odd data: there is an odd number of fields in the input file.
+.SH BUGS
+Uses a quadratic algorithm;
+not worth fixing for the typical use of ordering
+a library archive file.
diff --git a/usr/man/man1/tty.1 b/usr/man/man1/tty.1
new file mode 100644 (file)
index 0000000..6b60cb2
--- /dev/null
@@ -0,0 +1,10 @@
+.TH TTY 1 
+.SH NAME
+tty \- get terminal name
+.SH SYNOPSIS
+.B tty
+.SH DESCRIPTION
+.I Tty
+prints the pathname of the user's terminal.
+.SH DIAGNOSTICS
+`not a tty' if the standard input file is not a terminal.
diff --git a/usr/man/man1/uniq.1 b/usr/man/man1/uniq.1
new file mode 100644 (file)
index 0000000..ad5439a
--- /dev/null
@@ -0,0 +1,72 @@
+.TH UNIQ 1 
+.SH NAME
+uniq \- report repeated lines in a file
+.SH SYNOPSIS
+.B uniq
+[
+.B \-udc
+[
+.BR + n
+] [
+.BR \- n
+]
+] [ input [ output ] ]
+.SH DESCRIPTION
+.I Uniq
+reads the input
+file comparing adjacent lines.
+In the normal case, the second and succeeding copies
+of repeated lines are
+removed; the remainder is written on the output file.
+Note that repeated lines must be adjacent
+in order to be found;
+see
+.IR  sort (1).
+If the
+.B \-u
+flag is used,
+just the lines that are not repeated
+in the original file are output.
+The
+.B \-d
+option specifies that
+one copy of just the repeated lines is to
+be written.
+The normal mode output is the union of the
+.B \-u
+and
+.B \-d
+mode outputs.
+.PP
+The
+.B \-c
+option supersedes
+.B \-u
+and
+.B \-d
+and generates
+an output report in default style
+but with each line preceded by a count of the
+number of times it occurred.
+.PP
+The
+.I n
+arguments specify skipping an initial portion of each line
+in the comparison:
+.TP 8
+.BI \- n
+The first
+.IR n 
+fields
+together with any blanks before each are ignored.
+A field is defined as a string of non-space, non-tab characters
+separated by tabs and spaces from its neighbors.
+.TP 8
+.BI + n
+The first
+.IR n 
+characters are ignored.
+Fields are skipped before characters.
+.PP
+.SH "SEE ALSO"
+sort(1), comm(1)
diff --git a/usr/man/man1/uudiff.1c b/usr/man/man1/uudiff.1c
new file mode 100644 (file)
index 0000000..269ff8f
--- /dev/null
@@ -0,0 +1,81 @@
+.TH UUDIFF 1C 
+.SH NAME
+uudiff \- directory comparison between machines
+.SH SYNOPSIS
+.B uudiff
+[ -d ]
+local-name remote-name
+.SH DESCRIPTION
+.I Uudiff
+compares the files in the directory
+.I local-name
+and the directory
+.I remote-name,
+(where
+.I remote-name
+may be of the form
+.I system-name!directory-name
+and
+.I system-name
+is a 
+.I uucp
+Unix name).
+It reports (via mail)
+which files are added, deleted, or changed, and provides
+a
+.I diff(1)
+of altered printable files.
+.PP
+If a part of
+.I remote-name
+is omitted
+(either the system or the directory)
+the corresponding part of
+.I local-name
+is used.
+If
+.I local-name
+is a file, rather than a directory,
+.I remote-name
+is also assumed to be a file and the program degenerates into
+.IR diff(1) .
+.PP
+The option
+.B -d
+does not diff altered files; only
+the summary by file names is prepared.
+.SH FILES
+Lots.  Files zz[abcdeglmn]????? are used for scratch space;
+files brought back from the remote machine for
+.I diffing
+are stored (and left around) as
+.I name.?????
+and the final report is left in
+.I uudiff.?????
+(the exact name is reported by mail).
+.SH "SEE ALSO"
+diff(1), uucp(1)
+.SH DIAGNOSTICS
+Almost none.  Anything more serious than misspelling
+.I local-name
+causes unpredictable and obscure results.
+.SH BUGS
+In addition to the standard
+.I uucp
+requirements a hook is needed at the remote
+system, and at present is only installed
+on the systems "research" and "inter".
+.br
+This program is written in shell and should be translated
+to C so it could give diagnostics.
+.br
+Even if "remote-system" is the local system, uudiff
+is subject to delays in uucp traffic.
+.br
+It should probably write the standard output, instead of insisting
+on going into the background.
+.br
+Since checksums are used there is a probability of 1 in 2**32
+of missing differences between files.
+.br
+The ~userid syntax is not recognized.
diff --git a/usr/man/man1/uulog.1c b/usr/man/man1/uulog.1c
new file mode 100644 (file)
index 0000000..63c17b1
--- /dev/null
@@ -0,0 +1,29 @@
+.TH UULOG 1C
+.SH UULOG
+uulog \- uucp user log inquiry
+.SH SYNOPSIS
+.B uulog
+[ option ] ...
+.SH DESCRIPTION
+.I Uulog
+will search through the uucp log file and output
+the requested lines.
+.PP
+The requested lines are specified using one or more of the following
+options:
+.TP
+.BI -s sys
+Output lines which have
+.I sys
+as a prefix to the system name;
+.TP
+.BI -u user
+Output lines which have
+.I user
+as a prefix to the user who requested the work.
+.SH FILES
+/usr/uucp/spool - spool directory
+.br
+/usr/uucp/spool/LOGFILE
+.SH SEE ALSO
+uucp(1), uux(1)
diff --git a/usr/man/man1/wait.1 b/usr/man/man1/wait.1
new file mode 100644 (file)
index 0000000..16e92f2
--- /dev/null
@@ -0,0 +1,24 @@
+.TH WAIT 1 
+.SH NAME
+wait \- await completion of process
+.SH SYNOPSIS
+.B wait
+.SH DESCRIPTION
+Wait until all processes started with
+.B &
+have completed,
+and report on abnormal terminations.
+.PP
+Because the
+.IR  wait (2)
+system call
+must be executed in the parent process,
+the Shell itself executes
+.I wait,
+without creating a new process.
+.SH "SEE ALSO"
+sh(1)
+.SH BUGS
+Not all the processes of a 3- or more-stage
+pipeline are children of the Shell, and
+thus can't be waited for.
diff --git a/usr/man/man1/wall.1m b/usr/man/man1/wall.1m
new file mode 100644 (file)
index 0000000..b8fa2dc
--- /dev/null
@@ -0,0 +1,24 @@
+.TH WALL 1M 
+.SH NAME
+wall  \-  write to all users
+.SH SYNOPSIS
+.B /etc/wall
+.SH DESCRIPTION
+.I Wall
+reads its standard input until an end-of-file.
+It then sends this message,
+preceded by
+`Broadcast Message ...',
+to all logged in users.
+.PP
+The sender should be super-user to override
+any protections the users may have invoked.
+.SH FILES
+/dev/tty?
+.br
+/etc/utmp
+.SH "SEE ALSO"
+mesg(1), write(1)
+.SH DIAGNOSTICS
+`Cannot send to ...' when the open on
+a user's tty file fails.
diff --git a/usr/man/man1/wc.1 b/usr/man/man1/wc.1
new file mode 100644 (file)
index 0000000..7363fcf
--- /dev/null
@@ -0,0 +1,23 @@
+.TH WC 1 
+.SH NAME
+wc \- word count
+.SH SYNOPSIS
+.B wc
+[
+.B \-lwc
+]
+[ name ... ]
+.SH DESCRIPTION
+.I Wc
+counts lines, words and characters in the named files,
+or in the standard input if no name appears.
+A word is a maximal string of characters
+delimited by spaces, tabs or newlines.
+.PP
+If the optional argument is present,
+just the specified counts (lines, words or characters)
+are selected by the letters
+.BR l ,
+.BR w ,
+or
+.BR c .
diff --git a/usr/man/man1/who.1 b/usr/man/man1/who.1
new file mode 100644 (file)
index 0000000..87bb284
--- /dev/null
@@ -0,0 +1,43 @@
+.TH WHO 1 
+.SH NAME
+who  \-  who is on the system
+.SH SYNOPSIS
+.B who
+[ who-file ] [
+.B "am I"
+]
+.SH DESCRIPTION
+.I Who,
+without an argument,
+lists the login name, terminal name, and login time
+for each current UNIX user.
+.PP
+Without an argument,
+.I who
+examines the /etc/utmp
+file to obtain its information.
+If a file is given, that file is examined.
+Typically the given file will be /usr/adm/wtmp,
+which contains a record of all the logins since it
+was created.
+Then
+.I who
+lists
+logins, logouts, and crashes since the creation of
+the wtmp file.
+Each login is listed with user name,
+terminal name (with `/dev/'
+suppressed),
+and date and time.
+When an argument is given, logouts produce a similar line without a user name.
+Reboots produce a line with `x' in the place of the device name,
+and a fossil time indicative of when the system went down.
+.PP
+With two arguments,
+as in `who am I' (and also `who are you'),
+.I who
+tells who you are logged in as.
+.SH FILES
+/etc/utmp
+.SH "SEE ALSO"
+getuid(2), utmp(5)
diff --git a/usr/man/man1/write.1 b/usr/man/man1/write.1
new file mode 100644 (file)
index 0000000..2678371
--- /dev/null
@@ -0,0 +1,61 @@
+.TH WRITE 1 
+.SH NAME
+write  \-  write to another user
+.SH SYNOPSIS
+.B write
+user [ ttyname ]
+.SH DESCRIPTION
+.I Write
+copies lines from your terminal to that of
+another user.
+When first called,
+it sends the message
+.PP
+     Message from yourname yourttyname...
+.PP
+The recipient of the message should write back at this point.
+Communication continues until an end of file is
+read from the terminal or an interrupt is sent.
+At that point
+.I write
+writes `EOT' on the other terminal and exits.
+.PP
+If you want to write to a user who is logged in more than once,
+the
+.I ttyname
+argument may be used to indicate the
+appropriate terminal name.
+.PP
+Permission to write may be denied or granted by use of the
+.I mesg
+command.
+At the outset writing is allowed.
+Certain commands, in particular
+.I nroff
+and
+.IR  pr (1)
+disallow
+messages in order to prevent messy output.
+.PP
+If the character `!' is found at the beginning of a line,
+.I write
+calls the shell
+to execute the rest of the
+line as a command.
+.PP
+The following protocol is suggested for using
+.IR write :
+when you first write to another user, wait for him to
+write back before starting to send.
+Each party should end each message with a distinctive
+signal\(em\fB(o)\fR
+for `over' is conventional\(emthat the other may reply.
+.B (oo)
+for `over and out' is suggested when conversation
+is about to be terminated.
+.SH FILES
+/etc/utmp      to find user
+.br
+/bin/sh                to execute `!'
+.SH "SEE ALSO"
+mesg(1), who(1), mail(1)
diff --git a/usr/man/man1/yacc.1 b/usr/man/man1/yacc.1
new file mode 100644 (file)
index 0000000..f4e69dc
--- /dev/null
@@ -0,0 +1,88 @@
+.TH YACC 1 
+.SH NAME
+yacc \- yet another compiler-compiler
+.SH SYNOPSIS
+.B yacc
+[
+.B \-vd
+]
+grammar
+.SH DESCRIPTION
+.I Yacc
+converts a context-free grammar into a set of
+tables for a simple automaton which executes an LR(1) parsing
+algorithm.
+The grammar may be ambiguous;
+specified precedence rules are used to break ambiguities.
+.PP
+The output file,
+.IR y.tab.c ,
+must be compiled by the C compiler
+to produce a program
+.IR yyparse .
+This program must be loaded with the lexical analyzer program,
+.IR yylex ,
+as well as
+.I main
+and
+.IR yyerror ,
+an error handling routine.
+These routines must be supplied by the user;
+.IR Lex (1)
+is useful for creating lexical analyzers usable by
+.IR yacc .
+.PP
+If the
+.B \-v
+flag is given, the file
+.I y.output
+is prepared, which contains a description of the parsing tables
+and a report on
+conflicts generated by ambiguities in the grammar.
+.PP
+If the \-\fBd\fR flag is used, the file
+.I y.tab.h
+is generated with the
+.I define
+statements that associate the
+.I yacc\c
+-assigned `token codes' with the user-declared `token names'.
+This allows source files other than
+.I y.tab.c
+to access the token codes.
+.SH FILES
+.ta \w'yacc.tmp, yacc.acts 'u
+y.output
+.br
+y.tab.c
+.br
+y.tab.h        defines for token names
+.br
+yacc.tmp, yacc.acts    temporary files
+.br
+/usr/lib/yaccpar       parser prototype for C programs
+.br
+/lib/liby.a    library with default `main' and `yyerror'
+.SH "SEE ALSO"
+.IR lex (1)
+.br
+.I "LR Parsing"
+by A. V. Aho and S. C. Johnson,
+Computing Surveys, June, 1974.
+.br
+.I "YACC \- Yet Another Compiler Compiler"
+by S. C. Johnson.
+.SH DIAGNOSTICS
+The number of reduce-reduce and shift-reduce conflicts
+is reported on the standard output;
+a more detailed report is
+found in the
+.I y.output
+file.
+Similarly, if some rules are not reachable from the
+start symbol, this is also reported.
+.SH BUGS
+Because file names are fixed, at most one
+.I yacc
+process can be active in a given directory at
+a time.