Added man sources from 2.11bsd tape.
This commit is contained in:
+1
-1
@@ -819,7 +819,7 @@ file /share/man/cat8/reboot.0
|
||||
file /share/man/cat8/renice.0
|
||||
file /share/man/cat8/shutdown.0
|
||||
file /share/man/cat8/sysctl.0
|
||||
file /share/man/cat8/talloc.0
|
||||
#file /share/man/cat8/talloc.0
|
||||
file /share/man/cat8/umount.0
|
||||
file /share/man/cat8/update.0
|
||||
file /share/man/cat8/vipw.0
|
||||
|
||||
@@ -32,7 +32,7 @@ depend: ${SRCS}
|
||||
|
||||
install: all
|
||||
install -m 755 $(BIN) ${DESTDIR}/sbin
|
||||
install -m 755 $(MAN) ${DESTDIR}/share/man/cat8
|
||||
cp $(MAN) ${DESTDIR}/share/man/cat8
|
||||
|
||||
lint: ${SRCS}
|
||||
lint -hax ${SRCS}
|
||||
|
||||
@@ -32,7 +32,7 @@ depend: ${SRCS}
|
||||
|
||||
install: all
|
||||
install -m 755 $(BIN) ${DESTDIR}/sbin
|
||||
install -m 755 $(MAN) ${DESTDIR}/share/man/cat8
|
||||
# cp $(MAN) ${DESTDIR}/share/man/cat8
|
||||
|
||||
lint: ${SRCS}
|
||||
lint -hax ${SRCS}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# Copyright (c) 1987 Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted
|
||||
# provided that the above copyright notice and this paragraph are
|
||||
# duplicated in all such forms and that any documentation,
|
||||
# advertising materials, and other materials related to such
|
||||
# distribution and use acknowledge that the software was developed
|
||||
# by the University of California, Berkeley. The name of the
|
||||
# University may not be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile 5.3 (Berkeley) 7/9/88
|
||||
#
|
||||
DIRS= man1 man2 man3 man3f man4 man5 man6 \
|
||||
man7 man8
|
||||
CDIRS= cat1 cat2 cat3 cat3f cat4 cat5 cat6 \
|
||||
cat7 cat8
|
||||
LCDIRS= cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8
|
||||
|
||||
all: scriptinstall FRC
|
||||
for i in ${DIRS}; do \
|
||||
(cd $$i; echo "Starting $$i"; make ${MFLAGS}); \
|
||||
done
|
||||
|
||||
scriptinstall: FRC
|
||||
install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed
|
||||
install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff
|
||||
|
||||
install: FRC
|
||||
for i in ${DIRS}; do \
|
||||
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
|
||||
done
|
||||
cp /dev/null whatis_tmp
|
||||
for dirext in /usr/man/cat* ; do \
|
||||
echo $$dirext; \
|
||||
for file in `find $$dirext -type f -name '*.0' -print`; do \
|
||||
sed -n -f /usr/man/makewhatis.sed $$file; \
|
||||
done >> whatis_tmp; \
|
||||
done
|
||||
sort -u whatis_tmp > whatis.db
|
||||
-rm -f whatis_tmp
|
||||
install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis
|
||||
install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template
|
||||
|
||||
clean: FRC
|
||||
for i in ${DIRS}; do \
|
||||
(cd $$i; make ${MFLAGS} clean); \
|
||||
done
|
||||
rm -f whatis_tmp whatis.db
|
||||
|
||||
depend:
|
||||
lint:
|
||||
tags:
|
||||
FRC:
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# Copyright (c) 1988 Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted
|
||||
# provided that the above copyright notice and this paragraph are
|
||||
# duplicated in all such forms and that any documentation,
|
||||
# advertising materials, and other materials related to such
|
||||
# distribution and use acknowledge that the software was developed
|
||||
# by the University of California, Berkeley. The name of the
|
||||
# University may not be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)makewhatis.sed 5.3 (Berkeley) 7/9/88
|
||||
#
|
||||
/(\([a-zA-Z0-9]*\).*UNIX Programmer's Manual/ {
|
||||
s;.*(\([a-zA-Z0-9]*\).*UNIX.*;\1;
|
||||
h
|
||||
d
|
||||
}
|
||||
/^NAME/!d
|
||||
|
||||
:name
|
||||
s;.*;;
|
||||
N
|
||||
s;\n;;
|
||||
# some twits underline the command name
|
||||
s;_;;g
|
||||
/^[^ ]/b print
|
||||
H
|
||||
b name
|
||||
|
||||
:print
|
||||
x
|
||||
s;\n;;g
|
||||
/-/!d
|
||||
s;\([a-z][A-z]\)-[ ][ ]*;\1;
|
||||
s;\([a-zA-Z0-9,]\)[ ][ ]*;\1 ;g
|
||||
s;[^a-zA-Z0-9]*\([a-zA-Z0-9]*\)[^a-zA-Z0-9]*\(.*\) - \(.*\);\2 (\1) - \3;
|
||||
p
|
||||
d
|
||||
@@ -0,0 +1,8 @@
|
||||
.TH NAME SECTION local
|
||||
.SH NAME
|
||||
.SH SYNOPSIS
|
||||
.SH DESCRIPTION
|
||||
.SH FILES
|
||||
.SH SEE ALSO
|
||||
.SH DIAGNOSTICS
|
||||
.SH BUGS
|
||||
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# Copyright (c) 1986 Regents of the University of California.
|
||||
# All rights reserved. The Berkeley software License Agreement
|
||||
# specifies the terms and conditions for redistribution.
|
||||
#
|
||||
# @(#)Makefile 6.2 (Berkeley) 5/15/86
|
||||
#
|
||||
TOCS= toc1 toc2 toc3 toc3f toc4 toc5 toc6 toc7 toc8 \
|
||||
tocx1 tocx2 tocx3 tocx3f tocx4 tocx5 tocx6 tocx7 tocx8
|
||||
MACROS= -msU
|
||||
PRINTER=Pdp
|
||||
TROFF= ditroff -${PRINTER}
|
||||
|
||||
all: title.urm.${PRINTER} preface.${PRINTER} intro.${PRINTER} \
|
||||
toc.${PRINTER} ptx.${PRINTER} title.prm.${PRINTER}
|
||||
lpr -${PRINTER} -n title.urm.${PRINTER}
|
||||
lpr -${PRINTER} -n preface.${PRINTER}
|
||||
lpr -${PRINTER} -n intro.${PRINTER}
|
||||
lpr -${PRINTER} -n toc.${PRINTER}
|
||||
lpr -${PRINTER} -n ptx.${PRINTER}
|
||||
lpr -${PRINTER} -n title.prm.${PRINTER}
|
||||
|
||||
title.urm.${PRINTER}: title.urm
|
||||
${TROFF} -t title.urm >title.urm.${PRINTER}
|
||||
|
||||
preface.${PRINTER}: preface.ms
|
||||
${TROFF} ${MACROS} -t preface.ms >preface.${PRINTER}
|
||||
|
||||
intro.${PRINTER}: intro.ms
|
||||
${TROFF} ${MACROS} -t intro.ms >intro.${PRINTER}
|
||||
|
||||
toc.${PRINTER}: toc.in ptxx
|
||||
${TROFF} -t toc.in >toc.${PRINTER}
|
||||
|
||||
ptx.${PRINTER}: ptx.in ptxx
|
||||
${TROFF} -t ptx.in >ptx.${PRINTER}
|
||||
|
||||
title.prm.${PRINTER}: title.prm ptxx
|
||||
${TROFF} -t title.prm >title.prm.${PRINTER}
|
||||
|
||||
ptxx:
|
||||
tocrc all
|
||||
tocrc t
|
||||
|
||||
clean:
|
||||
rm -f title.urm.[PT]* preface.[PT]* intro.[PT]* toc.[PT]* ptx.[PT]* \
|
||||
title.prm.[PT]* ${TOCS} ptxx *.spell errs Errs make.out
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
;
|
||||
:
|
||||
.
|
||||
,
|
||||
@@ -0,0 +1,54 @@
|
||||
csh(1) alias: shell macros.
|
||||
csh(1) bg: place job in background.
|
||||
csh(1) break: exit while/foreach loop.
|
||||
csh(1) breaksw: exit from switch.
|
||||
csh(1) case: selector in switch.
|
||||
csh(1) cd: change directory.
|
||||
csh(1) chdir: change directory.
|
||||
csh(1) continue: cycle in loop.
|
||||
csh(1) default: catchall clause in switch.
|
||||
csh(1) echo: echo arguments.
|
||||
csh(1) else: alternative commands.
|
||||
csh(1) end: terminate loop.
|
||||
csh(1) endif: terminate conditional.
|
||||
csh(1) endsw: terminate switch.
|
||||
csh(1) eval: re-evaluate shell data.
|
||||
csh(1) exec: overlay shell with specified command.
|
||||
csh(1) exit: leave shell.
|
||||
csh(1) fg: bring job into foreground.
|
||||
csh(1) foreach: loop over list of names.
|
||||
csh(1) glob: filename expand argument list.
|
||||
csh(1) goto: command transfer.
|
||||
csh(1) hashstat: print command hashing statistics.
|
||||
csh(1) history: print history event list.
|
||||
csh(1) if: conditional statement.
|
||||
csh(1) jobs: print current job list.
|
||||
csh(1) kill: kill jobs and processes.
|
||||
csh(1) limit: alter per-process resource limitations.
|
||||
csh(1) login: login new user.
|
||||
csh(1) logout: end session.
|
||||
csh(1) nice: run low priority process.
|
||||
csh(1) nohup: run command immune to hangups.
|
||||
csh(1) notify: request immediate notification.
|
||||
csh(1) onintr: process interrupts in command scripts.
|
||||
csh(1) popd: pop shell directory stack.
|
||||
csh(1) pushd: push shell directory stack.
|
||||
csh(1) rehash: recompute command hash table.
|
||||
csh(1) repeat: execute command repeatedly.
|
||||
csh(1) set: change value of shell variable.
|
||||
csh(1) setenv: set variable in environment.
|
||||
csh(1) shift: manipulate argument list.
|
||||
csh(1) source: read commands from file.
|
||||
csh(1) stop: halt a job or process.
|
||||
csh(1) suspend: suspend a shell, resuming its superior.
|
||||
csh(1) switch: multi-way command branch.
|
||||
csh(1) time: time command.
|
||||
csh(1) umask: change or display file creation mask.
|
||||
csh(1) unalias: remove aliases.
|
||||
csh(1) unhash: discard command hash table.
|
||||
csh(1) unlimit: remove resource limitiations.
|
||||
csh(1) unsetenv: remove environment variables.
|
||||
csh(1) unset: discard shell variables.
|
||||
csh(1) wait: wait for background processes to complete.
|
||||
csh(1) while: repeat commands conditionally.
|
||||
csh(1) @: arithmetic on shell variables.
|
||||
@@ -0,0 +1,99 @@
|
||||
-
|
||||
\-
|
||||
10
|
||||
11
|
||||
16
|
||||
144
|
||||
2
|
||||
201
|
||||
3
|
||||
4014
|
||||
6
|
||||
7
|
||||
77
|
||||
a
|
||||
about
|
||||
across
|
||||
after
|
||||
al
|
||||
al
|
||||
all
|
||||
allow
|
||||
am
|
||||
among
|
||||
an
|
||||
and
|
||||
and/or
|
||||
any
|
||||
another
|
||||
are
|
||||
B
|
||||
back
|
||||
be
|
||||
been
|
||||
between
|
||||
bits
|
||||
by
|
||||
dialect
|
||||
do
|
||||
et
|
||||
extreme
|
||||
facts
|
||||
feeds
|
||||
fitting
|
||||
for
|
||||
from
|
||||
general
|
||||
get
|
||||
has
|
||||
head
|
||||
in
|
||||
integer
|
||||
integers
|
||||
interval
|
||||
into
|
||||
intro
|
||||
is
|
||||
it
|
||||
its
|
||||
knowledge
|
||||
large
|
||||
last
|
||||
later
|
||||
local
|
||||
long
|
||||
low
|
||||
map
|
||||
o
|
||||
of
|
||||
off
|
||||
on
|
||||
or
|
||||
other
|
||||
out
|
||||
package
|
||||
part
|
||||
periodically
|
||||
pieces
|
||||
prejudice
|
||||
problem
|
||||
service
|
||||
simple
|
||||
special
|
||||
system
|
||||
tac
|
||||
that
|
||||
the
|
||||
them
|
||||
they
|
||||
this
|
||||
to
|
||||
toe
|
||||
turn
|
||||
two
|
||||
until
|
||||
way
|
||||
with
|
||||
yet
|
||||
you
|
||||
your
|
||||
@@ -0,0 +1,688 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)intro.ms 6.3 (Berkeley) 5/14/86
|
||||
.\"
|
||||
.de IR
|
||||
\fI\\$1\^\fR\\$2
|
||||
..
|
||||
.de RI
|
||||
\fR\\$1\fI\\$2\^\fR\\$3
|
||||
..
|
||||
.TL
|
||||
INTRODUCTION TO USER'S REFERENCE MANUAL
|
||||
.OH 'Introduction''- % -'
|
||||
.EH '- % -''Introduction'
|
||||
.af % i
|
||||
.pn 6
|
||||
.LP
|
||||
The documentation has been reorganized for 4.3BSD in a format similar
|
||||
to the one used for the Usenix 4.2BSD manuals.
|
||||
It is divided into three sets; each set consists of one or more volumes.
|
||||
The abbreviations for the volume names are listed in square brackets;
|
||||
the abbreviations for the manual sections are listed in parenthesis.
|
||||
.DS
|
||||
I. User's Documents
|
||||
User's Reference Manual [URM]
|
||||
Commands (1)
|
||||
Games (6)
|
||||
Macro packages and language conventions (7)
|
||||
User's Supplementary Documents [USD]
|
||||
Getting Started
|
||||
Basic Utilities
|
||||
Communicating with the World
|
||||
Text Editing
|
||||
Document Preparation
|
||||
Amusements
|
||||
|
||||
II. Programmer's Documents
|
||||
Programmer's Reference Manual [PRM]
|
||||
System calls (2)
|
||||
Subroutines (3)
|
||||
Special files (4)
|
||||
File formats and conventions (5)
|
||||
Programmer's Supplementary Documents, Volume 1 [PS1]
|
||||
Languages in common use
|
||||
General Reference
|
||||
Programming Tools
|
||||
Programming Libraries
|
||||
Programmer's Supplementary Documents, Volume 2 [PS2]
|
||||
Documents of Historic Interest
|
||||
Other Languages
|
||||
Database Management
|
||||
|
||||
III. System Manager's Manual [SMM]
|
||||
Maintenance commands (8)
|
||||
System Installation and Administration
|
||||
Supporting Documentation
|
||||
.DE
|
||||
.LP
|
||||
References to individual documents are given as ``volume:document'',
|
||||
thus USD:1 refers to the first document in the ``User's Supplementary
|
||||
Documents''.
|
||||
References to manual pages are given as ``\fIname\fP(section)'' thus
|
||||
.IR sh (1)
|
||||
refers to the shell manual entry in section 1.
|
||||
.LP
|
||||
The manual pages give descriptions of the publicly available features of the
|
||||
.UX \s-2/32V\s0
|
||||
system, as extended to provide a virtual memory environment
|
||||
and other enhancements at the University of California.
|
||||
They do not attempt to provide perspective or tutorial information about the
|
||||
.UX
|
||||
operating system, its facilities, or its implementation.
|
||||
Various documents on those topics are contained in the
|
||||
``UNIX User's Supplementary Documents'' (USD), the
|
||||
``UNIX Programmer's Supplementary Documents'' (PS1 and PS2),
|
||||
and ``UNIX System Manager's Manual'' (SMM).
|
||||
In particular, for an overview see ``The UNIX Time-Sharing System'' (PS2:1)
|
||||
by Ritchie and Thompson; for a tutorial see
|
||||
``\s8UNIX\s10 for Beginners'' (USD:1) by Kernighan,
|
||||
and for an guide to the new features of this virtual version, see
|
||||
``Berkeley Software Architecture Manual (4.3 Edition)'' (PS1:6).
|
||||
.LP
|
||||
Within the area it surveys, this volume attempts to be timely, complete
|
||||
and concise. Where the latter two objectives conflict,
|
||||
the obvious is often left unsaid in favor of brevity.
|
||||
It is intended that each program be described as it is, not as it should be.
|
||||
Inevitably, this means that various sections will soon be out of date.
|
||||
.LP
|
||||
Commands are programs intended to be invoked directly by
|
||||
the user, in contrast to subroutines, that are
|
||||
intended to be called by the user's programs.
|
||||
User commands are described in URM section 1.
|
||||
Commands generally reside in directory
|
||||
.I /bin
|
||||
(for
|
||||
.IR bin \|ary
|
||||
programs).
|
||||
Some programs also reside in
|
||||
.I
|
||||
/\|usr/\|bin,
|
||||
.R
|
||||
.I
|
||||
/\|usr/\|ucb,
|
||||
.R
|
||||
or
|
||||
.I
|
||||
/\|usr/\|new,
|
||||
.R
|
||||
to save space in
|
||||
.I /\|bin.
|
||||
These directories are searched automatically by the command interpreters.
|
||||
.LP
|
||||
Games have been relegated to URM section 6 and
|
||||
.I
|
||||
/\|usr/\|games,
|
||||
.R
|
||||
to keep them from contaminating
|
||||
the more staid information of URM section 1.
|
||||
.LP
|
||||
Miscellaneous collection of information necessary for
|
||||
writing in various specialized languages such as character codes,
|
||||
macro packages for typesetting, etc is contained in URM section 7.
|
||||
.LP
|
||||
System calls are entries into the
|
||||
.UX
|
||||
supervisor. The system call interface is identical to a C language
|
||||
procedure call; the equivalent C procedures are described in PRM section 2.
|
||||
.LP
|
||||
An assortment of subroutines is available;
|
||||
they are described in PRM section 3.
|
||||
The primary libraries in which they are kept are described in
|
||||
.IR intro (3).
|
||||
The functions are described in terms of C;
|
||||
those that will work with Fortran are described in
|
||||
.IR intro (3f).
|
||||
.LP
|
||||
PRM section 4 discusses the characteristics of
|
||||
each system ``file'' that refers to an I/O device.
|
||||
The names in this section refer to the DEC device names for the hardware,
|
||||
instead of the names of the special files themselves.
|
||||
.LP
|
||||
The file formats and conventions (PRM section 5)
|
||||
documents the structure of particular kinds of files;
|
||||
for example, the form of the output of the loader and
|
||||
assembler is given. Excluded are files used by only one command,
|
||||
for example the assembler's intermediate files.
|
||||
.LP
|
||||
Commands and procedures intended for use primarily by the
|
||||
system administrator are described in SMM section 8.
|
||||
The commands and files described here are almost all kept in the directory
|
||||
.I /\|etc.
|
||||
.LP
|
||||
Each section consists of independent entries of a page or so each.
|
||||
The name of the entry is in the upper corners of its pages,
|
||||
together with the section number, and sometimes a
|
||||
letter characteristic of a subcategory, e.g. graphics is 1G,
|
||||
and the math library is 3M.
|
||||
Entries within each section are alphabetized.
|
||||
except for PRM section 3f which appears after the rest of PRM section 3.
|
||||
The page numbers of each entry start at 1;
|
||||
it is infeasible to number consecutively the pages of
|
||||
a document like this that is republished in many variant forms.
|
||||
.LP
|
||||
All entries are based on a common format;
|
||||
not all subsections always appear.
|
||||
.RS
|
||||
.LP
|
||||
The
|
||||
.I name
|
||||
subsection lists the exact names of the commands and subroutines
|
||||
covered under the entry and gives a short description of their purpose.
|
||||
.LP
|
||||
The
|
||||
.IR synopsis ""
|
||||
summarizes the use of the program being described.
|
||||
A few conventions are used, particularly in the Commands subsection:
|
||||
.LP
|
||||
.RS
|
||||
.B Boldface
|
||||
words are considered literals, and are typed just as they appear.
|
||||
.LP
|
||||
Square brackets [ ] around an argument show that the argument is optional.
|
||||
When an argument is given as ``name'', it always refers to a file name.
|
||||
.LP
|
||||
Ellipses ``.\|.\|.'' are used to show that the previous argument-prototype
|
||||
may be repeated.
|
||||
.LP
|
||||
A final convention is used by the commands themselves.
|
||||
An argument beginning with a minus sign ``\-'' usually means that it is an
|
||||
option-specifying argument, even if it appears in a position where
|
||||
a file name could appear. Therefore, it is unwise to have files whose
|
||||
names begin with ``\-''.
|
||||
.LP
|
||||
.RE
|
||||
The
|
||||
.IR description ""
|
||||
subsection discusses in detail the subject at hand.
|
||||
.LP
|
||||
The
|
||||
.IR files ""
|
||||
subsection gives the names of files that are built into the program.
|
||||
.LP
|
||||
A
|
||||
.I
|
||||
see also
|
||||
.R
|
||||
subsection gives pointers to related information.
|
||||
.LP
|
||||
A
|
||||
.I diagnostics
|
||||
subsection discusses the diagnostic indications that may be produced.
|
||||
Messages that are intended to be self-explanatory are not listed.
|
||||
.LP
|
||||
The
|
||||
.IR bugs ""
|
||||
subsection gives known bugs and sometimes deficiencies.
|
||||
Occasionally the suggested fix is also described.
|
||||
.LP
|
||||
.RE
|
||||
At the beginning of URM is a table of contents,
|
||||
organized by section and alphabetically within each section.
|
||||
There is also a permuted index derived from the table of contents.
|
||||
Within each index entry, the title of the writeup to which
|
||||
it refers is followed by the appropriate section number in parentheses.
|
||||
This fact is important because there is considerable
|
||||
name duplication among the sections, arising principally from commands that
|
||||
exist only to exercise a particular system call.
|
||||
.SH
|
||||
HOW TO GET STARTED
|
||||
.LP
|
||||
This section sketches the basic information you need to get started on UNIX;
|
||||
how to log in and log out, how to communicate through your terminal,
|
||||
and how to run a program.
|
||||
See ``\c
|
||||
.UX
|
||||
for Beginners'' in (USD:1) for a more complete introduction to the system.
|
||||
.LP
|
||||
.I
|
||||
Logging in.\ \
|
||||
.R
|
||||
Almost any ASCII terminal capable of
|
||||
full duplex operation and generating
|
||||
the entire character set can be used.
|
||||
You must have a valid user name,
|
||||
which may be obtained from the system administration.
|
||||
If you will be accessing UNIX remotely, you will also
|
||||
need to obtain the telephone number for the system that you will be using.
|
||||
.LP
|
||||
After a data connection is established,
|
||||
the login procedure depends on what type of terminal you are using
|
||||
and local system conventions.
|
||||
If your terminal is directly connected to the computer,
|
||||
it generally runs at 9600 or 19200 baud.
|
||||
If you are using a modem running over a phone line,
|
||||
the terminal must be set at the speed appropriate for the modem you are using,
|
||||
typically 300, 1200, or 2400 baud.
|
||||
The half/full duplex switch should always be set at full-duplex.
|
||||
(This switch will often have to be changed
|
||||
since many other systems require half-duplex).
|
||||
.LP
|
||||
When a connection is established, the system types ``login:'';
|
||||
you type your user name, followed by the ``return'' key.
|
||||
If you have a password, the system asks for it
|
||||
and suppresses echo to the terminal so the password will not appear.
|
||||
After you have logged in, the ``return'', ``new line'', or ``linefeed'' keys
|
||||
will give exactly the same results.
|
||||
A message-of-the-day usually greets you before your first prompt.
|
||||
.LP
|
||||
If the system types out a few garbage characters
|
||||
after you have established a data connection
|
||||
(the ``login:'' message at the wrong speed),
|
||||
depress the ``break'' (or ``interrupt'') key.
|
||||
This is a speed-independent signal to
|
||||
.UX
|
||||
that a different speed terminal is in use.
|
||||
The system then will type ``login:,'' this time at another speed.
|
||||
Continue depressing the break key until ``login:'' appears clearly,
|
||||
then respond with your user name.
|
||||
.LP
|
||||
For all these terminals, it is important
|
||||
that you type your name in lower-case if possible; if you type
|
||||
upper-case letters,
|
||||
.UX
|
||||
will assume that your terminal cannot generate lower-case
|
||||
letters and will translate all subsequent lower-case letters to upper case.
|
||||
.LP
|
||||
The evidence that you have successfully logged in is that a shell program
|
||||
will type a prompt (``$'' or ``%'') to you.
|
||||
(The shells are described below under ``How to run a program.'')
|
||||
.LP
|
||||
For more information, consult
|
||||
.IR tset (1),
|
||||
and
|
||||
.IR stty (1),
|
||||
which tell how to adjust terminal behavior;
|
||||
.IR getty (8)
|
||||
discusses the login sequence in more detail, and
|
||||
.IR tty (4)
|
||||
discusses terminal I/O.
|
||||
.LP
|
||||
.I
|
||||
Logging out.\ \
|
||||
.R
|
||||
There are three ways to log out:
|
||||
.IP
|
||||
By typing ``logout'' or an end-of-file
|
||||
indication (EOT character, control-D) to the shell.
|
||||
The shell will terminate and the ``login:'' message will appear again.
|
||||
.IP
|
||||
You can log in directly as another user by giving a
|
||||
.IR login (1)
|
||||
command.
|
||||
.IP
|
||||
If worse comes to worse,
|
||||
you can simply hang up the phone; but beware \- some machines may
|
||||
lack the necessary hardware to detect that the phone has been hung up.
|
||||
Ask your system administrator if this is a problem on your machine.
|
||||
.LP
|
||||
.I
|
||||
How to communicate through your terminal.\ \
|
||||
.R
|
||||
When you type characters, a gnome deep in the system
|
||||
gathers your characters and saves them in a secret place.
|
||||
The characters will not be given to a program
|
||||
until you type a return (or newline), as described above in
|
||||
.I
|
||||
Logging in.
|
||||
.R
|
||||
.LP
|
||||
.UX
|
||||
terminal I/O is full-duplex.
|
||||
It has full read-ahead, which means that you can type at any time,
|
||||
even while a program is typing at you.
|
||||
Of course, if you type during output, the printed output will
|
||||
have the input characters interspersed.
|
||||
However, whatever you type will be saved up and interpreted in correct sequence.
|
||||
There is a limit to the amount of read-ahead,
|
||||
but it is generous and not likely to be exceeded unless
|
||||
the system is in trouble.
|
||||
When the read-ahead limit is exceeded, the system
|
||||
throws away all the saved characters (or beeps, if your prompt was a ``%'').
|
||||
.LP
|
||||
The delete (DEL) character in typed input kills all the
|
||||
preceding characters in the line,
|
||||
so typing mistakes can be repaired on a single line.
|
||||
Also, the backspace character (control-H) erases the last character typed.
|
||||
.IR Tset (1)
|
||||
or
|
||||
.IR stty (1)
|
||||
can be used to change these defaults.
|
||||
Successive uses of backspace erases characters back to, but
|
||||
not beyond, the beginning of the line.
|
||||
DEL and backspace can be transmitted to a program by preceding them with ``\e''.
|
||||
(So, to erase ``\e'', you need two backspaces).
|
||||
.LP
|
||||
An
|
||||
.I
|
||||
interrupt signal
|
||||
.R
|
||||
is sent to a program by typing control-C or the ``break'' key
|
||||
which is not passed to programs.
|
||||
This signal generally causes whatever program you are running to terminate.
|
||||
It is typically used to stop a long printout that you do not want.
|
||||
However, programs can arrange either to ignore this signal altogether,
|
||||
or to be notified when it happens (instead of being terminated).
|
||||
The editor, for example, catches interrupts and stops what it is doing,
|
||||
instead of terminating, so that an interrupt can
|
||||
be used to halt an editor printout without losing the file being edited.
|
||||
The interrupt character can also be changed with
|
||||
.IR tset (1)
|
||||
or
|
||||
.IR stty (1).
|
||||
.LP
|
||||
It is also possible to suspend output temporarily using ^S (control-S)
|
||||
and later resume output with ^Q (control-Q).
|
||||
Output can be thrown away without interrupting
|
||||
the program by typing ^O (control-O); see
|
||||
.IR tty (4).
|
||||
.LP
|
||||
The
|
||||
.IR quit ""
|
||||
signal is generated by typing the \s8ASCII\s10 FS character.
|
||||
(FS appears many places on different terminals, most commonly
|
||||
as control-\e or control-\^|\^.)
|
||||
It not only causes a running program to terminate
|
||||
but also generates a file with the core image of the terminated process.
|
||||
Quit is useful for debugging.
|
||||
.LP
|
||||
Besides adapting to the speed of the terminal,
|
||||
.UX
|
||||
tries to be intelligent about whether
|
||||
you have a terminal with the newline function
|
||||
or whether it must be simulated with carriage-return and line-feed.
|
||||
In the latter case, all input carriage returns
|
||||
are turned to newline characters (the standard line delimiter)
|
||||
and both a carriage return and a line feed are echoed to the terminal.
|
||||
If you get into the wrong mode, the
|
||||
.IR reset (1)
|
||||
command will rescue you.
|
||||
If the terminal does not appear to be echoing anything that you type,
|
||||
it may be stuck in ``no-echo'' or ``raw'' mode.
|
||||
Try typing ``(control-J)reset(control-J)'' to recover.
|
||||
.LP
|
||||
Tab characters are used freely in
|
||||
.UX
|
||||
source programs.
|
||||
If your terminal does not have the tab function,
|
||||
you can arrange to have them turned into spaces
|
||||
during output, and echoed as spaces during input.
|
||||
The system assumes that tabs are set every eight columns.
|
||||
Again, the
|
||||
.IR tset (1)
|
||||
or
|
||||
.IR stty (1)
|
||||
command can be used to change these defaults.
|
||||
.IR Tset (1)
|
||||
can be used to set the tab stops automatically when necessary.
|
||||
.LP
|
||||
.I
|
||||
How to run a program; the shells.\ \
|
||||
.R
|
||||
When you have successfully logged in, a program
|
||||
called a shell is listening to your terminal.
|
||||
The shell reads typed-in lines, splits them up
|
||||
into a command name and arguments, and executes the command.
|
||||
A command is simply an executable program.
|
||||
The shell looks in several system directories to find the command. You can also
|
||||
place commands in your own directory and have the shell find them there.
|
||||
There is nothing special about system-provided
|
||||
commands except that they are kept in a directory where the shell can find them.
|
||||
.LP
|
||||
The command name is always the first word on an input line;
|
||||
it and its arguments are separated from one another by spaces.
|
||||
.LP
|
||||
When a program terminates, the shell will ordinarily regain control and type
|
||||
a prompt at you to show that it is ready for another command.
|
||||
.LP
|
||||
The shells have many other capabilities, that are described in detail in
|
||||
sections
|
||||
.IR sh (1)
|
||||
and
|
||||
.IR csh (1).
|
||||
If the shell prompts you with ``$'', then it is an instance of
|
||||
.IR sh (1)
|
||||
the standard shell provided by Bell Labs.
|
||||
If it prompts with ``%'' then it is an instance of
|
||||
.IR csh (1),
|
||||
a shell written at Berkeley.
|
||||
The shells are different for all but the most simple terminal usage.
|
||||
Most users at Berkeley choose
|
||||
.IR csh (1)
|
||||
because of the
|
||||
.I history
|
||||
mechanism and the
|
||||
.I alias
|
||||
feature, that greatly enhance its power when used interactively.
|
||||
.I Csh
|
||||
also supports the job-control facilities;
|
||||
see
|
||||
.IR csh (1)
|
||||
or the Csh introduction in USD:4 for details.
|
||||
.LP
|
||||
You can change from one shell to the other by using the
|
||||
.I chsh (1)
|
||||
command, which takes effect at your next login.
|
||||
.LP
|
||||
.I
|
||||
The current directory.\ \
|
||||
.R
|
||||
.UX
|
||||
has a file system arranged as a hierarchy of directories.
|
||||
When the system administrator gave you a user name,
|
||||
they also created a directory for you (ordinarily
|
||||
with the same name as your user name).
|
||||
When you log in, any file name you type is by default in this directory.
|
||||
Since you are the owner of this directory, you have
|
||||
full permission to read, write, alter, or destroy its contents.
|
||||
Permissions to have your will with other directories
|
||||
and files will have been granted or denied to you by their owners.
|
||||
As a matter of observed fact, few
|
||||
.UX
|
||||
users protect their files from perusal by other users.
|
||||
.LP
|
||||
To change the current directory (but not the set of permissions you
|
||||
were endowed with at login) use
|
||||
.IR cd (1).
|
||||
.LP
|
||||
.I
|
||||
Path names.\ \
|
||||
.R
|
||||
To refer to files not in the current directory, you must use a path name.
|
||||
Full path names begin with ``/\|'', the name of the root directory of the
|
||||
whole file system.
|
||||
After the slash comes the name of each directory containing the next
|
||||
sub-directory (followed by a ``/\|'') until finally the file name is reached.
|
||||
For example,
|
||||
.I
|
||||
/\^usr/\^tmp/\^filex
|
||||
.R
|
||||
refers to the file
|
||||
.I
|
||||
filex
|
||||
.R
|
||||
in the directory
|
||||
.I
|
||||
tmp; tmp
|
||||
.R
|
||||
is itself a subdirectory of
|
||||
.I
|
||||
usr; usr
|
||||
.R
|
||||
springs directly from the root directory.
|
||||
.LP
|
||||
If your current directory has subdirectories,
|
||||
the path names of files therein begin with
|
||||
the name of the subdirectory with no prefixed ``/\|''.
|
||||
.LP
|
||||
A path name may be used anywhere a file name is required.
|
||||
.LP
|
||||
Important commands that modify the contents of files are
|
||||
.IR cp (1),
|
||||
.IR mv (1),
|
||||
and
|
||||
.IR rm (1),
|
||||
which respectively copy, move (i.e. rename) and remove files.
|
||||
To find out the status of files or directories, use
|
||||
.IR ls (1).
|
||||
See
|
||||
.IR mkdir (1)
|
||||
for making directories and
|
||||
.IR rmdir (1)
|
||||
for destroying them.
|
||||
.LP
|
||||
For a fuller discussion of the file system, see
|
||||
``A Fast File System for UNIX'' (SMM:14)
|
||||
by McKusick, Joy, Leffler, and Fabry.
|
||||
It may also be useful to glance through PRM section 2,
|
||||
that discusses system calls, even if you do not intend
|
||||
to deal with the system at that level.
|
||||
.LP
|
||||
.I
|
||||
Writing a program.\ \
|
||||
.R
|
||||
To enter the text of a source program into a
|
||||
.UX
|
||||
file, use the editor
|
||||
.IR ex (1)
|
||||
or its display editing alias
|
||||
.IR vi (1).
|
||||
(The old standard editor
|
||||
.IR ed (1)
|
||||
is also available.)
|
||||
The principal languages in
|
||||
.UX
|
||||
are provided by the C compiler
|
||||
.IR cc (1),
|
||||
the Fortran compiler
|
||||
.IR f77 (1),
|
||||
and its derivatives
|
||||
.IR efl (1)
|
||||
and
|
||||
.IR ratfor (1),
|
||||
the Pascal compiler
|
||||
.IR pc (1),
|
||||
and interpreter
|
||||
.IR pi (1),
|
||||
and the Lisp system
|
||||
.IR lisp (1).
|
||||
User contributed software in the latest
|
||||
release of the system supports
|
||||
APL, B, the Functional Programming language, and Icon.
|
||||
Refer to
|
||||
.IR apl (1),
|
||||
.IR b (1),
|
||||
.IR fp (1),
|
||||
and
|
||||
.IR icon (1),
|
||||
respectively for more information about each.
|
||||
After the program text has been entered through the editor
|
||||
and written to a file, you can give the file
|
||||
to the appropriate language processor as an argument.
|
||||
The output of the language processor
|
||||
will be left on a file in the current directory named ``a.out''.
|
||||
If the output is precious, use
|
||||
.IR mv (1)
|
||||
to move it to a less exposed name after successful compilation.
|
||||
.LP
|
||||
When you have finally gone through this entire process
|
||||
without provoking any diagnostics, the resulting program
|
||||
can be run by giving its name to the shell
|
||||
in response to the shell (``$'' or ``%'') prompt.
|
||||
.LP
|
||||
Your programs can receive arguments from the command line
|
||||
just as system programs do,
|
||||
see ``UNIX Programming - Second Edition'' (PS2:3),
|
||||
or for a more terse description
|
||||
.IR execve (2).
|
||||
.LP
|
||||
.I
|
||||
Text processing.\ \
|
||||
.R
|
||||
Almost all text is entered through the editor
|
||||
.IR ex (1)
|
||||
(often entered via
|
||||
.IR vi (1)).
|
||||
The commands most often used to write text on a terminal are:
|
||||
.IR cat (1),
|
||||
.IR more (1),
|
||||
and
|
||||
.IR nroff (1).
|
||||
.LP
|
||||
The
|
||||
.IR cat (1)
|
||||
command simply dumps \s8ASCII\s10 text
|
||||
on the terminal, with no processing at all.
|
||||
.IR More (1)
|
||||
is useful for preventing the output of a command from
|
||||
scrolling off the top of your screen.
|
||||
It is also well suited to perusing files.
|
||||
.IR Nroff (1)
|
||||
is an elaborate text formatting program.
|
||||
Used naked, it requires careful forethought, but for
|
||||
ordinary documents it has been tamed; see
|
||||
.IR me (7)
|
||||
and
|
||||
.IR ms (7).
|
||||
.LP
|
||||
.IR Troff (1)
|
||||
prepares documents for a Graphics Systems phototypesetter
|
||||
or a Versatec Plotter;
|
||||
it is similar to
|
||||
.IR nroff (1),
|
||||
and often works from exactly the same source text.
|
||||
It was used to produce this manual.
|
||||
.LP
|
||||
.IR Script (1)
|
||||
lets you keep a record of your session in a file,
|
||||
which can then be printed, mailed, etc.
|
||||
It provides the advantages of a hard-copy terminal
|
||||
even when using a display terminal.
|
||||
.LP
|
||||
.I
|
||||
Status inquiries.\ \
|
||||
.R
|
||||
Various commands exist to provide you with useful information.
|
||||
.IR w (1)
|
||||
prints a list of users currently logged in, and what they are doing.
|
||||
.IR date (1)
|
||||
prints the current time and date.
|
||||
.IR ls (1)
|
||||
will list the files in your directory or give
|
||||
summary information about particular files.
|
||||
.LP
|
||||
.I
|
||||
Surprises.\ \
|
||||
.R
|
||||
Certain commands provide inter-user communication.
|
||||
Even if you do not plan to use them, it would be
|
||||
well to learn something about them, because someone else may aim them at you.
|
||||
.LP
|
||||
To communicate with another user currently logged in,
|
||||
.IR write (1)
|
||||
or
|
||||
.IR talk (1)
|
||||
is used;
|
||||
.IR mail (1)
|
||||
will leave a message whose presence will be announced
|
||||
to another user when they next log in.
|
||||
The write-ups in the manual also suggest how to respond to
|
||||
the these commands if you are a target.
|
||||
.LP
|
||||
If you use
|
||||
.IR csh (1)
|
||||
the key ^Z (control-Z) will cause jobs to ``stop''.
|
||||
If this happens before you learn about it,
|
||||
you can simply continue by saying ``fg'' (for foreground) to bring
|
||||
the job back.
|
||||
.SH
|
||||
CONVERTING FROM 4.2BSD SYSTEMS
|
||||
.LP
|
||||
A detailed list of changes from the 4.2BSD to the 4.3BSD distributions
|
||||
is contained in ``Bug Fixes and Changes in 4.3BSD'' (SMM:12),
|
||||
and ``Changes to the Kernel in 4.3BSD'' (SMM:13).
|
||||
Detailed conversion procedures are described in
|
||||
``Installing and Operating 4.3BSD on the VAX'' (SMM:1);
|
||||
it also discusses changes from pre-4.2BSD systems.
|
||||
@@ -0,0 +1,337 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)preface.ms 6.3 (Berkeley) 5/13/86
|
||||
.\"
|
||||
.nr PS 9
|
||||
.nr VS 11
|
||||
.vs 11p
|
||||
.ps 9p
|
||||
.TL
|
||||
PREFACE
|
||||
.OH 'Preface''- % -'
|
||||
.EH '- % -''Preface'
|
||||
.af % i
|
||||
.LP
|
||||
This update to the 4.2 distribution of August 1983 provides
|
||||
substantially improved performance, reliability, and security,
|
||||
the addition of Xerox Network System (NS) to the set of networking domains,
|
||||
and partial support for the VAX 8600 and MICROVAXII.
|
||||
.LP
|
||||
We were greatly assisted by the DEC UNIX Engineering group who
|
||||
provided two full time employees, Miriam Amos and Kevin Dunlap,
|
||||
to work at Berkeley. They were responsible for developing and
|
||||
debugging the distributed domain based name server
|
||||
and integrating it into the mail system.
|
||||
Mt Xinu provided the bug list distribution service as well as
|
||||
donating their MICROVAXII port to 4.3BSD.
|
||||
Drivers for the MICROVAXII were done by Rick Macklem
|
||||
at the University of Guelph.
|
||||
Sam Leffler provided valuable assistance and advice with many projects.
|
||||
Keith Sklower coordinated with William Nesheim and J. Q. Johnson at Cornell,
|
||||
and Chris Torek and James O'Toole at the University of Maryland
|
||||
to do the Xerox Network Systems implementation.
|
||||
Robert Elz at the University of Melbourne contributed greatly
|
||||
to the performance work in the kernel.
|
||||
Donn Seeley and Jay Lepreau at the University of Utah
|
||||
relentlessly dealt with a miriad of details;
|
||||
Donn completed the unfinished performance work on Fortran 77
|
||||
and fixed numerous C compiler bugs.
|
||||
Ralph Campbell handled innumerable questions and problem reports
|
||||
and had time left to write rdist.
|
||||
George Goble was invaluable in shaking out the bugs on his
|
||||
production systems long before we were confident enough to
|
||||
inflict it on our users.
|
||||
Bill Shannon at Sun Microsystems has been helpful in
|
||||
providing us with bug fixes and improvements.
|
||||
Tom Ferrin, in his capacity as Board Member of Usenix Association,
|
||||
handled the logistics of large-scale reproduction
|
||||
of the 4.2BSD and 4.3BSD manuals.
|
||||
Mark Seiden helped with the typesetting and indexing of the 4.3BSD manuals.
|
||||
Special mention goes to Bob Henry for keeping ucbvax running
|
||||
in spite of new and improved software and
|
||||
an ever increasing mail, news, and uucp load.
|
||||
.LP
|
||||
Numerous others contributed their time and energy in creating
|
||||
the user contributed software for the release.
|
||||
As always, we are grateful to the UNIX user community for
|
||||
encouragement and support.
|
||||
.LP
|
||||
Once again, the financial support of the Defense Advanced Research
|
||||
Projects Agency is gratefully acknowledged.
|
||||
.sp 1
|
||||
.in 4i
|
||||
.nf
|
||||
M. K. McKusick
|
||||
M. J. Karels
|
||||
J. M. Bloom
|
||||
.fi
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the 4.2 Berkeley distribution\fP
|
||||
.sp 1
|
||||
This update to the 4.1 distribution of June 1981 provides support
|
||||
for the VAX 11/730, full networking and interprocess communication
|
||||
support, an entirely new file system, and many other new features.
|
||||
It is certainly the most ambitious release of software ever prepared
|
||||
here and represents many man-years of work.
|
||||
Bill Shannon (both at DEC and at Sun Microsystems)
|
||||
and Robert Elz of the University
|
||||
of Melbourne contributed greatly to this distribution
|
||||
through new device drivers and painful debugging episodes.
|
||||
Rob Gurwitz of BBN wrote the initial version of the code upon
|
||||
which the current networking support is based.
|
||||
Eric Allman of Britton-Lee donated countless hours to the mail system.
|
||||
Bill Croft (both at SRI and Sun Microsystems) aided in the
|
||||
debugging and development of the networking facilities.
|
||||
Dennis Ritchie of Bell Laboratories also
|
||||
contributed greatly to this distribution, providing
|
||||
valuable advise and guidance. Helge Skrivervik
|
||||
worked on the device drivers which enabled
|
||||
the distribution to be delivered with a TU58
|
||||
console cassette and RX01 console flopppy disk, and
|
||||
rewrote major portions of the standalone i/o system
|
||||
to support formatting of non-DEC peripherals.
|
||||
.LP
|
||||
Numerous others contributed their time and energy in organizing
|
||||
the user software for release, while many groups of people on
|
||||
campus suffered patiently through the low spots of development.
|
||||
As always, we are grateful to the UNIX user community for
|
||||
encouragement and support.
|
||||
.LP
|
||||
Once again, the financial support of the Defense Advanced Research
|
||||
Projects Agency is gratefully acknowledged.
|
||||
.sp 1
|
||||
.in 4i
|
||||
.nf
|
||||
S. J. Leffler
|
||||
W. N. Joy
|
||||
M. K. McKusick
|
||||
.fi
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the 4.1 Berkeley distribution\fP
|
||||
.sp 1
|
||||
This update to the fourth distribution of November 1980 provides
|
||||
support for the VAX 11/750 and for the full interconnect architecture
|
||||
of the VAX 11/780. Robert Elz of the University of Melbourne contributed
|
||||
greatly to this distribution especially in the boot-time system
|
||||
configuration code; Bill Shannon of DEC supplied us with the
|
||||
implementation of DEC standard bad block handling. The research
|
||||
group at Bell Laboratories and DEC Merrimack provided us with access
|
||||
to 11/750's in order to debug its support.
|
||||
.LP
|
||||
Other individuals too numerous to mention provided us with bug reports,
|
||||
fixes and other enhancements which are reflected in the system. We
|
||||
are grateful to the UNIX user community for encouragement and
|
||||
support.
|
||||
.LP
|
||||
The financial support of the Defence Advanced Research Projects Agency
|
||||
in support of this work is gratefully acknowledged.
|
||||
.sp 1
|
||||
.in 4i
|
||||
.nf
|
||||
W. N. Joy
|
||||
R. S. Fabry
|
||||
K. Sklower
|
||||
.fi
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the Fourth Berkeley distribution\fP
|
||||
.sp 1
|
||||
This manual reflects the Berkeley system mid-October, 1980.
|
||||
A large amount of tuning has been done in the system since the last release;
|
||||
we hope this provides as noticeable an improvement for you as it did for us.
|
||||
This release finds the system in transition; a number of facilities
|
||||
have been added in experimental versions (job control, resource limits)
|
||||
and the implementation of others is imminent (shared-segments, higher
|
||||
performance from the file system, etc.).
|
||||
Applications which use facilities that are in transition should be aware
|
||||
that some of the system calls and library routines will change
|
||||
in the near future. We have tried to be conscientious and make it
|
||||
very clear where this is likely.
|
||||
.LP
|
||||
A new group has been formed
|
||||
at Berkeley, to assume responsibility for the future
|
||||
development and support of a version of UNIX on the VAX.
|
||||
The group has received funding from the
|
||||
Defense Advanced Research Projects Agency (DARPA)
|
||||
to supply a standard version of the system to DARPA contractors.
|
||||
The same version of the system will be made available to other licensees
|
||||
of UNIX on the VAX for a duplication charge.
|
||||
We gratefully acknowledge
|
||||
the support of this contract.
|
||||
.LP
|
||||
We wish to acknowledge the contribution of a number of individuals to
|
||||
the the system.
|
||||
.LP
|
||||
We would especially like to thank
|
||||
Jim Kulp of IIASA,
|
||||
Laxenburg Austria and his colleagues,
|
||||
who first put job control facilities into UNIX;
|
||||
Eric Allman, Robert Henry, Peter Kessler and Kirk McKusick, who
|
||||
contributed major new pieces of software;
|
||||
Mark Horton, who contributed to the improvement of facilities and
|
||||
substantially improved the quality of our bit-mapped fonts,
|
||||
our hardware support staff:
|
||||
Bob Kridle,
|
||||
Anita Hirsch,
|
||||
Len Edmondson
|
||||
and
|
||||
Fred Archibald,
|
||||
who helped us to debug a number of new peripherals;
|
||||
Ken Arnold who did much of the leg-work in getting this version of the
|
||||
manual prepared, and did the final editing of sections 2-6,
|
||||
some special individuals within Bell Laboratories:
|
||||
Greg Chesson,
|
||||
Stuart Feldman,
|
||||
Dick Haight,
|
||||
Howard Katseff,
|
||||
Brian Kernighan,
|
||||
Tom London,
|
||||
John Reiser,
|
||||
Dennis Ritchie,
|
||||
Ken Thompson,
|
||||
and
|
||||
Peter Weinberger
|
||||
who helped out by answering questions;
|
||||
our excellent local DEC field service people,
|
||||
Kevin Althaus and Frank Chargois
|
||||
who kept our machine running virtually all the time, and fixed it quickly
|
||||
when things broke;
|
||||
and,
|
||||
Mike Accetta of Carnegie-Mellon University,
|
||||
Robert Elz of the University of Melbourne,
|
||||
George Goble of Purdue University,
|
||||
and
|
||||
David Kashtan of the Stanford Research Institute
|
||||
for their technical advice and support.
|
||||
.LP
|
||||
Special thanks to Bill Munson of DEC who helped by augmenting
|
||||
our computing facility
|
||||
and to Eric Allman for carefully proofreading the
|
||||
``last'' draft of the manual and finding the bugs which we knew were
|
||||
there but couldn't see.
|
||||
.LP
|
||||
We dedicate this to the memory of David Sakrison, late chairman of our
|
||||
department, who gave his support to the establishment of our VAX
|
||||
computing facility, and to our department as a whole.
|
||||
.sp 1
|
||||
.in 4i
|
||||
.nf
|
||||
W. N. Joy
|
||||
\v'-3p'\h'2p'\*:\v'3p'\h'-2p'O. Babao\*~glu
|
||||
R. S. Fabry
|
||||
K. Sklower
|
||||
.fi
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the Third Berkeley distribution\fP
|
||||
.sp 1
|
||||
This manual reflects the state of the Berkeley system, December 1979.
|
||||
We would like to thank all the people at Berkeley who have contributed to
|
||||
the system, and particularly thank
|
||||
Prof. Richard Fateman for creating and administrating a hospitable environment,
|
||||
Mark Horton who helped prepare this manual, and
|
||||
Eric Allman, Bob Kridle, Juan Porcar
|
||||
and Richard Tuck for their contributions to the kernel.
|
||||
.LP
|
||||
The cooperation of Bell Laboratories in providing us with an early version of
|
||||
\s-2UNIX\s0/32V is greatly appreciated. We would especially like to thank
|
||||
Dr. Charles Roberts of Bell Laboratories for helping us obtain this release,
|
||||
and acknowledge
|
||||
T. B. London,
|
||||
J. F. Reiser,
|
||||
K. Thompson,
|
||||
D. M. Ritchie,
|
||||
G. Chesson and
|
||||
H. P. Katseff
|
||||
for their advice and support.
|
||||
.sp 1
|
||||
.in 4i
|
||||
W. N. Joy
|
||||
.br
|
||||
\v'-3p'\h'2p'\*:\v'3p'\h'-2p'O. Babao\*~glu
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the UNIX/32V distribution\fP
|
||||
.sp 1
|
||||
The
|
||||
.UX
|
||||
operating system for the VAX*-11
|
||||
.FS
|
||||
*VAX and PDP are Trademarks of Digital Equipment Corporation.
|
||||
.FE
|
||||
provides substantially the same facilities as the
|
||||
\s-2UNIX\s0
|
||||
system for the PDP*-11.
|
||||
.LP
|
||||
We acknowledge the work of many who came before us, and particularly thank
|
||||
G. K. Swanson, W. M. Cardoza, D. K. Sharma, and J. F. Jarvis for assistance
|
||||
with the implementation for the VAX-11/780.
|
||||
.sp 1
|
||||
.in 4i
|
||||
T. B. London
|
||||
.br
|
||||
J. F. Reiser
|
||||
.in 0
|
||||
.sp 2
|
||||
.ne 1i
|
||||
.ce
|
||||
\fIPreface to the Seventh Edition\fP
|
||||
.sp 1
|
||||
.LP
|
||||
Although this Seventh Edition no longer bears their byline,
|
||||
Ken Thompson and Dennis Ritchie remain the fathers
|
||||
and preceptors of the
|
||||
\s-2UNIX\s0
|
||||
time-sharing system.
|
||||
Many of the improvements here described bear their mark.
|
||||
Among many, many other people who have contributed to
|
||||
the further flowering of
|
||||
\s-2UNIX\s0,
|
||||
we wish especially to
|
||||
acknowledge the contributions of
|
||||
A. V. Aho,
|
||||
S. R. Bourne,
|
||||
L. L. Cherry,
|
||||
G. L. Chesson,
|
||||
S. I. Feldman,
|
||||
C. B. Haley,
|
||||
R. C. Haight,
|
||||
S. C. Johnson,
|
||||
M. E. Lesk,
|
||||
T. L. Lyon,
|
||||
L. E. McMahon,
|
||||
R. Morris,
|
||||
R. Muha,
|
||||
D. A. Nowitz,
|
||||
L. Wehr,
|
||||
and
|
||||
P. J. Weinberger.
|
||||
We appreciate also
|
||||
the effective advice and criticism of
|
||||
T. A. Dolotta,
|
||||
A. G. Fraser,
|
||||
J. F. Maranzano,
|
||||
and
|
||||
J. R. Mashey;
|
||||
and we remember the important work of
|
||||
the late Joseph F. Ossanna.
|
||||
.sp 1
|
||||
.in 4i
|
||||
B. W. Kernighan
|
||||
.br
|
||||
M. D. McIlroy
|
||||
.in 0
|
||||
@@ -0,0 +1,63 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)ptx.in 6.2 (Berkeley) 5/12/86
|
||||
.\"
|
||||
.af % i
|
||||
.if t .pn 25\"PERMUTED INDEX
|
||||
.if n .pn 29
|
||||
.tr ~
|
||||
.ll 6.5i
|
||||
.lt 6.7i
|
||||
.po .75i
|
||||
.ds ET\"
|
||||
.de HD
|
||||
.po 0
|
||||
.lt 7.4i
|
||||
.tl ''''
|
||||
.lt
|
||||
.po
|
||||
'sp 18p
|
||||
.if o .tl '\\*(ET''- % -'
|
||||
.if e .tl '- % -''\\*(ET'
|
||||
'sp 18p
|
||||
.ns
|
||||
..
|
||||
.de FO
|
||||
'sp 18p
|
||||
.if e .tl '\s9\\*(Dt''\\*(Ed\s0'
|
||||
.if o .tl '\s9\\*(Ed''\\*(Dt\s0'
|
||||
'bp
|
||||
..
|
||||
.wh 0 HD
|
||||
.wh -60p FO
|
||||
.if \n(nl .bp
|
||||
.br
|
||||
.ds ET \s9\f2Permuted \|Index\fP\s0
|
||||
.ds Ed 4.3BSD
|
||||
.ds Dt April \|1986
|
||||
.ce
|
||||
\f3PERMUTED \|INDEX\fP
|
||||
.sp 1v
|
||||
.ps 8
|
||||
.vs 9p
|
||||
.nf
|
||||
.cs 3 36
|
||||
.\" backup from slotput 1, slot, 2
|
||||
.de xx
|
||||
.ds s1\"
|
||||
.if \w\\$2 .ds s1 ~~\"
|
||||
.ds s2 ~~~\"
|
||||
.ds s3\"
|
||||
.if \w\\$4 .ds s3 ~~\"
|
||||
.ds s4 ~~\"
|
||||
.ds s5 ~~\"
|
||||
.ds y \\*(s4\f3\fP\\*(s5
|
||||
.ta 6i-\w\\*(s5u
|
||||
\h"3i-\w\\$1\\*(s1\\$2\\*(s2u"\\$1\\*(s1\\$2\\*(s2\\$3\\*(s3\\$4\\*y\\$5
|
||||
..
|
||||
.so ptxx
|
||||
.cs 3
|
||||
.if n .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 80n
|
||||
.if t .ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
|
||||
+3807
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,122 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)title.prm 6.2 (Berkeley) 5/15/86
|
||||
.\"
|
||||
.ps 18
|
||||
.vs 22
|
||||
.sp 2.75i
|
||||
.ft B
|
||||
.ce 2
|
||||
UNIX Programmer's Reference Manual
|
||||
(PRM)
|
||||
.ps 14
|
||||
.vs 16
|
||||
.sp |4i
|
||||
.ce 2
|
||||
4.3 Berkeley Software Distribution
|
||||
Virtual VAX\-11 Version
|
||||
.sp |5.75i
|
||||
.ft R
|
||||
.pt 12
|
||||
.vs 16
|
||||
.ce
|
||||
April, 1986
|
||||
.sp |8.2i
|
||||
.ce 5
|
||||
Computer Systems Research Group
|
||||
Computer Science Division
|
||||
Department of Electrical Engineering and Computer Science
|
||||
University of California
|
||||
Berkeley, California 94720
|
||||
.bp
|
||||
.ll 5.3i
|
||||
.in 1.25i
|
||||
.hy 0
|
||||
.ps 10
|
||||
.vs 12p
|
||||
.sp |3.35i
|
||||
Copyright 1979, 1980, 1983, 1986 Regents of the University of California.
|
||||
Permission to copy these documents or any portion thereof as necessary
|
||||
for licensed use of the software is granted to licensees of this
|
||||
software, provided this copyright notice and statement of permission
|
||||
are included.
|
||||
.sp 2
|
||||
Copyright 1979, AT&T Bell Laboratories, Incorporated.
|
||||
Holders of \x'-1p'UNIX\v'-4p'\s-3TM\s0\v'4p'/32V,
|
||||
System III, or System V software licenses are
|
||||
permitted to copy these documents, or any portion of them,
|
||||
as necessary for licensed use of the software,
|
||||
provided this copyright notice and statement of permission
|
||||
are included.
|
||||
.sp 2
|
||||
This manual reflects system enhancements made at Berkeley and sponsored
|
||||
in part by the Defense Advanced Research Projects Agency
|
||||
(DoD), Arpa Order No. 4871 monitored by the Naval Electronics Systems
|
||||
Command under contract No. N00039-84-C-0089.
|
||||
The views and conclusions contained in these documents are those of the
|
||||
authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the Defense Research Projects Agency
|
||||
or of the US Government.
|
||||
.br
|
||||
.ll 6.5i
|
||||
.lt 6.5i
|
||||
.po .75i
|
||||
.in 0i
|
||||
.af % i
|
||||
.ds ET\"
|
||||
.de HD
|
||||
.po 0
|
||||
.lt 7.4i
|
||||
.tl ''''
|
||||
.lt
|
||||
.po
|
||||
'sp 18p
|
||||
.if o .tl '\\*(ET''- % -'
|
||||
.if e .tl '- % -''\\*(ET'
|
||||
'sp 18p
|
||||
.ns
|
||||
..
|
||||
.de FO
|
||||
'sp 18p
|
||||
.if e .tl '\s9\\*(Dt''\\*(Ed\s0'
|
||||
.if o .tl '\s9\\*(Ed''\\*(Dt\s0'
|
||||
'bp
|
||||
..
|
||||
.wh 0 HD
|
||||
.wh -60p FO
|
||||
.ds ET \s9\f2Table \|of \|Contents\fP\s0
|
||||
.ds Ed 4.3BSD
|
||||
.ds Dt April \|1986
|
||||
.bp 1
|
||||
.ce
|
||||
\f3TABLE \|OF \|CONTENTS\fP
|
||||
.nr x .5i
|
||||
.in +\nxu
|
||||
.nf
|
||||
.ta \n(.lu-\nxuR
|
||||
.de xx
|
||||
\\$1\f3 \a \fP\\$2
|
||||
..
|
||||
.de t
|
||||
.sp 1v
|
||||
.ne .5i
|
||||
.cs 3
|
||||
.ti -.5i
|
||||
.ss 18
|
||||
\f3\s9\\$2. \\$3\s0\fP
|
||||
.ss 12
|
||||
.if t .sp .5v
|
||||
.cs 3 36
|
||||
.so \\$1
|
||||
..
|
||||
.t /usr/man/man0/toc2 2 "System Calls"
|
||||
.t /usr/man/man0/toc3 3 "C Library Subroutines"
|
||||
.t /usr/man/man0/toc3f 3F "Fortran Library"
|
||||
.t /usr/man/man0/toc4 4 "Special Files"
|
||||
.t /usr/man/man0/toc5 5 "File Formats"
|
||||
.in -.5i
|
||||
.cs 3
|
||||
.if n .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 80n
|
||||
.if t .ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
|
||||
@@ -0,0 +1,61 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)title.urm 6.2 (Berkeley) 5/15/86
|
||||
.\"
|
||||
.ps 18
|
||||
.vs 22
|
||||
.sp 2.75i
|
||||
.ft B
|
||||
.ce 2
|
||||
UNIX User's Reference Manual
|
||||
(URM)
|
||||
.ps 14
|
||||
.vs 16
|
||||
.sp |4i
|
||||
.ce 2
|
||||
4.3 Berkeley Software Distribution
|
||||
Virtual VAX\-11 Version
|
||||
.sp |5.75i
|
||||
.ft R
|
||||
.pt 12
|
||||
.vs 16
|
||||
.ce
|
||||
April, 1986
|
||||
.sp |8.2i
|
||||
.ce 5
|
||||
Computer Systems Research Group
|
||||
Computer Science Division
|
||||
Department of Electrical Engineering and Computer Science
|
||||
University of California
|
||||
Berkeley, California 94720
|
||||
.bp
|
||||
.ll 5.3i
|
||||
.in 1.25i
|
||||
.hy 0
|
||||
.ps 10
|
||||
.vs 12p
|
||||
.sp |3.35i
|
||||
Copyright 1979, 1980, 1983, 1986 Regents of the University of California.
|
||||
Permission to copy these documents or any portion thereof as necessary
|
||||
for licensed use of the software is granted to licensees of this
|
||||
software, provided this copyright notice and statement of permission
|
||||
are included.
|
||||
.sp 2
|
||||
Copyright 1979, AT&T Bell Laboratories, Incorporated.
|
||||
Holders of \x'-1p'UNIX\v'-4p'\s-3TM\s0\v'4p'/32V,
|
||||
System III, or System V software licenses are
|
||||
permitted to copy these documents, or any portion of them,
|
||||
as necessary for licensed use of the software,
|
||||
provided this copyright notice and statement of permission
|
||||
are included.
|
||||
.sp 2
|
||||
This manual reflects system enhancements made at Berkeley and sponsored
|
||||
in part by the Defense Advanced Research Projects Agency
|
||||
(DoD), Arpa Order No. 4871 monitored by the Naval Electronics Systems
|
||||
Command under contract No. N00039-84-C-0089.
|
||||
The views and conclusions contained in these documents are those of the
|
||||
authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the Defense Research Projects Agency
|
||||
or of the US Government.
|
||||
@@ -0,0 +1,73 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)toc.in 6.2 (Berkeley) 5/12/86
|
||||
.\"
|
||||
.af % i
|
||||
.if t .pn 11\"TABLE OF CONTENTS
|
||||
.if n .pn 15
|
||||
.tr ~
|
||||
.ll 6.5i
|
||||
.lt 6.5i
|
||||
.po .75i
|
||||
.ds ET\"
|
||||
.de HD
|
||||
.po 0
|
||||
.lt 7.4i
|
||||
.tl ''''
|
||||
.lt
|
||||
.po
|
||||
'sp 18p
|
||||
.if o .tl '\\*(ET''- % -'
|
||||
.if e .tl '- % -''\\*(ET'
|
||||
'sp 18p
|
||||
.ns
|
||||
..
|
||||
.de FO
|
||||
'sp 18p
|
||||
.if e .tl '\s9\\*(Dt''\\*(Ed\s0'
|
||||
.if o .tl '\s9\\*(Ed''\\*(Dt\s0'
|
||||
'bp
|
||||
..
|
||||
.wh 0 HD
|
||||
.wh -60p FO
|
||||
.if \n(nl .bp
|
||||
.br
|
||||
.ds ET \s9\f2Table \|of \|Contents\fP\s0
|
||||
.ds Ed 4.3BSD
|
||||
.ds Dt April \|1986
|
||||
.ce
|
||||
\f3TABLE \|OF \|CONTENTS\fP
|
||||
.nr x .5i
|
||||
.in +\nxu
|
||||
.nf
|
||||
.ta \n(.lu-\nxuR
|
||||
.de xx
|
||||
\\$1\f3 \a \fP\\$2
|
||||
..
|
||||
.de t
|
||||
.sp 1v
|
||||
.ne .5i
|
||||
.cs 3
|
||||
.ti -.5i
|
||||
.ss 18
|
||||
\f3\s9\\$2. \\$3\s0\fP
|
||||
.ss 12
|
||||
.if t .sp .5v
|
||||
.cs 3 36
|
||||
.so \\$1
|
||||
..
|
||||
.t toc1 1 "Commands and Application Programs"
|
||||
.t toc2 2 "System Calls"
|
||||
.t toc3 3 "C Library Subroutines"
|
||||
.t toc3f 3F "Fortran Library"
|
||||
.t toc4 4 "Special Files"
|
||||
.t toc5 5 "File Formats"
|
||||
.t toc6 6 "Games"
|
||||
.t toc7 7 "Miscellaneous"
|
||||
.t toc8 8 "System Maintenance"
|
||||
.in -.5i
|
||||
.cs 3
|
||||
.if n .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 80n
|
||||
.if t .ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
|
||||
@@ -0,0 +1,242 @@
|
||||
.xx "intro" "introduction to commands"
|
||||
.xx "adb" "debugger"
|
||||
.xx "addbib" "create or extend bibliographic database"
|
||||
.xx "apply" "apply a command to a set of arguments"
|
||||
.xx "apropos" "locate commands by keyword lookup"
|
||||
.xx "ar" "archive and library maintainer"
|
||||
.xx "as" "VAX-11 assembler"
|
||||
.xx "at" "execute commands at a later time"
|
||||
.xx "atq" "print the queue of jobs waiting to be run"
|
||||
.xx "atrm" "remove jobs spooled by at"
|
||||
.xx "awk" "pattern scanning and processing language"
|
||||
.xx "basename" "strip filename affixes"
|
||||
.xx "bc" "arbitrary-precision arithmetic language"
|
||||
.xx "bib" "bibliographic formatter; list bibliographic reference items"
|
||||
.xx "biff" "be notified if mail arrives and who it is from"
|
||||
.xx "binmail" "send or receive mail among users"
|
||||
.xx "cal" "print calendar"
|
||||
.xx "calendar" "reminder service"
|
||||
.xx "cat" "catenate and print"
|
||||
.xx "cb" "C program beautifier"
|
||||
.xx "cc" "C compiler"
|
||||
.xx "cd" "change working directory"
|
||||
.xx "checknr" "check nroff/troff files"
|
||||
.xx "chfn" "change password file information"
|
||||
.xx "chgrp" "change group"
|
||||
.xx "chmod" "change mode"
|
||||
.xx "chsh" "change password file information"
|
||||
.xx "clear" "clear terminal screen"
|
||||
.xx "cmp" "compare two files"
|
||||
.xx "col" "filter reverse line feeds"
|
||||
.xx "colcrt" "filter nroff output for CRT previewing"
|
||||
.xx "colrm" "remove columns from a file"
|
||||
.xx "comm" "select or reject lines common to two sorted files"
|
||||
.xx "compress" "compress and expand data"
|
||||
.xx "cp" "copy"
|
||||
.xx "crypt" "encode/decode"
|
||||
.xx "csh" "a shell (command interpreter) with C-like syntax"
|
||||
.xx "ctags" "create a tags file"
|
||||
.xx "date" "print and set the date"
|
||||
.xx "dbx" "debugger"
|
||||
.xx "dc" "desk calculator"
|
||||
.xx "dd" "convert and copy a file"
|
||||
.xx "deroff" "remove nroff, troff, tbl and eqn constructs"
|
||||
.xx "df" "disk free"
|
||||
.xx "diction" "print wordy sentences; thesaurus for diction"
|
||||
.xx "diff" "differential file and directory comparator"
|
||||
.xx "diff3" "3-way differential file comparison"
|
||||
.xx "du" "summarize disk usage"
|
||||
.xx "echo" "echo arguments"
|
||||
.xx "ed" "text editor"
|
||||
.xx "efl" "Extended Fortran Language"
|
||||
.xx "eqn" "typeset mathematics"
|
||||
.xx "error" "analyze and disperse compiler error messages"
|
||||
.xx "ex" "text editor"
|
||||
.xx "expand" "expand tabs to spaces, and vice versa"
|
||||
.xx "expr" "evaluate arguments as an expression"
|
||||
.xx "f77" "Fortran 77 compiler"
|
||||
.xx "false" "provide truth values"
|
||||
.xx "file" "determine file type"
|
||||
.xx "find" "find files"
|
||||
.xx "finger" "user information lookup program"
|
||||
.xx "fmt" "simple text formatter"
|
||||
.xx "fold" "fold long lines for finite width output device"
|
||||
.xx "fp" "Functional Programming language compiler/interpreter"
|
||||
.xx "fpr" "print Fortran file"
|
||||
.xx "from" "who is my mail from?"
|
||||
.xx "fsplit" "split a multi-routine Fortran file into individual files"
|
||||
.xx "ftp" "ARPANET file transfer program"
|
||||
.xx "gcore" "get core images of running processes"
|
||||
.xx "gprof" "display call graph profile data"
|
||||
.xx "graph" "draw a graph"
|
||||
.xx "grep" "search a file for a pattern"
|
||||
.xx "groups" "show group memberships"
|
||||
.xx "head" "give first few lines"
|
||||
.xx "hostid" "set or print identifier of current host system"
|
||||
.xx "hostname" "set or print name of current host system"
|
||||
.xx "indent" "indent and format C program source"
|
||||
.xx "install" "install binaries"
|
||||
.xx "iostat" "report I/O statistics"
|
||||
.xx "join" "relational database operator"
|
||||
.xx "jove" "an interactive display-oriented text editor"
|
||||
.xx "kill" "terminate a process with extreme prejudice"
|
||||
.xx "last" "indicate last logins of users and teletypes"
|
||||
.xx "lastcomm" "show last commands executed in reverse order"
|
||||
.xx "ld" "link editor"
|
||||
.xx "learn" "computer aided instruction about UNIX"
|
||||
.xx "leave" "remind you when you have to leave"
|
||||
.xx "lex" "generator of lexical analysis programs"
|
||||
.xx "lint" "a C program verifier"
|
||||
.xx "lisp" "lisp interpreter"
|
||||
.xx "liszt" "compile a Franz Lisp program"
|
||||
.xx "ln" "make links"
|
||||
.xx "lock" "reserve a terminal"
|
||||
.xx "logger" "make entries in the system log"
|
||||
.xx "login" "sign on"
|
||||
.xx "look" "find lines in a sorted list"
|
||||
.xx "lookbib" "build inverted index for a bibliography, find references in a bibliography"
|
||||
.xx "lorder" "find ordering relation for an object library"
|
||||
.xx "lpq" "spool queue examination program"
|
||||
.xx "lpr" "off line print"
|
||||
.xx "lprm" "remove jobs from the line printer spooling queue"
|
||||
.xx "lptest" "generate lineprinter ripple pattern"
|
||||
.xx "ls" "list contents of directory"
|
||||
.xx "lxref" "lisp cross reference program"
|
||||
.xx "m4" "macro processor"
|
||||
.xx "mail" "send and receive mail"
|
||||
.xx "make" "maintain program groups"
|
||||
.xx "man" "find manual information by keywords; print out the manual"
|
||||
.xx "mesg" "permit or deny messages"
|
||||
.xx "mh" "Message Handler"
|
||||
.xx "mkdir" "make a directory"
|
||||
.xx "mkstr" "create an error message file by massaging C source"
|
||||
.xx "more" "file perusal filter for crt viewing"
|
||||
.xx "mset" "retrieve ASCII to IBM 3270 keyboard map"
|
||||
.xx "msgs" "system messages and junk mail program"
|
||||
.xx "mt" "magnetic tape manipulating program"
|
||||
.xx "mv" "move or rename files"
|
||||
.xx "netstat" "show network status"
|
||||
.xx "newaliases" "rebuild the data base for the mail aliases file"
|
||||
.xx "nice" "run a command at low priority (\fIsh\fR only)"
|
||||
.xx "nm" "print name list"
|
||||
.xx "notes" "a news system"
|
||||
.xx "nroff" "text formatting"
|
||||
.xx "od" "octal, decimal, hex, ascii dump"
|
||||
.xx "pagesize" "print system page size"
|
||||
.xx "passwd" "change password file information"
|
||||
.xx "patch" "a program for applying a diff file to an original"
|
||||
.xx "pc" "Pascal compiler"
|
||||
.xx "pdx" "pascal debugger"
|
||||
.xx "pi" "Pascal interpreter code translator"
|
||||
.xx "pix" "Pascal interpreter and executor"
|
||||
.xx "plot" "graphics filters"
|
||||
.xx "pmerge" "pascal file merger"
|
||||
.xx "pr" "print file"
|
||||
.xx "printenv" "print out the environment"
|
||||
.xx "prof" "display profile data"
|
||||
.xx "ps" "process status"
|
||||
.xx "ptx" "permuted index"
|
||||
.xx "pwd" "working directory name"
|
||||
.xx "px" "Pascal interpreter"
|
||||
.xx "pxp" "Pascal execution profiler"
|
||||
.xx "pxref" "Pascal cross-reference program"
|
||||
.xx "quota" "display disc usage and limits"
|
||||
.xx "ranlib" "convert archives to random libraries"
|
||||
.xx "ratfor" "rational Fortran dialect"
|
||||
.xx "rcp" "remote file copy"
|
||||
.xx "rcsintro" "introduction to RCS commands"
|
||||
.xx "rdist" "remote file distribution program"
|
||||
.xx "readnews" "read news articles"
|
||||
.xx "refer" "find and insert literature references in documents"
|
||||
.xx "rev" "reverse lines of a file"
|
||||
.xx "rlogin" "remote login"
|
||||
.xx "rm" "remove (unlink) files or directories"
|
||||
.xx "rmail" "handle remote mail received via uucp"
|
||||
.xx "rmdir" "remove (unlink) directories or files"
|
||||
.xx "roffbib" "run off bibliographic database"
|
||||
.xx "rsh" "remote shell"
|
||||
.xx "ruptime" "show host status of local machines"
|
||||
.xx "rwho" "who's logged in on local machines"
|
||||
.xx "sccs" "front end for the SCCS subsystem"
|
||||
.xx "script" "make typescript of terminal session"
|
||||
.xx "sed" "stream editor"
|
||||
.xx "sendbug" "mail a system bug report to 4bsd-bugs"
|
||||
.xx "sh" "command language"
|
||||
.xx "size" "size of an object file"
|
||||
.xx "sleep" "suspend execution for an interval"
|
||||
.xx "soelim" "eliminate \&.so's from nroff input"
|
||||
.xx "sort" "sort or merge files"
|
||||
.xx "sortbib" "sort bibliographic database"
|
||||
.xx "spell" "find spelling errors"
|
||||
.xx "spline" "interpolate smooth curve"
|
||||
.xx "split" "split a file into pieces"
|
||||
.xx "strings" "find the printable strings in a object, or other binary, file"
|
||||
.xx "strip" "remove symbols and relocation bits"
|
||||
.xx "struct" "structure Fortran programs"
|
||||
.xx "stty" "set terminal options"
|
||||
.xx "style" "analyze surface characteristics of a document"
|
||||
.xx "su" "substitute user id temporarily"
|
||||
.xx "sum" "sum and count blocks in a file"
|
||||
.xx "symorder" "rearrange name list"
|
||||
.xx "sysline" "display system status on status line of a terminal"
|
||||
.xx "systat" "display system statistics on a crt"
|
||||
.xx "tabs" "set terminal tabs"
|
||||
.xx "tail" "deliver the last part of a file"
|
||||
.xx "talk" "talk to another user"
|
||||
.xx "tar" "tape archiver"
|
||||
.xx "tbl" "format tables for nroff or troff"
|
||||
.xx "tc" "photoypesetter simulator"
|
||||
.xx "tcopy" "copy a mag tape"
|
||||
.xx "tee" "pipe fitting"
|
||||
.xx "telnet" "user interface to the TELNET protocol"
|
||||
.xx "test" "condition command"
|
||||
.xx "tftp" "trivial file transfer program"
|
||||
.xx "time" "time a command"
|
||||
.xx "tip" "connect to a remote system"
|
||||
.xx "tk" "paginator for the Tektronix 4014"
|
||||
.xx "tn3270" "full-screen remote login to IBM VM/CMS"
|
||||
.xx "touch" "update date last modified of a file"
|
||||
.xx "tp" "manipulate tape archive"
|
||||
.xx "tr" "translate characters"
|
||||
.xx "troff" "text formatting and typesetting"
|
||||
.xx "true" "provide truth values"
|
||||
.xx "tset" "terminal dependent initialization"
|
||||
.xx "tsort" "topological sort"
|
||||
.xx "tty" "get terminal name"
|
||||
.xx "ul" "do underlining"
|
||||
.xx "unifdef" "remove ifdef'ed lines"
|
||||
.xx "uniq" "report repeated lines in a file"
|
||||
.xx "units" "conversion program"
|
||||
.xx "uptime" "show how long system has been up"
|
||||
.xx "users" "compact list of users who are on the system"
|
||||
.xx "uucp" "unix to unix copy"
|
||||
.xx "uuencode" "encode/decode a binary file for transmission via mail"
|
||||
.xx "uulog" "display UUCP log files"
|
||||
.xx "uuname" "list names of UUCP hosts"
|
||||
.xx "uuq" "examine or manipulate the uucp queue"
|
||||
.xx "uusend" "send a file to a remote host"
|
||||
.xx "uux" "unix to unix command execution"
|
||||
.xx "vacation" "return ``I am on vacation'' indication"
|
||||
.xx "vgrind" "grind nice listings of programs"
|
||||
.xx "vi" "screen oriented (visual) display editor based on ex"
|
||||
.xx "vlp" "Format Lisp programs to be printed with nroff, vtroff, or troff"
|
||||
.xx "vmstat" "report virtual memory statistics"
|
||||
.xx "vnews" "read news articles"
|
||||
.xx "vwidth" "make troff width table for a font"
|
||||
.xx "w" "who is on and what they are doing"
|
||||
.xx "wait" "await completion of process"
|
||||
.xx "wall" "write to all users"
|
||||
.xx "wc" "word count"
|
||||
.xx "what" "show what versions of object modules were used to construct a file"
|
||||
.xx "whatis" "describe what a command is"
|
||||
.xx "whereis" "locate source, binary, and or manual for program"
|
||||
.xx "which" "locate a program file including aliases and paths (\fIcsh\fR only)"
|
||||
.xx "who" "who is on the system"
|
||||
.xx "whoami" "print effective current user id"
|
||||
.xx "whois" "DARPA Internet user name directory service"
|
||||
.xx "window" "window environment"
|
||||
.xx "write" "write to another user"
|
||||
.xx "xsend" "secret mail"
|
||||
.xx "xstr" "extract strings from C programs to implement shared strings"
|
||||
.xx "yacc" "yet another compiler-compiler"
|
||||
.xx "yes" "be repetitively affirmative"
|
||||
@@ -0,0 +1,87 @@
|
||||
.xx "intro" "introduction to system calls and error numbers"
|
||||
.xx "accept" "accept a connection on a socket"
|
||||
.xx "access" "determine accessibility of file"
|
||||
.xx "acct" "turn accounting on or off"
|
||||
.xx "adjtime" "correct the time to allow synchronization of the system clock"
|
||||
.xx "bind" "bind a name to a socket"
|
||||
.xx "brk" "change data segment size"
|
||||
.xx "chdir" "change current working directory"
|
||||
.xx "chmod" "change mode of file"
|
||||
.xx "chown" "change owner and group of a file"
|
||||
.xx "chroot" "change root directory"
|
||||
.xx "close" "delete a descriptor"
|
||||
.xx "connect" "initiate a connection on a socket"
|
||||
.xx "creat" "create a new file"
|
||||
.xx "dup" "duplicate a descriptor"
|
||||
.xx "execve" "execute a file"
|
||||
.xx "exit" "terminate a process"
|
||||
.xx "fcntl" "file control"
|
||||
.xx "flock" "apply or remove an advisory lock on an open file"
|
||||
.xx "fork" "create a new process"
|
||||
.xx "fsync" "synchronize a file's in-core state with that on disk"
|
||||
.xx "getdtablesize" "get descriptor table size"
|
||||
.xx "getgid" "get group identity"
|
||||
.xx "getgroups" "get group access list"
|
||||
.xx "gethostid" "get/set unique identifier of current host"
|
||||
.xx "gethostname" "get/set name of current host"
|
||||
.xx "getitimer" "get/set value of interval timer"
|
||||
.xx "getpagesize" "get system page size"
|
||||
.xx "getpeername" "get name of connected peer"
|
||||
.xx "getpgrp" "get process group"
|
||||
.xx "getpid" "get process identification"
|
||||
.xx "getpriority" "get/set program scheduling priority"
|
||||
.xx "getrlimit" "control maximum system resource consumption"
|
||||
.xx "getrusage" "get information about resource utilization"
|
||||
.xx "getsockname" "get socket name"
|
||||
.xx "getsockopt" "get and set options on sockets"
|
||||
.xx "gettimeofday" "get/set date and time"
|
||||
.xx "getuid" "get user identity"
|
||||
.xx "ioctl" "control device"
|
||||
.xx "kill" "send signal to a process"
|
||||
.xx "killpg" "send signal to a process group"
|
||||
.xx "link" "make a hard link to a file"
|
||||
.xx "listen" "listen for connections on a socket"
|
||||
.xx "lseek" "move read/write pointer"
|
||||
.xx "mkdir" "make a directory file"
|
||||
.xx "mknod" "make a special file"
|
||||
.xx "mount" "mount or remove file system"
|
||||
.xx "open" "open a file for reading or writing, or create a new file"
|
||||
.xx "pipe" "create an interprocess communication channel"
|
||||
.xx "profil" "execution time profile"
|
||||
.xx "ptrace" "process trace"
|
||||
.xx "quota" "manipulate disk quotas"
|
||||
.xx "read" "read input"
|
||||
.xx "readlink" "read value of a symbolic link"
|
||||
.xx "reboot" "reboot system or halt processor"
|
||||
.xx "recv" "receive a message from a socket"
|
||||
.xx "rename" "change the name of a file"
|
||||
.xx "rmdir" "remove a directory file"
|
||||
.xx "select" "synchronous I/O multiplexing"
|
||||
.xx "send" "send a message from a socket"
|
||||
.xx "setgroups" "set group access list"
|
||||
.xx "setpgrp" "set process group"
|
||||
.xx "setquota" "enable/disable quotas on a file system"
|
||||
.xx "setregid" "set real and effective group ID"
|
||||
.xx "setreuid" "set real and effective user ID's"
|
||||
.xx "shutdown" "shut down part of a full-duplex connection"
|
||||
.xx "sigblock" "block signals"
|
||||
.xx "sigpause" "atomically release blocked signals and wait for interrupt"
|
||||
.xx "sigreturn" "return from signal"
|
||||
.xx "sigsetmask" "set current signal mask"
|
||||
.xx "sigstack" "set and/or get signal stack context"
|
||||
.xx "sigvec" "software signal facilities"
|
||||
.xx "socket" "create an endpoint for communication"
|
||||
.xx "socketpair" "create a pair of connected sockets"
|
||||
.xx "stat" "get file status"
|
||||
.xx "swapon" "add a swap device for interleaved paging/swapping"
|
||||
.xx "symlink" "make symbolic link to a file"
|
||||
.xx "sync" "update super-block"
|
||||
.xx "syscall" "indirect system call"
|
||||
.xx "truncate" "truncate a file to a specified length"
|
||||
.xx "umask" "set file creation mode mask"
|
||||
.xx "unlink" "remove directory entry"
|
||||
.xx "utimes" "set file times"
|
||||
.xx "vfork" "spawn new process in a virtual memory efficient way"
|
||||
.xx "vhangup" "virtually ``hangup'' the current control terminal"
|
||||
.xx "wait" "wait for process to terminate"
|
||||
.xx "write" "write output"
|
||||
@@ -0,0 +1,108 @@
|
||||
.xx "intro" "introduction to C library functions"
|
||||
.xx "abort" "generate a fault"
|
||||
.xx "abs" "integer absolute value"
|
||||
.xx "alarm" "schedule signal after specified time"
|
||||
.xx "asinh" "inverse hyperbolic functions"
|
||||
.xx "assert" "program verification"
|
||||
.xx "atof" "convert ASCII to numbers"
|
||||
.xx "bstring" "bit and byte string operations"
|
||||
.xx "byteorder" "convert values between host and network byte order"
|
||||
.xx "crypt" "DES encryption"
|
||||
.xx "ctime" "convert date and time to ASCII"
|
||||
.xx "ctype" "character classification macros"
|
||||
.xx "curses" "screen functions with ``optimal'' cursor motion"
|
||||
.xx "dbm" "data base subroutines"
|
||||
.xx "directory" "directory operations"
|
||||
.xx "ecvt" "output conversion"
|
||||
.xx "end" "last locations in program"
|
||||
.xx "erf" "error functions"
|
||||
.xx "execl" "execute a file"
|
||||
.xx "exit" "terminate a process after flushing any pending output"
|
||||
.xx "exp" "exponential, logarithm, power"
|
||||
.xx "fclose" "close or flush a stream"
|
||||
.xx "ferror" "stream status inquiries"
|
||||
.xx "floor" "absolute value, floor, ceiling, and round-to-nearest functions"
|
||||
.xx "fopen" "open a stream"
|
||||
.xx "fread" "buffered binary input/output"
|
||||
.xx "frexp" "split into mantissa and exponent"
|
||||
.xx "fseek" "reposition a stream"
|
||||
.xx "getc" "get character or word from stream"
|
||||
.xx "getdisk" "get disk description by its name"
|
||||
.xx "getenv" "value for environment name"
|
||||
.xx "getfsent" "get file system descriptor file entry"
|
||||
.xx "getgrent" "get group file entry"
|
||||
.xx "gethostbyname" "get network host entry"
|
||||
.xx "getlogin" "get login name"
|
||||
.xx "getnetent" "get network entry"
|
||||
.xx "getopt" "get option letter from argv"
|
||||
.xx "getpass" "read a password"
|
||||
.xx "getprotoent" "get protocol entry"
|
||||
.xx "getpw" "get name from uid"
|
||||
.xx "getpwent" "get password file entry"
|
||||
.xx "gets" "get a string from a stream"
|
||||
.xx "getservent" "get service entry"
|
||||
.xx "getttyent" "get ttys file entry"
|
||||
.xx "getusershell" "get legal user shells"
|
||||
.xx "getwd" "get current working directory pathname"
|
||||
.xx "hypot" "Euclidean distance, complex absolute value"
|
||||
.xx "ieee" "copysign, remainder, exponent manipulations"
|
||||
.xx "inet" "Internet address manipulation routines"
|
||||
.xx "infnan" "signals invalid floating-point operations on a VAX (temporary)"
|
||||
.xx "initgroups" "initialize group access list"
|
||||
.xx "insque" "insert/remove element from a queue"
|
||||
.xx "j0" "bessel functions"
|
||||
.xx "lgamma" "log gamma function"
|
||||
.xx "lib2648" "subroutines for the HP 2648 graphics terminal"
|
||||
.xx "malloc" "memory allocator"
|
||||
.xx "math" "introduction to mathematical library functions"
|
||||
.xx "mktemp" "make a unique file name"
|
||||
.xx "monitor" "prepare execution profile"
|
||||
.xx "mp" "multiple precision integer arithmetic"
|
||||
.xx "ndbm" "data base subroutines"
|
||||
.xx "nice" "set program priority"
|
||||
.xx "nlist" "get entries from name list"
|
||||
.xx "ns" "Xerox NS(tm) address conversion routines"
|
||||
.xx "pause" "stop until signal"
|
||||
.xx "perror" "system error messages"
|
||||
.xx "plot" "graphics interface"
|
||||
.xx "popen" "initiate I/O to/from a process"
|
||||
.xx "printf" "formatted output conversion"
|
||||
.xx "psignal" "system signal messages"
|
||||
.xx "putc" "put character or word on a stream"
|
||||
.xx "puts" "put a string on a stream"
|
||||
.xx "qsort" "quicker sort"
|
||||
.xx "rand" "random number generator"
|
||||
.xx "random" "better random number generator; routines for changing generators"
|
||||
.xx "rcmd" "routines for returning a stream to a remote command"
|
||||
.xx "regex" "regular expression handler"
|
||||
.xx "resolver" "resolver routines"
|
||||
.xx "rexec" "return stream to a remote command"
|
||||
.xx "scandir" "scan a directory"
|
||||
.xx "scanf" "formatted input conversion"
|
||||
.xx "setbuf" "assign buffering to a stream"
|
||||
.xx "setjmp" "non-local goto"
|
||||
.xx "setuid" "set user and group ID"
|
||||
.xx "siginterrupt" "allow signals to interrupt system calls"
|
||||
.xx "signal" "simplified software signal facilities"
|
||||
.xx "sin" "trigonometric functions and their inverses"
|
||||
.xx "sinh" "hyperbolic functions"
|
||||
.xx "sleep" "suspend execution for interval"
|
||||
.xx "sqrt" "cube root, square root"
|
||||
.xx "stdio" "standard buffered input/output package"
|
||||
.xx "string" "string operations"
|
||||
.xx "stty" "set and get terminal state (defunct)"
|
||||
.xx "swab" "swap bytes"
|
||||
.xx "syslog" "control system log"
|
||||
.xx "system" "issue a shell command"
|
||||
.xx "termcap" "terminal independent operation routines"
|
||||
.xx "time" "get date and time"
|
||||
.xx "times" "get process times"
|
||||
.xx "ttyname" "find name of a terminal"
|
||||
.xx "ualarm" "schedule signal after specified time"
|
||||
.xx "ungetc" "push character back into input stream"
|
||||
.xx "usleep" "suspend execution for interval"
|
||||
.xx "utime" "set file times"
|
||||
.xx "valloc" "aligned memory allocator"
|
||||
.xx "varargs" "variable argument list"
|
||||
.xx "vlimit" "control maximum system resource consumption"
|
||||
.xx "vtimes" "get information about resource utilization"
|
||||
@@ -0,0 +1,50 @@
|
||||
.xx "intro" "introduction to FORTRAN library functions"
|
||||
.xx "abort" "abnormal termination"
|
||||
.xx "access" "determine accessability of a file"
|
||||
.xx "alarm" "execute a subroutine after a specified time"
|
||||
.xx "bessel" "of two kinds for integer orders"
|
||||
.xx "bit" "and, or, xor, not, rshift, lshift bitwise functions"
|
||||
.xx "chdir" "change default directory"
|
||||
.xx "chmod" "change mode of a file"
|
||||
.xx "etime" "return elapsed execution time"
|
||||
.xx "exit" "terminate process with status"
|
||||
.xx "fdate" "return date and time in an ASCII string"
|
||||
.xx "flmin" "return extreme values"
|
||||
.xx "flush" "flush output to a logical unit"
|
||||
.xx "fork" "create a copy of this process"
|
||||
.xx "fseek" "reposition a file on a logical unit"
|
||||
.xx "getarg" "return command line arguments"
|
||||
.xx "getc" "get a character from a logical unit"
|
||||
.xx "getcwd" "get pathname of current working directory"
|
||||
.xx "getenv" "get value of environment variables"
|
||||
.xx "getlog" "get user's login name"
|
||||
.xx "getpid" "get process id"
|
||||
.xx "getuid" "get user or group ID of the caller"
|
||||
.xx "hostnm" "get name of current host"
|
||||
.xx "idate" "return date or time in numerical form"
|
||||
.xx "index" "tell about character objects"
|
||||
.xx "ioinit" "change f77 I/O initialization"
|
||||
.xx "kill" "send a signal to a process"
|
||||
.xx "link" "make a link to an existing file"
|
||||
.xx "loc" "return the address of an object"
|
||||
.xx "long" "integer object conversion"
|
||||
.xx "malloc" "memory allocator"
|
||||
.xx "perror" "get system error messages"
|
||||
.xx "plot" "f77 library interface to \fIplot\fR (3X) libraries."
|
||||
.xx "putc" "write a character to a fortran logical unit"
|
||||
.xx "qsort" "quick sort"
|
||||
.xx "rand" "return random values"
|
||||
.xx "random" "better random number generator"
|
||||
.xx "rename" "rename a file"
|
||||
.xx "signal" "change the action for a signal"
|
||||
.xx "sleep" "suspend execution for an interval"
|
||||
.xx "stat" "get file status"
|
||||
.xx "system" "execute a UNIX command"
|
||||
.xx "time" "return system time"
|
||||
.xx "topen" "f77 tape I/O"
|
||||
.xx "traper" "trap arithmetic errors"
|
||||
.xx "trapov" "trap and repair floating point overflow"
|
||||
.xx "trpfpe" "trap and repair floating point faults"
|
||||
.xx "ttynam" "find name of a terminal port"
|
||||
.xx "unlink" "remove a directory entry"
|
||||
.xx "wait" "wait for a process to terminate"
|
||||
@@ -0,0 +1,69 @@
|
||||
.xx "intro" "introduction to special files and hardware support"
|
||||
.xx "acc" "ACC LH/DH IMP interface"
|
||||
.xx "ad" "Data Translation A/D converter"
|
||||
.xx "arp" "Address Resolution Protocol"
|
||||
.xx "autoconf" "diagnostics from the autoconfiguration code"
|
||||
.xx "bk" "line discipline for machine-machine communication (obsolete)"
|
||||
.xx "cons" "VAX-11 console interface"
|
||||
.xx "crl" "VAX 8600 console RL02 interface"
|
||||
.xx "css" "DEC IMP-11A LH/DH IMP interface"
|
||||
.xx "ct" "phototypesetter interface"
|
||||
.xx "ddn" "DDN Standard Mode X.25 IMP interface"
|
||||
.xx "de" "DEC DEUNA 10 Mb/s Ethernet interface"
|
||||
.xx "dh" "DH-11/DM-11 communications multiplexer"
|
||||
.xx "dhu" "DHU-11 communications multiplexer"
|
||||
.xx "dmc" "DEC DMC-11/DMR-11 point-to-point communications device"
|
||||
.xx "dmf" "DMF-32, terminal multiplexor"
|
||||
.xx "dmz" "DMZ-32 terminal multiplexor"
|
||||
.xx "dn" "DN-11 autocall unit interface"
|
||||
.xx "drum" "paging device"
|
||||
.xx "dz" "DZ-11 communications multiplexer"
|
||||
.xx "ec" "3Com 10 Mb/s Ethernet interface"
|
||||
.xx "en" "Xerox 3 Mb/s Ethernet interface"
|
||||
.xx "ex" "Excelan 10 Mb/s Ethernet interface"
|
||||
.xx "fl" "console floppy interface"
|
||||
.xx "hdh" "ACC IF-11/HDH IMP interface"
|
||||
.xx "hk" "RK6-11/RK06 and RK07 moving head disk"
|
||||
.xx "hp" "MASSBUS disk interface"
|
||||
.xx "ht" "TM-03/TE-16,TU-45,TU-77 MASSBUS magtape interface"
|
||||
.xx "hy" "Network Systems Hyperchannel interface"
|
||||
.xx "icmp" "Internet Control Message Protocol"
|
||||
.xx "idp" "Xerox Internet Datagram Protocol"
|
||||
.xx "ik" "Ikonas frame buffer, graphics device interface"
|
||||
.xx "il" "Interlan NI1010 10 Mb/s Ethernet interface"
|
||||
.xx "imp" "1822 network interface"
|
||||
.xx "imp" "IMP raw socket interface"
|
||||
.xx "inet" "Internet protocol family"
|
||||
.xx "ip" "Internet Protocol"
|
||||
.xx "ix" "Interlan Np100 10 Mb/s Ethernet interface"
|
||||
.xx "kg" "KL-11/DL-11W line clock"
|
||||
.xx "lo" "software loopback network interface"
|
||||
.xx "lp" "line printer"
|
||||
.xx "mem" "main memory"
|
||||
.xx "mt" "TM78/TU-78 MASSBUS magtape interface"
|
||||
.xx "mtio" "UNIX magtape interface"
|
||||
.xx "np" "Interlan Np100 10 Mb/s Ethernet interface"
|
||||
.xx "ns" "Xerox Network Systems(tm) protocol family"
|
||||
.xx "nsip" "software network interface encapsulating ns packets in ip packets."
|
||||
.xx "null" "data sink"
|
||||
.xx "pcl" "DEC CSS PCL-11 B Network Interface"
|
||||
.xx "ps" "Evans and Sutherland Picture System 2 graphics device interface"
|
||||
.xx "pty" "pseudo terminal driver"
|
||||
.xx "qe" "DEC DEQNA Q-bus 10 Mb/s Ethernet interface"
|
||||
.xx "rx" "DEC RX02 floppy disk interface"
|
||||
.xx "spp" "Xerox Sequenced Packet Protocol"
|
||||
.xx "tb" "line discipline for digitizing devices"
|
||||
.xx "tcp" "Internet Transmission Control Protocol"
|
||||
.xx "tm" "TM-11/TE-10 magtape interface"
|
||||
.xx "tmscp" "DEC TMSCP magtape interface"
|
||||
.xx "ts" "TS-11 magtape interface"
|
||||
.xx "tty" "general terminal interface"
|
||||
.xx "tu" "VAX-11/730 and VAX-11/750 TU58 console cassette interface"
|
||||
.xx "uda" "UDA-50 disk controller interface"
|
||||
.xx "udp" "Internet User Datagram Protocol"
|
||||
.xx "up" "unibus storage module controller/drives"
|
||||
.xx "ut" "UNIBUS TU45 tri-density tape drive interface"
|
||||
.xx "uu" "TU58/DECtape II UNIBUS cassette interface"
|
||||
.xx "va" "Benson-Varian interface"
|
||||
.xx "vp" "Versatec interface"
|
||||
.xx "vv" "Proteon proNET 10 Megabit ring"
|
||||
@@ -0,0 +1,41 @@
|
||||
.xx "L-devices" "UUCP device description file"
|
||||
.xx "L-dialcodes" "UUCP phone number index file"
|
||||
.xx "L.aliases" "UUCP hostname alias file"
|
||||
.xx "L.cmds" "UUCP remote command permissions file"
|
||||
.xx "L.sys" "UUCP remote host description file"
|
||||
.xx "USERFILE" "UUCP pathname permissions file"
|
||||
.xx "a.out" "assembler and link editor output"
|
||||
.xx "acct" "execution accounting file"
|
||||
.xx "aliases" "aliases file for sendmail"
|
||||
.xx "ar" "archive (library) file format"
|
||||
.xx "core" "format of memory image file"
|
||||
.xx "dbx" "dbx symbol table information"
|
||||
.xx "dir" "format of directories"
|
||||
.xx "disktab" "disk description file"
|
||||
.xx "dump" "incremental dump format"
|
||||
.xx "fs" "format of file system volume"
|
||||
.xx "fstab" "static information about the filesystems"
|
||||
.xx "gettytab" "terminal configuration data base"
|
||||
.xx "group" "group file"
|
||||
.xx "hosts" "host name data base"
|
||||
.xx "map3270" "database for mapping ascii keystrokes into IBM 3270 keys"
|
||||
.xx "mtab" "mounted file system table"
|
||||
.xx "networks" "network name data base"
|
||||
.xx "passwd" "password file"
|
||||
.xx "phones" "remote host phone number data base"
|
||||
.xx "plot" "graphics interface"
|
||||
.xx "printcap" "printer capability data base"
|
||||
.xx "protocols" "protocol name data base"
|
||||
.xx "remote" "remote host description file"
|
||||
.xx "resolver" "resolver configuration file"
|
||||
.xx "services" "service name data base"
|
||||
.xx "stab" "symbol table types"
|
||||
.xx "tar" "tape archive file format"
|
||||
.xx "termcap" "terminal capability data base"
|
||||
.xx "tp" "DEC/mag tape formats"
|
||||
.xx "ttys" "terminal initialization data"
|
||||
.xx "types" "primitive system data types"
|
||||
.xx "utmp" "login records"
|
||||
.xx "uuencode" "format of an encoded uuencode file"
|
||||
.xx "vfont" "font formats for the Benson-Varian or Versatec"
|
||||
.xx "vgrindefs" "vgrind's language definition data base"
|
||||
@@ -0,0 +1,31 @@
|
||||
.xx "aardvark" "yet another exploration game"
|
||||
.xx "adventure" "an exploration game"
|
||||
.xx "arithmetic" "provide drill in number facts"
|
||||
.xx "backgammon" "the game"
|
||||
.xx "banner" "print large banner on printer"
|
||||
.xx "battlestar" "a tropical adventure game"
|
||||
.xx "bcd" "convert to antique media"
|
||||
.xx "boggle" "play the game of boggle"
|
||||
.xx "canfield" "the solitaire card game canfield"
|
||||
.xx "chess" "the game of chess"
|
||||
.xx "ching" "the book of changes and other cookies"
|
||||
.xx "cribbage" "the card game cribbage"
|
||||
.xx "doctor" "interact with a psychoanalyst"
|
||||
.xx "fish" "play ``Go Fish''"
|
||||
.xx "fortune" "print a random, hopefully interesting, adage"
|
||||
.xx "hangman" "Computer version of the game hangman"
|
||||
.xx "hunt" "a multi-player multi-terminal game"
|
||||
.xx "mille" "play Mille Bournes"
|
||||
.xx "monop" "Monopoly game"
|
||||
.xx "number" "convert Arabic numerals to English"
|
||||
.xx "quiz" "test your knowledge"
|
||||
.xx "rain" "animated raindrops display"
|
||||
.xx "robots" "fight off villainous robots"
|
||||
.xx "rogue" "Exploring The Dungeons of Doom"
|
||||
.xx "sail" "multi-user wooden ships and iron men"
|
||||
.xx "snake" "display chase game"
|
||||
.xx "trek" "trekkie game"
|
||||
.xx "worm" "Play the growing worm game"
|
||||
.xx "worms" "animate worms on a display terminal"
|
||||
.xx "wump" "the game of hunt-the-wumpus"
|
||||
.xx "zork" "the game of dungeon"
|
||||
@@ -0,0 +1,10 @@
|
||||
.xx "intro" "miscellaneous useful information pages"
|
||||
.xx "ascii" "map of ASCII character set"
|
||||
.xx "environ" "user environment"
|
||||
.xx "eqnchar" "special character definitions for eqn"
|
||||
.xx "hier" "file system hierarchy"
|
||||
.xx "mailaddr" "mail addressing description"
|
||||
.xx "man" "macros to typeset manual"
|
||||
.xx "me" "macros for formatting papers"
|
||||
.xx "ms" "text formatting macros"
|
||||
.xx "term" "conventional names for terminals"
|
||||
@@ -0,0 +1,98 @@
|
||||
.xx "intro" "introduction to system maintenance and operation commands"
|
||||
.xx "XNSrouted" "NS Routing Information Protocol daemon"
|
||||
.xx "ac" "login accounting"
|
||||
.xx "adduser" "procedure for adding new users"
|
||||
.xx "arff" "archiver and copier for floppy"
|
||||
.xx "arp" "address resolution display and control"
|
||||
.xx "bad144" "read/write dec standard 144 bad sector information"
|
||||
.xx "badsect" "create files to contain bad sectors"
|
||||
.xx "bugfiler" "file bug reports in folders automatically"
|
||||
.xx "catman" "create the cat files for the manual"
|
||||
.xx "chown" "change owner"
|
||||
.xx "clri" "clear i-node"
|
||||
.xx "comsat" "biff server"
|
||||
.xx "config" "build system configuration files"
|
||||
.xx "crash" "what happens when the system crashes"
|
||||
.xx "cron" "clock daemon"
|
||||
.xx "dcheck" "file system directory consistency check"
|
||||
.xx "diskpart" "calculate default disk partition sizes"
|
||||
.xx "dmesg" "collect system diagnostic messages to form error log"
|
||||
.xx "drtest" "standalone disk test program"
|
||||
.xx "dump" "incremental file system dump"
|
||||
.xx "dumpfs" "dump file system information"
|
||||
.xx "edquota" "edit user quotas"
|
||||
.xx "fastboot" "reboot/halt the system without checking the disks"
|
||||
.xx "fingerd" "remote user information server"
|
||||
.xx "format" "how to format disk packs"
|
||||
.xx "fsck" "file system consistency check and interactive repair"
|
||||
.xx "ftpd" "DARPA Internet File Transfer Protocol server"
|
||||
.xx "gettable" "get NIC format host tables from a host"
|
||||
.xx "getty" "set terminal mode"
|
||||
.xx "halt" "stop the processor"
|
||||
.xx "htable" "convert NIC standard format host tables"
|
||||
.xx "icheck" "file system storage consistency check"
|
||||
.xx "ifconfig" "configure network interface parameters"
|
||||
.xx "implog" "IMP log interpreter"
|
||||
.xx "implogd" "IMP logger process"
|
||||
.xx "inetd" "internet ``super\-server''"
|
||||
.xx "init" "process control initialization"
|
||||
.xx "kgmon" "generate a dump of the operating system's profile buffers"
|
||||
.xx "lpc" "line printer control program"
|
||||
.xx "lpd" "line printer daemon"
|
||||
.xx "makedev" "make system special files"
|
||||
.xx "makekey" "generate encryption key"
|
||||
.xx "mkfs" "construct a file system"
|
||||
.xx "mkhosts" "generate hashed host table"
|
||||
.xx "mklost+found" "make a lost+found directory for fsck"
|
||||
.xx "mknod" "build special file"
|
||||
.xx "mkpasswd" "generate hashed password table"
|
||||
.xx "mkproto" "construct a prototype file system"
|
||||
.xx "mount" "mount and dismount file system"
|
||||
.xx "named" "Internet domain name server"
|
||||
.xx "ncheck" "generate names from i-numbers"
|
||||
.xx "newfs" "construct a new file system"
|
||||
.xx "pac" "printer/plotter accounting information"
|
||||
.xx "ping" "send ICMP ECHO_REQUEST packets to network hosts"
|
||||
.xx "pstat" "print system facts"
|
||||
.xx "quot" "summarize file system ownership"
|
||||
.xx "quotacheck" "file system quota consistency checker"
|
||||
.xx "quotaon" "turn file system quotas on and off"
|
||||
.xx "rc" "command script for auto-reboot and daemons"
|
||||
.xx "rdump" "file system dump across the network"
|
||||
.xx "reboot" "UNIX bootstrapping procedures"
|
||||
.xx "renice" "alter priority of running processes"
|
||||
.xx "repquota" "summarize quotas for a file system"
|
||||
.xx "restore" "incremental file system restore"
|
||||
.xx "rexecd" "remote execution server"
|
||||
.xx "rlogind" "remote login server"
|
||||
.xx "rmt" "remote magtape protocol module"
|
||||
.xx "route" "manually manipulate the routing tables"
|
||||
.xx "routed" "network routing daemon"
|
||||
.xx "rrestore" "restore a file system dump across the network"
|
||||
.xx "rshd" "remote shell server"
|
||||
.xx "rwhod" "system status server"
|
||||
.xx "rxformat" "format floppy disks"
|
||||
.xx "sa" "system accounting"
|
||||
.xx "savecore" "save a core dump of the operating system"
|
||||
.xx "sendmail" "send mail over the internet"
|
||||
.xx "shutdown" "close down the system at a given time"
|
||||
.xx "slattach" "attach serial lines as network interfaces"
|
||||
.xx "sticky" "persistent text and append-only directories"
|
||||
.xx "swapon" "specify additional device for paging and swapping"
|
||||
.xx "sync" "update the super block"
|
||||
.xx "syslogd" "log systems messages"
|
||||
.xx "talkd" "remote user communication server"
|
||||
.xx "telnetd" "DARPA TELNET protocol server"
|
||||
.xx "tftpd" "DARPA Trivial File Transfer Protocol server"
|
||||
.xx "timed" "time server daemon"
|
||||
.xx "timedc" "timed control program"
|
||||
.xx "trpt" "transliterate protocol trace"
|
||||
.xx "trsp" "transliterate sequenced packet protocol trace"
|
||||
.xx "tunefs" "tune up an existing file system"
|
||||
.xx "update" "periodically update the super block"
|
||||
.xx "uucico" "transfer files queued by uucp or uux"
|
||||
.xx "uuclean" "uucp spool directory clean-up"
|
||||
.xx "uupoll" "poll a remote UUCP site"
|
||||
.xx "uusnap" "show snapshot of the UUCP system"
|
||||
.xx "uuxqt" "UUCP execution file interpreter"
|
||||
.xx "vipw" "edit the password file"
|
||||
Executable
+109
@@ -0,0 +1,109 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# Copyright (c) 1980 Regents of the University of California.
|
||||
# All rights reserved. The Berkeley software License Agreement
|
||||
# specifies the terms and conditions for redistribution.
|
||||
#
|
||||
# @(#)tocrc 6.2.1 (2.11BSD) 1996/10/25
|
||||
#
|
||||
tmp=/tmp/toc$$
|
||||
trap "rm $tmp ; exit" 2 3 15
|
||||
if [ $# -eq 2 -a $1 = "3" ]
|
||||
then
|
||||
: create toc input files for section 3 only
|
||||
|
||||
(cd ../man3 ; /usr/libexec/getNAME -t `ls *.3 *.3[mnsxc] | sort` | sed \
|
||||
-e 's/.s-2//g' \
|
||||
-e 's/.s-1//g' \
|
||||
-e 's/.s0//g' \
|
||||
-e 's/.s+1//g' \
|
||||
-e 's/ *.- */: /' \
|
||||
-e 's/ *$/./' \
|
||||
-e 's/.TH.* //' \
|
||||
> ../man0/tocx3 ;
|
||||
/usr/libexec/getNAME -t *.3f | sed \
|
||||
-e 's/.s-2//g' \
|
||||
-e 's/.s-1//g' \
|
||||
-e 's/.s0//g' \
|
||||
-e 's/.s+1//g' \
|
||||
-e 's/ *.- */: /' \
|
||||
-e 's/ *$/./' \
|
||||
-e 's/.TH.* //' \
|
||||
> ../man0/tocx3f
|
||||
)
|
||||
elif [ $# -eq 2 ]
|
||||
then
|
||||
: create toc input file for one section only
|
||||
|
||||
( cd ../man$1 ; /usr/libexec/getNAME -t *.* |
|
||||
sed \
|
||||
-e 's/.s-2//g' \
|
||||
-e 's/.s-1//g' \
|
||||
-e 's/.s0//g' \
|
||||
-e 's/.s+1//g' \
|
||||
-e 's/ *.- */: /' \
|
||||
-e 's/ *$/./' \
|
||||
-e 's/.TH.* //' \
|
||||
> ../man0/tocx$1
|
||||
)
|
||||
else case $1 in
|
||||
all )
|
||||
: tocx files for all sections and everything else
|
||||
|
||||
for x in 1 2 3 4 5 6 7 8
|
||||
do
|
||||
./$0 $x $x
|
||||
done
|
||||
./$0 t
|
||||
;;
|
||||
t )
|
||||
: permuted index and toc files
|
||||
|
||||
if [ ! -f tocx1 ]
|
||||
then
|
||||
echo "tocx* files missing; must run tocrc all first"
|
||||
exit
|
||||
fi
|
||||
sed \
|
||||
-e 's/(1c)/(1C)/' \
|
||||
-e 's/(1g)/(1G)/' \
|
||||
-e 's/(3c)/(3C)/' \
|
||||
-e 's/(3m)/(3M)/' \
|
||||
-e 's/(3n)/(3N)/' \
|
||||
-e 's/(3s)/(3S)/' \
|
||||
-e 's/(3x)/(3X)/' \
|
||||
-e 's/(3f)/(3F)/' \
|
||||
-e 's/(4f)/(4F)/' \
|
||||
-e 's/(4n)/(4N)/' \
|
||||
-e 's/(4p)/(4P)/' \
|
||||
-e 's/(8c)/(8C)/' \
|
||||
-e 's/(8v)/(8V)/' \
|
||||
-e '/"\."/d' \
|
||||
tocx* cshcmd \
|
||||
> /tmp/cattoc
|
||||
|
||||
ptx -r -t -b break -f -w 108 -i ignore \
|
||||
/tmp/cattoc ptxx
|
||||
|
||||
for x in 1 2 3 3f 4 5 6 7 8
|
||||
do
|
||||
< tocx$x grep '^intro' >$tmp
|
||||
sed \
|
||||
-e '2,${' \
|
||||
-e '/^intro/d' \
|
||||
-e '}' \
|
||||
-e 's/ .*://' \
|
||||
-e 's/.$//' \
|
||||
-e 's/([^)]*) /" "/' \
|
||||
-e 's/.*/.xx "&"/' \
|
||||
-e '/""/d' \
|
||||
$tmp tocx$x \
|
||||
>toc$x
|
||||
done
|
||||
;;
|
||||
* )
|
||||
./$0 $1 $1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
exit
|
||||
@@ -0,0 +1,242 @@
|
||||
adb(1) adb: debugger.
|
||||
addbib(1) addbib: create or extend bibliographic database.
|
||||
apply(1) apply: apply a command to a set of arguments.
|
||||
apropos(1) apropos: locate commands by keyword lookup.
|
||||
ar(1) ar: archive and library maintainer.
|
||||
as(1) as: VAX-11 assembler.
|
||||
at(1) at: execute commands at a later time.
|
||||
atq(1) atq: print the queue of jobs waiting to be run.
|
||||
atrm(1) atrm: remove jobs spooled by at.
|
||||
awk(1) awk: pattern scanning and processing language.
|
||||
basename(1) basename: strip filename affixes.
|
||||
bc(1) bc: arbitrary-precision arithmetic language.
|
||||
bib(1) bib, listrefs: bibliographic formatter; list bibliographic reference items.
|
||||
biff(1) biff: be notified if mail arrives and who it is from.
|
||||
binmail(1) binmail: send or receive mail among users.
|
||||
cal(1) cal: print calendar.
|
||||
calendar(1) calendar: reminder service.
|
||||
cat(1) cat: catenate and print.
|
||||
cb(1) cb: C program beautifier.
|
||||
cc(1) cc: C compiler.
|
||||
cd(1) cd: change working directory.
|
||||
checknr(1) checknr: check nroff/troff files.
|
||||
chfn(1) chfn, chsh, passwd: change password file information.
|
||||
chgrp(1) chgrp: change group.
|
||||
chmod(1) chmod: change mode.
|
||||
chsh(1) chfn, chsh, passwd: change password file information.
|
||||
clear(1) clear: clear terminal screen.
|
||||
cmp(1) cmp: compare two files.
|
||||
col(1) col: filter reverse line feeds.
|
||||
colcrt(1) colcrt: filter nroff output for CRT previewing.
|
||||
colrm(1) colrm: remove columns from a file.
|
||||
comm(1) comm: select or reject lines common to two sorted files.
|
||||
compress(1) compress, uncompress, zcat: compress and expand data.
|
||||
cp(1) cp: copy.
|
||||
crypt(1) crypt: encode/decode.
|
||||
csh(1) csh: a shell (command interpreter) with C-like syntax.
|
||||
ctags(1) ctags: create a tags file.
|
||||
date(1) date: print and set the date.
|
||||
dbx(1) dbx: debugger.
|
||||
dc(1) dc: desk calculator.
|
||||
dd(1) dd: convert and copy a file.
|
||||
deroff(1) deroff: remove nroff, troff, tbl and eqn constructs.
|
||||
df(1) df: disk free.
|
||||
diction(1) diction, explain: print wordy sentences; thesaurus for diction.
|
||||
diff(1) diff: differential file and directory comparator.
|
||||
diff3(1) diff3: 3-way differential file comparison.
|
||||
du(1) du: summarize disk usage.
|
||||
echo(1) echo: echo arguments.
|
||||
ed(1) ed: text editor.
|
||||
efl(1) efl: Extended Fortran Language.
|
||||
eqn(1) eqn, neqn, checkeq: typeset mathematics.
|
||||
error(1) error: analyze and disperse compiler error messages.
|
||||
ex(1) ex, edit: text editor.
|
||||
expand(1) expand, unexpand: expand tabs to spaces, and vice versa.
|
||||
expr(1) expr: evaluate arguments as an expression.
|
||||
f77(1) f77: Fortran 77 compiler.
|
||||
false(1) false, true: provide truth values.
|
||||
file(1) file: determine file type.
|
||||
find(1) find: find files.
|
||||
finger(1) finger: user information lookup program.
|
||||
fmt(1) fmt: simple text formatter.
|
||||
fold(1) fold: fold long lines for finite width output device.
|
||||
fp(1) fp: Functional Programming language compiler/interpreter.
|
||||
fpr(1) fpr: print Fortran file.
|
||||
from(1) from: who is my mail from?.
|
||||
fsplit(1) fsplit: split a multi-routine Fortran file into individual files.
|
||||
ftp(1c) ftp: ARPANET file transfer program.
|
||||
gcore(1) gcore: get core images of running processes.
|
||||
gprof(1) gprof: display call graph profile data.
|
||||
graph(1g) graph: draw a graph.
|
||||
grep(1) grep, egrep, fgrep: search a file for a pattern.
|
||||
groups(1) groups: show group memberships.
|
||||
head(1) head: give first few lines.
|
||||
hostid(1) hostid: set or print identifier of current host system.
|
||||
hostname(1) hostname: set or print name of current host system.
|
||||
indent(1) indent: indent and format C program source.
|
||||
install(1) install: install binaries.
|
||||
intro(1) intro: introduction to commands.
|
||||
iostat(1) iostat: report I/O statistics.
|
||||
join(1) join: relational database operator.
|
||||
jove(1) jove: an interactive display-oriented text editor.
|
||||
kill(1) kill: terminate a process with extreme prejudice.
|
||||
last(1) last: indicate last logins of users and teletypes.
|
||||
lastcomm(1) lastcomm: show last commands executed in reverse order.
|
||||
ld(1) ld: link editor.
|
||||
learn(1) learn: computer aided instruction about UNIX.
|
||||
leave(1) leave: remind you when you have to leave.
|
||||
lex(1) lex: generator of lexical analysis programs.
|
||||
lint(1) lint: a C program verifier.
|
||||
lisp(1) lisp: lisp interpreter.
|
||||
liszt(1) liszt: compile a Franz Lisp program.
|
||||
ln(1) ln: make links.
|
||||
lock(1) lock: reserve a terminal.
|
||||
logger(1) logger: make entries in the system log.
|
||||
login(1) login: sign on.
|
||||
look(1) look: find lines in a sorted list.
|
||||
lookbib(1) indxbib, lookbib: build inverted index for a bibliography, find references in a bibliography.
|
||||
lorder(1) lorder: find ordering relation for an object library.
|
||||
lpq(1) lpq: spool queue examination program.
|
||||
lpr(1) lpr: off line print.
|
||||
lprm(1) lprm: remove jobs from the line printer spooling queue.
|
||||
lptest(1) lptest: generate lineprinter ripple pattern.
|
||||
ls(1) ls: list contents of directory.
|
||||
lxref(1) lxref: lisp cross reference program.
|
||||
m4(1) m4: macro processor.
|
||||
mail(1) mail: send and receive mail.
|
||||
make(1) make: maintain program groups.
|
||||
man(1) man: find manual information by keywords; print out the manual.
|
||||
mesg(1) mesg: permit or deny messages.
|
||||
mh(1) mh: Message Handler.
|
||||
mkdir(1) mkdir: make a directory.
|
||||
mkstr(1) mkstr: create an error message file by massaging C source.
|
||||
more(1) more, page: file perusal filter for crt viewing.
|
||||
mset(1) mset: retrieve ASCII to IBM 3270 keyboard map.
|
||||
msgs(1) msgs: system messages and junk mail program.
|
||||
mt(1) mt: magnetic tape manipulating program.
|
||||
mv(1) mv: move or rename files.
|
||||
netstat(1) netstat: show network status.
|
||||
newaliases(1) newaliases: rebuild the data base for the mail aliases file.
|
||||
nice(1) nice, nohup: run a command at low priority (\fIsh\fR only).
|
||||
nm(1) nm: print name list.
|
||||
notes(1) notes, autoseq, readnotes: a news system.
|
||||
nroff(1) nroff: text formatting.
|
||||
od(1) od: octal, decimal, hex, ascii dump.
|
||||
pagesize(1) pagesize: print system page size.
|
||||
passwd(1) chfn, chsh, passwd: change password file information.
|
||||
patch(1) patch: a program for applying a diff file to an original.
|
||||
pc(1) pc: Pascal compiler.
|
||||
pdx(1) pdx: pascal debugger.
|
||||
pi(1) pi: Pascal interpreter code translator.
|
||||
pix(1) pix: Pascal interpreter and executor.
|
||||
plot(1g) plot: graphics filters.
|
||||
pmerge(1) pmerge: pascal file merger.
|
||||
pr(1) pr: print file.
|
||||
printenv(1) printenv: print out the environment.
|
||||
prof(1) prof: display profile data.
|
||||
ps(1) ps: process status.
|
||||
ptx(1) ptx: permuted index.
|
||||
pwd(1) pwd: working directory name.
|
||||
px(1) px: Pascal interpreter.
|
||||
pxp(1) pxp: Pascal execution profiler.
|
||||
pxref(1) pxref: Pascal cross-reference program.
|
||||
quota(1) quota: display disc usage and limits.
|
||||
ranlib(1) ranlib: convert archives to random libraries.
|
||||
ratfor(1) ratfor: rational Fortran dialect.
|
||||
rcp(1c) rcp: remote file copy.
|
||||
rcsintro(1) rcsintro: introduction to RCS commands.
|
||||
rdist(1) rdist: remote file distribution program.
|
||||
readnews(1) readnews: read news articles.
|
||||
refer(1) refer: find and insert literature references in documents.
|
||||
rev(1) rev: reverse lines of a file.
|
||||
rlogin(1c) rlogin: remote login.
|
||||
rm(1) rm, rmdir: remove (unlink) files or directories.
|
||||
rmail(1) rmail: handle remote mail received via uucp.
|
||||
rmdir(1) rmdir, rm: remove (unlink) directories or files.
|
||||
roffbib(1) roffbib: run off bibliographic database.
|
||||
rsh(1c) rsh: remote shell.
|
||||
ruptime(1c) ruptime: show host status of local machines.
|
||||
rwho(1c) rwho: who's logged in on local machines.
|
||||
sccs(1) sccs: front end for the SCCS subsystem.
|
||||
script(1) script: make typescript of terminal session.
|
||||
sed(1) sed: stream editor.
|
||||
sendbug(1) sendbug: mail a system bug report to 4bsd-bugs.
|
||||
sh(1) sh, for, case, if, while, \fB:\fP, \fB.\fP, break, continue, cd, eval, exec, exit, export, login, read, readonly, set, shift, times, trap, umask, wait: command language.
|
||||
size(1) size: size of an object file.
|
||||
sleep(1) sleep: suspend execution for an interval.
|
||||
soelim(1) soelim: eliminate \&.so's from nroff input.
|
||||
sort(1) sort: sort or merge files.
|
||||
sortbib(1) sortbib: sort bibliographic database.
|
||||
spell(1) spell, spellin, spellout: find spelling errors.
|
||||
spline(1g) spline: interpolate smooth curve.
|
||||
split(1) split: split a file into pieces.
|
||||
strings(1) strings: find the printable strings in a object, or other binary, file.
|
||||
strip(1) strip: remove symbols and relocation bits.
|
||||
struct(1) struct: structure Fortran programs.
|
||||
stty(1) stty: set terminal options.
|
||||
style(1) style: analyze surface characteristics of a document.
|
||||
su(1) su: substitute user id temporarily.
|
||||
sum(1) sum: sum and count blocks in a file.
|
||||
symorder(1) symorder: rearrange name list.
|
||||
sysline(1) sysline: display system status on status line of a terminal.
|
||||
systat(1) systat: display system statistics on a crt.
|
||||
tabs(1) tabs: set terminal tabs.
|
||||
tail(1) tail: deliver the last part of a file.
|
||||
talk(1) talk: talk to another user.
|
||||
tar(1) tar: tape archiver.
|
||||
tbl(1) tbl: format tables for nroff or troff.
|
||||
tc(1) tc: photoypesetter simulator.
|
||||
tcopy(1) tcopy: copy a mag tape.
|
||||
tee(1) tee: pipe fitting.
|
||||
telnet(1c) telnet: user interface to the TELNET protocol.
|
||||
test(1) test: condition command.
|
||||
tftp(1c) tftp: trivial file transfer program.
|
||||
time(1) time: time a command.
|
||||
tip(1c) tip, cu: connect to a remote system.
|
||||
tk(1) tk: paginator for the Tektronix 4014.
|
||||
tn3270(1) tn3270: full-screen remote login to IBM VM/CMS.
|
||||
touch(1) touch: update date last modified of a file.
|
||||
tp(1) tp: manipulate tape archive.
|
||||
tr(1) tr: translate characters.
|
||||
troff(1) troff, nroff: text formatting and typesetting.
|
||||
true(1) true, false: provide truth values.
|
||||
tset(1) tset: terminal dependent initialization.
|
||||
tsort(1) tsort: topological sort.
|
||||
tty(1) tty: get terminal name.
|
||||
ul(1) ul: do underlining.
|
||||
unifdef(1) unifdef: remove ifdef'ed lines.
|
||||
uniq(1) uniq: report repeated lines in a file.
|
||||
units(1) units: conversion program.
|
||||
uptime(1) uptime: show how long system has been up.
|
||||
users(1) users: compact list of users who are on the system.
|
||||
uucp(1c) uucp: unix to unix copy.
|
||||
uuencode(1c) uuencode, uudecode: encode/decode a binary file for transmission via mail.
|
||||
uulog(1c) uulog: display UUCP log files.
|
||||
uuname(1c) uuname: list names of UUCP hosts.
|
||||
uuq(1c) uuq: examine or manipulate the uucp queue.
|
||||
uusend(1c) uusend: send a file to a remote host.
|
||||
uux(1c) uux: unix to unix command execution.
|
||||
vacation(1) vacation: return ``I am on vacation'' indication.
|
||||
vgrind(1) vgrind: grind nice listings of programs.
|
||||
vi(1) vi: screen oriented (visual) display editor based on ex.
|
||||
vlp(1) vlp: Format Lisp programs to be printed with nroff, vtroff, or troff.
|
||||
vmstat(1) vmstat: report virtual memory statistics.
|
||||
vnews(1) vnews: read news articles.
|
||||
vwidth(1) vwidth: make troff width table for a font.
|
||||
w(1) w: who is on and what they are doing.
|
||||
wait(1) wait: await completion of process.
|
||||
wall(1) wall: write to all users.
|
||||
wc(1) wc: word count.
|
||||
what(1) what: show what versions of object modules were used to construct a file.
|
||||
whatis(1) whatis: describe what a command is.
|
||||
whereis(1) whereis: locate source, binary, and or manual for program.
|
||||
which(1) which: locate a program file including aliases and paths (\fIcsh\fR only).
|
||||
who(1) who: who is on the system.
|
||||
whoami(1) whoami: print effective current user id.
|
||||
whois(1) whois: DARPA Internet user name directory service.
|
||||
window(1) window: window environment.
|
||||
write(1) write: write to another user.
|
||||
xsend(1) xsend, xget, enroll: secret mail.
|
||||
xstr(1) xstr: extract strings from C programs to implement shared strings.
|
||||
yacc(1) yacc: yet another compiler-compiler.
|
||||
yes(1) yes: be repetitively affirmative.
|
||||
@@ -0,0 +1,87 @@
|
||||
accept(2) accept: accept a connection on a socket.
|
||||
access(2) access: determine accessibility of file.
|
||||
acct(2) acct: turn accounting on or off.
|
||||
adjtime(2) adjtime: correct the time to allow synchronization of the system clock.
|
||||
bind(2) bind: bind a name to a socket.
|
||||
brk(2) brk, sbrk: change data segment size.
|
||||
chdir(2) chdir: change current working directory.
|
||||
chmod(2) chmod: change mode of file.
|
||||
chown(2) chown: change owner and group of a file.
|
||||
chroot(2) chroot: change root directory.
|
||||
close(2) close: delete a descriptor.
|
||||
connect(2) connect: initiate a connection on a socket.
|
||||
creat(2) creat: create a new file.
|
||||
dup(2) dup, dup2: duplicate a descriptor.
|
||||
execve(2) execve: execute a file.
|
||||
exit(2) _exit: terminate a process.
|
||||
fcntl(2) fcntl: file control.
|
||||
flock(2) flock: apply or remove an advisory lock on an open file.
|
||||
fork(2) fork: create a new process.
|
||||
fsync(2) fsync: synchronize a file's in-core state with that on disk.
|
||||
getdtablesize(2) getdtablesize: get descriptor table size.
|
||||
getgid(2) getgid, getegid: get group identity.
|
||||
getgroups(2) getgroups: get group access list.
|
||||
gethostid(2) gethostid, sethostid: get/set unique identifier of current host.
|
||||
gethostname(2) gethostname, sethostname: get/set name of current host.
|
||||
getitimer(2) getitimer, setitimer: get/set value of interval timer.
|
||||
getpagesize(2) getpagesize: get system page size.
|
||||
getpeername(2) getpeername: get name of connected peer.
|
||||
getpgrp(2) getpgrp: get process group.
|
||||
getpid(2) getpid, getppid: get process identification.
|
||||
getpriority(2) getpriority, setpriority: get/set program scheduling priority.
|
||||
getrlimit(2) getrlimit, setrlimit: control maximum system resource consumption.
|
||||
getrusage(2) getrusage: get information about resource utilization.
|
||||
getsockname(2) getsockname: get socket name.
|
||||
getsockopt(2) getsockopt, setsockopt: get and set options on sockets.
|
||||
gettimeofday(2) gettimeofday, settimeofday: get/set date and time.
|
||||
getuid(2) getuid, geteuid: get user identity.
|
||||
intro(2) intro: introduction to system calls and error numbers.
|
||||
ioctl(2) ioctl: control device.
|
||||
kill(2) kill: send signal to a process.
|
||||
killpg(2) killpg: send signal to a process group.
|
||||
link(2) link: make a hard link to a file.
|
||||
listen(2) listen: listen for connections on a socket.
|
||||
lseek(2) lseek: move read/write pointer.
|
||||
mkdir(2) mkdir: make a directory file.
|
||||
mknod(2) mknod: make a special file.
|
||||
mount(2) mount, umount: mount or remove file system.
|
||||
open(2) open: open a file for reading or writing, or create a new file.
|
||||
pipe(2) pipe: create an interprocess communication channel.
|
||||
profil(2) profil: execution time profile.
|
||||
ptrace(2) ptrace: process trace.
|
||||
quota(2) quota: manipulate disk quotas.
|
||||
read(2) read, readv: read input.
|
||||
readlink(2) readlink: read value of a symbolic link.
|
||||
reboot(2) reboot: reboot system or halt processor.
|
||||
recv(2) recv, recvfrom, recvmsg: receive a message from a socket.
|
||||
rename(2) rename: change the name of a file.
|
||||
rmdir(2) rmdir: remove a directory file.
|
||||
select(2) select: synchronous I/O multiplexing.
|
||||
send(2) send, sendto, sendmsg: send a message from a socket.
|
||||
setgroups(2) setgroups: set group access list.
|
||||
setpgrp(2) setpgrp: set process group.
|
||||
setquota(2) setquota: enable/disable quotas on a file system.
|
||||
setregid(2) setregid: set real and effective group ID.
|
||||
setreuid(2) setreuid: set real and effective user ID's.
|
||||
shutdown(2) shutdown: shut down part of a full-duplex connection.
|
||||
sigblock(2) sigblock: block signals.
|
||||
sigpause(2) sigpause: atomically release blocked signals and wait for interrupt.
|
||||
sigreturn(2) sigreturn: return from signal.
|
||||
sigsetmask(2) sigsetmask: set current signal mask.
|
||||
sigstack(2) sigstack: set and/or get signal stack context.
|
||||
sigvec(2) sigvec: software signal facilities.
|
||||
socket(2) socket: create an endpoint for communication.
|
||||
socketpair(2) socketpair: create a pair of connected sockets.
|
||||
stat(2) stat, lstat, fstat: get file status.
|
||||
swapon(2) swapon: add a swap device for interleaved paging/swapping.
|
||||
symlink(2) symlink: make symbolic link to a file.
|
||||
sync(2) sync: update super-block.
|
||||
syscall(2) syscall: indirect system call.
|
||||
truncate(2) truncate: truncate a file to a specified length.
|
||||
umask(2) umask: set file creation mode mask.
|
||||
unlink(2) unlink: remove directory entry.
|
||||
utimes(2) utimes: set file times.
|
||||
vfork(2) vfork: spawn new process in a virtual memory efficient way.
|
||||
vhangup(2) vhangup: virtually ``hangup'' the current control terminal.
|
||||
wait(2) wait, wait3: wait for process to terminate.
|
||||
write(2) write, writev: write output.
|
||||
@@ -0,0 +1,108 @@
|
||||
abort(3) abort: generate a fault.
|
||||
abs(3) abs: integer absolute value.
|
||||
alarm(3c) alarm: schedule signal after specified time.
|
||||
asinh(3m) asinh, acosh, atanh: inverse hyperbolic functions.
|
||||
assert(3) assert: program verification.
|
||||
atof(3) atof, atoi, atol: convert ASCII to numbers.
|
||||
bstring(3) bcopy, bcmp, bzero, ffs: bit and byte string operations.
|
||||
byteorder(3n) htonl, htons, ntohl, ntohs: convert values between host and network byte order.
|
||||
crypt(3) crypt, setkey, encrypt: DES encryption.
|
||||
ctime(3) ctime, localtime, gmtime, asctime, timezone: convert date and time to ASCII.
|
||||
ctype(3) isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii: character classification macros.
|
||||
curses(3x) curses: screen functions with ``optimal'' cursor motion.
|
||||
dbm(3x) dbminit, fetch, store, delete, firstkey, nextkey: data base subroutines.
|
||||
directory(3) opendir, readdir, telldir, seekdir, rewinddir, closedir: directory operations.
|
||||
ecvt(3) ecvt, fcvt, gcvt: output conversion.
|
||||
end(3) end, etext, edata: last locations in program.
|
||||
erf(3m) erf, erfc: error functions.
|
||||
execl(3) execl, execv, execle, execlp, execvp, exec, execve, exect, environ: execute a file.
|
||||
exit(3) exit: terminate a process after flushing any pending output.
|
||||
exp(3m) exp, expm1, log, log10, log1p, pow: exponential, logarithm, power.
|
||||
fclose(3s) fclose, fflush: close or flush a stream.
|
||||
ferror(3s) ferror, feof, clearerr, fileno: stream status inquiries.
|
||||
floor(3m) fabs, floor, ceil, rint: absolute value, floor, ceiling, and round-to-nearest functions.
|
||||
fopen(3s) fopen, freopen, fdopen: open a stream.
|
||||
fread(3s) fread, fwrite: buffered binary input/output.
|
||||
frexp(3) frexp, ldexp, modf: split into mantissa and exponent.
|
||||
fseek(3s) fseek, ftell, rewind: reposition a stream.
|
||||
getc(3s) getc, getchar, fgetc, getw: get character or word from stream.
|
||||
getdisk(3) getdiskbyname: get disk description by its name.
|
||||
getenv(3) getenv: value for environment name.
|
||||
getfsent(3) getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent: get file system descriptor file entry.
|
||||
getgrent(3) getgrent, getgrgid, getgrnam, setgrent, endgrent: get group file entry.
|
||||
gethostbyname(3n) gethostbyname, gethostbyaddr, gethostent, sethostent, endhostent: get network host entry.
|
||||
getlogin(3) getlogin: get login name.
|
||||
getnetent(3n) getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent: get network entry.
|
||||
getopt(3) getopt: get option letter from argv.
|
||||
getpass(3) getpass: read a password.
|
||||
getprotoent(3n) getprotoent, getprotobynumber, getprotobyname, setprotoent, endprotoent: get protocol entry.
|
||||
getpw(3c) getpw: get name from uid.
|
||||
getpwent(3) getpwent, getpwuid, getpwnam, setpwent, endpwent, setpwfile: get password file entry.
|
||||
gets(3s) gets, fgets: get a string from a stream.
|
||||
getservent(3n) getservent, getservbyport, getservbyname, setservent, endservent: get service entry.
|
||||
getttyent(3) getttyent, getttynam, setttyent, endttyent: get ttys file entry.
|
||||
getusershell(3) getusershell, setusershell, endusershell: get legal user shells.
|
||||
getwd(3) getwd: get current working directory pathname.
|
||||
hypot(3m) hypot, cabs: Euclidean distance, complex absolute value.
|
||||
ieee(3m) copysign, drem, finite, logb, scalb: copysign, remainder, exponent manipulations.
|
||||
inet(3n) inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof: Internet address manipulation routines.
|
||||
infnan(3m) infnan: signals invalid floating-point operations on a VAX (temporary).
|
||||
initgroups(3) initgroups: initialize group access list.
|
||||
insque(3) insque, remque: insert/remove element from a queue.
|
||||
intro(3) intro: introduction to C library functions.
|
||||
j0(3m) j0, j1, jn, y0, y1, yn: bessel functions.
|
||||
lgamma(3m) lgamma: log gamma function.
|
||||
lib2648(3x) lib2648: subroutines for the HP 2648 graphics terminal.
|
||||
malloc(3) malloc, free, realloc, calloc, alloca: memory allocator.
|
||||
math(3m) math: introduction to mathematical library functions.
|
||||
mktemp(3) mktemp: make a unique file name.
|
||||
monitor(3) monitor, monstartup, moncontrol: prepare execution profile.
|
||||
mp(3x) madd, msub, mult, mdiv, pow, gcd, invert, rpow, msqrt, mcmp, move, min, omin, fmin, m_in, mout, omout, fmout, m_out, sdiv, itom: multiple precision integer arithmetic.
|
||||
ndbm(3) dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr: data base subroutines.
|
||||
nice(3c) nice: set program priority.
|
||||
nlist(3) nlist: get entries from name list.
|
||||
ns(3n) ns_addr, ns_ntoa: Xerox NS(tm) address conversion routines.
|
||||
pause(3c) pause: stop until signal.
|
||||
perror(3) perror, sys_errlist, sys_nerr: system error messages.
|
||||
plot(3x) plot: openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl: graphics interface.
|
||||
popen(3) popen, pclose: initiate I/O to/from a process.
|
||||
printf(3s) printf, fprintf, sprintf: formatted output conversion.
|
||||
psignal(3) psignal, sys_siglist: system signal messages.
|
||||
putc(3s) putc, putchar, fputc, putw: put character or word on a stream.
|
||||
puts(3s) puts, fputs: put a string on a stream.
|
||||
qsort(3) qsort: quicker sort.
|
||||
rand(3c) rand, srand: random number generator.
|
||||
random(3) random, srandom, initstate, setstate: better random number generator; routines for changing generators.
|
||||
rcmd(3) rcmd, rresvport, ruserok: routines for returning a stream to a remote command.
|
||||
regex(3) re_comp, re_exec: regular expression handler.
|
||||
resolver(3) res_mkquery, res_send, res_init, dn_comp, dn_expand: resolver routines.
|
||||
rexec(3) rexec: return stream to a remote command.
|
||||
scandir(3) scandir, alphasort: scan a directory.
|
||||
scanf(3s) scanf, fscanf, sscanf: formatted input conversion.
|
||||
setbuf(3s) setbuf, setbuffer, setlinebuf: assign buffering to a stream.
|
||||
setjmp(3) setjmp, longjmp: non-local goto.
|
||||
setuid(3) setuid, seteuid, setruid, setgid, setegid, setrgid: set user and group ID.
|
||||
siginterrupt(3) siginterrupt: allow signals to interrupt system calls.
|
||||
signal(3c) signal: simplified software signal facilities.
|
||||
sin(3m) sin, cos, tan, asin, acos, atan, atan2: trigonometric functions and their inverses.
|
||||
sinh(3m) sinh, cosh, tanh: hyperbolic functions.
|
||||
sleep(3) sleep: suspend execution for interval.
|
||||
sqrt(3m) cbrt, sqrt: cube root, square root.
|
||||
stdio(3s) stdio: standard buffered input/output package.
|
||||
string(3) strcat, strncat, strcmp, strncmp, strcpy, strncpy, strlen, index, rindex: string operations.
|
||||
stty(3c) stty, gtty: set and get terminal state (defunct).
|
||||
swab(3) swab: swap bytes.
|
||||
syslog(3) syslog, openlog, closelog, setlogmask: control system log.
|
||||
system(3) system: issue a shell command.
|
||||
termcap(3x) tgetent, tgetnum, tgetflag, tgetstr, tgoto, tputs: terminal independent operation routines.
|
||||
time(3c) time, ftime: get date and time.
|
||||
times(3c) times: get process times.
|
||||
ttyname(3) ttyname, isatty, ttyslot: find name of a terminal.
|
||||
ualarm(3) ualarm: schedule signal after specified time.
|
||||
ungetc(3s) ungetc: push character back into input stream.
|
||||
usleep(3) usleep: suspend execution for interval.
|
||||
utime(3c) utime: set file times.
|
||||
valloc(3c) valloc: aligned memory allocator.
|
||||
varargs(3) varargs: variable argument list.
|
||||
vlimit(3c) vlimit: control maximum system resource consumption.
|
||||
vtimes(3c) vtimes: get information about resource utilization.
|
||||
@@ -0,0 +1,50 @@
|
||||
abort(3f) abort: abnormal termination.
|
||||
access(3f) access: determine accessability of a file.
|
||||
alarm(3f) alarm: execute a subroutine after a specified time.
|
||||
bessel(3f) bessel functions: of two kinds for integer orders.
|
||||
bit(3f) bit: and, or, xor, not, rshift, lshift bitwise functions.
|
||||
chdir(3f) chdir: change default directory.
|
||||
chmod(3f) chmod: change mode of a file.
|
||||
etime(3f) etime, dtime: return elapsed execution time.
|
||||
exit(3f) exit: terminate process with status.
|
||||
fdate(3f) fdate: return date and time in an ASCII string.
|
||||
flmin(3f) flmin, flmax, ffrac, dflmin, dflmax, dffrac, inmax: return extreme values.
|
||||
flush(3f) flush: flush output to a logical unit.
|
||||
fork(3f) fork: create a copy of this process.
|
||||
fseek(3f) fseek, ftell: reposition a file on a logical unit.
|
||||
getarg(3f) getarg, iargc: return command line arguments.
|
||||
getc(3f) getc, fgetc: get a character from a logical unit.
|
||||
getcwd(3f) getcwd: get pathname of current working directory.
|
||||
getenv(3f) getenv: get value of environment variables.
|
||||
getlog(3f) getlog: get user's login name.
|
||||
getpid(3f) getpid: get process id.
|
||||
getuid(3f) getuid, getgid: get user or group ID of the caller.
|
||||
hostnm(3f) hostnm: get name of current host.
|
||||
idate(3f) idate, itime: return date or time in numerical form.
|
||||
index(3f) index, rindex, lnblnk, len: tell about character objects.
|
||||
intro(3f) intro: introduction to FORTRAN library functions.
|
||||
ioinit(3f) ioinit: change f77 I/O initialization.
|
||||
kill(3f) kill: send a signal to a process.
|
||||
link(3f) link: make a link to an existing file.
|
||||
loc(3f) loc: return the address of an object.
|
||||
long(3f) long, short: integer object conversion.
|
||||
malloc(3f) malloc, free, falloc: memory allocator.
|
||||
perror(3f) perror, gerror, ierrno: get system error messages.
|
||||
plot(3f) plot: openpl et al.: f77 library interface to \fIplot\fR (3X) libraries..
|
||||
putc(3f) putc, fputc: write a character to a fortran logical unit.
|
||||
qsort(3f) qsort: quick sort.
|
||||
rand(3f) rand, drand, irand: return random values.
|
||||
random(3f) random, drandm, irandm: better random number generator.
|
||||
rename(3f) rename: rename a file.
|
||||
signal(3f) signal: change the action for a signal.
|
||||
sleep(3f) sleep: suspend execution for an interval.
|
||||
stat(3f) stat, lstat, fstat: get file status.
|
||||
system(3f) system: execute a UNIX command.
|
||||
time(3f) time, ctime, ltime, gmtime: return system time.
|
||||
topen(3f) topen, tclose, tread, twrite, trewin, tskipf, tstate: f77 tape I/O.
|
||||
traper(3f) traper: trap arithmetic errors.
|
||||
trapov(3f) trapov: trap and repair floating point overflow.
|
||||
trpfpe(3f) trpfpe, fpecnt: trap and repair floating point faults.
|
||||
ttynam(3f) ttynam, isatty: find name of a terminal port.
|
||||
unlink(3f) unlink: remove a directory entry.
|
||||
wait(3f) wait: wait for a process to terminate.
|
||||
@@ -0,0 +1,70 @@
|
||||
acc(4) acc: ACC LH/DH IMP interface.
|
||||
ad(4) ad: Data Translation A/D converter.
|
||||
arp(4p) arp: Address Resolution Protocol.
|
||||
autoconf(4) autoconf: diagnostics from the autoconfiguration code.
|
||||
bk(4) bk: line discipline for machine-machine communication (obsolete).
|
||||
cons(4) cons: VAX-11 console interface.
|
||||
crl(4) crl: VAX 8600 console RL02 interface.
|
||||
css(4) css: DEC IMP-11A LH/DH IMP interface.
|
||||
ct(4) ct: phototypesetter interface.
|
||||
ddn(4) ddn: DDN Standard Mode X.25 IMP interface.
|
||||
de(4) de: DEC DEUNA 10 Mb/s Ethernet interface.
|
||||
dh(4) dh: DH-11/DM-11 communications multiplexer.
|
||||
dhu(4) dhu: DHU-11 communications multiplexer.
|
||||
dmc(4) dmc: DEC DMC-11/DMR-11 point-to-point communications device.
|
||||
dmf(4) dmf: DMF-32, terminal multiplexor.
|
||||
dmz(4) dmz: DMZ-32 terminal multiplexor.
|
||||
dn(4) dn: DN-11 autocall unit interface.
|
||||
drum(4) drum: paging device.
|
||||
dz(4) dz: DZ-11 communications multiplexer.
|
||||
ec(4) ec: 3Com 10 Mb/s Ethernet interface.
|
||||
en(4) en: Xerox 3 Mb/s Ethernet interface.
|
||||
ex(4) ex: Excelan 10 Mb/s Ethernet interface.
|
||||
fl(4) fl: console floppy interface.
|
||||
hdh(4) hdh: ACC IF-11/HDH IMP interface.
|
||||
hk(4) hk: RK6-11/RK06 and RK07 moving head disk.
|
||||
hp(4) hp: MASSBUS disk interface.
|
||||
ht(4) ht: TM-03/TE-16,TU-45,TU-77 MASSBUS magtape interface.
|
||||
hy(4) hy: Network Systems Hyperchannel interface.
|
||||
icmp(4p) icmp: Internet Control Message Protocol.
|
||||
idp(4p) idp: Xerox Internet Datagram Protocol.
|
||||
ik(4) ik: Ikonas frame buffer, graphics device interface.
|
||||
il(4) il: Interlan NI1010 10 Mb/s Ethernet interface.
|
||||
imp(4) imp: 1822 network interface.
|
||||
imp(4p) imp: IMP raw socket interface.
|
||||
inet(4f) inet: Internet protocol family.
|
||||
intro(4) intro: introduction to special files and hardware support.
|
||||
intro(4n) networking: introduction to networking facilities.
|
||||
ip(4p) ip: Internet Protocol.
|
||||
ix(4) ix: Interlan Np100 10 Mb/s Ethernet interface.
|
||||
kg(4) kg: KL-11/DL-11W line clock.
|
||||
lo(4) lo: software loopback network interface.
|
||||
lp(4) lp: line printer.
|
||||
mem(4) mem, kmem: main memory.
|
||||
mt(4) mt: TM78/TU-78 MASSBUS magtape interface.
|
||||
mtio(4) mtio: UNIX magtape interface.
|
||||
np(4) np: Interlan Np100 10 Mb/s Ethernet interface.
|
||||
ns(4f) ns: Xerox Network Systems(tm) protocol family.
|
||||
nsip(4) nsip: software network interface encapsulating ns packets in ip packets..
|
||||
null(4) null: data sink.
|
||||
pcl(4) pcl: DEC CSS PCL-11 B Network Interface.
|
||||
ps(4) ps: Evans and Sutherland Picture System 2 graphics device interface.
|
||||
pty(4) pty: pseudo terminal driver.
|
||||
qe(4) qe: DEC DEQNA Q-bus 10 Mb/s Ethernet interface.
|
||||
rx(4) rx: DEC RX02 floppy disk interface.
|
||||
spp(4p) spp: Xerox Sequenced Packet Protocol.
|
||||
tb(4) tb: line discipline for digitizing devices.
|
||||
tcp(4p) tcp: Internet Transmission Control Protocol.
|
||||
tm(4) tm: TM-11/TE-10 magtape interface.
|
||||
tmscp(4) tmscp: DEC TMSCP magtape interface.
|
||||
ts(4) ts: TS-11 magtape interface.
|
||||
tty(4) tty: general terminal interface.
|
||||
tu(4) tu: VAX-11/730 and VAX-11/750 TU58 console cassette interface.
|
||||
uda(4) uda: UDA-50 disk controller interface.
|
||||
udp(4p) udp: Internet User Datagram Protocol.
|
||||
up(4) up: unibus storage module controller/drives.
|
||||
ut(4) ut: UNIBUS TU45 tri-density tape drive interface.
|
||||
uu(4) uu: TU58/DECtape II UNIBUS cassette interface.
|
||||
va(4) va: Benson-Varian interface.
|
||||
vp(4) vp: Versatec interface.
|
||||
vv(4) vv: Proteon proNET 10 Megabit ring.
|
||||
@@ -0,0 +1,41 @@
|
||||
L-devices(5) L-devices: UUCP device description file.
|
||||
L-dialcodes(5) L-dialcodes: UUCP phone number index file.
|
||||
L.aliases(5) L.aliases: UUCP hostname alias file.
|
||||
L.cmds(5) L.cmds: UUCP remote command permissions file.
|
||||
L.sys(5) L.sys: UUCP remote host description file.
|
||||
USERFILE(5) USERFILE: UUCP pathname permissions file.
|
||||
a.out(5) a.out: assembler and link editor output.
|
||||
acct(5) acct: execution accounting file.
|
||||
aliases(5) aliases: aliases file for sendmail.
|
||||
ar(5) ar: archive (library) file format.
|
||||
core(5) core: format of memory image file.
|
||||
dbx(5) dbx: dbx symbol table information.
|
||||
dir(5) dir: format of directories.
|
||||
disktab(5) disktab: disk description file.
|
||||
dump(5) dump, dumpdates: incremental dump format.
|
||||
fs(5) fs, inode: format of file system volume.
|
||||
fstab(5) fstab: static information about the filesystems.
|
||||
gettytab(5) gettytab: terminal configuration data base.
|
||||
group(5) group: group file.
|
||||
hosts(5) hosts: host name data base.
|
||||
map3270(5) map3270: database for mapping ascii keystrokes into IBM 3270 keys.
|
||||
mtab(5) mtab: mounted file system table.
|
||||
networks(5) networks: network name data base.
|
||||
passwd(5) passwd: password file.
|
||||
phones(5) phones: remote host phone number data base.
|
||||
plot(5) plot: graphics interface.
|
||||
printcap(5) printcap: printer capability data base.
|
||||
protocols(5) protocols: protocol name data base.
|
||||
remote(5) remote: remote host description file.
|
||||
resolver(5) resolver configuration file.
|
||||
services(5) services: service name data base.
|
||||
stab(5) stab: symbol table types.
|
||||
tar(5) tar: tape archive file format.
|
||||
termcap(5) termcap: terminal capability data base.
|
||||
tp(5) tp: DEC/mag tape formats.
|
||||
ttys(5) ttys: terminal initialization data.
|
||||
types(5) types: primitive system data types.
|
||||
utmp(5) utmp, wtmp: login records.
|
||||
uuencode(5) uuencode: format of an encoded uuencode file.
|
||||
vfont(5) vfont: font formats for the Benson-Varian or Versatec.
|
||||
vgrindefs(5) vgrindefs: vgrind's language definition data base.
|
||||
@@ -0,0 +1,31 @@
|
||||
aardvark(6) aardvark: yet another exploration game.
|
||||
adventure(6) adventure: an exploration game.
|
||||
arithmetic(6) arithmetic: provide drill in number facts.
|
||||
backgammon(6) backgammon: the game.
|
||||
banner(6) banner: print large banner on printer.
|
||||
battlestar(6) battlestar: a tropical adventure game.
|
||||
bcd(6) bcd: convert to antique media.
|
||||
boggle(6) boggle: play the game of boggle.
|
||||
canfield(6) canfield, cfscores: the solitaire card game canfield.
|
||||
chess(6) chess: the game of chess.
|
||||
ching(6) ching: the book of changes and other cookies.
|
||||
cribbage(6) cribbage: the card game cribbage.
|
||||
doctor(6) doctor: interact with a psychoanalyst.
|
||||
fish(6) fish: play ``Go Fish''.
|
||||
fortune(6) fortune: print a random, hopefully interesting, adage.
|
||||
hangman(6) hangman: Computer version of the game hangman.
|
||||
hunt(6) hunt: a multi-player multi-terminal game.
|
||||
mille(6) mille: play Mille Bournes.
|
||||
monop(6) monop: Monopoly game.
|
||||
number(6) number: convert Arabic numerals to English.
|
||||
quiz(6) quiz: test your knowledge.
|
||||
rain(6) rain: animated raindrops display.
|
||||
robots(6) robots: fight off villainous robots.
|
||||
rogue(6) rogue: Exploring The Dungeons of Doom.
|
||||
sail(6) sail: multi-user wooden ships and iron men.
|
||||
snake(6) snake, snscore: display chase game.
|
||||
trek(6) trek: trekkie game.
|
||||
worm(6) worm: Play the growing worm game.
|
||||
worms(6) worms: animate worms on a display terminal.
|
||||
wump(6) wump: the game of hunt-the-wumpus.
|
||||
zork(6) zork: the game of dungeon.
|
||||
@@ -0,0 +1,10 @@
|
||||
ascii(7) ascii: map of ASCII character set.
|
||||
environ(7) environ: user environment.
|
||||
eqnchar(7) eqnchar: special character definitions for eqn.
|
||||
hier(7) hier: file system hierarchy.
|
||||
intro(7) miscellaneous: miscellaneous useful information pages.
|
||||
mailaddr(7) mailaddr: mail addressing description.
|
||||
man(7) man: macros to typeset manual.
|
||||
me(7) me: macros for formatting papers.
|
||||
ms(7) ms: text formatting macros.
|
||||
term(7) term: conventional names for terminals.
|
||||
@@ -0,0 +1,98 @@
|
||||
XNSrouted(8c) XNSrouted: NS Routing Information Protocol daemon.
|
||||
ac(8) ac: login accounting.
|
||||
adduser(8) adduser: procedure for adding new users.
|
||||
arff(8v) arff, flcopy: archiver and copier for floppy.
|
||||
arp(8c) arp: address resolution display and control.
|
||||
bad144(8) bad144: read/write dec standard 144 bad sector information.
|
||||
badsect(8) badsect: create files to contain bad sectors.
|
||||
bugfiler(8) bugfiler: file bug reports in folders automatically.
|
||||
catman(8) catman: create the cat files for the manual.
|
||||
chown(8) chown: change owner.
|
||||
clri(8) clri: clear i-node.
|
||||
comsat(8c) comsat: biff server.
|
||||
config(8) config: build system configuration files.
|
||||
crash(8v) crash: what happens when the system crashes.
|
||||
cron(8) cron: clock daemon.
|
||||
dcheck(8) dcheck: file system directory consistency check.
|
||||
diskpart(8) diskpart: calculate default disk partition sizes.
|
||||
dmesg(8) dmesg: collect system diagnostic messages to form error log.
|
||||
drtest(8) drtest: standalone disk test program.
|
||||
dump(8) dump: incremental file system dump.
|
||||
dumpfs(8) dumpfs: dump file system information.
|
||||
edquota(8) edquota: edit user quotas.
|
||||
fastboot(8) fastboot, fasthalt: reboot/halt the system without checking the disks.
|
||||
fingerd(8c) fingerd: remote user information server.
|
||||
format(8v) format: how to format disk packs.
|
||||
fsck(8) fsck: file system consistency check and interactive repair.
|
||||
ftpd(8c) ftpd: DARPA Internet File Transfer Protocol server.
|
||||
gettable(8c) gettable: get NIC format host tables from a host.
|
||||
getty(8) getty: set terminal mode.
|
||||
halt(8) halt: stop the processor.
|
||||
htable(8) htable: convert NIC standard format host tables.
|
||||
icheck(8) icheck: file system storage consistency check.
|
||||
ifconfig(8c) ifconfig: configure network interface parameters.
|
||||
implog(8c) implog: IMP log interpreter.
|
||||
implogd(8c) implogd: IMP logger process.
|
||||
inetd(8) inetd: internet ``super\-server''.
|
||||
init(8) init: process control initialization.
|
||||
intro(8) intro: introduction to system maintenance and operation commands.
|
||||
kgmon(8) kgmon: generate a dump of the operating system's profile buffers.
|
||||
lpc(8) lpc: line printer control program.
|
||||
lpd(8) lpd: line printer daemon.
|
||||
makedev(8) makedev: make system special files.
|
||||
makekey(8) makekey: generate encryption key.
|
||||
mkfs(8) mkfs: construct a file system.
|
||||
mkhosts(8) mkhosts: generate hashed host table.
|
||||
mklost+found(8) mklost+found: make a lost+found directory for fsck.
|
||||
mknod(8) mknod: build special file.
|
||||
mkpasswd(8) mkpasswd: generate hashed password table.
|
||||
mkproto(8) mkproto: construct a prototype file system.
|
||||
mount(8) mount, umount: mount and dismount file system.
|
||||
named(8) named: Internet domain name server.
|
||||
ncheck(8) ncheck: generate names from i-numbers.
|
||||
newfs(8) newfs: construct a new file system.
|
||||
pac(8) pac: printer/plotter accounting information.
|
||||
ping(8) ping: send ICMP ECHO_REQUEST packets to network hosts.
|
||||
pstat(8) pstat: print system facts.
|
||||
quot(8) quot: summarize file system ownership.
|
||||
quotacheck(8) quotacheck: file system quota consistency checker.
|
||||
quotaon(8) quotaon, quotaoff: turn file system quotas on and off.
|
||||
rc(8) rc: command script for auto-reboot and daemons.
|
||||
rdump(8c) rdump: file system dump across the network.
|
||||
reboot(8) reboot: UNIX bootstrapping procedures.
|
||||
renice(8) renice: alter priority of running processes.
|
||||
repquota(8) repquota: summarize quotas for a file system.
|
||||
restore(8) restore: incremental file system restore.
|
||||
rexecd(8c) rexecd: remote execution server.
|
||||
rlogind(8c) rlogind: remote login server.
|
||||
rmt(8c) rmt: remote magtape protocol module.
|
||||
route(8c) route: manually manipulate the routing tables.
|
||||
routed(8c) routed: network routing daemon.
|
||||
rrestore(8c) rrestore: restore a file system dump across the network.
|
||||
rshd(8c) rshd: remote shell server.
|
||||
rwhod(8c) rwhod: system status server.
|
||||
rxformat(8v) rxformat: format floppy disks.
|
||||
sa(8) sa, accton: system accounting.
|
||||
savecore(8) savecore: save a core dump of the operating system.
|
||||
sendmail(8) sendmail: send mail over the internet.
|
||||
shutdown(8) shutdown: close down the system at a given time.
|
||||
slattach(8c) slattach: attach serial lines as network interfaces.
|
||||
sticky(8) sticky: persistent text and append-only directories.
|
||||
swapon(8) swapon: specify additional device for paging and swapping.
|
||||
sync(8) sync: update the super block.
|
||||
syslogd(8) syslogd: log systems messages.
|
||||
talkd(8c) talkd: remote user communication server.
|
||||
telnetd(8c) telnetd: DARPA TELNET protocol server.
|
||||
tftpd(8c) tftpd: DARPA Trivial File Transfer Protocol server.
|
||||
timed(8) timed: time server daemon.
|
||||
timedc(8) timedc: timed control program.
|
||||
trpt(8c) trpt: transliterate protocol trace.
|
||||
trsp(8c) trsp: transliterate sequenced packet protocol trace.
|
||||
tunefs(8) tunefs: tune up an existing file system.
|
||||
update(8) update: periodically update the super block.
|
||||
uucico(8c) uucico, uucpd: transfer files queued by uucp or uux.
|
||||
uuclean(8c) uuclean: uucp spool directory clean-up.
|
||||
uupoll(8c) uupoll: poll a remote UUCP site.
|
||||
uusnap(8c) uusnap: show snapshot of the UUCP system.
|
||||
uuxqt(8c) uuxqt: UUCP execution file interpreter.
|
||||
vipw(8) vipw: edit the password file.
|
||||
@@ -0,0 +1,141 @@
|
||||
#
|
||||
# Copyright (c) 1987 Regents of the University of California.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms are permitted
|
||||
# provided that the above copyright notice and this paragraph are
|
||||
# duplicated in all such forms and that any documentation,
|
||||
# advertising materials, and other materials related to such
|
||||
# distribution and use acknowledge that the software was developed
|
||||
# by the University of California, Berkeley. The name of the
|
||||
# University may not be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# @(#)Makefile 1.9 (2.11BSD) 1998/1/24
|
||||
#
|
||||
MDIR= /usr/man/cat1
|
||||
SRCS= adb.1 addbib.1 apply.1 apropos.1 as.1 at.1 atq.1 atrm.1 \
|
||||
awk.1 basename.1 bc.1 biff.1 binmail.1 cal.1 calendar.1 cat.1 \
|
||||
cb.1 cc.1 cd.1 checknr.1 chgrp.1 chmod.1 clear.1 cmp.1 col.1 \
|
||||
colcrt.1 colrm.1 comm.1 compress.1 cp.1 csh.1 ctags.1 date.1 dc.1 \
|
||||
dd.1 deroff.1 df.1 diction.1 diff.1 diff3.1 du.1 echo.1 ed.1 \
|
||||
efl.1 eqn.1 error.1 ex.1 expand.1 expr.1 f77.1 false.1 file.1 \
|
||||
find.1 fmt.1 fold.1 fpr.1 from.1 fsplit.1 gcore.1 \
|
||||
graph.1 grep.1 head.1 hostid.1 indent.1 \
|
||||
intro.1 iostat.1 join.1 kill.1 last.1 lastcomm.1 \
|
||||
learn.1 leave.1 lex.1 lint.1 lisp.1 ln.1 logger.1 login.1 \
|
||||
look.1 lookbib.1 lorder.1 lpq.1 lpr.1 lprm.1 lptest.1 ls.1 \
|
||||
lxref.1 m4.1 mail.1 make.1 man.1 mesg.1 mkdep.1 mkdir.1 mkstr.1 \
|
||||
more.1 mset.1 msgs.1 mt.1 mv.1 netstat.1 newaliases.1 nice.1 nm.1
|
||||
SRCS1= nroff.1 nslookup.1 od.1 pagesize.1 pdx.1 pi.1 pix.1 \
|
||||
plot.1 pmerge.1 pr.1 printenv.1 prof.1 ps.1 ptx.1 pwd.1 px.1 pxp.1 \
|
||||
pxref.1 quota.1 ratfor.1 rcp.1 rdist.1 refer.1 rev.1 \
|
||||
rlogin.1 rm.1 rmail.1 rmdir.1 roffbib.1 rsh.1 ruptime.1 rwho.1 \
|
||||
sccs.1 script.1 sed.1 sendbug.1 sh.1 size.1 sleep.1 soelim.1 \
|
||||
sort.1 sortbib.1 spell.1 spline.1 split.1 strcompact.1 strings.1 \
|
||||
strip.1 struct.1 style.1 su.1 sum.1 symcompact.1 symorder.1 \
|
||||
tabs.1 tail.1 talk.1 \
|
||||
tar.1 tbl.1 tc.1 tcopy.1 tee.1 telnet.1 time.1 \
|
||||
tip.1 tk.1 tn3270.1 touch.1 tp.1 tr.1 troff.1 true.1 \
|
||||
tsort.1 tty.1 ul.1 unifdef.1 uniq.1 units.1 uptime.1 users.1 \
|
||||
uucp.1 uuencode.1 uulog.1 uuname.1 uuq.1 uusend.1 uux.1 \
|
||||
vacation.1 vgrind.1 vi.1 vmstat.1 vwidth.1 w.1 wait.1 wall.1 wc.1 \
|
||||
what.1 whatis.1 which.1 who.1 whois.1 window.1 \
|
||||
write.1 xstr.1 yacc.1 yes.1
|
||||
OBJS1= adb.0 addbib.0 apply.0 apropos.0 as.0 at.0 atq.0 atrm.0 \
|
||||
awk.0 basename.0 bc.0 biff.0 binmail.0 cal.0 calendar.0 cat.0 \
|
||||
cb.0 cc.0 cd.0 checknr.0 chgrp.0 chmod.0 clear.0 cmp.0 col.0 \
|
||||
colcrt.0 colrm.0 comm.0 compress.0 cp.0 csh.0 ctags.0 date.0 dc.0 \
|
||||
dd.0 deroff.0 df.0 diction.0 diff.0 diff3.0 du.0 echo.0 ed.0 \
|
||||
efl.0 eqn.0 error.0 ex.0 expand.0 expr.0 f77.0 false.0 file.0 \
|
||||
find.0 fmt.0 fold.0 fpr.0 from.0 fsplit.0 gcore.0 \
|
||||
graph.0 grep.0 head.0 hostid.0 indent.0 \
|
||||
intro.0 iostat.0 join.0 kill.0 last.0 lastcomm.0 \
|
||||
learn.0 leave.0 lex.0 lint.0 lisp.0 ln.0 logger.0 login.0 \
|
||||
look.0 lookbib.0 lorder.0 lpq.0 lpr.0 lprm.0 lptest.0 ls.0 \
|
||||
lxref.0 m4.0 mail.0 make.0 man.0 mesg.0 mkdep.0 mkdir.0 mkstr.0 \
|
||||
more.0 mset.0 msgs.0 mt.0 mv.0 netstat.0 newaliases.0 nice.0 nm.0
|
||||
OBJS2= nroff.0 nslookup.0 od.0 pagesize.0 pdx.0 pi.0 pix.0 \
|
||||
plot.0 pmerge.0 pr.0 printenv.0 prof.0 ps.0 ptx.0 pwd.0 px.0 pxp.0 \
|
||||
pxref.0 quota.0 ratfor.0 rcp.0 rdist.0 refer.0 rev.0 \
|
||||
rlogin.0 rm.0 rmail.0 rmdir.0 roffbib.0 rsh.0 ruptime.0 rwho.0 \
|
||||
sccs.0 script.0 sed.0 sendbug.0 sh.0 size.0 sleep.0 soelim.0 \
|
||||
sort.0 sortbib.0 spell.0 spline.0 split.0 strcompact.0 strings.0 \
|
||||
strip.0 struct.0 style.0 su.0 sum.0 symcompact.0 symorder.0 \
|
||||
tabs.0 tail.0 talk.0 \
|
||||
tar.0 tbl.0 tc.0 tcopy.0 tee.0 telnet.0 time.0 \
|
||||
tip.0 tk.0 tn3270.0 touch.0 tp.0 tr.0 troff.0 true.0 \
|
||||
tsort.0 tty.0 ul.0 unifdef.0 uniq.0 units.0 uptime.0 users.0 \
|
||||
uucp.0 uuencode.0 uulog.0 uuname.0 uuq.0 uusend.0 uux.0 \
|
||||
vacation.0 vgrind.0 vi.0 vmstat.0 vwidth.0 w.0 wait.0 wall.0 wc.0 \
|
||||
what.0 whatis.0 which.0 who.0 whois.0 window.0 \
|
||||
write.0 xstr.0 yacc.0 yes.0
|
||||
|
||||
.SUFFIXES: .1 .0
|
||||
|
||||
.1.0:
|
||||
${DESTDIR}/usr/man/manroff $*.1 > $*.0
|
||||
|
||||
all: _make_01 _make_02
|
||||
|
||||
_make_01: ${OBJS1}
|
||||
|
||||
_make_02: ${OBJS2}
|
||||
|
||||
eqn.0:
|
||||
eqn eqn.1 | ${DESTDIR}/usr/man/manroff > $@
|
||||
|
||||
clean: FRC
|
||||
rm -f ${OBJS1}
|
||||
rm -f ${OBJS2}
|
||||
|
||||
install: _make_01 _make_02
|
||||
install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR}
|
||||
install -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR}
|
||||
rm -f ${DESTDIR}${MDIR}/case.0
|
||||
ln ${DESTDIR}/${MDIR}/sh.0 ${DESTDIR}${MDIR}/case.0
|
||||
rm -f ${DESTDIR}${MDIR}/checkeq.0
|
||||
ln ${DESTDIR}/${MDIR}/eqn.0 ${DESTDIR}${MDIR}/checkeq.0
|
||||
rm -f ${DESTDIR}${MDIR}/cu.0
|
||||
ln ${DESTDIR}${MDIR}/tip.0 ${DESTDIR}${MDIR}/cu.0
|
||||
rm -f ${DESTDIR}${MDIR}/diffh.0
|
||||
ln ${DESTDIR}${MDIR}/diff.0 ${DESTDIR}${MDIR}/diffh.0
|
||||
rm -f ${DESTDIR}${MDIR}/edit.0
|
||||
ln ${DESTDIR}${MDIR}/ex.0 ${DESTDIR}${MDIR}/edit.0
|
||||
rm -f ${DESTDIR}${MDIR}/egrep.0
|
||||
ln ${DESTDIR}${MDIR}/grep.0 ${DESTDIR}${MDIR}/egrep.0
|
||||
rm -f ${DESTDIR}${MDIR}/explain.0
|
||||
ln ${DESTDIR}${MDIR}/diction.0 ${DESTDIR}${MDIR}/explain.0
|
||||
rm -f ${DESTDIR}${MDIR}/fgrep.0
|
||||
ln ${DESTDIR}${MDIR}/grep.0 ${DESTDIR}${MDIR}/fgrep.0
|
||||
rm -f ${DESTDIR}${MDIR}/for.0
|
||||
ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/for.0
|
||||
rm -f ${DESTDIR}${MDIR}/if.0
|
||||
ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/if.0
|
||||
rm -f ${DESTDIR}${MDIR}/indxbib.0
|
||||
ln ${DESTDIR}${MDIR}/lookbib.0 ${DESTDIR}${MDIR}/indxbib.0
|
||||
rm -f ${DESTDIR}${MDIR}/neqn.0
|
||||
ln ${DESTDIR}${MDIR}/eqn.0 ${DESTDIR}${MDIR}/neqn.0
|
||||
rm -f ${DESTDIR}${MDIR}/nohup.0
|
||||
ln ${DESTDIR}${MDIR}/nice.0 ${DESTDIR}${MDIR}/nohup.0
|
||||
rm -f ${DESTDIR}${MDIR}/page.0
|
||||
ln ${DESTDIR}${MDIR}/more.0 ${DESTDIR}${MDIR}/page.0
|
||||
rm -f ${DESTDIR}${MDIR}/spellin.0
|
||||
ln ${DESTDIR}${MDIR}/spell.0 ${DESTDIR}${MDIR}/spellin.0
|
||||
rm -f ${DESTDIR}${MDIR}/spellout.0
|
||||
ln ${DESTDIR}${MDIR}/spell.0 ${DESTDIR}${MDIR}/spellout.0
|
||||
rm -f ${DESTDIR}${MDIR}/uncompress.0
|
||||
ln ${DESTDIR}${MDIR}/compress.0 ${DESTDIR}${MDIR}/uncompress.0
|
||||
rm -f ${DESTDIR}${MDIR}/unexpand.0
|
||||
ln ${DESTDIR}${MDIR}/expand.0 ${DESTDIR}${MDIR}/unexpand.0
|
||||
rm -f ${DESTDIR}${MDIR}/uudecode.0
|
||||
ln ${DESTDIR}${MDIR}/uuencode.0 ${DESTDIR}${MDIR}/uudecode.0
|
||||
rm -f ${DESTDIR}${MDIR}/while.0
|
||||
ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/while.0
|
||||
rm -f ${DESTDIR}${MDIR}/zcat.0
|
||||
ln ${DESTDIR}${MDIR}/compress.0 ${DESTDIR}${MDIR}/zcat.0
|
||||
|
||||
FRC:
|
||||
@@ -0,0 +1,931 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)adb.1 6.1.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH ADB 1 "October 21, 1996"
|
||||
.UC 2
|
||||
.SH NAME
|
||||
adb \- debugger (2BSD)
|
||||
.SH SYNOPSIS
|
||||
.B adb
|
||||
[\fB\-w\fR] [ \fB\-k\fR ] [ \fB-I\fRdir ] [ objfil [ corfil ] ]
|
||||
.ds TW \v'.25m'\s+2~\s-2\v'-.25m'
|
||||
.ds ST *
|
||||
.ds IM \v'.1m'=\v'-.1m'\s-2\h'-.1m'>\h'.1m'\s+2
|
||||
.ds LE \(<=
|
||||
.ds LT \s-2<\s+2
|
||||
.ds GT \s-2>\s+2
|
||||
.SH DESCRIPTION
|
||||
.I Adb
|
||||
is a general purpose debugging program.
|
||||
It may be used to examine files and to provide
|
||||
a controlled environment for the execution of UNIX programs.
|
||||
.PP
|
||||
.I Objfil
|
||||
is normally an executable program file, preferably
|
||||
containing a symbol table; if not then the symbolic features of
|
||||
.I adb
|
||||
cannot be used although the file can still be examined.
|
||||
The default for
|
||||
.I objfil
|
||||
is
|
||||
.B a.out.
|
||||
.I Corfil
|
||||
is assumed to be a core image file produced after executing
|
||||
.IR objfil ;
|
||||
the default for
|
||||
.I corfil
|
||||
is
|
||||
.B core.
|
||||
.PP
|
||||
Requests to
|
||||
.I adb
|
||||
are read from the standard input and responses are to the standard output.
|
||||
If the
|
||||
.B \-w
|
||||
flag is present then both
|
||||
.I objfil
|
||||
and
|
||||
.I corfil
|
||||
are created if necessary and opened for reading and writing
|
||||
so that files can be modified using
|
||||
.IR adb .
|
||||
.PP
|
||||
The \fB\-k\fP option makes \fIadb\fP do UNIX kernel memory
|
||||
mapping; it should be used when \fIcore\fP is a UNIX crash dump
|
||||
or \fI/dev/mem\fP.
|
||||
.PP
|
||||
The \fB\-I\fP option specifies a directory where files to be read
|
||||
with $< or $<< (see below) will be sought; the default is
|
||||
.IR /usr/share/adb .
|
||||
.PP
|
||||
.I Adb
|
||||
ignores QUIT; INTERRUPT causes return to the next
|
||||
.I adb
|
||||
command.
|
||||
.PP
|
||||
In general requests to
|
||||
.I adb
|
||||
are of the form
|
||||
.PP
|
||||
.if n .ti 16
|
||||
.if t .ti 1.6i
|
||||
[\|\fIaddress\fR\|] [\|,
|
||||
.IR count \|]
|
||||
[\|\fIcommand\fR\|] [\|;\|]
|
||||
.PP
|
||||
If
|
||||
.I address
|
||||
is present then
|
||||
.I dot
|
||||
is set to
|
||||
.IR address .
|
||||
Initially
|
||||
.I dot
|
||||
is set to 0. For most commands
|
||||
.I count
|
||||
specifies how many times the command will be executed. The default
|
||||
.I count
|
||||
is 1.
|
||||
.I Address
|
||||
and
|
||||
.I count
|
||||
are expressions.
|
||||
.PP
|
||||
The interpretation of an address depends on the context it is used in.
|
||||
If a subprocess is being debugged then addresses are interpreted
|
||||
in the usual way in the address space of the subprocess.
|
||||
For further details of address mapping see
|
||||
.SM ADDRESSES.
|
||||
.SH EXPRESSIONS
|
||||
.TP 7.2n
|
||||
.B .
|
||||
The value of
|
||||
.IR dot .
|
||||
.TP 7.2n
|
||||
+
|
||||
The value of
|
||||
.I dot
|
||||
incremented by the current increment.
|
||||
.TP 7.2n
|
||||
^
|
||||
The value of
|
||||
.I dot
|
||||
decremented by the current increment.
|
||||
.TP 7.2n
|
||||
"
|
||||
The last
|
||||
.I address
|
||||
typed.
|
||||
.TP 7.2n
|
||||
.I integer
|
||||
An octal number if
|
||||
.I integer
|
||||
begins with a 0;
|
||||
a hexadecimal number if preceded by
|
||||
.BR # ;
|
||||
otherwise a decimal number.
|
||||
This default interpretation of integers may be changed via the $o and $d
|
||||
commands.
|
||||
.TP 7.2n
|
||||
.IB integer . fraction
|
||||
A 32 bit floating point number.
|
||||
.TP 7.2n
|
||||
.I \'cccc\|\'
|
||||
The ASCII value of up to 4 characters.
|
||||
\e may be used to escape a \'.
|
||||
.TP 7.2n
|
||||
.I \*(LT name
|
||||
The value of
|
||||
.IR name ,
|
||||
which is either a variable name or a register name.
|
||||
.I Adb
|
||||
maintains a number of variables (see
|
||||
.SM VARIABLES\*S)
|
||||
named by single letters or digits.
|
||||
If
|
||||
.I name
|
||||
is a register name then the value of the register is obtained from
|
||||
the system header in
|
||||
.IR corfil .
|
||||
The register names are those printed by the $r command.
|
||||
.TP 7.2n
|
||||
.I symbol
|
||||
A
|
||||
.I symbol
|
||||
is a sequence of upper or lower case letters, underscores or
|
||||
digits, not starting with a digit. The backslash character
|
||||
.B \e
|
||||
may be used to escape other characters. The value of the
|
||||
.I symbol
|
||||
is taken from the symbol table in
|
||||
.IR objfil .
|
||||
An initial \_ or \*(TW will be prepended to
|
||||
.I symbol
|
||||
if needed.
|
||||
If the symbol is a text symbol and
|
||||
.I objfil
|
||||
is an overlay type, the default is
|
||||
.IR \*(TWsymbol ,
|
||||
which is the subroutine itself, not the entry interface in the base segment.
|
||||
.TP
|
||||
.I _ symbol
|
||||
In C, the `true name' of an external symbol begins with _.
|
||||
It may be necessary to utter this name to distinguish it
|
||||
from internal or hidden variables of a program.
|
||||
For a subroutine in an overlay,
|
||||
.I \*(TWsymbol
|
||||
is the actual subroutine,
|
||||
and
|
||||
.I _symbol
|
||||
is the entry point in the base segment (the "thunk").
|
||||
Note that to explicitly specify the local name,
|
||||
the \*(TW must be preceeded by a backslash, since \*(TW is the
|
||||
bitwise complement operator:
|
||||
.I \e\*(TWsymbol
|
||||
must be typed.
|
||||
.TP 7.2n
|
||||
.IB routine . name
|
||||
The address of the variable
|
||||
.I name
|
||||
in the specified C routine. Both
|
||||
.I routine
|
||||
and
|
||||
.I name
|
||||
are
|
||||
.IR symbols .
|
||||
If
|
||||
.I name
|
||||
is omitted the value is the address of the most recently activated C stack frame
|
||||
corresponding to
|
||||
.IR routine .
|
||||
.TP 7.2n
|
||||
.RI ( exp \|)
|
||||
The value of the expression
|
||||
.IR exp .
|
||||
.LP
|
||||
.SM
|
||||
.B "Monadic\ operators"
|
||||
.TP 7.2n
|
||||
.RI \*(ST exp
|
||||
The contents of the location addressed by
|
||||
.I exp
|
||||
in
|
||||
.IR corfil .
|
||||
.TP 7.2n
|
||||
.RI @ exp
|
||||
The contents of the location addressed by
|
||||
.I exp
|
||||
in
|
||||
.IR objfil .
|
||||
.TP 7.2n
|
||||
.RI \- exp
|
||||
Integer negation.
|
||||
.TP 7.2n
|
||||
.RI \*(TW exp
|
||||
Bitwise complement.
|
||||
.LP
|
||||
.tr ''
|
||||
.B "Dyadic\ operators"
|
||||
are left associative and are less binding than monadic operators.
|
||||
.TP 7.2n
|
||||
.IR e1 + e2
|
||||
Integer addition.
|
||||
.TP 7.2n
|
||||
.IR e1 \- e2
|
||||
Integer subtraction.
|
||||
.TP 7.2n
|
||||
.IR e1 \*(ST e2
|
||||
Integer multiplication.
|
||||
.TP 7.2n
|
||||
.IR e1 % e2
|
||||
Integer division.
|
||||
.TP 7.2n
|
||||
.IR e1 & e2
|
||||
Bitwise conjunction.
|
||||
.TP 7.2n
|
||||
.IR e1 \(bv e2
|
||||
Bitwise disjunction.
|
||||
.TP 7.2n
|
||||
.IR e1 # e2
|
||||
.I E1
|
||||
rounded up to the next multiple of
|
||||
.IR e2 .
|
||||
.DT
|
||||
.SH COMMANDS
|
||||
Most commands consist of a verb followed by a modifier or list of modifiers.
|
||||
The following verbs are available.
|
||||
(The commands `?' and `/' may be followed by `\*(ST'; see
|
||||
.SM ADDRESSES
|
||||
for further details.)
|
||||
.TP .5i
|
||||
.RI ? f
|
||||
Locations starting at
|
||||
.I address
|
||||
in
|
||||
.I objfil
|
||||
are printed according to the format
|
||||
.IR f .
|
||||
.I dot
|
||||
is incremented by the sum of the increments for each format letter (q.v.).
|
||||
.TP
|
||||
.RI / f
|
||||
Locations starting at
|
||||
.I address
|
||||
in
|
||||
.I corfil
|
||||
are printed according to the format
|
||||
.I f
|
||||
and
|
||||
.I dot
|
||||
is incremented as for `?'.
|
||||
.TP
|
||||
.RI = f
|
||||
The value of
|
||||
.I address
|
||||
itself is printed in the styles indicated by the format
|
||||
.IR f .
|
||||
(For
|
||||
.B i
|
||||
format `?' is printed for the parts of the instruction that reference
|
||||
subsequent words.)
|
||||
.PP
|
||||
A
|
||||
.I format
|
||||
consists of one or more characters that specify a style of printing.
|
||||
Each format character may be preceded by a decimal integer
|
||||
that is a repeat count for the format character.
|
||||
While stepping through a format
|
||||
.I dot
|
||||
is incremented temporarily by the amount given for each format letter.
|
||||
If no format is given then the last format is used.
|
||||
The format letters available are as follows.
|
||||
.ta 2.5n .5i
|
||||
.RS
|
||||
.TP
|
||||
.BR o " 2"
|
||||
Print 2 bytes in octal. All octal numbers output by
|
||||
.I adb
|
||||
are preceded by 0.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR O " 4"
|
||||
Print 4 bytes in octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR q " 2"
|
||||
Print in signed octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR Q " 4"
|
||||
Print long signed octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR d " 2"
|
||||
Print in decimal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR D " 4"
|
||||
Print long decimal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR x " 2"
|
||||
Print 2 bytes in hexadecimal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR X " 4"
|
||||
Print 4 bytes in hexadecimal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR u " 2"
|
||||
Print as an unsigned decimal number.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR U " 4"
|
||||
Print long unsigned decimal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR f " 4"
|
||||
Print the 32 bit value as a floating point number.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR F " 8"
|
||||
Print double floating point.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR b " 1"
|
||||
Print the addressed byte in octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR c " 1"
|
||||
Print the addressed character.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR C " 1"
|
||||
Print the addressed character using
|
||||
the following escape convention.
|
||||
the standard escape convention where control characters
|
||||
are printed as ^X and the delete character is printed as ^?.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BI s " n"
|
||||
Print the addressed characters until a zero character is reached.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BI S " n"
|
||||
Print a string using the ^\fIX\fR escape convention (see \fBC\fR above).
|
||||
.I n
|
||||
is the length of the string including its zero terminator.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR Y " 4"
|
||||
Print 4 bytes in date format (see
|
||||
.IR ctime (3)).
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR i " n"
|
||||
Print as machine instructions.
|
||||
.I n
|
||||
is the number of bytes occupied by the instruction.
|
||||
This style of printing causes variables 1 and 2 to be set
|
||||
to the offset parts of the source and destination respectively.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR a " 0"
|
||||
Print the value of
|
||||
.I dot
|
||||
in symbolic form.
|
||||
Symbols are checked to ensure that they have an appropriate
|
||||
type as indicated below.
|
||||
.LP
|
||||
/ local or global data symbol
|
||||
.br
|
||||
? local or global text symbol
|
||||
.br
|
||||
= local or global absolute symbol
|
||||
.TP
|
||||
.BR p " 2"
|
||||
Print the addressed value in symbolic form using
|
||||
the same rules for symbol lookup as
|
||||
.BR a .
|
||||
.br
|
||||
.tr ''
|
||||
.ns
|
||||
.TP
|
||||
.BR t " 0"
|
||||
When preceded by an integer tabs to the next appropriate tab stop.
|
||||
For example,
|
||||
.B 8t
|
||||
moves to the next 8-space tab stop.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR r " 0"
|
||||
Print a space.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BR n " 0"
|
||||
Print a newline.
|
||||
.br
|
||||
.ns
|
||||
.tr '"
|
||||
.TP
|
||||
.BR '...' " 0"
|
||||
Print the enclosed string.
|
||||
.br
|
||||
.tr ''
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B ^
|
||||
.I Dot
|
||||
is decremented by the current increment. Nothing is printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
+
|
||||
.I Dot
|
||||
is incremented by 1. Nothing is printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
\-
|
||||
.I Dot
|
||||
is decremented by 1. Nothing is printed.
|
||||
.RE
|
||||
.TP
|
||||
newline
|
||||
If the previous command temporarily incremented
|
||||
.IR dot ,
|
||||
make the increment permanent.
|
||||
Repeat the previous command with a
|
||||
.I count
|
||||
of 1.
|
||||
.TP
|
||||
.RB [ ?/ ] l "\fI value mask\fR"
|
||||
Words starting at
|
||||
.I dot
|
||||
are masked with
|
||||
.I mask
|
||||
and compared with
|
||||
.I value
|
||||
until a match is found.
|
||||
If
|
||||
.B L
|
||||
is used then the match is for 4 bytes at a time instead of 2.
|
||||
If no match is found then
|
||||
.I dot
|
||||
is unchanged; otherwise
|
||||
.I dot
|
||||
is set to the matched location.
|
||||
If
|
||||
.I mask
|
||||
is omitted then \-1 is used.
|
||||
.TP
|
||||
.RB [ ?/ ] w "\fI value ...\fR"
|
||||
Write the 2-byte
|
||||
.I value
|
||||
into the addressed location. If the command is
|
||||
.BR W ,
|
||||
write 4 bytes.
|
||||
Odd addresses are not allowed when writing to the subprocess address space.
|
||||
.TP
|
||||
[\fB?/\fR]\fBm\fI b1 e1 f1\fR[\fB?/\fR]
|
||||
.br
|
||||
New values for
|
||||
.RI ( b1,\ e1,\ f1 )
|
||||
are recorded. If less than three expressions are given then
|
||||
the remaining map parameters are left unchanged.
|
||||
If the `?' or `/' is followed by `\*(ST' then
|
||||
the last segment (\fIb2\fR\|,\|\fIe2\fR\|,\|\fIf2\fR)
|
||||
of the mapping is changed.
|
||||
If the list is terminated by `?' or `/' then the file (\fIobjfil\fR or
|
||||
.I corfil
|
||||
respectively) is used for subsequent requests.
|
||||
(So that, for example, `/m?' will cause `/' to refer to
|
||||
.IR objfil .)
|
||||
.TP
|
||||
.BI \*(GT name
|
||||
.I Dot
|
||||
is assigned to the variable or register named.
|
||||
.TP
|
||||
.B !
|
||||
A shell (/bin/sh) is called to read the rest of the line following `!'.
|
||||
.TP
|
||||
.RI $ modifier
|
||||
Miscellaneous commands. The available
|
||||
.I modifiers
|
||||
are:
|
||||
.RS
|
||||
.TP
|
||||
.BI < f
|
||||
Read commands from the file
|
||||
.IR f .
|
||||
If this command is executed in a file, further commands
|
||||
in the file are not seen.
|
||||
If
|
||||
.I f
|
||||
is omitted, the current input stream is terminated. If a
|
||||
.I count
|
||||
is given, and is zero, the command will be ignored.
|
||||
The value of the count will be placed in variable
|
||||
.I 9
|
||||
before the first command in
|
||||
.I f
|
||||
is executed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BI << f
|
||||
Similar to
|
||||
.B <
|
||||
except it can be used in a file of commands without
|
||||
causing the file to be closed. Variable
|
||||
.I 9
|
||||
is saved during the execution of this command, and restored when it completes.
|
||||
There is a (small) finite limit to the number of
|
||||
.B <<
|
||||
files that can be open at once.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.BI > f
|
||||
Append output to the file
|
||||
.IR f ,
|
||||
which is created if it does not exist. If
|
||||
.I f
|
||||
is omitted, output is returned to the terminal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B ?
|
||||
Print process id, the signal which caused stoppage or termination,
|
||||
as well as the registers as \fB$r\fR. This is the default if
|
||||
\fImodifier\fR is omitted.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B r
|
||||
Print the general registers and the instruction addressed by
|
||||
.BR pc .
|
||||
.I Dot
|
||||
is set to \fBpc\fR.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B f
|
||||
Print the floating registers in
|
||||
single or double length.
|
||||
If the floating point status of
|
||||
.B ps
|
||||
is set to double (0200 bit)
|
||||
then double length is used anyway.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B b
|
||||
Print all breakpoints and their associated counts and commands.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B a
|
||||
ALGOL 68 stack backtrace.
|
||||
If
|
||||
.I address
|
||||
is given then it is taken to be the
|
||||
address of the current frame (instead of
|
||||
.BR r4 ).
|
||||
If
|
||||
.I count
|
||||
is given then only the first
|
||||
.I count
|
||||
frames are printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B c
|
||||
C stack backtrace. If
|
||||
.I address
|
||||
is given then it is taken as the address of the current frame
|
||||
instead of the contents of the frame\-pointer register. If
|
||||
.B C
|
||||
is used then the names and (16 bit) values of all automatic
|
||||
and static variables are printed for each active function.
|
||||
If
|
||||
.I count
|
||||
is given then only the first
|
||||
.I count
|
||||
frames are printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B e
|
||||
The names and values of external variables are printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B w
|
||||
Set the page width for output to
|
||||
.I address
|
||||
(default 80).
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B s
|
||||
Set the limit for symbol matches to
|
||||
.I address
|
||||
(default 255).
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B o
|
||||
All integers input are regarded as octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B d
|
||||
Reset integer input as described in
|
||||
.SM EXPRESSIONS.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B q
|
||||
Exit from
|
||||
.IR adb .
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B v
|
||||
Print all non zero variables in octal.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B m
|
||||
Print the address map.
|
||||
.RE
|
||||
.TP
|
||||
.BI : modifier
|
||||
Manage a subprocess. Available modifiers are:
|
||||
.RS
|
||||
.TP
|
||||
.BI b c
|
||||
Set breakpoint at
|
||||
.IR address .
|
||||
If
|
||||
.I objfil
|
||||
is overlaid and
|
||||
.I address
|
||||
is in the overlay region,
|
||||
the breakpoint is set in the overlay of the symbol mentioned
|
||||
if
|
||||
.I address
|
||||
was given symbolically, otherwise it is set
|
||||
in the current overlay (that in variable c).
|
||||
The breakpoint is executed
|
||||
.IR count \-1
|
||||
times before causing a stop.
|
||||
Each time the breakpoint is encountered the command
|
||||
.I c
|
||||
is executed. If this command is omitted or sets
|
||||
.I dot
|
||||
to zero then the breakpoint causes a stop.
|
||||
.TP
|
||||
.B d
|
||||
Delete breakpoint at
|
||||
.IR address .
|
||||
.TP
|
||||
.B r
|
||||
Run
|
||||
.I objfil
|
||||
as a subprocess. If
|
||||
.I address
|
||||
is given explicitly then the program is entered at this point; otherwise
|
||||
the program is entered at its standard entry point.
|
||||
.I count
|
||||
specifies how many breakpoints are to be ignored before stopping.
|
||||
Arguments to the subprocess may be supplied on the same line as the command.
|
||||
An argument starting with < or > causes the standard
|
||||
input or output to be established for the command.
|
||||
.TP
|
||||
.BI c s
|
||||
The subprocess is continued with signal
|
||||
.I s,
|
||||
see
|
||||
.IR sigvec (2).
|
||||
If
|
||||
.I address
|
||||
is given then the subprocess is continued at this address.
|
||||
If no signal is specified then the signal
|
||||
that caused the subprocess to stop is sent.
|
||||
Breakpoint skipping is the same as for
|
||||
.BR r .
|
||||
.TP
|
||||
.BI s s
|
||||
As for
|
||||
.B c
|
||||
except that the subprocess is single stepped
|
||||
.I count
|
||||
times. If there is no current subprocess then
|
||||
.I objfil
|
||||
is run as a subprocess as for
|
||||
.BR r .
|
||||
In this case no signal can be sent; the remainder of the line
|
||||
is treated as arguments to the subprocess.
|
||||
.TP
|
||||
.B k
|
||||
The current subprocess, if any, is terminated.
|
||||
.RE
|
||||
.SH VARIABLES
|
||||
.I Adb
|
||||
provides a number of variables.
|
||||
Named variables are set initially by
|
||||
.I adb
|
||||
but are not used subsequently (except for c).
|
||||
Numbered variables are reserved for communication as follows.
|
||||
.TP
|
||||
0
|
||||
The last value printed.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
1
|
||||
The last offset part of an instruction source.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
2
|
||||
The previous value of variable 1.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
9
|
||||
The count on the last $< or $<< command.
|
||||
.PP
|
||||
On entry the following are set from the system header in the
|
||||
.IR corfil .
|
||||
If
|
||||
.I corfil
|
||||
does not appear to be a
|
||||
.B core
|
||||
file then these values are set from
|
||||
.IR objfil .
|
||||
.TP
|
||||
b
|
||||
The base address of the data segment.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
c
|
||||
The current overlay. This is set from
|
||||
.IR corfil ,
|
||||
and in turn sets the overlay map.
|
||||
This variable and the map may be changed
|
||||
by referring to other overlays symbolically
|
||||
(e.g. by examining text in subroutines in other overlays),
|
||||
using the $r command (which resets c from the core file),
|
||||
or explicitly (with the command >c).
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
d
|
||||
The data segment size.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
e
|
||||
The entry point.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
m
|
||||
The `magic' number (0405, 0407, 0410, 0411, 0430 or 0431).
|
||||
The object is overlaid if m is 0430 or 0431.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
o
|
||||
The sum of the overlay segment sizes (if overlaid).
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
s
|
||||
The stack segment size.
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
t
|
||||
The text segment size.
|
||||
.SH ADDRESSES
|
||||
The address in a file associated with
|
||||
a written address is determined by a mapping associated with that file.
|
||||
Each mapping is represented by two or three triples
|
||||
.RI ( "b1, e1, f1" ),
|
||||
.RI ( "bo, eo, fo" )
|
||||
for overlaid object files,
|
||||
and
|
||||
.RI ( "b2, e2, f2" )
|
||||
and the
|
||||
.I file address
|
||||
corresponding to a written
|
||||
.I address
|
||||
is calculated as follows.
|
||||
.PP
|
||||
.if t .ti 1.5i
|
||||
.if n .ti 8
|
||||
.IR b1 \*(LE address < e1
|
||||
\*(IM
|
||||
.IR "file address" = address + f1\-b1,
|
||||
otherwise,
|
||||
.PP
|
||||
if overlaid,
|
||||
.if t .ti 1.5i
|
||||
.if n .ti 8
|
||||
.IR bo \*(LE address < eo
|
||||
\*(IM
|
||||
.IR "file address" = address + fo\-bo,
|
||||
otherwise,
|
||||
.PP
|
||||
.if t .ti 1.5i
|
||||
.if n .ti 8
|
||||
.IR b2 \*(LE address < e2
|
||||
\*(IM
|
||||
.IR "file address" = address + f2\-b2,
|
||||
.PP
|
||||
otherwise, the requested
|
||||
.I address
|
||||
is not legal. In some cases (e.g. for programs with separated I and D
|
||||
space) the two segments for a file may overlap. If a
|
||||
.B ?
|
||||
or
|
||||
.B /
|
||||
is followed by an
|
||||
.B \*(ST
|
||||
then only the last triple is used.
|
||||
.PP
|
||||
The initial setting of both mappings is suitable for normal
|
||||
.B a.out
|
||||
and
|
||||
.B core
|
||||
files. If the object file is not of the kind expected then, for both files,
|
||||
.I b1
|
||||
is set to 0,
|
||||
.I e1
|
||||
is set to the maximum file size and
|
||||
.I f1
|
||||
is set to 0; in this way the whole
|
||||
file can be examined with no address translation.
|
||||
.PP
|
||||
So that
|
||||
.I adb
|
||||
may be used on large files all appropriate values are kept as
|
||||
signed 32 bit integers.
|
||||
.SH FILES
|
||||
a.out
|
||||
.br
|
||||
core
|
||||
.SH SEE\ ALSO
|
||||
cc(1),
|
||||
ptrace(2),
|
||||
a.out(5),
|
||||
core(5)
|
||||
.br
|
||||
\fIADB - A Tutorial\fR, S. R. Bourne
|
||||
.SH DIAGNOSTICS
|
||||
`Adb' when there is no current command or format.
|
||||
Comments about inaccessible files, syntax errors,
|
||||
abnormal termination of commands, etc.
|
||||
Exit status is 0, unless last command failed or returned nonzero status.
|
||||
.SH BUGS
|
||||
When single stepping, system calls do not count as an
|
||||
executed instruction.
|
||||
.br
|
||||
Local variables whose names are the same as an external
|
||||
variable may foul up the accessing of the external.
|
||||
.br
|
||||
Local variables cannot be accessed in routines that are in overlays.
|
||||
.br
|
||||
Since no shell is invoked to interpret the arguments of the
|
||||
.B :r
|
||||
command, the customary wild-card and variable expansions cannot occur.
|
||||
@@ -0,0 +1,99 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)addbib.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH ADDBIB 1 "April 29, 1985"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
addbib \- create or extend bibliographic database
|
||||
.SH SYNOPSIS
|
||||
\fBaddbib\fP [ \fB\-p\fP promptfile ] [ \fB\-a\fP ] database
|
||||
.SH DESCRIPTION
|
||||
When this program starts up, answering ``y''
|
||||
to the initial ``Instructions?'' prompt yields directions;
|
||||
typing ``n'' or \s-2RETURN\s0 skips them.
|
||||
.I Addbib
|
||||
then prompts for various bibliographic fields,
|
||||
reads responses from the terminal,
|
||||
and sends output records to a
|
||||
.I database.
|
||||
A null response (just \s-2RETURN\s0) means to leave out that field.
|
||||
A minus sign (\-) means to go back to the previous field.
|
||||
A trailing backslash allows a field to be continued on the next line.
|
||||
The repeating ``Continue?'' prompt allows the user
|
||||
either to resume by typing ``y'' or \s-2RETURN\s0,
|
||||
to quit the current session by typing ``n'' or ``q'',
|
||||
or to edit the
|
||||
.I database
|
||||
with any system editor \fI(vi, ex, edit, ed).\fP
|
||||
.PP
|
||||
The
|
||||
.B \-a
|
||||
option suppresses prompting for an abstract;
|
||||
asking for an abstract is the default.
|
||||
Abstracts are ended with a \s-2CTRL\s0-d.
|
||||
The
|
||||
.B \-p
|
||||
option causes
|
||||
.I addbib
|
||||
to use a new prompting skeleton, defined in
|
||||
.I promptfile.
|
||||
This file should contain prompt strings, a tab,
|
||||
and the key-letters to be written to the
|
||||
.I database.
|
||||
.PP
|
||||
The most common key-letters and their meanings are given below.
|
||||
.I Addbib
|
||||
insulates you from these key-letters,
|
||||
since it gives you prompts in English,
|
||||
but if you edit the bibliography file later on,
|
||||
you will need to know this information.
|
||||
.sp
|
||||
.nf
|
||||
%A Author's name
|
||||
%B Book containing article referenced
|
||||
%C City (place of publication)
|
||||
%D Date of publication
|
||||
%E Editor of book containing article referenced
|
||||
%F Footnote number or label (supplied by \fIrefer\fP\|)
|
||||
%G Government order number
|
||||
%H Header commentary, printed before reference
|
||||
%I Issuer (publisher)
|
||||
%J Journal containing article
|
||||
%K Keywords to use in locating reference
|
||||
%L Label field used by \fB\-k\fP option of \fIrefer\fP
|
||||
%M Bell Labs Memorandum (undefined)
|
||||
%N Number within volume
|
||||
%O Other commentary, printed at end of reference
|
||||
%P Page number(s)
|
||||
%Q Corporate or Foreign Author (unreversed)
|
||||
%R Report, paper, or thesis (unpublished)
|
||||
%S Series title
|
||||
%T Title of article or book
|
||||
%V Volume number
|
||||
%X Abstract \(em used by \fIroffbib\fP, not by \fIrefer\fP
|
||||
%Y,Z ignored by \fIrefer\fP
|
||||
.fi
|
||||
.sp
|
||||
Except for `A', each field should be given just once.
|
||||
Only relevant fields should be supplied.
|
||||
An example is:
|
||||
.sp
|
||||
.nf
|
||||
%A Bill Tuthill
|
||||
%T Refer \(em A Bibliography System
|
||||
%I Computing Services
|
||||
%C Berkeley
|
||||
%D 1982
|
||||
%O \s-1UNX\s0 4.3.5.
|
||||
.fi
|
||||
.sp
|
||||
.SH FILES
|
||||
.DT
|
||||
promptfile optional file to define prompting
|
||||
.SH SEE ALSO
|
||||
refer(1), sortbib(1), roffbib(1), indxbib(1), lookbib(1)
|
||||
.SH AUTHORS
|
||||
Al Stangenberger, Bill Tuthill
|
||||
@@ -0,0 +1,86 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)apply.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH APPLY 1 "April 29, 1985"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
apply \- apply a command to a set of arguments
|
||||
.SH SYNOPSIS
|
||||
.B apply
|
||||
[
|
||||
.B \-a\fIc\fP
|
||||
] [
|
||||
.B \-\fIn\fP
|
||||
] command args ...
|
||||
.SH DESCRIPTION
|
||||
.I Apply
|
||||
runs the named
|
||||
.I command
|
||||
on each
|
||||
argument
|
||||
.I arg
|
||||
in turn.
|
||||
Normally arguments are chosen singly; the optional number
|
||||
.I n
|
||||
specifies the number of arguments to be passed to
|
||||
.I command.
|
||||
If
|
||||
.I n
|
||||
is zero,
|
||||
.I command
|
||||
is run without arguments once for each
|
||||
.I arg.
|
||||
Character sequences of the form %\fId\fP
|
||||
in
|
||||
.I command,
|
||||
where
|
||||
.I d
|
||||
is a digit from 1 to 9,
|
||||
are replaced by the
|
||||
\fId\fP'th following unused
|
||||
.I arg.
|
||||
If any such sequences occur,
|
||||
.I n
|
||||
is ignored,
|
||||
and the number of arguments passed to
|
||||
.I command
|
||||
is the maximum value of
|
||||
.I d
|
||||
in
|
||||
.I command.
|
||||
The character `%' may be changed by the
|
||||
.B \-a
|
||||
option.
|
||||
.PP
|
||||
Examples:
|
||||
.RS
|
||||
apply echo *
|
||||
.RE
|
||||
is similar to ls(1);
|
||||
.RS
|
||||
apply \-2 cmp a1 b1 a2 b2 ...
|
||||
.RE
|
||||
compares the `a' files to the `b' files;
|
||||
.RS
|
||||
apply \-0 who 1 2 3 4 5
|
||||
.RE
|
||||
runs who(1) 5 times; and
|
||||
.RS
|
||||
apply \(aaln %1 /usr/joe\(aa *
|
||||
.RE
|
||||
links all files in the current directory to the directory /usr/joe.
|
||||
.SH "SEE ALSO"
|
||||
sh(1)
|
||||
.SH AUTHOR
|
||||
Rob Pike
|
||||
.SH BUGS
|
||||
Shell metacharacters in
|
||||
.I command
|
||||
may have bizarre effects; it is best to enclose complicated
|
||||
commands in single quotes \(aa\ \(aa.
|
||||
.sp
|
||||
There is no way to pass a literal `%2' if `%' is the
|
||||
argument expansion character.
|
||||
@@ -0,0 +1,43 @@
|
||||
.\" @(#)apropos.1 6.4 (Berkeley) 6/5/86
|
||||
.\"
|
||||
.TH APROPOS 1 "June 5, 1986"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
apropos \- locate commands by keyword lookup
|
||||
.SH SYNOPSIS
|
||||
.B apropos
|
||||
keyword ...
|
||||
.SH DESCRIPTION
|
||||
.I Apropos
|
||||
shows which manual sections contain instances of any of the given
|
||||
keywords in their title.
|
||||
Each word is considered separately and case of letters is ignored.
|
||||
Words which are part of other words are considered; thus, when looking for
|
||||
compile, \fIapropos\fP will find all instances of `compiler' also.
|
||||
Try
|
||||
.IP
|
||||
apropos password
|
||||
.PP
|
||||
and
|
||||
.IP
|
||||
apropos editor
|
||||
.PP
|
||||
If the line starts `name(section) ...' you can do
|
||||
`man section name' to get the documentation for it.
|
||||
Try `apropos format' and then `man 3s printf' to get the manual
|
||||
on the subroutine
|
||||
.I printf.
|
||||
.PP
|
||||
.I Apropos
|
||||
is actually just the
|
||||
.B \-k
|
||||
option to the
|
||||
.IR man (1)
|
||||
command.
|
||||
.SH FILES
|
||||
.DT
|
||||
/usr/man/whatis data base
|
||||
.SH "SEE ALSO"
|
||||
man(1), whatis(1), catman(8)
|
||||
.SH AUTHOR
|
||||
William Joy
|
||||
@@ -0,0 +1,114 @@
|
||||
.TH AS 1
|
||||
.UC
|
||||
.SH NAME
|
||||
as \- assembler
|
||||
.SH SYNOPSIS
|
||||
.B as
|
||||
[
|
||||
.B \-u
|
||||
] [
|
||||
.B \-V
|
||||
] [
|
||||
.B \-o
|
||||
objfile
|
||||
] file ...
|
||||
.SH DESCRIPTION
|
||||
.I As
|
||||
assembles the concatenation of the named files.
|
||||
The options are:
|
||||
.TP
|
||||
.B \-u
|
||||
Treat all undefined symbols in the assembly as external globals.
|
||||
.TP
|
||||
.B \-\^V
|
||||
Produce an object suitable for loading into an automatic text overlaid
|
||||
program.
|
||||
.TP
|
||||
.B \-\^o
|
||||
Use
|
||||
.I objfil
|
||||
for the name of the resultant object. If this is omitted,
|
||||
.I a.out
|
||||
is used. If no errors occurred during the assembly and if
|
||||
there were no unresolved external references, it is made executable.
|
||||
.P
|
||||
The special file name
|
||||
.B \-\-
|
||||
serves two purposes. It signals the end of all options and causes
|
||||
.I stdin
|
||||
to be read for input. Thus it is now possible to pipe data to the
|
||||
assembler:
|
||||
.br
|
||||
.sp
|
||||
/lib/cpp -E foo.s | sed -e ';^#;/;' | as -o foo.o --
|
||||
.br
|
||||
.sp
|
||||
The file name
|
||||
.B \-\-
|
||||
may be placed between normal files, when EOF is detected on
|
||||
.I stdin
|
||||
the next file in the argument list is opened and read.
|
||||
.br
|
||||
.sp
|
||||
If no input files are specified then
|
||||
.I stdin
|
||||
is read.
|
||||
.SH FILES
|
||||
/tmp/atm1 temporary
|
||||
.br
|
||||
a.out object
|
||||
.SH "SEE ALSO"
|
||||
adb(1), ld(1), nm(1), a.out(5)
|
||||
.br
|
||||
.I "UNIX Assembler Manual"
|
||||
by D. M. Ritchie
|
||||
.SH DIAGNOSTICS
|
||||
When
|
||||
an input file cannot be read, its name
|
||||
followed by a question mark is typed and assembly
|
||||
ceases.
|
||||
When syntactic or semantic errors occur, a single-character diagnostic is typed out
|
||||
together with the line number and the file name in which it
|
||||
occurred.
|
||||
Errors in pass 1 cause cancellation of pass 2.
|
||||
The possible errors are:
|
||||
.PP
|
||||
.ta 3
|
||||
) Parentheses error
|
||||
.br
|
||||
] Parentheses error
|
||||
.br
|
||||
< String not terminated properly
|
||||
.br
|
||||
* Indirection used illegally
|
||||
.br
|
||||
.li
|
||||
\fB.\fP Illegal assignment to `\fB.\fP'
|
||||
.br
|
||||
a Error in address
|
||||
.br
|
||||
b Branch instruction is odd or too remote
|
||||
.br
|
||||
e Error in expression
|
||||
.br
|
||||
f Error in local (`f' or `b') type symbol
|
||||
.br
|
||||
g Garbage (unknown) character
|
||||
.br
|
||||
i End of file inside an if
|
||||
.br
|
||||
m Multiply defined symbol as label
|
||||
.br
|
||||
o Word quantity assembled at odd address
|
||||
.br
|
||||
p `\fB.\fP' different in pass 1 and 2
|
||||
.br
|
||||
r Relocation error
|
||||
.br
|
||||
u Undefined symbol
|
||||
.br
|
||||
x Syntax error
|
||||
.br
|
||||
.SH BUGS
|
||||
Syntax errors can cause incorrect line numbers
|
||||
in following diagnostics.
|
||||
@@ -0,0 +1,130 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)at.1 6.2.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH AT 1 "October 21, 1996"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
at \- execute commands at a later time
|
||||
.SH SYNOPSIS
|
||||
.B "at [ -c ] [ -s ] [ -m ]"
|
||||
time
|
||||
[ day ]
|
||||
[ file ]
|
||||
.SH DESCRIPTION
|
||||
.I At
|
||||
spools away a copy of the named
|
||||
.I file
|
||||
to be used as input to
|
||||
.IR sh (1)
|
||||
or
|
||||
.IR csh (1).
|
||||
If the
|
||||
.B \-c
|
||||
flag (for
|
||||
.IR (csh (1)))
|
||||
or the
|
||||
.B \-s
|
||||
flag (for
|
||||
.IR (sh (1)))
|
||||
is specified, then that shell will be used to execute the job;
|
||||
if no shell is specified,
|
||||
the current environment shell is used.
|
||||
If no file name is specified,
|
||||
.I at
|
||||
prompts for commands from standard input until a ^D is typed.
|
||||
.PP
|
||||
If the
|
||||
.B \-m
|
||||
flag is specified, mail will be sent to the user after the job
|
||||
has been run. If errors occur during execution of the job, then
|
||||
a copy of the error diagnostics will be sent to the user. If
|
||||
no errors occur, then a short message is sent informing the
|
||||
user that no errors occurred.
|
||||
.PP
|
||||
The format of the spool file is as follows:
|
||||
A four line header that includes the owner of the job, the name of the job,
|
||||
the shell used to run the job, and whether mail will be
|
||||
set after the job is executed. The header is followed by a
|
||||
.I cd
|
||||
command to the current directory and a
|
||||
.I umask
|
||||
command to set the modes on any files created by the job.
|
||||
Then
|
||||
.I at
|
||||
copies all relevant environment variables to the spool file.
|
||||
When the script is run, it uses the user and group ID
|
||||
of the creator of the spool file.
|
||||
.PP
|
||||
The
|
||||
.I time
|
||||
is 1 to 4 digits, with an optional following
|
||||
`A', `P', `N' or `M' for
|
||||
AM, PM, noon or midnight.
|
||||
One and two digit numbers are taken to be hours, three and four digits
|
||||
to be hours and minutes.
|
||||
If no letters follow the digits, a 24 hour clock time is understood.
|
||||
.PP
|
||||
The optional
|
||||
.I day
|
||||
is either
|
||||
(1) a month name followed by a day number,
|
||||
or
|
||||
(2) a day of the week;
|
||||
if the word `week' follows, invocation is moved
|
||||
seven days further off.
|
||||
Names of months and days may be recognizably truncated.
|
||||
Examples of legitimate commands are
|
||||
.IP
|
||||
at 8am jan 24
|
||||
.br
|
||||
at -c -m 1530 fr week
|
||||
.br
|
||||
at -s -m 1200n week
|
||||
.PP
|
||||
.I At
|
||||
programs are executed by periodic execution
|
||||
of the command
|
||||
.IR
|
||||
/usr/libexec/atrun
|
||||
from
|
||||
.IR cron (8).
|
||||
The granularity of
|
||||
.I at
|
||||
depends upon the how often atrun is executed.
|
||||
.PP
|
||||
Error output is lost unless redirected or the
|
||||
.I \-m
|
||||
flag is requested, in which case a copy of the errors is sent to
|
||||
the user via
|
||||
.IR mail (1).
|
||||
.SH FILES
|
||||
.nf
|
||||
/usr/spool/at spooling area
|
||||
/usr/spool/at/yy.ddd.hhhh.* job file
|
||||
/usr/spool/at/past directory where jobs are executed from
|
||||
/usr/spool/at/lasttimedone last time atrun was run
|
||||
/usr/libexec/atrun executor (run by cron(8))
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
atq(1),
|
||||
atrm(1),
|
||||
calendar(1),
|
||||
sleep(1),
|
||||
cron(8)
|
||||
.SH DIAGNOSTICS
|
||||
Complains about various syntax errors and times out of range.
|
||||
.SH BUGS
|
||||
Due to the granularity of the execution of
|
||||
.IR /usr/libexec/atrun,
|
||||
there may be bugs in scheduling things almost
|
||||
exactly 24 hours into the future.
|
||||
|
||||
If the system crashes, mail is not sent to the user informing them that
|
||||
the job was not completed.
|
||||
|
||||
Sometimes old spool files are not removed from the directory
|
||||
/usr/spool/at/past. This is usually due to a system crash,
|
||||
and requires that they be removed by hand.
|
||||
@@ -0,0 +1,41 @@
|
||||
.\" Copyright (c) 1985 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)atq.1 6.2 (Berkeley) 5/10/86
|
||||
.\"
|
||||
.TH ATQ 1 "May 10, 1986"
|
||||
.UC 6
|
||||
.SH NAME
|
||||
atq \- print the queue of jobs waiting to be run
|
||||
.SH SYNOPSIS
|
||||
.B atq
|
||||
[ -c ] [ -n ] [ name ... ]
|
||||
.SH DESCRIPTION
|
||||
.I Atq
|
||||
prints the queue of jobs that are waiting to be run
|
||||
at a later date. These jobs were created with the
|
||||
.IR at (1)
|
||||
command.
|
||||
With no flags, the queue is sorted in the order that
|
||||
the jobs will be executed.
|
||||
.PP
|
||||
If the
|
||||
.B \-c
|
||||
flag is used, the queue is sorted by the time that the
|
||||
.I at
|
||||
command was given.
|
||||
.PP
|
||||
The
|
||||
.B \-n
|
||||
flag prints only the total number of files that are currently
|
||||
in the queue.
|
||||
.PP
|
||||
If a name(s) is provided, only those files belonging to that user(s) are
|
||||
displayed.
|
||||
.SH FILES
|
||||
/usr/spool/at spool area
|
||||
.SH "SEE ALSO"
|
||||
at(1),
|
||||
atrm(1),
|
||||
cron(8)
|
||||
@@ -0,0 +1,48 @@
|
||||
.\" Copyright (c) 1985 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)atrm.1 6.2 (Berkeley) 5/10/86
|
||||
.\"
|
||||
.TH ATRM 1 "May 10, 1986"
|
||||
.UC 6
|
||||
.SH NAME
|
||||
atrm \- remove jobs spooled by at
|
||||
.SH SYNOPSIS
|
||||
.B atrm
|
||||
[ -f ] [ -i ] [-] [[ job #] [ name ]... ]
|
||||
.SH DESCRIPTION
|
||||
.I Atrm
|
||||
removes jobs that were created with the
|
||||
.IR at (1)
|
||||
command.
|
||||
With the
|
||||
.B \-
|
||||
flag, all jobs belonging to the person invoking
|
||||
.I atrm
|
||||
are removed.
|
||||
If a job number(s) is specified,
|
||||
.I atrm
|
||||
attempts to remove only that job number(s).
|
||||
.PP
|
||||
If the
|
||||
.B \-f
|
||||
flag is used, all information regarding the
|
||||
removal of the specified jobs is suppressed.
|
||||
If the
|
||||
.B \-i
|
||||
flag is used,
|
||||
.I atrm
|
||||
asks if a job should be removed; a response of 'y' causes the job to be removed.
|
||||
.PP
|
||||
If a user(s) name is specified, all
|
||||
jobs belonging to that user(s) are removed.
|
||||
This form of invoking
|
||||
.I atrm
|
||||
is useful only to the super-user.
|
||||
.SH FILES
|
||||
/usr/spool/at spool area
|
||||
.SH "SEE ALSO"
|
||||
at(1),
|
||||
atq(1),
|
||||
cron(8)
|
||||
@@ -0,0 +1,240 @@
|
||||
.\" @(#)awk.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH AWK 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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 (3S)).
|
||||
.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 (3S)
|
||||
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.
|
||||
@@ -0,0 +1,32 @@
|
||||
.\" @(#)basename.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH BASENAME 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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/bin/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)
|
||||
@@ -0,0 +1,196 @@
|
||||
.\" @(#)bc.1 6.1.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH BC 1 "October 21, 1996"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
bc \- arbitrary-precision arithmetic language
|
||||
.SH SYNOPSIS
|
||||
.B bc
|
||||
[
|
||||
.B \-c
|
||||
] [
|
||||
.B \-l
|
||||
] [ file ... ]
|
||||
.SH DESCRIPTION
|
||||
.I Bc
|
||||
is an interactive processor for a language which resembles
|
||||
C but provides unlimited precision arithmetic.
|
||||
It takes input from any files given, then reads
|
||||
the standard input.
|
||||
The
|
||||
.B \-l
|
||||
argument stands for the name
|
||||
of an arbitrary precision math library.
|
||||
The syntax for
|
||||
.I bc
|
||||
programs is as follows;
|
||||
L means letter a-z,
|
||||
E means expression, S means statement.
|
||||
.HP 6
|
||||
Comments
|
||||
.br
|
||||
are enclosed in /* and */.
|
||||
.HP 6
|
||||
Names
|
||||
.br
|
||||
simple variables: L
|
||||
.br
|
||||
array elements: L [ E ]
|
||||
.br
|
||||
The words `ibase', `obase', and `scale'
|
||||
.HP 6
|
||||
Other operands
|
||||
.br
|
||||
arbitrarily long numbers with optional sign and decimal point.
|
||||
.br
|
||||
( E )
|
||||
.br
|
||||
sqrt ( E )
|
||||
.br
|
||||
length ( E ) number of significant decimal digits
|
||||
.br
|
||||
scale ( E ) number of digits right of decimal point
|
||||
.br
|
||||
L ( E , ... , E )
|
||||
.HP 6
|
||||
Operators
|
||||
.br
|
||||
+ \- * / % ^
|
||||
(% is remainder; ^ is power)
|
||||
.br
|
||||
++ \-\- (prefix and postfix; apply to names)
|
||||
.br
|
||||
== <= >= != < >
|
||||
.br
|
||||
= += \-= *= /= %= ^=
|
||||
.br
|
||||
.HP 6
|
||||
Statements
|
||||
.br
|
||||
E
|
||||
.br
|
||||
{ S ; ... ; S }
|
||||
.br
|
||||
if ( E ) S
|
||||
.br
|
||||
while ( E ) S
|
||||
.br
|
||||
for ( E ; E ; E ) S
|
||||
.br
|
||||
null statement
|
||||
.br
|
||||
break
|
||||
.br
|
||||
quit
|
||||
.HP 6
|
||||
Function definitions
|
||||
.br
|
||||
define L ( L ,..., L ) {
|
||||
.br
|
||||
auto L, ... , L
|
||||
.br
|
||||
S; ... S
|
||||
.br
|
||||
return ( E )
|
||||
.br
|
||||
}
|
||||
.HP 6
|
||||
Functions in
|
||||
.B \-l
|
||||
math library
|
||||
.br
|
||||
s(x) sine
|
||||
.br
|
||||
c(x) cosine
|
||||
.br
|
||||
e(x) exponential
|
||||
.br
|
||||
l(x) log
|
||||
.br
|
||||
a(x) arctangent
|
||||
.br
|
||||
j(n,x) Bessel function
|
||||
.PP
|
||||
.DT
|
||||
All function arguments are passed by value.
|
||||
.PP
|
||||
The value of a statement that is an expression is printed
|
||||
unless the main operator is an assignment.
|
||||
Either semicolons or newlines may separate statements.
|
||||
Assignment to
|
||||
.I scale
|
||||
influences the number of digits to be retained on arithmetic
|
||||
operations in the manner of
|
||||
.IR dc (1).
|
||||
Assignments to
|
||||
.I ibase
|
||||
or
|
||||
.I obase
|
||||
set the input and output number radix respectively.
|
||||
.PP
|
||||
The same letter may be used as an array, a function,
|
||||
and a simple variable simultaneously.
|
||||
All variables are global to the program.
|
||||
`Auto' variables are pushed down during function calls.
|
||||
When using arrays as function arguments
|
||||
or defining them as automatic variables
|
||||
empty square brackets must follow the array name.
|
||||
.PP
|
||||
For example
|
||||
.PP
|
||||
.nf
|
||||
scale = 20
|
||||
define e(x){
|
||||
auto a, b, c, i, s
|
||||
a = 1
|
||||
b = 1
|
||||
s = 1
|
||||
for(i=1; 1==1; i++){
|
||||
a = a*x
|
||||
b = b*i
|
||||
c = a/b
|
||||
if(c == 0) return(s)
|
||||
s = s+c
|
||||
}
|
||||
}
|
||||
.PP
|
||||
.fi
|
||||
defines a function to compute an approximate value of
|
||||
the exponential function and
|
||||
.PP
|
||||
.nf
|
||||
for(i=1; i<=10; i++) e(i)
|
||||
.fi
|
||||
.PP
|
||||
prints approximate values of the exponential function of
|
||||
the first ten integers.
|
||||
.PP
|
||||
.I Bc
|
||||
is actually a preprocessor for
|
||||
.IR dc (1),
|
||||
which it invokes automatically, unless the
|
||||
.B \-c
|
||||
(compile only)
|
||||
option is present.
|
||||
In this case the
|
||||
.I dc
|
||||
input is sent to the standard output instead.
|
||||
.SH FILES
|
||||
.ta \w'/usr/share/misc/lib.b 'u
|
||||
/usr/share/misc/lib.b mathematical library
|
||||
.br
|
||||
dc(1) desk calculator proper
|
||||
.SH "SEE ALSO"
|
||||
dc(1)
|
||||
.br
|
||||
L. L. Cherry and R. Morris,
|
||||
.I
|
||||
BC \- An arbitrary precision desk-calculator language
|
||||
.SH BUGS
|
||||
No &&, \(or\|\(or, or ! operators.
|
||||
.br
|
||||
.I For
|
||||
statement must have all three E's.
|
||||
.br
|
||||
.I Quit
|
||||
is interpreted when read, not when executed.
|
||||
@@ -0,0 +1,49 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)biff.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH BIFF 1 "April 29, 1985"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
biff \- be notified if mail arrives and who it is from
|
||||
.SH SYNOPSIS
|
||||
.B biff
|
||||
[
|
||||
.B yn
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Biff
|
||||
informs the system whether you want to be notified when mail arrives
|
||||
during the current terminal session.
|
||||
The command
|
||||
.IP
|
||||
.B "biff y"
|
||||
.LP
|
||||
enables notification; the command
|
||||
.IP
|
||||
.B "biff n"
|
||||
.LP
|
||||
disables it.
|
||||
When mail notification is enabled, the header and first few lines of
|
||||
the message will be printed on your screen whenever mail arrives.
|
||||
A ``biff y'' command is often included in the file
|
||||
.I \&.login
|
||||
or
|
||||
.I \&.profile
|
||||
to be executed at each login.
|
||||
.PP
|
||||
.I Biff
|
||||
operates asynchronously.
|
||||
For synchronous notification use the MAIL variable of
|
||||
.IR sh (1)
|
||||
or the
|
||||
.I mail
|
||||
variable of
|
||||
.IR csh (1).
|
||||
.SH SEE ALSO
|
||||
csh(1),
|
||||
sh(1),
|
||||
mail(1),
|
||||
comsat(8C)
|
||||
@@ -0,0 +1,134 @@
|
||||
.\" @(#)binmail.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH BINMAIL 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
binmail \- send or receive mail among users
|
||||
.SH SYNOPSIS
|
||||
.B /bin/mail
|
||||
[
|
||||
.B +
|
||||
] [
|
||||
.B \-i
|
||||
] [ person ] ...
|
||||
.br
|
||||
.B /bin/mail
|
||||
.B "[ + ]"
|
||||
[
|
||||
.B \-i
|
||||
]
|
||||
.B \-f
|
||||
file
|
||||
.LP
|
||||
.SH DESCRIPTION
|
||||
Note: This is the old version 7 UNIX system mail program. The default
|
||||
.I mail
|
||||
command is described in
|
||||
.IR Mail (1),
|
||||
and its binary is in the directory
|
||||
.IR /usr/ucb .
|
||||
.PP
|
||||
.I mail
|
||||
with no argument prints a user's mail, message-by-message,
|
||||
in last-in, first-out order; the optional argument
|
||||
.B +
|
||||
displays the mail messages in first-in, first-out order.
|
||||
For each message, it reads a line from the standard input
|
||||
to direct disposition of the message.
|
||||
.TP
|
||||
newline
|
||||
Go on to next message.
|
||||
.TP
|
||||
d
|
||||
Delete message and go on to the next.
|
||||
.TP
|
||||
p
|
||||
Print message again.
|
||||
.TP
|
||||
\-
|
||||
Go back to previous message.
|
||||
.TP
|
||||
.RI "s [" " file " "] ..."
|
||||
Save the message in the named
|
||||
.I files
|
||||
(`mbox' default).
|
||||
.TP
|
||||
.RI "w [" " file " "] ..."
|
||||
Save the message, without a header, in the named
|
||||
.I files
|
||||
(`mbox' default).
|
||||
.TP
|
||||
.RI "m [" " person " "] ..."
|
||||
Mail the message to the named
|
||||
.I persons
|
||||
(yourself is default).
|
||||
.TP
|
||||
EOT (control-D)
|
||||
Put unexamined mail back in the mailbox and stop.
|
||||
.TP
|
||||
q
|
||||
Same as EOT.
|
||||
.TP
|
||||
.RI ! command
|
||||
Escape to the Shell to do
|
||||
.IR command .
|
||||
.TP
|
||||
*
|
||||
Print a command summary.
|
||||
.PP
|
||||
An interrupt normally terminates the
|
||||
.I mail
|
||||
command; the mail file is unchanged. The optional argument
|
||||
.B \(mii
|
||||
tells
|
||||
.I mail
|
||||
to continue after interrupts.
|
||||
.PP
|
||||
When
|
||||
.I persons
|
||||
are named,
|
||||
.I mail
|
||||
takes the standard input up to an end-of-file (or a line with just `.')
|
||||
and adds it to each
|
||||
.I person's
|
||||
`mail' file. The message is preceded by the sender's name and a postmark.
|
||||
Lines that look like postmarks are prepended with `>'. A
|
||||
.I person
|
||||
is usually a user name recognized by
|
||||
.IR login (1).
|
||||
To denote a recipient on a remote system, prefix
|
||||
.I person
|
||||
by the system name and exclamation mark (see
|
||||
.IR uucp (1C)).
|
||||
.PP
|
||||
The
|
||||
.B \-f
|
||||
option causes the named file, for example, `mbox',
|
||||
to be printed as if it were the mail file.
|
||||
.PP
|
||||
When a user logs in he is informed of the presence of mail.
|
||||
.SH FILES
|
||||
.ta \w'/usr/spool/mail/*.lock 'u
|
||||
/etc/passwd to identify sender and locate persons
|
||||
.br
|
||||
.li
|
||||
/usr/spool/mail/* incoming mail for user *
|
||||
.br
|
||||
mbox saved mail
|
||||
.br
|
||||
/tmp/ma* temp file
|
||||
.br
|
||||
/usr/spool/mail/*.lock lock for mail directory
|
||||
.br
|
||||
dead.letter unmailable text
|
||||
.br
|
||||
.SH "SEE ALSO"
|
||||
Mail(1), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8)
|
||||
.SH BUGS
|
||||
Race conditions sometimes result in a failure to remove a lock file.
|
||||
.PP
|
||||
Normally anybody can read your mail, unless it is sent by
|
||||
.IR xsend (1).
|
||||
An installation can overcome this by making
|
||||
.I mail
|
||||
a set-user-id command that owns the mail directory.
|
||||
@@ -0,0 +1,30 @@
|
||||
.\" @(#)cal.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH CAL 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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.
|
||||
@@ -0,0 +1,53 @@
|
||||
.\" @(#)calendar.1 6.1.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH CALENDAR 1 "October 21, 1996"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
calendar \- reminder service
|
||||
.SH SYNOPSIS
|
||||
.B calendar
|
||||
[ \- ]
|
||||
.SH DESCRIPTION
|
||||
.I Calendar
|
||||
consults the file `calendar' in the current directory
|
||||
and prints out lines that contain today's or
|
||||
tomorrow's date anywhere in the line.
|
||||
Most reasonable month-day dates such as `Dec. 7,'
|
||||
`december 7,' `12/7,' etc., are recognized, but not
|
||||
`7 December' or `7/12'.
|
||||
If you give the month as ``*''
|
||||
with a date, i.e. ``* 1'', that day in any month will do.
|
||||
On weekends `tomorrow' extends through Monday.
|
||||
.PP
|
||||
When
|
||||
an argument is present,
|
||||
.I calendar
|
||||
does its job for every user
|
||||
who has a file `calendar' in his login directory
|
||||
and sends him any positive results by
|
||||
.IR mail (1).
|
||||
Normally this is done daily in the wee hours under control of
|
||||
.IR cron (8).
|
||||
.PP
|
||||
The file `calendar' is first run through the ``C'' preprocessor,
|
||||
.IR /lib/cpp ,
|
||||
to include any other calendar files
|
||||
specified with the usual ``#include'' syntax.
|
||||
Included calendars will usually be shared by all users,
|
||||
maintained and documented by the local administration.
|
||||
.SH FILES
|
||||
calendar
|
||||
.br
|
||||
/usr/libexec/calendar to figure out today's and tomorrow's dates
|
||||
.br
|
||||
/etc/passwd
|
||||
.br
|
||||
/tmp/cal*
|
||||
.br
|
||||
/lib/cpp, egrep, sed, mail as subprocesses
|
||||
.SH "SEE ALSO"
|
||||
at(1), cron(8), mail(1)
|
||||
.SH BUGS
|
||||
.I Calendar's
|
||||
extended idea of `tomorrow' doesn't account for
|
||||
holidays.
|
||||
@@ -0,0 +1,84 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)cat.1 6.2 (Berkeley) 5/5/86
|
||||
.\"
|
||||
.TH CAT 1 "May 5, 1986"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
cat \- catenate and print
|
||||
.SH SYNOPSIS
|
||||
.B cat
|
||||
[
|
||||
.B \-u
|
||||
] [
|
||||
.B \-n
|
||||
] [
|
||||
.B \-s
|
||||
] [
|
||||
.B \-v
|
||||
]
|
||||
file ...
|
||||
.br
|
||||
.SH DESCRIPTION
|
||||
.I Cat
|
||||
reads each
|
||||
.I file
|
||||
in sequence and displays it on the standard output. Thus
|
||||
.PP
|
||||
.ti+15n
|
||||
cat file
|
||||
.PP
|
||||
displays the file on the standard output, 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 the block size recommended by \fIstat\fP(2)
|
||||
unless the standard output is a terminal,
|
||||
when it is line buffered. The
|
||||
.B \-u
|
||||
option makes the output completely unbuffered.
|
||||
.PP
|
||||
The
|
||||
.B \-n
|
||||
option displays the output lines preceded by lines numbers, numbered
|
||||
sequentially from 1. Specifying the
|
||||
.B \-b
|
||||
option with the
|
||||
.B \-n
|
||||
option omits the line numbers from blank lines.
|
||||
.PP
|
||||
The
|
||||
.B \-s
|
||||
option crushes out multiple adjacent empty lines so that the
|
||||
output is displayed single spaced.
|
||||
.PP
|
||||
The
|
||||
.B \-v
|
||||
option displays non-printing characters so that they are visible.
|
||||
Control characters print like ^X for control-x; the delete character
|
||||
(octal 0177) prints as ^?.
|
||||
Non-ascii characters (with the high bit set) are printed as M-
|
||||
(for meta) followed by the character of the low 7 bits. A
|
||||
.B \-e
|
||||
option may be given with the
|
||||
.B \-v
|
||||
option, which displays a `$' character at the end of each line.
|
||||
Specifying the
|
||||
.B \-t
|
||||
option with the
|
||||
.B \-v
|
||||
option displays tab characters as ^I.
|
||||
.PP
|
||||
.SH "SEE ALSO"
|
||||
cp(1), ex(1), more(1), pr(1), tail(1)
|
||||
.SH BUGS
|
||||
Beware of `cat a b >a' and `cat a b >b', which destroy
|
||||
the input files before reading them.
|
||||
@@ -0,0 +1,13 @@
|
||||
.\" @(#)cb.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH CB 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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.
|
||||
@@ -0,0 +1,216 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)cc.1 6.2 (Berkeley) 6/7/85
|
||||
.\"
|
||||
.TH CC 1 "June 7, 1985"
|
||||
.UC 2
|
||||
.SH NAME
|
||||
cc \- C compiler (2BSD)
|
||||
.SH SYNOPSIS
|
||||
.B cc
|
||||
[ option ] ... file ...
|
||||
.SH DESCRIPTION
|
||||
.I Cc
|
||||
is the UNIX C compiler.
|
||||
.I Cc
|
||||
accepts several types of arguments:
|
||||
.PP
|
||||
Arguments whose names end with `.c' are taken to be
|
||||
C source programs; they are compiled, and
|
||||
each object program is left on the file
|
||||
whose name is that of the source with `.o' substituted
|
||||
for `.c'.
|
||||
The `.o' file is normally deleted, however, if a single
|
||||
C program is compiled and loaded all at one go.
|
||||
.PP
|
||||
In the same way,
|
||||
arguments whose names end with `.s' are taken to be assembly source programs
|
||||
and are assembled, producing a `.o' file.
|
||||
.PP
|
||||
The following options are interpreted by
|
||||
.IR cc .
|
||||
See
|
||||
.IR ld (1)
|
||||
for load-time options.
|
||||
.TP 8
|
||||
.B \-c
|
||||
Suppress the loading phase of the compilation, and force
|
||||
an object file to be produced even if only one program is compiled.
|
||||
.TP
|
||||
.B \-w
|
||||
Suppress warning diagnostics.
|
||||
.TP
|
||||
.B \-p
|
||||
Arrange for the compiler to produce code
|
||||
which counts the number of times each routine is called.
|
||||
If loading takes place, replace the standard startup
|
||||
routine by one which automatically calls
|
||||
.IR monitor (3)
|
||||
at the start and arranges to write out a
|
||||
.I mon.out
|
||||
file at normal termination of execution of the object program.
|
||||
An execution profile can then be generated by
|
||||
use of
|
||||
.IR prof (1).
|
||||
.TP
|
||||
.SM
|
||||
.B \-O
|
||||
Invoke an
|
||||
object-code improver.
|
||||
.TP
|
||||
.SM
|
||||
.B \-S
|
||||
Compile the named C programs, and leave the
|
||||
assembler-language output on corresponding files suffixed `.s'.
|
||||
.TP
|
||||
.SM
|
||||
.B \-M
|
||||
Run only the macro preprocessor
|
||||
on the named C programs,
|
||||
requesting it to generate Makefile dependencies
|
||||
and send the result to the standard output.
|
||||
.TP
|
||||
.SM
|
||||
.B \-E
|
||||
Run only the macro preprocessor
|
||||
on the named C programs, and send the result to the
|
||||
standard output.
|
||||
.TP
|
||||
.SM
|
||||
.B \-C
|
||||
prevent the macro preprocessor from eliding comments.
|
||||
.TP
|
||||
.BI \-o " output"
|
||||
Name the final output file
|
||||
.IR output .
|
||||
If this option is used the file `a.out' will be left undisturbed.
|
||||
.TP
|
||||
.SM
|
||||
.BI \-D name=def
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.SM
|
||||
.BI \-D \*Sname
|
||||
Define the
|
||||
.I name
|
||||
to the preprocessor,
|
||||
as if by
|
||||
`#define'.
|
||||
If no definition is given, the name is defined as "1".
|
||||
.TP
|
||||
.SM
|
||||
.BI \-U \*Sname
|
||||
Remove any initial definition of
|
||||
.IR name .
|
||||
.TP
|
||||
.SM
|
||||
.BI \-I \*Sdir
|
||||
`#include' files
|
||||
whose names do not begin with `/' are always
|
||||
sought first in the directory
|
||||
of the
|
||||
.I file
|
||||
argument,
|
||||
then in directories named in
|
||||
.B \-I
|
||||
options,
|
||||
then in directories on a standard list.
|
||||
.TP
|
||||
.SM
|
||||
.BI \-L \*Sdir
|
||||
Library archives are sought first in
|
||||
directories named in
|
||||
.B \-L
|
||||
options,
|
||||
then in directories on a standard list.
|
||||
.TP
|
||||
.SM
|
||||
.BI \-B \*Sstring
|
||||
Find substitute compiler passes in the files named
|
||||
.I string
|
||||
with the suffixes cpp, c0, c1 and c2.
|
||||
If
|
||||
.I string
|
||||
is empty, use a standard backup version.
|
||||
.TP
|
||||
.BR \-t [ p012 ]
|
||||
Find only the designated compiler passes in the
|
||||
files whose names are constructed by a
|
||||
.B \-B
|
||||
option.
|
||||
In the absence of a
|
||||
.B \-B
|
||||
option, the
|
||||
.I string
|
||||
is taken to be `/usr/c/'.
|
||||
.PP
|
||||
Other arguments
|
||||
are taken
|
||||
to be either loader option arguments, or C-compatible
|
||||
object programs, typically produced by an earlier
|
||||
.I cc
|
||||
run,
|
||||
or perhaps libraries of C-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
|
||||
.B a.out.
|
||||
.SH FILES
|
||||
.ta \w'/usr/c/c[01] 'u
|
||||
file.c input file
|
||||
.br
|
||||
file.o object file
|
||||
.br
|
||||
a.out loaded output
|
||||
.br
|
||||
/tmp/ctm? temporary
|
||||
.br
|
||||
/lib/cpp preprocessor
|
||||
.br
|
||||
/lib/c[01] compiler
|
||||
.br
|
||||
/lib/c2 optional optimizer
|
||||
.br
|
||||
/lib/crt0.o runtime startoff
|
||||
.br
|
||||
/lib/mcrt0.o startoff for profiling
|
||||
.br
|
||||
/lib/libc.a standard library, see
|
||||
.IR intro (3)
|
||||
.br
|
||||
/usr/lib/libc_p.a profiling library, see
|
||||
.IR intro (3)
|
||||
.br
|
||||
/usr/include standard directory for `#include' files
|
||||
.br
|
||||
mon.out file produced for analysis by
|
||||
.IR prof (1)
|
||||
.SH "SEE ALSO"
|
||||
B. W. Kernighan and D. M. Ritchie,
|
||||
.I The C Programming Language,
|
||||
Prentice-Hall,
|
||||
1978
|
||||
.br
|
||||
B. W. Kernighan,
|
||||
.I
|
||||
Programming in C\(ema tutorial
|
||||
.br
|
||||
D. M. Ritchie,
|
||||
.I
|
||||
C Reference Manual
|
||||
.br
|
||||
monitor(3), prof(1), adb(1), ld(1), as(1)
|
||||
.SH DIAGNOSTICS
|
||||
The diagnostics produced by C itself are intended to be
|
||||
self-explanatory.
|
||||
Occasional messages may be produced by the assembler
|
||||
or loader.
|
||||
.SH BUGS
|
||||
The compiler currently ignores advice to put
|
||||
\fBchar\fR, \fBunsigned char\fR,
|
||||
\fBlong\fR,
|
||||
\fBfloat\fR, or \fBdouble\fR
|
||||
variables in registers.
|
||||
@@ -0,0 +1,37 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)cd.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH CD 1 "April 29, 1985"
|
||||
.UC 4
|
||||
.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 shells.
|
||||
In
|
||||
.IR csh (1)
|
||||
you may specify a list of directories in which
|
||||
.I directory
|
||||
is to be sought as a subdirectory if it is not
|
||||
a subdirectory of the current directory;
|
||||
see the description of the
|
||||
.I cdpath
|
||||
variable in
|
||||
.IR csh (1).
|
||||
.SH "SEE ALSO"
|
||||
csh(1), sh(1), pwd(1), chdir(2)
|
||||
@@ -0,0 +1,110 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)checknr.1 6.2 (Berkeley) 5/7/86
|
||||
.\"
|
||||
.TH CHECKNR 1 "May 7, 1986"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
checknr \- check nroff/troff files
|
||||
.SH SYNOPSIS
|
||||
.B checknr
|
||||
[
|
||||
.B \-s
|
||||
] [
|
||||
.B \-f
|
||||
] [
|
||||
.BR \-a ".x1.y1.x2.y2. ... .xn.yn"
|
||||
] [
|
||||
.BR \-c ".x1.x2.x3 ... .xn"
|
||||
] [
|
||||
\fIfile\fP ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Checknr
|
||||
checks a list of
|
||||
.IR nroff (1)
|
||||
or
|
||||
.IR troff (1)
|
||||
input files for certain kinds of errors
|
||||
involving mismatched opening and closing delimiters
|
||||
and unknown commands.
|
||||
If no files are specified,
|
||||
.I checknr
|
||||
checks the standard input.
|
||||
Delimeters checked are:
|
||||
.IP (1)
|
||||
Font changes using \efx ... \efP.
|
||||
.IP (2)
|
||||
Size changes using \esx ... \es0.
|
||||
.IP (3)
|
||||
Macros that come in open ... close forms, for example,
|
||||
the .TS and .TE macros which must always come in pairs.
|
||||
.PP
|
||||
.I Checknr
|
||||
knows about the
|
||||
.IR ms (7)
|
||||
and
|
||||
.IR me (7)
|
||||
macro packages.
|
||||
.PP
|
||||
Additional pairs of macros can be added to the list using the
|
||||
.B \-a
|
||||
option.
|
||||
This must be followed by groups of six characters, each group defining
|
||||
a pair of macros.
|
||||
The six characters are
|
||||
a period,
|
||||
the first macro name,
|
||||
another period,
|
||||
and the second macro name.
|
||||
For example, to define a pair .BS and .ES, use \-\fBa\fP.BS.ES
|
||||
.PP
|
||||
The
|
||||
.B \-c
|
||||
option defines commands which would otherwise be complained about
|
||||
as undefined.
|
||||
.PP
|
||||
The
|
||||
.B \-f
|
||||
option requests
|
||||
.I checknr
|
||||
to ignore \ef font changes.
|
||||
.PP
|
||||
The
|
||||
.B \-s
|
||||
option requests
|
||||
.I checknr
|
||||
to ignore \es size changes.
|
||||
.PP
|
||||
.I Checknr
|
||||
is intended to be used on documents that are prepared with
|
||||
.I checknr
|
||||
in mind, much the same as
|
||||
.I lint.
|
||||
It expects a certain document writing style for \ef and \es commands,
|
||||
in that each \efx must be terminated with \efP and
|
||||
each \esx must be terminated with \es0.
|
||||
While it will work to directly go into the next font or explicitly
|
||||
specify the original font or point size,
|
||||
and many existing documents actually do this,
|
||||
such a practice will produce complaints from
|
||||
.I checknr.
|
||||
Since it is probably better to use the \efP and \es0 forms anyway,
|
||||
you should think of this as a contribution to your document
|
||||
preparation style.
|
||||
.SH SEE\ ALSO
|
||||
nroff(1), troff(1), checkeq(1), ms(7), me(7)
|
||||
.SH DIAGNOSTICS
|
||||
Complaints about unmatched delimiters.
|
||||
.br
|
||||
Complaints about unrecognized commands.
|
||||
.br
|
||||
Various complaints about the syntax of commands.
|
||||
.SH BUGS
|
||||
There is no way to define a 1 character macro name using
|
||||
.BR \-a .
|
||||
.br
|
||||
Does not correctly recognize certain reasonable constructs,
|
||||
such as conditionals.
|
||||
@@ -0,0 +1,46 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)chgrp.1 6.2 (Berkeley) 5/22/86
|
||||
.\"
|
||||
.TH CHGRP 1 "May 22, 1986"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
chgrp \- change group
|
||||
.SH SYNOPSIS
|
||||
.B chgrp
|
||||
[ -f -R ]
|
||||
group file ...
|
||||
.SH DESCRIPTION
|
||||
.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
|
||||
The user invoking
|
||||
.I chgrp
|
||||
must belong
|
||||
to the specified group and be the owner of the file, or be the super-user.
|
||||
.PP
|
||||
No errors are reported when the
|
||||
.B \-f
|
||||
(force) option is given.
|
||||
.PP
|
||||
When the
|
||||
.B \-R
|
||||
option is given,
|
||||
.I chgrp
|
||||
recursively descends its directory arguments
|
||||
setting the specified group-ID.
|
||||
When symbolic links are encountered, their group is changed,
|
||||
but they are not traversed.
|
||||
.SH FILES
|
||||
/etc/group
|
||||
.SH "SEE ALSO"
|
||||
chown(2),
|
||||
passwd(5),
|
||||
group(5)
|
||||
@@ -0,0 +1,112 @@
|
||||
.\" @(#)chmod.1 6.3 (Berkeley) 5/22/86
|
||||
.\"
|
||||
.TH CHMOD 1 "May 22, 1986"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
chmod \- change mode
|
||||
.SH SYNOPSIS
|
||||
\fBchmod\fP [
|
||||
.B \-Rf
|
||||
] mode file ...
|
||||
.SH DESCRIPTION
|
||||
The mode of each named file is changed according to \fImode\fP,
|
||||
which may be absolute or symbolic. An absolute \fImode\fP
|
||||
is an octal number constructed from the OR of the following modes:
|
||||
.TP 10
|
||||
4000
|
||||
set user ID on execution
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
2000
|
||||
set group ID on execution
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
1000
|
||||
sticky bit, see
|
||||
.IR chmod (2)
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
0400
|
||||
read by owner
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
0200
|
||||
write by owner
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
0100
|
||||
execute (search in directory) by owner
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
0070
|
||||
read, write, execute (search) by group
|
||||
.br
|
||||
.ns
|
||||
.TP 10
|
||||
0007
|
||||
read, write, execute (search) by others
|
||||
.LP
|
||||
A symbolic \fImode\fP has the form:
|
||||
.IP
|
||||
.RI [ who ]
|
||||
\fIop permission\fP
|
||||
.RI [ "op permission" "] ..."
|
||||
.LP
|
||||
The \fIwho\fP part is a combination of the letters \fBu\fP
|
||||
(for user's permissions), \fBg\fP (group) and \fBo\fP (other).
|
||||
The letter \fBa\fP stands for all, or \fBugo.\fP
|
||||
If \fIwho\fP is omitted, the default is \fIa\fP
|
||||
but the setting of the file creation mask (see umask(2)) is taken into account.
|
||||
.LP
|
||||
\fIOp\fP can be \fB+\fP to add \fIpermission\fP to the file's mode,
|
||||
\fB\-\fP to take away \fIpermission\fP and \fB=\fP to assign
|
||||
\fIpermission\fP absolutely (all other bits will be reset).
|
||||
.LP
|
||||
\fIPermission\fP is any combination of the letters \fBr\fP (read),
|
||||
\fBw\fP (write), \fBx\fP (execute),
|
||||
\fBX\fP (set execute only if file is a directory
|
||||
or some other execute bit is set),
|
||||
\fBs\fP (set owner or group id)
|
||||
and \fBt\fP (save text \- sticky).
|
||||
Letters \fBu\fP, \fBg\fP, or \fBo\fP indicate that \fIpermission\fP
|
||||
is to be taken from the current mode.
|
||||
Omitting \fIpermission\fP
|
||||
is only useful with \fB=\fP to take away all permissions.
|
||||
.PP
|
||||
When the
|
||||
.B \-R
|
||||
option is given,
|
||||
.I chmod
|
||||
recursively descends its directory arguments
|
||||
setting the mode for each file as described above.
|
||||
When symbolic links are encountered, their mode is not changed
|
||||
and they are not traversed.
|
||||
.PP
|
||||
If the
|
||||
.B \-f
|
||||
option is given,
|
||||
.I chmod
|
||||
will not complain if it fails to change the mode
|
||||
on a file.
|
||||
.SH EXAMPLES
|
||||
.LP
|
||||
The first example denies write permission to others,
|
||||
the second makes a file executable by all if it is executable by anyone:
|
||||
.IP
|
||||
chmod o\-w file
|
||||
.br
|
||||
chmod +X file
|
||||
.LP
|
||||
Multiple symbolic modes separated by commas may be given.
|
||||
Operations are performed in the order specified. The letter
|
||||
\fBs\fP is only useful with \fBu\fP or \fBg.\fP
|
||||
.LP
|
||||
Only the owner of a file (or the super-user) may change its mode.
|
||||
.SH "SEE ALSO"
|
||||
ls(1), chmod(2), stat(2), umask(2), chown(8)
|
||||
@@ -0,0 +1,20 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)clear.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH CLEAR 1 "April 29, 1985"
|
||||
.UC
|
||||
.SH NAME
|
||||
clear \- clear terminal screen
|
||||
.SH SYNOPSIS
|
||||
.B clear
|
||||
.SH DESCRIPTION
|
||||
.I Clear
|
||||
clears your screen if this is possible.
|
||||
It looks in the environment for the terminal type and then in
|
||||
.I /etc/termcap
|
||||
to figure out how to clear the screen.
|
||||
.SH FILES
|
||||
/etc/termcap terminal capability data base
|
||||
@@ -0,0 +1,45 @@
|
||||
.\" @(#)cmp.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH CMP 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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.
|
||||
@@ -0,0 +1,73 @@
|
||||
.\" @(#)col.1 6.2 (Berkeley) 5/16/86
|
||||
.\"
|
||||
.TH COL 1 "May 16, 1986"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
col \- filter reverse line feeds
|
||||
.SH SYNOPSIS
|
||||
.B col
|
||||
[
|
||||
.B \-bfh
|
||||
]
|
||||
.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
|
||||
If the
|
||||
.B \-h
|
||||
option is given,
|
||||
.I col
|
||||
converts white space to tabs to shorten printing time.
|
||||
.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)
|
||||
.SH BUGS
|
||||
Can't back up more than 128 lines.
|
||||
.br
|
||||
No more than 800 characters, including backspaces, on a line.
|
||||
@@ -0,0 +1,74 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)colcrt.1 6.2 (Berkeley) 5/7/86
|
||||
.\"
|
||||
.TH COLCRT 1 "May 7, 1986"
|
||||
.UC
|
||||
.SH NAME
|
||||
colcrt \- filter nroff output for CRT previewing
|
||||
.SH SYNOPSIS
|
||||
.B colcrt
|
||||
[
|
||||
.B \-
|
||||
] [
|
||||
.B \-2
|
||||
] [
|
||||
file ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Colcrt
|
||||
provides virtual half-line and reverse line feed sequences
|
||||
for terminals without such capability, and on which overstriking
|
||||
is destructive.
|
||||
Half-line characters and underlining (changed to dashing `\-')
|
||||
are placed on new lines in between the normal output lines.
|
||||
.PP
|
||||
The optional
|
||||
.B \-
|
||||
suppresses all underlining.
|
||||
It is especially useful for previewing
|
||||
.I allboxed
|
||||
tables from
|
||||
.IR tbl (1).
|
||||
.PP
|
||||
The option
|
||||
.B \-2
|
||||
causes all half-lines to be printed, effectively double spacing the output.
|
||||
Normally, a minimal space output format is used which will suppress empty
|
||||
lines.
|
||||
The program never suppresses two consecutive empty lines, however.
|
||||
The
|
||||
.B \-2
|
||||
option is useful for sending output to the line printer when the output
|
||||
contains superscripts and subscripts which would otherwise be invisible.
|
||||
.PP
|
||||
A typical use of
|
||||
.I colcrt
|
||||
would be
|
||||
.PP
|
||||
.DT
|
||||
tbl exum2.n | nroff \-ms | colcrt \- | more
|
||||
.SH "SEE ALSO"
|
||||
nroff/troff(1), col(1), more(1), ul(1)
|
||||
.SH BUGS
|
||||
Should fold underlines onto blanks even with the
|
||||
`\fB\-\fR'
|
||||
option so that
|
||||
a true underline character would show; if we did this, however,
|
||||
.I colcrt
|
||||
wouldn't get rid of
|
||||
.I cu'd
|
||||
underlining
|
||||
completely.
|
||||
.PP
|
||||
Can't back up more than 102 lines.
|
||||
.PP
|
||||
General overstriking is lost;
|
||||
as a special case `|' overstruck with `\-' or underline becomes `+'.
|
||||
.PP
|
||||
Lines are trimmed to 132 characters.
|
||||
.PP
|
||||
Some provision should be made for processing superscripts and subscripts
|
||||
in documents which are already double-spaced.
|
||||
@@ -0,0 +1,31 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)colrm.1 6.2 (Berkeley) 5/7/86
|
||||
.\"
|
||||
.TH COLRM 1 "May 7, 1986"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
colrm \- remove columns from a file
|
||||
.SH SYNOPSIS
|
||||
.B colrm
|
||||
[
|
||||
startcol
|
||||
[
|
||||
endcol
|
||||
]
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Colrm
|
||||
removes selected columns from a file. Input is taken from standard input.
|
||||
Output is sent to standard output.
|
||||
.PP
|
||||
If called with one parameter the columns
|
||||
of each line will be removed starting with the specified column.
|
||||
If called with two parameters the columns from the first column
|
||||
to the last column will be removed.
|
||||
.PP
|
||||
Column numbering starts with column 1.
|
||||
.SH "SEE ALSO"
|
||||
expand(1)
|
||||
@@ -0,0 +1,43 @@
|
||||
.\" @(#)comm.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH COMM 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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)
|
||||
@@ -0,0 +1,233 @@
|
||||
.\" @(#)compress.1 6.5 (Berkeley) 5/11/86
|
||||
.\"
|
||||
.TH COMPRESS 1 "May 11, 1986"
|
||||
.UC 6
|
||||
.SH NAME
|
||||
compress, uncompress, zcat \- compress and expand data
|
||||
.SH SYNOPSIS
|
||||
.PU
|
||||
.ll +8
|
||||
.B compress
|
||||
[
|
||||
.B \-f
|
||||
] [
|
||||
.B \-v
|
||||
] [
|
||||
.B \-c
|
||||
] [
|
||||
.B \-b
|
||||
.I bits
|
||||
] [
|
||||
.I "name \&..."
|
||||
]
|
||||
.ll -8
|
||||
.br
|
||||
.B uncompress
|
||||
[
|
||||
.B \-f
|
||||
] [
|
||||
.B \-v
|
||||
] [
|
||||
.B \-c
|
||||
] [
|
||||
.I "name \&..."
|
||||
]
|
||||
.br
|
||||
.B zcat
|
||||
[
|
||||
.I "name \&..."
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Compress
|
||||
reduces the size of the named files using adaptive Lempel-Ziv coding.
|
||||
Whenever possible,
|
||||
each file is replaced by one with the extension
|
||||
.B "\&.Z,"
|
||||
while keeping the same ownership modes, access and modification times.
|
||||
If no files are specified, the standard input is compressed to the
|
||||
standard output.
|
||||
Compressed files can be restored to their original form using
|
||||
.I uncompress
|
||||
or
|
||||
.I zcat.
|
||||
.PP
|
||||
The
|
||||
.B \-f
|
||||
option will force compression of
|
||||
.IR name ,
|
||||
even if it does not actually shrink
|
||||
or the corresponding
|
||||
.IR name .Z
|
||||
file already exists.
|
||||
Except when run in the background under
|
||||
.IR /bin/sh ,
|
||||
if
|
||||
.B \-f
|
||||
is not given the user is prompted as to whether an existing
|
||||
.IR name .Z
|
||||
file should be overwritten.
|
||||
.PP
|
||||
The
|
||||
.B \-c
|
||||
(``cat'') option makes
|
||||
.I compress/uncompress
|
||||
write to the standard output; no files are changed.
|
||||
The nondestructive behavior of
|
||||
.I zcat
|
||||
is identical to that of
|
||||
.I uncompress
|
||||
.B \-c.
|
||||
.PP
|
||||
.I Compress
|
||||
uses the modified Lempel-Ziv algorithm popularized in
|
||||
"A Technique for High Performance Data Compression",
|
||||
Terry A. Welch,
|
||||
.I "IEEE Computer,"
|
||||
vol. 17, no. 6 (June 1984), pp. 8-19.
|
||||
Common substrings in the file are first replaced by 9-bit codes 257 and up.
|
||||
When code 512 is reached, the algorithm switches to 10-bit codes and
|
||||
continues to use more bits until the
|
||||
limit specified by the
|
||||
.B \-b
|
||||
flag is reached (default 16).
|
||||
.I Bits
|
||||
must be between 9 and 16. The default can be changed in the source to allow
|
||||
.I compress
|
||||
to be run on a smaller machine.
|
||||
.PP
|
||||
After the
|
||||
.I bits
|
||||
limit is attained,
|
||||
.I compress
|
||||
periodically checks the compression ratio. If it is increasing,
|
||||
.I compress
|
||||
continues to use the existing code dictionary. However,
|
||||
if the compression ratio decreases,
|
||||
.I compress
|
||||
discards the table of substrings and rebuilds it from scratch. This allows
|
||||
the algorithm to adapt to the next "block" of the file.
|
||||
.PP
|
||||
Note that the
|
||||
.B \-b
|
||||
flag is omitted for
|
||||
.I uncompress,
|
||||
since the
|
||||
.I bits
|
||||
parameter specified during compression
|
||||
is encoded within the output, along with
|
||||
a magic number to ensure that neither decompression of random data nor
|
||||
recompression of compressed data is attempted.
|
||||
.PP
|
||||
.ne 8
|
||||
The amount of compression obtained depends on the size of the
|
||||
input, the number of
|
||||
.I bits
|
||||
per code, and the distribution of common substrings.
|
||||
Typically, text such as source code or English
|
||||
is reduced by 50\-60%.
|
||||
Compression is generally much better than that achieved by
|
||||
Huffman coding (as used in
|
||||
.IR pack ),
|
||||
or adaptive Huffman coding
|
||||
.RI ( compact ),
|
||||
and takes less time to compute.
|
||||
.PP
|
||||
The
|
||||
.B \-v
|
||||
option causes
|
||||
the printing of the percentage reduction of each file.
|
||||
.PP
|
||||
If an error occurs, exit status is 1, else
|
||||
if the last file was not compressed because it became larger, the status
|
||||
is 2; else the status is 0.
|
||||
.SH "DIAGNOSTICS"
|
||||
Usage: compress [\-fvc] [\-b maxbits] [file ...]
|
||||
.in +8
|
||||
Invalid options were specified on the command line.
|
||||
.in -8
|
||||
Missing maxbits
|
||||
.in +8
|
||||
Maxbits must follow
|
||||
.BR \-b \.
|
||||
.in -8
|
||||
.IR file :
|
||||
not in compressed format
|
||||
.in +8
|
||||
The file specified to
|
||||
.I uncompress
|
||||
has not been compressed.
|
||||
.in -8
|
||||
.IR file :
|
||||
compressed with
|
||||
.I xx
|
||||
bits, can only handle
|
||||
.I yy
|
||||
bits
|
||||
.in +8
|
||||
.I File
|
||||
was compressed by a program that could deal with
|
||||
more
|
||||
.I bits
|
||||
than the compress code on this machine.
|
||||
Recompress the file with smaller
|
||||
.IR bits \.
|
||||
.in -8
|
||||
.IR file :
|
||||
already has .Z suffix -- no change
|
||||
.in +8
|
||||
The file is assumed to be already compressed.
|
||||
Rename the file and try again.
|
||||
.in -8
|
||||
.IR file :
|
||||
filename too long to tack on .Z
|
||||
.in +8
|
||||
The file cannot be compressed because its name is longer than
|
||||
12 characters.
|
||||
Rename and try again.
|
||||
This message does not occur on BSD systems.
|
||||
.in -8
|
||||
.I file
|
||||
already exists; do you wish to overwrite (y or n)?
|
||||
.in +8
|
||||
Respond "y" if you want the output file to be replaced; "n" if not.
|
||||
.in -8
|
||||
uncompress: corrupt input
|
||||
.in +8
|
||||
A SIGSEGV violation was detected which usually means that the input file is
|
||||
corrupted.
|
||||
.in -8
|
||||
Compression:
|
||||
.I "xx.xx%"
|
||||
.in +8
|
||||
Percentage of the input saved by compression.
|
||||
(Relevant only for
|
||||
.BR \-v \.)
|
||||
.in -8
|
||||
-- not a regular file: unchanged
|
||||
.in +8
|
||||
When the input file is not a regular file,
|
||||
(e.g. a directory), it is
|
||||
left unaltered.
|
||||
.in -8
|
||||
-- has
|
||||
.I xx
|
||||
other links: unchanged
|
||||
.in +8
|
||||
The input file has links; it is left unchanged. See
|
||||
.IR ln "(1)"
|
||||
for more information.
|
||||
.in -8
|
||||
-- file unchanged
|
||||
.in +8
|
||||
No savings is achieved by
|
||||
compression. The input remains virgin.
|
||||
.in -8
|
||||
.SH "BUGS"
|
||||
Although compressed files are compatible between machines with large memory,
|
||||
.BR \-b \12
|
||||
should be used for file transfer to architectures with
|
||||
a small process data space (64KB or less, as exhibited by the DEC PDP
|
||||
series, the Intel 80286, etc.)
|
||||
.PP
|
||||
.I compress
|
||||
should be more flexible about the existence of the `.Z' suffix.
|
||||
@@ -0,0 +1,65 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)cp.1 6.2 (Berkeley) 6/8/85
|
||||
.\"
|
||||
.TH CP 1 "June 8, 1985"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
cp \- copy
|
||||
.SH SYNOPSIS
|
||||
.B cp
|
||||
[
|
||||
.B \-ip
|
||||
] file1 file2
|
||||
.PP
|
||||
.B cp
|
||||
[
|
||||
.B \-ipr
|
||||
] file ... directory
|
||||
.SH DESCRIPTION
|
||||
.I File1
|
||||
is copied onto
|
||||
.IR file2 .
|
||||
By default, the mode and owner of
|
||||
.I file2
|
||||
are preserved if it already
|
||||
existed; otherwise the mode of the source file modified by the current
|
||||
.IR umask (2)
|
||||
is used. The
|
||||
.B \-p
|
||||
option causes
|
||||
.I cp
|
||||
to attempt to preserve (duplicate) in its copies the modification
|
||||
times and modes of the source files, ignoring the present
|
||||
.IR umask .
|
||||
.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.
|
||||
.PP
|
||||
If the
|
||||
.B \-i
|
||||
option is specified,
|
||||
.I cp
|
||||
will prompt the user with the name of the file
|
||||
whenever the copy will cause an old file to be
|
||||
overwritten. An answer of 'y' will cause
|
||||
.I cp
|
||||
to continue. Any other answer will prevent it
|
||||
from overwriting the file.
|
||||
.PP
|
||||
If the
|
||||
.B \-r
|
||||
option is specified and any of the source files are directories,
|
||||
.I cp
|
||||
copies each subtree rooted at that name; in this case
|
||||
the destination must be a directory.
|
||||
.SH "SEE ALSO"
|
||||
cat(1), mv(1), rcp(1C)
|
||||
+2302
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,153 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)ctags.1 6.2 (Berkeley) 5/30/85
|
||||
.\"
|
||||
.TH CTAGS 1 "May 30, 1985"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
ctags \- create a tags file
|
||||
.SH SYNOPSIS
|
||||
.B ctags
|
||||
[
|
||||
.B \-BFatuwvx
|
||||
] [
|
||||
.B \-f
|
||||
.I tagsfile
|
||||
]
|
||||
name ...
|
||||
.SH DESCRIPTION
|
||||
.I Ctags
|
||||
makes a tags file for
|
||||
.IR ex (1)
|
||||
from the specified C, Pascal, Fortran, YACC, lex, and lisp sources.
|
||||
A tags file gives the locations of specified objects (in this case
|
||||
functions and typedefs) in a group of files. Each line of the tags
|
||||
file contains the object name, the file in which it is defined, and
|
||||
an address specification for the object definition. Functions are
|
||||
searched with a pattern, typedefs with a line number. Specifiers are
|
||||
given in separate fields on the line, separated by blanks or tabs.
|
||||
Using the
|
||||
.I tags
|
||||
file,
|
||||
.I ex
|
||||
can quickly find these objects definitions.
|
||||
.PP
|
||||
If the
|
||||
.B \-x
|
||||
flag is given,
|
||||
.I ctags
|
||||
produces a list of object names, the line number and file
|
||||
name on which each is defined, as well as the text of that line
|
||||
and prints this on the standard output. This is a simple index
|
||||
which can be printed out as an off-line readable function index.
|
||||
.PP
|
||||
If the
|
||||
.B \-v
|
||||
flag is given,
|
||||
an index of the form expected by
|
||||
.IR vgrind (1)
|
||||
is produced on the standard output.
|
||||
This listing contains the function name,
|
||||
file name, and page number
|
||||
(assuming 64 line pages).
|
||||
Since the output will be sorted into lexicographic order,
|
||||
it may be desired to run the output through
|
||||
.BR "sort \-f" .
|
||||
Sample use:
|
||||
.nf
|
||||
ctags \-v files | sort \-f > index
|
||||
vgrind \-x index
|
||||
.fi
|
||||
.PP
|
||||
Normally
|
||||
.I ctags
|
||||
places the tag descriptions in a file called
|
||||
.IR tags ;
|
||||
this may be overridden with the
|
||||
.B \-f
|
||||
option.
|
||||
.PP
|
||||
Files whose names end in
|
||||
.B \.c
|
||||
or
|
||||
.B \.h
|
||||
are assumed to be C source files and are searched for C routine and
|
||||
macro definitions.
|
||||
Files whose names end in
|
||||
.B \.y
|
||||
are assumed to be YACC source files.
|
||||
Files whose names end in
|
||||
.B \.l
|
||||
are assumed to be either lisp files
|
||||
if their first non-blank character is `;', `(', or `[',
|
||||
or lex files otherwise.
|
||||
Other files are first examined to see if they contain any Pascal or
|
||||
Fortran routine definitions; if not, they are processed again
|
||||
looking for C definitions.
|
||||
.PP
|
||||
Other options are:
|
||||
.TP 5
|
||||
.B \-F
|
||||
use forward searching patterns (/.../) (default).
|
||||
.TP 5
|
||||
.B \-B
|
||||
use backward searching patterns (?...?).
|
||||
.TP 5
|
||||
.B \-a
|
||||
append to tags file.
|
||||
.TP 5
|
||||
.B \-t
|
||||
create tags for typedefs.
|
||||
.TP 5
|
||||
.B \-w
|
||||
suppressing warning diagnostics.
|
||||
.TP 5
|
||||
.B \-u
|
||||
causing the specified files to be
|
||||
.I updated
|
||||
in tags, that is, all references to them are deleted,
|
||||
and the new values are appended to the file.
|
||||
(Beware: this option is implemented in a way which is rather slow;
|
||||
it is usually faster to simply rebuild the
|
||||
.I tags
|
||||
file.)
|
||||
.PP
|
||||
The tag
|
||||
.I main
|
||||
is treated specially in C programs.
|
||||
The tag formed is created by prepending
|
||||
.I M
|
||||
to the name of the file, with a trailing .c removed, if
|
||||
any, and leading pathname components also removed.
|
||||
This makes use of
|
||||
.I ctags
|
||||
practical in directories with more than one program.
|
||||
.SH FILES
|
||||
.DT
|
||||
tags output tags file
|
||||
.SH SEE ALSO
|
||||
ex(1), vi(1)
|
||||
.SH AUTHOR
|
||||
Ken Arnold; FORTRAN added by Jim Kleckner; Bill Joy
|
||||
added Pascal and
|
||||
.B \-x,
|
||||
replacing
|
||||
.I cxref;
|
||||
C typedefs added by Ed Pelegri-Llopart.
|
||||
.SH BUGS
|
||||
Recognition of \fBfunctions\fR, \fBsubroutines\fR and \fBprocedures\fR
|
||||
for FORTRAN and Pascal is done is a very simpleminded way.
|
||||
No attempt is made to deal with block structure; if you have two
|
||||
Pascal procedures in different blocks with the same name you lose.
|
||||
.PP
|
||||
The method of deciding whether to look for C or Pascal and FORTRAN
|
||||
functions is a hack.
|
||||
.PP
|
||||
Does not know about #ifdefs.
|
||||
.PP
|
||||
Should know about Pascal types.
|
||||
Relies on the input being well formed to detect typedefs.
|
||||
Use of -tx shows only the last line of typedefs.
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)date.1 6.5 (Berkeley) 3/24/87
|
||||
.\"
|
||||
.TH DATE 1 "March 24, 1987"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
date \- print and set the date
|
||||
.SH SYNOPSIS
|
||||
.B date
|
||||
.RB "[-nu] [-d dst] [-t timezone] [yymmddhhmm [" . "ss] ]"
|
||||
.SH DESCRIPTION
|
||||
If no arguments are given, the current date and time are printed.
|
||||
Providing an argument will set the desired date; only the superuser
|
||||
can set the date. The \fI-d\fP and \fI-t\fP flags set the kernel's
|
||||
values for daylight savings time and minutes west of GMT. If \fIdst\fP
|
||||
is non-zero, future calls to \fIgettimeofday\fP(2) will return a non-zero
|
||||
\fItz_dsttime\fP. \fITimezone\fP provides the number of minutes returned
|
||||
by future calls to \fIgettimeofday\fP(2) in \fItz_minuteswest\fP. The
|
||||
\fI-u\fP flag is used to display or set the date in GMT (universal) time.
|
||||
.I yy
|
||||
represents the last two digits of the year;
|
||||
the first
|
||||
.I mm
|
||||
is the month number;
|
||||
.I dd
|
||||
is the day number;
|
||||
.I hh
|
||||
is the hour number (24 hour system);
|
||||
the second
|
||||
.I mm
|
||||
is the minute number;
|
||||
.BI . ss
|
||||
is optional and represents the seconds.
|
||||
For example:
|
||||
.IP
|
||||
date 8506131627
|
||||
.PP
|
||||
sets the date to June 13 1985, 4:27 PM. The year, month and day may
|
||||
be omitted; the default values will be the current ones. The system
|
||||
operates in GMT. \fIDate\fP takes care of the conversion to and from
|
||||
local standard and daylight-saving time.
|
||||
.PP
|
||||
If
|
||||
.I timed(8)
|
||||
is running to synchronize the clocks of machines in a local
|
||||
area network, \fIdate\fP sets the time globally on all those
|
||||
machines unless the
|
||||
.B \-n
|
||||
option is given.
|
||||
.SH FILES
|
||||
/usr/adm/wtmp to record time-setting.
|
||||
In /usr/adm/messages, \fIdate\fP records the name of the user
|
||||
setting the time.
|
||||
.SH SEE ALSO
|
||||
gettimeofday(2), utmp(5), timed(8),
|
||||
.br
|
||||
\fITSP: The Time Synchronization Protocol for UNIX 4.3BSD\fP,
|
||||
R. Gusella and S. Zatti
|
||||
.SH DIAGNOSTICS
|
||||
Exit status is 0 on success, 1 on complete failure to set the date,
|
||||
and 2 on successfully setting the local date but failing globally.
|
||||
.PP
|
||||
Occasionally, when \fItimed\fP synchronizes the time on many hosts,
|
||||
the setting of a new time value may require more than a few seconds.
|
||||
On these occasions, \fIdate\fP prints: `Network time being set'.
|
||||
The message `Communication error with timed' occurs when the communication
|
||||
between \fIdate\fP and \fItimed\fP fails.
|
||||
.SH BUGS
|
||||
The system attempts to keep the date in a format closely compatible
|
||||
with VMS. VMS, however, uses local time (rather than GMT) and does
|
||||
not understand daylight-saving time. Thus, if you use both UNIX
|
||||
and VMS, VMS will be running on GMT.
|
||||
@@ -0,0 +1,201 @@
|
||||
.\" @(#)dc.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH DC 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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.
|
||||
@@ -0,0 +1,227 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)dd.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH DD 1 "April 29, 1985"
|
||||
.UC 4
|
||||
.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
|
||||
copy
|
||||
.I n
|
||||
input files before terminating (makes sense only
|
||||
where input is a magtape or similar device).
|
||||
.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 \*hblock
|
||||
convert variable length records to fixed length
|
||||
.br
|
||||
.ns
|
||||
.IP \*hunblock
|
||||
convert fixed length records to variable length
|
||||
.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,
|
||||
.I unblock,
|
||||
.I ebcdic,
|
||||
.I ibm,
|
||||
or
|
||||
.I block
|
||||
conversion is specified.
|
||||
In the first two cases,
|
||||
.I cbs
|
||||
characters are placed into the conversion buffer, any specified
|
||||
character mapping is done,
|
||||
trailing blanks trimmed and new-line added
|
||||
before sending the line to the output.
|
||||
In the latter three cases, characters are read into the
|
||||
conversion buffer, 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.
|
||||
.br
|
||||
One must specify ``conv=noerror,sync'' when copying
|
||||
raw disks with bad sectors to insure
|
||||
.I dd
|
||||
stays synchronized.
|
||||
.PP
|
||||
Certain combinations of arguments to
|
||||
.I conv=
|
||||
are permitted.
|
||||
However, the
|
||||
.I block
|
||||
or
|
||||
.I unblock
|
||||
option cannot be combined with
|
||||
.IR ascii ,
|
||||
.IR ebcdic ""
|
||||
or
|
||||
.IR ibm .
|
||||
Invalid combinations
|
||||
.I "silently ignore"
|
||||
all but the last mutually-exclusive keyword.
|
||||
@@ -0,0 +1,43 @@
|
||||
.\" @(#)deroff.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH DEROFF 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
deroff \- remove nroff, troff, tbl and eqn constructs
|
||||
.SH SYNOPSIS
|
||||
.B deroff
|
||||
[
|
||||
.B \-w
|
||||
]
|
||||
file ...
|
||||
.SH DESCRIPTION
|
||||
.I Deroff
|
||||
reads each file in sequence and removes all
|
||||
.I nroff
|
||||
and
|
||||
.I troff
|
||||
command lines, backslash constructions, macro definitions,
|
||||
.I eqn
|
||||
constructs (between `.EQ' and `.EN' lines or between delimiters),
|
||||
and table descriptions and writes the remainder on the standard output.
|
||||
.I Deroff
|
||||
follows chains of included files (`.so' and `.nx' commands);
|
||||
if a file has already been included, a `.so' is ignored and a `.nx'
|
||||
terminates execution. If no input file is given,
|
||||
.I deroff
|
||||
reads from the standard input file.
|
||||
.PP
|
||||
If the
|
||||
.B \-w
|
||||
flag is given, the output is a word list, one `word' (string of letters,
|
||||
digits, and apostrophes, beginning with a letter; apostrophes are removed)
|
||||
per line, and all other characters ignored.
|
||||
Otherwise, the output follows the original, with the deletions mentioned above.
|
||||
.SH "SEE ALSO"
|
||||
troff(1), eqn(1), tbl(1)
|
||||
.SH BUGS
|
||||
.I Deroff
|
||||
is not a complete
|
||||
.I troff
|
||||
interpreter, so it can be confused by subtle constructs.
|
||||
Most errors result in too much rather than too little output.
|
||||
@@ -0,0 +1,39 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)df.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH DF 1 "April 29, 1985"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
df \- disk free
|
||||
.SH SYNOPSIS
|
||||
.B df
|
||||
[
|
||||
.B \-i
|
||||
] [ filesystem ... ] [ file ... ]
|
||||
.SH DESCRIPTION
|
||||
.I Df
|
||||
prints out the amount of free disk space
|
||||
available on the specified
|
||||
.I filesystem,
|
||||
e.g. ``/dev/rp0a'',
|
||||
or on the filesystem in which the specified
|
||||
.I file,
|
||||
e.g. ``$HOME'',
|
||||
is contained.
|
||||
If no file system is specified,
|
||||
the free space on all of
|
||||
the normally mounted file systems
|
||||
is printed.
|
||||
The reported numbers are in kilobytes.
|
||||
.PP
|
||||
Other options are:
|
||||
.TP
|
||||
.B \-i
|
||||
Report also the number of inodes which are used and free.
|
||||
.SH FILES
|
||||
/etc/fstab list of normally mounted filesystems
|
||||
.SH "SEE ALSO"
|
||||
fstab(5), icheck(8), quot(8)
|
||||
@@ -0,0 +1,61 @@
|
||||
.\" @(#)diction.1 6.2 (Berkeley) 5/10/86
|
||||
.\"
|
||||
.TH DICTION 1 "May 10, 1986"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
diction, explain \- print wordy sentences; thesaurus for diction
|
||||
.SH SYNOPSIS
|
||||
.B diction
|
||||
[
|
||||
.B \-ml
|
||||
] [
|
||||
.B \-mm
|
||||
] [
|
||||
.B \-n
|
||||
] [
|
||||
.B \-f
|
||||
pfile ]
|
||||
file ...
|
||||
.br
|
||||
.B explain
|
||||
.LP
|
||||
.SH DESCRIPTION
|
||||
.I Diction
|
||||
finds all sentences in a document that contain phrases
|
||||
from a data base of bad or wordy diction.
|
||||
Each phrase is bracketed with [ ].
|
||||
Because
|
||||
.I diction
|
||||
runs
|
||||
.I deroff
|
||||
before looking at the text, formatting
|
||||
header files should be included as part of the input.
|
||||
The default macro package
|
||||
.B \-ms
|
||||
may be overridden with the flag
|
||||
.B \-mm.
|
||||
The flag
|
||||
.B \-ml
|
||||
which causes
|
||||
.B deroff
|
||||
to skip lists, should be used if the document contains many lists of
|
||||
non-sentences.
|
||||
The user may supply her/his own pattern file to be used in addition to the default file
|
||||
with
|
||||
.B \-f
|
||||
.I pfile.
|
||||
If the flag
|
||||
.B \-n
|
||||
is also supplied the default file will be suppressed.
|
||||
.PP
|
||||
.I Explain
|
||||
is an interactive thesaurus for the phrases found by diction.
|
||||
.SH "SEE ALSO"
|
||||
deroff(1)
|
||||
.SH BUGS
|
||||
Use of non-standard formatting macros may cause
|
||||
incorrect sentence breaks.
|
||||
In particular,
|
||||
.I diction
|
||||
doesn't grok
|
||||
.B \-me.
|
||||
@@ -0,0 +1,290 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)diff.1 6.4.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH DIFF 1 "October 21, 1996"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
diff \- differential file and directory comparator
|
||||
.SH SYNOPSIS
|
||||
.B diff
|
||||
[
|
||||
.B \-l
|
||||
] [
|
||||
.B \-r
|
||||
] [
|
||||
.B \-s
|
||||
] [
|
||||
\fB\-cefhn\fR
|
||||
] [
|
||||
.B \-biwt
|
||||
] dir1 dir2
|
||||
.br
|
||||
.B diff
|
||||
[
|
||||
\fB\-cefhn
|
||||
] [
|
||||
\fB\-biwt\fR
|
||||
] file1 file2
|
||||
.br
|
||||
.B diff
|
||||
[
|
||||
.BI \-D string
|
||||
] [
|
||||
.B \-biw
|
||||
]
|
||||
file1 file2
|
||||
.SH DESCRIPTION
|
||||
If both arguments are directories,
|
||||
.I diff
|
||||
sorts the contents of the directories by name, and then runs the
|
||||
regular file
|
||||
.I diff
|
||||
algorithm (described below)
|
||||
on text files which are different.
|
||||
Binary files which differ,
|
||||
common subdirectories, and files which appear in only one directory
|
||||
are listed.
|
||||
Options when comparing directories are:
|
||||
.TP
|
||||
.B \-l
|
||||
long output format; each text file
|
||||
.I diff
|
||||
is piped through
|
||||
.IR pr (1)
|
||||
to paginate it,
|
||||
other differences are remembered and summarized
|
||||
after all text file differences are reported.
|
||||
.TP
|
||||
.B \-r
|
||||
causes application of
|
||||
.I diff
|
||||
recursively to common subdirectories encountered.
|
||||
.TP
|
||||
.B \-s
|
||||
causes
|
||||
.I diff
|
||||
to report files which are the same, which are otherwise not mentioned.
|
||||
.TP
|
||||
.B \-Sname
|
||||
starts a directory
|
||||
.I diff
|
||||
in the middle beginning with file
|
||||
.I name.
|
||||
.PP
|
||||
When run on regular files, and when comparing text files which differ
|
||||
during directory comparison,
|
||||
.I diff
|
||||
tells what lines must be changed in the files to bring them into agreement.
|
||||
Except in rare circumstances,
|
||||
.I diff
|
||||
finds a smallest sufficient set of file differences.
|
||||
If neither
|
||||
.I file1
|
||||
nor
|
||||
.I file2
|
||||
is a directory, then either
|
||||
may be given as `\-', in which case the standard input is used.
|
||||
If
|
||||
.I file1
|
||||
is a directory,
|
||||
then a file in that directory whose file-name is the same as the file-name of
|
||||
.I file2
|
||||
is used (and vice versa).
|
||||
.PP
|
||||
There are several options for output format;
|
||||
the default output format 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
|
||||
Except for
|
||||
\fB\-b, -w, -i\fP or \fB-t\fP
|
||||
which may be given with any of the others,
|
||||
the following options are mutually exclusive:
|
||||
.TP 9
|
||||
.B \-e
|
||||
produces a script of
|
||||
.I "a, c"
|
||||
and
|
||||
.I d
|
||||
commands for the editor
|
||||
.I ed,
|
||||
which will recreate
|
||||
.I file2
|
||||
from
|
||||
.IR file1 .
|
||||
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
|
||||
\ \ \ \ \ \ \ \ (shift; cat $*; echo \'1,$p\') \(bv ed \- $1
|
||||
.IP
|
||||
Extra commands are added to the output when comparing directories with
|
||||
.B \-e,
|
||||
so that the result is a
|
||||
.IR sh (1)
|
||||
script for converting text files which are common to the two directories
|
||||
from their state in
|
||||
.I dir1
|
||||
to their state in
|
||||
.I dir2.
|
||||
.TP 9
|
||||
.B \-f
|
||||
produces a script similar to that of
|
||||
.B \-e,
|
||||
not useful with
|
||||
.I ed,
|
||||
and in the opposite order.
|
||||
.TP 9
|
||||
.B \-n
|
||||
produces a script similar to that of
|
||||
.B \-e,
|
||||
but in the opposite order and with a count of changed lines on each
|
||||
insert or delete command. This is the form used by
|
||||
.IR rcsdiff (1).
|
||||
.TP 9
|
||||
.B \-c
|
||||
produces a diff with lines of context.
|
||||
The default is to present 3 lines of context and may be changed, e.g to 10, by
|
||||
.BR \-c10 \&.
|
||||
With
|
||||
.B \-c
|
||||
the output format is modified slightly:
|
||||
the output beginning with identification of the files involved and
|
||||
their creation dates and then each change is separated
|
||||
by a line with a dozen *'s.
|
||||
The lines removed from
|
||||
.I file1
|
||||
are marked with `\(mi '; those added to
|
||||
.I file2
|
||||
are marked `+ '. Lines which are changed from one
|
||||
file to the other are marked in both files with with `! '.
|
||||
|
||||
Changes which lie within <context> lines of each other are grouped
|
||||
together on output. (This is a change from the previous ``diff -c''
|
||||
but the resulting output is usually much easier to interpret.)
|
||||
.TP 9
|
||||
.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.
|
||||
.TP
|
||||
.B \-Dstring
|
||||
causes
|
||||
.I diff
|
||||
to create a merged version of
|
||||
.I file1
|
||||
and
|
||||
.I file2
|
||||
on the standard output, with C preprocessor controls included so that
|
||||
a compilation of the result without defining \fIstring\fR is equivalent
|
||||
to compiling
|
||||
.I file1,
|
||||
while defining
|
||||
.I string
|
||||
will yield
|
||||
.I file2.
|
||||
.TP 9
|
||||
.B \-b
|
||||
causes trailing blanks (spaces and tabs) to be ignored, and other
|
||||
strings of blanks to compare equal.
|
||||
.TP 9
|
||||
.B \-w
|
||||
is similar to
|
||||
.B \-b
|
||||
but causes whitespace (blanks and tabs) to be totally ignored. E.g.,
|
||||
``if\ (\ a\ ==\ b\ )'' will compare equal to ``if(a==b)''.
|
||||
.TP 9
|
||||
.B \-i
|
||||
ignores the case of letters. E.g., ``A'' will compare equal to ``a''.
|
||||
.TP 9
|
||||
.B \-t
|
||||
will expand tabs in output lines. Normal or
|
||||
.B \-c
|
||||
output adds character(s) to the front of each line which may screw up
|
||||
the indentation of the original source lines and make the output listing
|
||||
difficult to interpret. This option will preserve the original source's
|
||||
indentation.
|
||||
.SH FILES
|
||||
/tmp/d?????
|
||||
.br
|
||||
/usr/libexec/diffh for
|
||||
.B \-h
|
||||
.br
|
||||
/bin/diff for directory diffs
|
||||
.br
|
||||
/bin/pr
|
||||
.SH "SEE ALSO"
|
||||
cmp(1), cc(1), comm(1), ed(1), diff3(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'.
|
||||
.PP
|
||||
When comparing directories with the
|
||||
\fB\-b, -w\fP or \fB-i\fP
|
||||
options specified,
|
||||
.I diff
|
||||
first compares the files ala
|
||||
.I cmp,
|
||||
and then decides to run the
|
||||
.I diff
|
||||
algorithm if they are not equal.
|
||||
This may cause a small amount of spurious output if the files
|
||||
then turn out to be identical because the only differences are
|
||||
insignificant blank string or case differences.
|
||||
@@ -0,0 +1,140 @@
|
||||
.\" @(#)diff3.1 6.2.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH DIFF3 1 "October 21, 1996"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
diff3 \- 3-way differential file comparison
|
||||
.SH SYNOPSIS
|
||||
.B diff3
|
||||
[
|
||||
.B \-exEX3
|
||||
]
|
||||
file1 file2 file3
|
||||
.SH DESCRIPTION
|
||||
.I Diff3
|
||||
compares three versions of a file,
|
||||
and publishes disagreeing ranges of text
|
||||
flagged with these codes:
|
||||
.TP 16
|
||||
====
|
||||
all three files differ
|
||||
.TP 16
|
||||
====1
|
||||
.IR file1 " is different"
|
||||
.TP 16
|
||||
====2
|
||||
.IR file2 " is different"
|
||||
.TP 16
|
||||
====3
|
||||
.IR file3 " is different"
|
||||
.PP
|
||||
The type of change suffered in converting a given range
|
||||
of a given file to some other is
|
||||
indicated in one of these ways:
|
||||
.TP 16
|
||||
.IB f " : " n1 " a"
|
||||
Text is to be appended after line number
|
||||
.I n1
|
||||
in file
|
||||
.I f,
|
||||
where
|
||||
.I f
|
||||
= 1, 2, or 3.
|
||||
.TP 16
|
||||
.IB f " : " n1 " , " n2 " c"
|
||||
Text is to be
|
||||
changed in the range line
|
||||
.I n1
|
||||
to line
|
||||
.IR n2 .
|
||||
If
|
||||
.I n1
|
||||
=
|
||||
.I n2,
|
||||
the range may be abbreviated to
|
||||
.IR n1 .
|
||||
.PP
|
||||
The original contents of the range follows immediately
|
||||
after a
|
||||
.B c
|
||||
indication.
|
||||
When the contents of two
|
||||
files are identical, the contents of the lower-numbered
|
||||
file is suppressed.
|
||||
.PP
|
||||
Under the
|
||||
.B \-e
|
||||
option,
|
||||
.I diff3
|
||||
publishes a script for the editor
|
||||
.I ed
|
||||
that will incorporate into
|
||||
.I file1
|
||||
all changes between
|
||||
.I file2
|
||||
and
|
||||
.I file3,
|
||||
.IR i.e .
|
||||
the changes that normally would be flagged ==== and ====3.
|
||||
Option
|
||||
.B \-x
|
||||
(\fB\-3\fR)
|
||||
produces a script to incorporate
|
||||
only changes flagged ==== (====3).
|
||||
The following command will apply the resulting script to
|
||||
`file1'.
|
||||
.PP
|
||||
.ti 16n
|
||||
(cat script; echo \'1,$p\') \(bv ed \- file1
|
||||
.PP
|
||||
The
|
||||
.B \-E
|
||||
and
|
||||
.B \-X
|
||||
are similar to
|
||||
.B \-e
|
||||
and
|
||||
.BR \-x ,
|
||||
respectively, but treat overlapping changes (i.e., changes that would
|
||||
be flagged with ==== in the normal listing) differently. The overlapping
|
||||
lines from both files will be inserted by the edit script, bracketed
|
||||
by "<<<<<<" and ">>>>>>" lines.
|
||||
.PP
|
||||
For example, suppose lines 7-8 are changed in both file1 and file2.
|
||||
Applying the edit script generated by the command
|
||||
.ce
|
||||
"diff3 -E file1 file2 file3"
|
||||
.br
|
||||
to file1 results in the file:
|
||||
.RS
|
||||
.nf
|
||||
|
||||
lines 1-6
|
||||
of file1
|
||||
<<<<<<< file1
|
||||
lines 7-8
|
||||
of file1
|
||||
=======
|
||||
lines 7-8
|
||||
of file3
|
||||
>>>>>>> file3
|
||||
rest of file1
|
||||
.fi
|
||||
.RE
|
||||
.PP
|
||||
The
|
||||
.B \-E
|
||||
option is used by RCS
|
||||
.IR merge (1)
|
||||
to insure that overlapping changes in the merged files are preserved
|
||||
and brought to someone's attention.
|
||||
.SH FILES
|
||||
/tmp/d3?????
|
||||
.br
|
||||
/usr/libexec/diff3
|
||||
.SH "SEE ALSO"
|
||||
diff(1)
|
||||
.SH BUGS
|
||||
Text lines that consist of a single `.' will
|
||||
defeat
|
||||
.B \-e.
|
||||
@@ -0,0 +1,48 @@
|
||||
.\" @(#)du.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH DU 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
du \- summarize disk usage
|
||||
.SH SYNOPSIS
|
||||
.B du
|
||||
[
|
||||
.B \-s
|
||||
] [
|
||||
.B \-a
|
||||
] [ name ... ]
|
||||
.SH DESCRIPTION
|
||||
.I Du
|
||||
gives the number of kilobytes contained in all files
|
||||
and, recursively, directories within each specified
|
||||
directory or file
|
||||
.IR name .
|
||||
If
|
||||
.I name
|
||||
is missing,
|
||||
`\fB.\fR'
|
||||
is used.
|
||||
.PP
|
||||
The argument
|
||||
.B \-s
|
||||
causes only the grand total to
|
||||
be given.
|
||||
The argument
|
||||
.B \-a
|
||||
causes an entry to be generated
|
||||
for each file.
|
||||
Absence of either causes an entry to be generated for
|
||||
each directory only.
|
||||
.PP
|
||||
A file which has two links to it is only counted once.
|
||||
.SH "SEE ALSO"
|
||||
df(1), quot(8)
|
||||
.SH BUGS
|
||||
Non-directories
|
||||
given as arguments (not under
|
||||
.B \-a
|
||||
option) are not listed.
|
||||
.br
|
||||
If there are too many distinct linked files,
|
||||
.I du
|
||||
counts the excess files multiply.
|
||||
@@ -0,0 +1,23 @@
|
||||
.\" @(#)echo.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH ECHO 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
echo \- echo arguments
|
||||
.SH SYNOPSIS
|
||||
.B echo
|
||||
[
|
||||
.B \-n
|
||||
]
|
||||
[ arg ] ...
|
||||
.SH DESCRIPTION
|
||||
.I Echo
|
||||
writes its arguments separated by blanks and terminated by
|
||||
a newline on the standard output. If the flag
|
||||
.B \-n
|
||||
is used, no newline is added to the output.
|
||||
.PP
|
||||
.I Echo
|
||||
is useful for producing diagnostics in
|
||||
shell programs and for writing constant data on pipes.
|
||||
To send diagnostics to the standard error file, do `echo ... 1>&2'.
|
||||
@@ -0,0 +1,715 @@
|
||||
.\" @(#)ed.1 6.1.1.1 (Berkeley) 8/12/86
|
||||
.\"
|
||||
.TH ED 1 "August 12, 1986"
|
||||
.AT 3
|
||||
.if t .ds q \(aa
|
||||
.if n .ds q '
|
||||
.SH NAME
|
||||
ed \- text editor
|
||||
.SH SYNOPSIS
|
||||
.B ed
|
||||
[
|
||||
.B \-
|
||||
] [ 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.
|
||||
The optional
|
||||
.B \-
|
||||
suppresses the printing
|
||||
of explanatory output
|
||||
and should be used
|
||||
when the standard input is
|
||||
an editor script.
|
||||
.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.
|
||||
The special form `%'
|
||||
is an abbreviation for the address pair `1,$'.
|
||||
.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.
|
||||
Commands may also be suffixed by `n',
|
||||
meaning the output of the command is to
|
||||
be line numbered.
|
||||
These suffixes may be combined in any order.
|
||||
.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 punctuation character
|
||||
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'.
|
||||
.IP
|
||||
One or two trailing delimiters may be omitted,
|
||||
implying the `p' suffix.
|
||||
The special form `s' followed by
|
||||
.I no
|
||||
delimiters
|
||||
repeats the most recent substitute command
|
||||
on the addressed lines.
|
||||
The `s' may be followed by the letters
|
||||
.B r
|
||||
(use the most recent regular expression for the
|
||||
left hand side, instead of the most recent
|
||||
left hand side of a substitute command),
|
||||
.B p
|
||||
(complement the setting of the
|
||||
.I p
|
||||
suffix from the previous substitution), or
|
||||
.B g
|
||||
(complement the setting of the
|
||||
.I g
|
||||
suffix).
|
||||
These letters may be combined in any order.
|
||||
.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 buffer to it's state
|
||||
before the most recent buffer modifying command.
|
||||
The current line is also restored.
|
||||
Buffer modifying commands are
|
||||
.I a, c, d, g, i, k, m, r, s, t,
|
||||
and
|
||||
.I v.
|
||||
For purposes of undo,
|
||||
.I g
|
||||
and
|
||||
.I v
|
||||
are considered to be a single buffer modifying command.
|
||||
Undo is its own inverse.
|
||||
.IP
|
||||
When
|
||||
.I ed
|
||||
runs out of memory
|
||||
(at about 8000 lines on any 16 bit mini-computer
|
||||
such as the PDP-11)
|
||||
This full undo is not possible, and
|
||||
.I u
|
||||
can only undo the effect of the most recent
|
||||
substitute on the current line.
|
||||
This restricted undo also applies to editor scripts
|
||||
when
|
||||
.I ed
|
||||
is invoked with the
|
||||
.B -
|
||||
option.
|
||||
.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.
|
||||
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
|
||||
(1, $)\|wq filename
|
||||
This command is the same as
|
||||
.I w
|
||||
except that afterwards a
|
||||
.I q
|
||||
command is done,
|
||||
exiting the editor
|
||||
after the file is written.
|
||||
.TP 5
|
||||
.RB (\| .\| +1)\|z or,
|
||||
.br
|
||||
.ns
|
||||
.TP 5
|
||||
.RB (\| .\| +1)\|z\fIn
|
||||
This command scrolls through the buffer starting at the addressed line.
|
||||
22 (or
|
||||
.I n,
|
||||
if given)
|
||||
lines are printed.
|
||||
The last line printed becomes the current line.
|
||||
The value
|
||||
.I n
|
||||
is sticky, in that it becomes the default for
|
||||
future
|
||||
.I z
|
||||
commands.
|
||||
.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,\| . +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.
|
||||
If two addresses are present with no
|
||||
intervening semicolon,
|
||||
.I ed
|
||||
prints the range of lines.
|
||||
If they are separated by a semicolon,
|
||||
the second line is printed.
|
||||
.PP
|
||||
If an interrupt signal (ASCII DEL)\| is sent,
|
||||
.I ed
|
||||
prints `?interrupted'
|
||||
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, on mini computers,
|
||||
128K characters in the temporary file.
|
||||
The limit on the number of lines depends on the amount of core:
|
||||
each line takes 2 words.
|
||||
.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
|
||||
edhup: 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
|
||||
ex(1), sed(1), crypt(1)
|
||||
.SH DIAGNOSTICS
|
||||
`?name' for inaccessible file;
|
||||
`?self-explanatory message'
|
||||
for other errors.
|
||||
.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
|
||||
The
|
||||
.I undo
|
||||
command causes marks to be lost on affected lines.
|
||||
@@ -0,0 +1,74 @@
|
||||
.\" @(#)efl.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH EFL 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
efl \- Extended Fortran Language
|
||||
.SH SYNOPSIS
|
||||
.B efl
|
||||
[ option ... ]
|
||||
[ filename ... ]
|
||||
.SH DESCRIPTION
|
||||
.I Efl
|
||||
compiles a program written in the EFL language into clean Fortran.
|
||||
.I Efl
|
||||
provides the same control flow constructs as does
|
||||
.IR ratfor (1),
|
||||
which are essentially identical to those in C:
|
||||
.TP
|
||||
statement grouping with braces;
|
||||
decision-making with if, if-else, and switch-case;
|
||||
while,
|
||||
for,
|
||||
Fortran do,
|
||||
repeat,
|
||||
and repeat...until loops;
|
||||
multi-level break and next.
|
||||
In addition, EFL has C-like data structures,
|
||||
and more uniform and convenient input/output syntax,
|
||||
generic functions.
|
||||
EFL also provides
|
||||
some syntactic sugar to make programs easier to read and write:
|
||||
.TP
|
||||
free form input:
|
||||
multiple statements/line; automatic continuation
|
||||
statement label names (not just numbers),
|
||||
.TP
|
||||
comments:
|
||||
# this is a comment
|
||||
.TP
|
||||
translation of relationals:
|
||||
>, >=, etc., become .GT., .GE., etc.
|
||||
.TP
|
||||
return (expression)
|
||||
returns expression to caller from function
|
||||
.TP
|
||||
define:
|
||||
define name replacement
|
||||
.TP
|
||||
include:
|
||||
include filename
|
||||
.PP
|
||||
.fi
|
||||
The Efl command option
|
||||
.B \-w
|
||||
suppresses warning messages.
|
||||
The option
|
||||
.B \-C
|
||||
causes comments to be copied through to the Fortran output (default);
|
||||
.B \-#
|
||||
prevents comments from being copied through.
|
||||
If a command argument contains an embedded equal sign,
|
||||
that argument is treated as if it had appeared in an
|
||||
.B option
|
||||
statement at the beginning of the program.
|
||||
.I Efl
|
||||
is best used with
|
||||
.IR f77 (1).
|
||||
.SH "SEE ALSO"
|
||||
f77(1),
|
||||
ratfor(1).
|
||||
.br
|
||||
S. I. Feldman,
|
||||
.IR "The Programming Language EFL",
|
||||
Bell Labs Computing Science Technical Report #78.
|
||||
@@ -0,0 +1,306 @@
|
||||
.\" @(#)eqn.1 6.2 (Berkeley) 5/9/86
|
||||
.\"
|
||||
.TH EQN 1 "May 9, 1986"
|
||||
.AT 3
|
||||
.EQ
|
||||
delim $$
|
||||
.EN
|
||||
.SH NAME
|
||||
eqn, neqn, checkeq \- typeset mathematics
|
||||
.SH SYNOPSIS
|
||||
.B eqn
|
||||
[
|
||||
.BR \-d xy
|
||||
] [
|
||||
.BR \-p n
|
||||
] [
|
||||
.BR \-s n
|
||||
] [
|
||||
.BR \-f n
|
||||
]
|
||||
[ file ] ...
|
||||
.br
|
||||
.B checkeq
|
||||
[ file ] ...
|
||||
.SH DESCRIPTION
|
||||
.I Eqn
|
||||
is a
|
||||
troff(1)
|
||||
preprocessor
|
||||
for typesetting mathematics
|
||||
on a Graphic Systems phototypesetter,
|
||||
.I neqn
|
||||
on terminals.
|
||||
Usage is almost always
|
||||
.PP
|
||||
eqn file ... | troff
|
||||
.br
|
||||
neqn file ... | nroff
|
||||
.PP
|
||||
If no files are specified,
|
||||
these programs
|
||||
read from the standard input.
|
||||
A line beginning with `.EQ' marks the start of an equation;
|
||||
the end of an equation
|
||||
is marked by a line beginning with `.EN'.
|
||||
Neither of these lines is altered,
|
||||
so they may be defined in macro packages
|
||||
to get
|
||||
centering, numbering, etc.
|
||||
It is also possible to set two characters as `delimiters';
|
||||
subsequent text between delimiters is also treated as
|
||||
.ul
|
||||
eqn
|
||||
input.
|
||||
Delimiters may be set to characters
|
||||
.I x
|
||||
and
|
||||
.I y
|
||||
with the command-line argument
|
||||
.BI \-d xy
|
||||
or (more commonly) with
|
||||
`delim
|
||||
.IR xy '
|
||||
between .EQ and .EN.
|
||||
The left and right delimiters may be identical.
|
||||
Delimiters are turned off by `delim off'.
|
||||
All text that is neither between delimiters nor between .EQ and .EN
|
||||
is passed through untouched.
|
||||
.PP
|
||||
The program
|
||||
.I checkeq
|
||||
reports missing or unbalanced delimiters and .EQ/.EN pairs.
|
||||
.PP
|
||||
Tokens within
|
||||
.I eqn
|
||||
are separated by
|
||||
spaces, tabs, newlines, braces, double quotes,
|
||||
tildes or circumflexes.
|
||||
Braces {} are used for grouping;
|
||||
generally speaking,
|
||||
anywhere a single character like
|
||||
.I x
|
||||
could appear, a complicated construction
|
||||
enclosed in braces may be used instead.
|
||||
Tilde ~ represents a full space in the output,
|
||||
circumflex ^ half as much.
|
||||
.PP
|
||||
.vs 13p
|
||||
Subscripts and superscripts are produced with the keywords
|
||||
.B sub
|
||||
and
|
||||
.B sup.
|
||||
Thus
|
||||
.I "x sub i"
|
||||
makes
|
||||
$x sub i$,
|
||||
.I "a sub i sup 2"
|
||||
produces
|
||||
$a sub i sup 2$,
|
||||
and
|
||||
.I "e sup {x sup 2 + y sup 2}"
|
||||
gives
|
||||
$e sup {x sup 2 + y sup 2}$.
|
||||
.PP
|
||||
Fractions are made with
|
||||
.BR over :
|
||||
.I "a over b"
|
||||
yields $a over b$.
|
||||
.PP
|
||||
.B sqrt
|
||||
makes square roots:
|
||||
.I "1 over sqrt {ax sup 2 +bx+c}"
|
||||
results in
|
||||
$1 over sqrt {ax sup 2 +bx+c}$ .
|
||||
.PP
|
||||
The keywords
|
||||
.B from
|
||||
and
|
||||
.B to
|
||||
introduce lower and upper
|
||||
limits on arbitrary things:
|
||||
$lim from {n-> inf} sum from 0 to n x sub i$
|
||||
is made with
|
||||
.I "lim from {n\-> inf } sum from 0 to n x sub i."
|
||||
.PP
|
||||
Left and right brackets, braces, etc., of the right height are made with
|
||||
.B left
|
||||
and
|
||||
.B right:
|
||||
.I "left [ x sup 2 + y sup 2 over alpha right ] ~=~1"
|
||||
produces
|
||||
$left [ x sup 2 + y sup 2 over alpha right ] ~=~1$.
|
||||
The
|
||||
.B right
|
||||
clause is optional.
|
||||
Legal characters after
|
||||
.B left
|
||||
and
|
||||
.B right
|
||||
are braces, brackets, bars,
|
||||
.B c
|
||||
and
|
||||
.B f
|
||||
for ceiling and floor,
|
||||
and "" for nothing at all (useful for a right-side-only bracket).
|
||||
.PP
|
||||
Vertical piles of things are made with
|
||||
.BR pile ,
|
||||
.BR lpile ,
|
||||
.BR cpile ,
|
||||
and
|
||||
.BR rpile :
|
||||
.I "pile {a above b above c}"
|
||||
produces
|
||||
$pile {a above b above c}$.
|
||||
There can be an arbitrary number of elements in a pile.
|
||||
.B lpile
|
||||
left-justifies,
|
||||
.B pile
|
||||
and
|
||||
.B cpile
|
||||
center, with different vertical spacing,
|
||||
and
|
||||
.B rpile
|
||||
right justifies.
|
||||
.PP
|
||||
Matrices are made with
|
||||
.BR matrix :
|
||||
.I "matrix { lcol { x sub i above y sub 2 } ccol { 1 above 2 } }"
|
||||
produces
|
||||
$matrix { lcol { x sub i above y sub 2 } ccol { 1 above 2 } }$.
|
||||
In addition, there is
|
||||
.B rcol
|
||||
for a right-justified column.
|
||||
.PP
|
||||
.vs 12p
|
||||
Diacritical marks are made with
|
||||
.BR dot ,
|
||||
.BR dotdot ,
|
||||
.BR hat ,
|
||||
.BR tilde ,
|
||||
.BR bar ,
|
||||
.BR vec ,
|
||||
.BR dyad ,
|
||||
and
|
||||
.BR under :
|
||||
.I "x dot = f(t) bar"
|
||||
is
|
||||
$x dot = f(t) bar$,
|
||||
.I "y dotdot bar ~=~ n under"
|
||||
is
|
||||
$y dotdot bar ~=~ n under$,
|
||||
and
|
||||
.I "x vec ~=~ y dyad"
|
||||
is
|
||||
$x vec ~=~ y dyad$.
|
||||
.PP
|
||||
Sizes and font can be changed with
|
||||
.B size
|
||||
.I n
|
||||
or
|
||||
.B size
|
||||
.BI \(+- n,
|
||||
.BR roman ,
|
||||
.BR italic ,
|
||||
.BR bold ,
|
||||
and
|
||||
.BR font
|
||||
.I n.
|
||||
Size and fonts can be changed globally in a document by
|
||||
.B gsize
|
||||
.I n
|
||||
and
|
||||
.B gfont
|
||||
.IR n ,
|
||||
or by the command-line arguments
|
||||
.BI \-s n
|
||||
and
|
||||
.BI \-f n.
|
||||
.PP
|
||||
Normally subscripts and superscripts are reduced by
|
||||
3 point sizes from the previous size;
|
||||
this may be changed by the command-line argument
|
||||
.BI \-p n.
|
||||
.PP
|
||||
Successive display arguments can be lined up.
|
||||
Place
|
||||
.B mark
|
||||
before the desired lineup point in the first equation;
|
||||
place
|
||||
.B lineup
|
||||
at the place that is to line up vertically in subsequent equations.
|
||||
.PP
|
||||
Shorthands may be defined
|
||||
or existing keywords redefined with
|
||||
.BI define :
|
||||
.I "define thing % replacement %"
|
||||
defines a new token called
|
||||
.I thing
|
||||
which will be replaced by
|
||||
.I replacement
|
||||
whenever it appears thereafter.
|
||||
The
|
||||
.I %
|
||||
may be any character that does not occur in
|
||||
.I replacement.
|
||||
.PP
|
||||
Keywords like
|
||||
.I sum
|
||||
.EQ
|
||||
( sum )
|
||||
.EN
|
||||
.I int
|
||||
.EQ
|
||||
( int )
|
||||
.EN
|
||||
.I inf
|
||||
.EQ
|
||||
( inf )
|
||||
.EN
|
||||
and shorthands like
|
||||
>=
|
||||
.EQ
|
||||
(>=)
|
||||
.EN
|
||||
\->
|
||||
.EQ
|
||||
(->),
|
||||
.EN
|
||||
and
|
||||
!=
|
||||
.EQ
|
||||
( != )
|
||||
.EN
|
||||
are recognized.
|
||||
Greek letters are spelled out in the desired case, as in
|
||||
.I alpha
|
||||
or
|
||||
.I GAMMA.
|
||||
Mathematical words like sin, cos, log are made Roman automatically.
|
||||
.IR Troff (1)
|
||||
four-character escapes like \e(bs (\(bs)
|
||||
can be used anywhere.
|
||||
Strings enclosed in double quotes "..."
|
||||
are passed through untouched;
|
||||
this permits keywords to be entered as text,
|
||||
and can be used to communicate
|
||||
with
|
||||
.I troff
|
||||
when all else fails.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
troff(1), tbl(1), ms(7), eqnchar(7)
|
||||
.br
|
||||
B. W. Kernighan and L. L. Cherry,
|
||||
.ul
|
||||
Typesetting Mathematics\(emUser's Guide
|
||||
.br
|
||||
J. F. Ossanna,
|
||||
.ul
|
||||
NROFF/TROFF User's Manual
|
||||
.SH BUGS
|
||||
.PP
|
||||
To embolden digits, parens, etc.,
|
||||
it is necessary to quote them,
|
||||
as in `bold "12.3"'.
|
||||
@@ -0,0 +1,297 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)error.1 6.2.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH ERROR 1 "October 21, 1996"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
error \- analyze and disperse compiler error messages
|
||||
.SH SYNOPSIS
|
||||
.B error
|
||||
[
|
||||
.B \-n
|
||||
] [
|
||||
.B \-s
|
||||
] [
|
||||
.B \-q
|
||||
] [
|
||||
.B \-v
|
||||
] [
|
||||
.B \-t
|
||||
suffixlist
|
||||
] [
|
||||
.B \-I
|
||||
ignorefile
|
||||
] [ name ]
|
||||
.SH DESCRIPTION
|
||||
.I Error
|
||||
analyzes and optionally disperses the diagnostic error messages
|
||||
produced by a number of compilers and language processors to the source
|
||||
file and line where the errors occurred. It can replace the painful,
|
||||
traditional methods of scribbling abbreviations of errors on paper, and
|
||||
permits error messages and source code to be viewed simultaneously
|
||||
without machinations of multiple windows in a screen editor.
|
||||
.PP
|
||||
.I Error
|
||||
looks at the error messages,
|
||||
either from the specified file \fIname\fR
|
||||
or from the standard input,
|
||||
and attempts to determine which
|
||||
language processor produced each error message,
|
||||
determines the source file and line number to which the error message refers,
|
||||
determines if the error message is to be ignored or not,
|
||||
and inserts the (possibly slightly modified) error message into
|
||||
the source file as a comment on the line preceding to which the
|
||||
line the error message refers.
|
||||
Error messages which can't be categorized by language processor
|
||||
or content are not inserted into any file,
|
||||
but are sent to the standard output.
|
||||
.I Error
|
||||
touches source files only after all input has been read.
|
||||
By specifying the
|
||||
.B \-q
|
||||
query option,
|
||||
the user is asked to confirm any potentially
|
||||
dangerous (such as touching a file) or verbose action.
|
||||
Otherwise
|
||||
.I error
|
||||
proceeds on its merry business.
|
||||
If the
|
||||
.B \-t
|
||||
touch option and associated suffix list is given,
|
||||
.I error
|
||||
will restrict itself to touch only those files with suffices
|
||||
in the suffix list.
|
||||
Error also can be asked (by specifying
|
||||
.B \-v)
|
||||
to invoke
|
||||
.IR vi (1)
|
||||
on the files in which error messages were inserted; this obviates
|
||||
the need to remember the names of the files with errors.
|
||||
.PP
|
||||
.I Error
|
||||
is intended to be run
|
||||
with its standard input
|
||||
connected via a pipe to the error message source.
|
||||
Some language processors put error messages on their standard error file;
|
||||
others put their messages on the standard output.
|
||||
Hence, both error sources should be piped together into
|
||||
.I error.
|
||||
For example, when using the \fIcsh\fP syntax,
|
||||
.IP
|
||||
make \-s lint |\|& error \-q \-v
|
||||
.LP
|
||||
will analyze all the error messages produced
|
||||
by whatever programs
|
||||
.I make
|
||||
runs when making lint.
|
||||
.PP
|
||||
.I Error
|
||||
knows about the error messages produced by:
|
||||
.I make,
|
||||
.I cc,
|
||||
.I cpp,
|
||||
.I ccom,
|
||||
.I as,
|
||||
.I ld,
|
||||
.I lint,
|
||||
.I pi,
|
||||
.I pc,
|
||||
.I f77,
|
||||
and
|
||||
.I DEC Western Research Modula-2.
|
||||
.I Error
|
||||
knows a standard format for error messages produced by
|
||||
the language processors,
|
||||
so is sensitive to changes in these formats.
|
||||
For all languages except
|
||||
.I Pascal,
|
||||
error messages are restricted to be on one line.
|
||||
Some error messages refer to more than one line in more than
|
||||
one files;
|
||||
.I error
|
||||
will duplicate the error message and insert it at
|
||||
all of the places referenced.
|
||||
.PP
|
||||
.I Error
|
||||
will do one of six things with error messages.
|
||||
.TP 10
|
||||
.I synchronize
|
||||
Some language processors produce short errors describing
|
||||
which file it is processing.
|
||||
.I Error
|
||||
uses these to determine the file name for languages that
|
||||
don't include the file name in each error message.
|
||||
These synchronization messages are consumed entirely by
|
||||
.I error.
|
||||
.TP 10
|
||||
.I discard
|
||||
Error messages from
|
||||
.I lint
|
||||
that refer to one of the two
|
||||
.I lint
|
||||
libraries,
|
||||
.I /usr/share/lint/llib-lc
|
||||
and
|
||||
.I /usr/share/lint/llib-port
|
||||
are discarded,
|
||||
to prevent accidently touching these libraries.
|
||||
Again, these error messages are consumed entirely by
|
||||
.I error.
|
||||
.TP 10
|
||||
.I nullify
|
||||
Error messages from
|
||||
.I lint
|
||||
can be nullified if they refer to a specific function,
|
||||
which is known to generate diagnostics which are not interesting.
|
||||
Nullified error messages are not inserted into the source file,
|
||||
but are written to the standard output.
|
||||
The names of functions to ignore are taken from
|
||||
either the file named
|
||||
.I .errorrc
|
||||
in the users's home directory,
|
||||
or from the file named by the
|
||||
.B \-I
|
||||
option.
|
||||
If the file does not exist,
|
||||
no error messages are nullified.
|
||||
If the file does exist, there must be one function
|
||||
name per line.
|
||||
.TP 10
|
||||
.I not file specific
|
||||
Error messages that can't be intuited are grouped together,
|
||||
and written to the standard output before any files are touched.
|
||||
They will not be inserted into any source file.
|
||||
.TP 10
|
||||
.I file specific
|
||||
Error message that refer to a specific file,
|
||||
but to no specific line,
|
||||
are written to the standard output when
|
||||
that file is touched.
|
||||
.TP 10
|
||||
.I true errors
|
||||
Error messages that can be intuited are candidates for
|
||||
insertion into the file to which they refer.
|
||||
.PP
|
||||
Only true error messages are candidates for inserting into
|
||||
the file they refer to.
|
||||
Other error messages are consumed entirely by
|
||||
.I error
|
||||
or are written to the standard output.
|
||||
.I Error
|
||||
inserts the error messages into the source file on the line
|
||||
preceding the line the language processor found in error.
|
||||
Each error message is turned into a one line comment for the
|
||||
language,
|
||||
and is internally flagged
|
||||
with the string ``###'' at
|
||||
the beginning of the error,
|
||||
and ``%%%'' at the end of the error.
|
||||
This makes pattern searching for errors easier with an editor,
|
||||
and allows the messages to be easily removed.
|
||||
In addition, each error message contains the source line number
|
||||
for the line the message refers to.
|
||||
A reasonably formatted source program can be recompiled
|
||||
with the error messages still in it,
|
||||
without having the error messages themselves cause future errors.
|
||||
For poorly formatted source programs in free format languages,
|
||||
such as C or Pascal,
|
||||
it is possible to insert a comment into another comment,
|
||||
which can wreak havoc with a future compilation.
|
||||
To avoid this, programs with comments and source
|
||||
on the same line should be formatted
|
||||
so that language statements appear before comments.
|
||||
.PP
|
||||
Options available with
|
||||
.I error
|
||||
are:
|
||||
.TP 5
|
||||
.B \-n
|
||||
Do
|
||||
.I not
|
||||
touch any files; all error messages are sent to the
|
||||
standard output.
|
||||
.TP 5
|
||||
.B \-q
|
||||
The user is
|
||||
.I queried
|
||||
whether s/he wants to touch the file.
|
||||
A ``y'' or ``n'' to the question is necessary to continue.
|
||||
Absence of the
|
||||
.B \-q
|
||||
option implies that all referenced files
|
||||
(except those referring to discarded error messages)
|
||||
are to be touched.
|
||||
.TP 5
|
||||
.B \-v
|
||||
After all files have been touched,
|
||||
overlay the visual editor
|
||||
.I vi
|
||||
with it set up to edit all files touched,
|
||||
and positioned in the first touched file at the first error.
|
||||
If
|
||||
.I vi
|
||||
can't be found, try
|
||||
.I ex
|
||||
or
|
||||
.I ed
|
||||
from standard places.
|
||||
.TP 5
|
||||
.B \-t
|
||||
Take the following argument as a suffix list.
|
||||
Files whose suffixes do not appear in the suffix list are not touched.
|
||||
The suffix list is dot separated, and ``*'' wildcards work.
|
||||
Thus the suffix list:
|
||||
.IP
|
||||
\& ".c.y.foo*.h"
|
||||
.IP
|
||||
allows
|
||||
.I error
|
||||
to touch files ending with ``.c'', ``.y'', ``.foo*'' and ``.y''.
|
||||
.TP 5
|
||||
.B \-s
|
||||
Print out
|
||||
.I statistics
|
||||
regarding the error categorization.
|
||||
Not too useful.
|
||||
.PP
|
||||
.I Error
|
||||
catches interrupt and terminate signals,
|
||||
and if in the insertion phase,
|
||||
will orderly terminate what it is doing.
|
||||
.SH AUTHOR
|
||||
Robert Henry
|
||||
.SH FILES
|
||||
.ta 2i
|
||||
~/.errorrc function names to ignore for \fIlint\fP error messages
|
||||
.br
|
||||
/dev/tty user's teletype
|
||||
.SH BUGS
|
||||
.PP
|
||||
Opens the teletype directly to do user querying.
|
||||
.PP
|
||||
Source files with links make a new copy of the file with
|
||||
only one link to it.
|
||||
.PP
|
||||
Changing a language processor's format of error messages
|
||||
may cause
|
||||
.I error
|
||||
to not understand the error message.
|
||||
.PP
|
||||
.I Error,
|
||||
since it is purely mechanical,
|
||||
will not filter out subsequent errors caused by `floodgating'
|
||||
initiated by one syntactically trivial error.
|
||||
Humans are still much better at discarding these related errors.
|
||||
.PP
|
||||
Pascal error messages belong after the lines affected
|
||||
(error puts them before). The alignment of the `\||\|' marking
|
||||
the point of error is also disturbed by
|
||||
.I error.
|
||||
.PP
|
||||
.I Error
|
||||
was designed for work on CRT's at reasonably high speed.
|
||||
It is less pleasant on slow speed terminals, and has never been
|
||||
used on hardcopy terminals.
|
||||
@@ -0,0 +1,146 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)ex.1 6.4.1 (2.11BSD) 1996/10/21
|
||||
.\"
|
||||
.TH EX 1 "October 21, 1996"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
ex, edit \- text editor
|
||||
.SH SYNOPSIS
|
||||
.B ex
|
||||
[
|
||||
.B \-
|
||||
] [
|
||||
.B \-v
|
||||
] [
|
||||
.B \-t
|
||||
tag
|
||||
] [
|
||||
.B \-r
|
||||
] [
|
||||
\fB+\fIcommand\fR
|
||||
] [
|
||||
.B \-l
|
||||
]
|
||||
name ...
|
||||
.br
|
||||
.B edit
|
||||
[
|
||||
ex options
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Ex
|
||||
is the root of a family of editors:
|
||||
.I edit,
|
||||
.I ex
|
||||
and
|
||||
.I vi.
|
||||
.I Ex
|
||||
is a superset of
|
||||
.I ed,
|
||||
with the most notable extension being a display editing facility.
|
||||
Display based editing is the focus of
|
||||
.I vi.
|
||||
.PP
|
||||
If you have not used
|
||||
.I ed,
|
||||
or are a casual user, you will find that the editor
|
||||
.I edit
|
||||
is convenient for you.
|
||||
It avoids some of the complexities of
|
||||
.I ex
|
||||
used mostly by systems programmers and persons very familiar with
|
||||
.I ed.
|
||||
.PP
|
||||
If you have a \s-2CRT\s0 terminal, you may wish to use a display
|
||||
based editor; in this case
|
||||
see
|
||||
.IR vi (1),
|
||||
which is a command which focuses on the display editing portion of
|
||||
.I ex.
|
||||
.SH DOCUMENTATION
|
||||
The document
|
||||
.I "Edit: A tutorial"
|
||||
(USD:14) provides a comprehensive introduction to
|
||||
.I edit
|
||||
assuming no previous knowledge of computers or the \s-2UNIX\s0 system.
|
||||
.PP
|
||||
The
|
||||
.I "Ex Reference Manual \- Version 3.7"
|
||||
(USD:16)
|
||||
is a comprehensive and complete manual for the command mode features
|
||||
of
|
||||
.I ex,
|
||||
but you cannot learn to use the editor by reading it.
|
||||
For an introduction to
|
||||
more advanced forms of editing using the command mode of
|
||||
.I ex
|
||||
see the editing documents written by Brian Kernighan for the editor
|
||||
.I ed;
|
||||
the material in the introductory and advanced documents works also with
|
||||
.I ex.
|
||||
.PP
|
||||
.I "An Introduction to Display Editing with Vi"
|
||||
(USD:15)
|
||||
introduces the display editor
|
||||
.I vi
|
||||
and provides reference material on
|
||||
.I vi.
|
||||
In addition, the
|
||||
.I "Vi Quick Reference"
|
||||
card summarizes the commands
|
||||
of
|
||||
.I vi
|
||||
in a useful, functional way, and is useful with the
|
||||
.I Introduction.
|
||||
.SH FILES
|
||||
.DT
|
||||
/usr/share/misc/exstrings error messages
|
||||
.br
|
||||
/usr/libexec/exrecover recover command
|
||||
.br
|
||||
/usr/sbin/expreserve preserve command
|
||||
.br
|
||||
/etc/termcap describes capabilities of terminals
|
||||
.br
|
||||
~/.exrc editor startup file
|
||||
.br
|
||||
/tmp/Ex\fInnnnn\fR editor temporary
|
||||
.br
|
||||
/tmp/Rx\fInnnnn\fR named buffer temporary
|
||||
.br
|
||||
/usr/preserve preservation directory
|
||||
.SH SEE ALSO
|
||||
awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), environ(7)
|
||||
.SH AUTHOR
|
||||
Originally written by William Joy
|
||||
.br
|
||||
Mark Horton has maintained the editor since version 2.7, adding macros,
|
||||
support for many unusual terminals,
|
||||
and other features such as word abbreviation mode.
|
||||
.SH BUGS
|
||||
The
|
||||
.I undo
|
||||
command causes all marks to be lost on lines changed and then restored
|
||||
if the marked lines were changed.
|
||||
.PP
|
||||
.I Undo
|
||||
never clears the buffer modified condition.
|
||||
.PP
|
||||
The
|
||||
.I z
|
||||
command prints a number of logical rather than physical lines.
|
||||
More than a screen full of output may result if long lines are present.
|
||||
.PP
|
||||
File input/output errors don't print a name if the command line \fB`\-'\fR
|
||||
option is used.
|
||||
.PP
|
||||
There is no easy way to do a single scan ignoring case.
|
||||
.PP
|
||||
The editor does not warn if text is placed in named buffers and not used
|
||||
before exiting the editor.
|
||||
.PP
|
||||
Null characters are discarded in input files, and cannot appear in resultant
|
||||
files.
|
||||
@@ -0,0 +1,53 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)expand.1 6.2 (Berkeley) 5/9/86
|
||||
.\"
|
||||
.TH EXPAND 1 "May 9, 1986"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
expand, unexpand \- expand tabs to spaces, and vice versa
|
||||
.SH SYNOPSIS
|
||||
.B expand
|
||||
[
|
||||
\-tabstop
|
||||
] [
|
||||
\-tab1,tab2,...,tabn
|
||||
] [
|
||||
file ...
|
||||
]
|
||||
.br
|
||||
.B unexpand
|
||||
[
|
||||
.B \-a
|
||||
] [
|
||||
file ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Expand
|
||||
processes the named files or the standard input writing
|
||||
the standard output with tabs changed into blanks.
|
||||
Backspace characters are preserved into the output and decrement
|
||||
the column count for tab calculations.
|
||||
.I Expand
|
||||
is useful for pre-processing character files
|
||||
(before sorting, looking at specific columns, etc.) that
|
||||
contain tabs.
|
||||
.PP
|
||||
If a single
|
||||
.I tabstop
|
||||
argument is given, then tabs are set
|
||||
.I tabstop
|
||||
spaces apart instead of the default 8.
|
||||
If multiple tabstops are given then the tabs are set at those
|
||||
specific columns.
|
||||
.PP
|
||||
.I Unexpand
|
||||
puts tabs back into the data from the standard input or the named
|
||||
files and writes the result on the standard output.
|
||||
By default, only leading blanks and tabs
|
||||
are reconverted to maximal strings of tabs. If the
|
||||
.B \-a
|
||||
option is given, then tabs are inserted whenever they would compress the
|
||||
resultant file by replacing two or more characters.
|
||||
@@ -0,0 +1,105 @@
|
||||
.\" @(#)expr.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH EXPR 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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
|
||||
.ns
|
||||
.TP
|
||||
.IR expr " \- " expr
|
||||
.br
|
||||
addition or subtraction of the arguments.
|
||||
.TP
|
||||
.IR expr " * " expr
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.IR expr " / " expr
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.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"
|
||||
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.
|
||||
@@ -0,0 +1,313 @@
|
||||
.TH F77 1
|
||||
.UC
|
||||
.SH NAME
|
||||
f77 \- Fortran77 compiler
|
||||
.SH SYNTAX
|
||||
.B f77
|
||||
[ option ] ... file ...
|
||||
.SH DESCRIPTION
|
||||
.I F77
|
||||
is the UNIX Fortran77 compiler.
|
||||
It accepts several types of arguments:
|
||||
.PP
|
||||
Arguments whose names end with `.f' are taken to be
|
||||
Fortran77 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 \fIcc\fP\|(1).
|
||||
See \fIld\fP\|(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 \fIprof\fP\|(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.
|
||||
(Fortran77 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.
|
||||
.TP
|
||||
.BR \-\^U
|
||||
Do not convert upper case letters to lower case.
|
||||
.TP
|
||||
.BR \-\^I 2
|
||||
Make default integer size 16 bit.
|
||||
.TP
|
||||
.BR \-\^I 4
|
||||
Make default integer size 32 bit (default).
|
||||
.TP
|
||||
.BR \-\^v
|
||||
Verbose. Print information showing what compiler is doing.
|
||||
.TP
|
||||
.BR \-\^d
|
||||
Debug prints out intermediate information, leaves temporary files in
|
||||
\fI/tmp\fP and often produces a core file.
|
||||
.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 2i
|
||||
file.[fresc] input file
|
||||
file.o object file
|
||||
a.out loaded output
|
||||
./fort[pid].? temporary
|
||||
/usr/libexec/f77pass1 compiler pass 1
|
||||
/lib/c1 compiler pass 2
|
||||
/lib/c2 optional optimizer
|
||||
/usr/lib/libF77.a intrinsic function library
|
||||
/usr/lib/libI77.a Fortran I/O library
|
||||
/usr/lib/libU77.a Fortran system call library
|
||||
/lib/libc.a C library, see section 3
|
||||
/temp/fortPID.[xsad SopzA] temporary files
|
||||
.fi
|
||||
.PP
|
||||
Different versions of the compiler tools may be used with the following
|
||||
flags followed immediately (no space) by the path name of the desired module:
|
||||
.PP
|
||||
.ta \w'\-TM1234567 'u +\w'macro pack12345 'u
|
||||
.nf
|
||||
\-T1 pass1 /lib/f77pass1
|
||||
\-T2 pass2 /lib/c1
|
||||
\-Ta assembler /bin/as
|
||||
\-Tl loader /bin/ld
|
||||
\-TF footname /lib/crt0.o
|
||||
\-TM macro pack m4
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
S. I. Feldman,
|
||||
P. J. Weinberger,
|
||||
.I
|
||||
A Portable Fortran77 Compiler
|
||||
.br
|
||||
cc(1), ld(1), prof(1)
|
||||
.SH DIAGNOSTICS
|
||||
The diagnostics produced by
|
||||
.I f77
|
||||
itself are intended to be
|
||||
self-explanatory.
|
||||
Occasional messages may be produced by the loader.
|
||||
.TP
|
||||
\-d
|
||||
causes the intermediate files to be saves in \fI/tmp\fP and causes the
|
||||
compiler to print out what it is doing.
|
||||
.PP
|
||||
Run-time diagnostics for the input/output library are as follows:
|
||||
.sp
|
||||
.nf
|
||||
/* 100 */ "error in format"
|
||||
See error message output for the location
|
||||
of the error in the format. Can be caused
|
||||
by more than 10 levels of nested (), or
|
||||
an extremely long format statement.
|
||||
.bp
|
||||
/* 101 */ "illegal unit number"
|
||||
It is illegal to close logical unit 0.
|
||||
Negative unit numbers are not allowed.
|
||||
The upper limit is system dependent.
|
||||
|
||||
/* 102 */ "formatted io not allowed"
|
||||
The logical unit was opened for
|
||||
unformatted I/O.
|
||||
|
||||
/* 103 */ "unformatted io not allowed"
|
||||
The logical unit was opened for
|
||||
formatted I/O.
|
||||
|
||||
/* 104 */ "direct io not allowed"
|
||||
The logical unit was opened for sequential
|
||||
access, or the logical record length was
|
||||
specified as 0.
|
||||
|
||||
/* 105 */ "sequential io not allowed"
|
||||
The logical unit was opened for direct
|
||||
access I/O.
|
||||
|
||||
/* 106 */ "can't backspace file"
|
||||
The file associated with the logical unit
|
||||
can't seek. May be a device or a pipe.
|
||||
|
||||
/* 107 */ "off beginning of record"
|
||||
The format specified a left tab off the
|
||||
beginning of the record.
|
||||
|
||||
/* 108 */ "can't stat file"
|
||||
The system can't return status information
|
||||
about the file. Perhaps the directory is
|
||||
unreadable.
|
||||
|
||||
/* 109 */ "no * after repeat count"
|
||||
Repeat counts in list-directed I/O must be
|
||||
followed by an * with no blank spaces.
|
||||
|
||||
.DE
|
||||
.DS
|
||||
/* 110 */ "off end of record"
|
||||
A formatted write tried to go beyond the
|
||||
logical end-of-record. An unformatted read
|
||||
or write will also cause this.
|
||||
|
||||
/* 111 */ "truncation failed"
|
||||
The truncation of external sequential files
|
||||
on 'close', 'backspace', or 'rewind' tries
|
||||
to do a copy. It failed. Perhaps the temp
|
||||
file couldn't be created.
|
||||
|
||||
/* 112 */ "incomprehensible list input"
|
||||
List input has to be just right.
|
||||
|
||||
/* 113 */ "out of free space"
|
||||
The library dynamically creates buffers for
|
||||
internal use. You ran out of memory for this.
|
||||
Your program is too big!
|
||||
|
||||
/* 114 */ "unit not connected"
|
||||
The logical unit was not open.
|
||||
|
||||
/* 115 */ "read unexpected character"
|
||||
Certain format conversions can't tolerate
|
||||
non-numeric data. Logical data must be
|
||||
T or F.
|
||||
|
||||
/* 116 */ "blank logical input field"
|
||||
|
||||
/* 117 */ "'new' file exists"
|
||||
You tried to open an existing file with
|
||||
"status='new'".
|
||||
|
||||
/* 118 */ "can't find 'old' file"
|
||||
You tried to open a nonexistent file
|
||||
with "status='old'".
|
||||
|
||||
/* 119 */ "unknown system error"
|
||||
Shouldn't happen, but .....
|
||||
(Send me a documented example.)
|
||||
|
||||
/* 120 */ "requires seek ability"
|
||||
Direct access requires seek ability.
|
||||
Sequential unformatted I/O requires seek
|
||||
ability on the file due to the special
|
||||
data structure required. Tabbing left
|
||||
also requires seek ability.
|
||||
|
||||
/* 121 */ "illegal argument"
|
||||
Certain arguments to 'open', etc. will be
|
||||
checked for legitimacy. Often only non-
|
||||
default forms are looked for.
|
||||
|
||||
/* 122 */ "negative repeat count"
|
||||
|
||||
/* 123 */ "illegal operation for channel or device"
|
||||
.fi
|
||||
.SH BUGS
|
||||
The Fortran66 subset of the language has been
|
||||
exercised extensively;
|
||||
the newer features have not.
|
||||
.PP
|
||||
Fortran style read/write routines take up 23 Kbytes of
|
||||
addressing space.
|
||||
.PP
|
||||
The compiler is not intelligent enough to know when to
|
||||
split up assemblies and loads. Occasionally this causes
|
||||
the loader \fIld\fP\|(1) to produce the informative \fBlocal symbol botch\fP
|
||||
error message when local symbols like argument names are
|
||||
defined with different types. Thus one must split up such
|
||||
offensive modules into separate compilations.
|
||||
.PP
|
||||
All mathematics for reals is done in double precision.
|
||||
.br
|
||||
Integer*4 byte alignment is unlike DEC and everyone else's.
|
||||
.br
|
||||
There is no symbolic debugger.
|
||||
.PP
|
||||
The optimizer should be used with caution. It is known to occasionally
|
||||
produce incorrect code.
|
||||
.SH EXAMPLES
|
||||
.TP
|
||||
\fBf77 \-O \-c myprog.f\fP
|
||||
creates myprog.o using C optimizer
|
||||
.TP
|
||||
\fBf77 \-i \-O myprog.f another.f anon.o \-lplot\fP
|
||||
compiles .f files, loads all files using separate i&d space and linking
|
||||
in routines in the plot library.
|
||||
.TP
|
||||
\fBf77 myprog.f mine.c >&errors\fP
|
||||
Compiles and loads both files putting error output into file called errors.
|
||||
This is the C shell (\fBcsh\fP) version.
|
||||
The Bourne shell (\fBsh\fP) version is:
|
||||
.LP
|
||||
\fBf77 myprog.f mine.c 2>errors 1>errors\fP
|
||||
@@ -0,0 +1,35 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)false.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH FALSE 1 "April 29, 1985"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
false, true \- provide truth values
|
||||
.SH SYNOPSIS
|
||||
.B true
|
||||
.PP
|
||||
.B false
|
||||
.SH DESCRIPTION
|
||||
.I True
|
||||
and
|
||||
.I false
|
||||
are usually used in a Bourne shell script.
|
||||
They test for the appropriate status "true" or "false" before running
|
||||
(or failing to run) a list of commands.
|
||||
.SH EXAMPLE
|
||||
.IP
|
||||
.nf
|
||||
while false
|
||||
do
|
||||
command list
|
||||
done
|
||||
.SH "SEE ALSO"
|
||||
csh(1),
|
||||
sh(1),
|
||||
true(1)
|
||||
.SH DIAGNOSTICS
|
||||
.I False
|
||||
has exit status nonzero.
|
||||
@@ -0,0 +1,23 @@
|
||||
.\" @(#)file.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH FILE 1 "April 29, 1985"
|
||||
.AT 3
|
||||
.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.
|
||||
.PP
|
||||
Does not recognize Pascal or LISP.
|
||||
@@ -0,0 +1,266 @@
|
||||
.\" Copyright (c) 1985 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)find.1 6.3.1 (2.11BSD) 1996/10/22
|
||||
.\"
|
||||
.TH FIND 1 "October 11, 1996"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
find \- find files
|
||||
.SH SYNOPSIS
|
||||
.B find
|
||||
pathname-list expression
|
||||
.br
|
||||
.B find
|
||||
pattern
|
||||
.SH DESCRIPTION
|
||||
In the first form above,
|
||||
.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 .
|
||||
.PP
|
||||
The second form rapidly searches a database for all pathnames
|
||||
which match
|
||||
.IR pattern .
|
||||
Usually the database is recomputed
|
||||
weekly and contains the pathnames
|
||||
of all files which are publicly accessible.
|
||||
If escaped, normal shell
|
||||
\*(lqglobbing\*(rq characters (`*', `?', `[', and ']')
|
||||
may be used in
|
||||
.IR pattern ,
|
||||
but the matching differs in that no characters
|
||||
.RI ( e.g. " `/')"
|
||||
have to be matched explicitly.
|
||||
As a special case, a simple
|
||||
.I pattern
|
||||
containing no globbing characters
|
||||
is matched as though it were
|
||||
.IR *pattern* ;
|
||||
if any globbing character appears
|
||||
there are no implicit globbing characters.
|
||||
.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, f, l"
|
||||
or
|
||||
.B s
|
||||
for
|
||||
block special file, character special file,
|
||||
directory, plain file, symbolic link, or socket.
|
||||
.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
|
||||
.B \-nouser
|
||||
True if the file belongs to a user
|
||||
.I not
|
||||
in the /etc/passwd database.
|
||||
.TP
|
||||
.BR \-group " gname"
|
||||
True if the file belongs to group
|
||||
.I gname
|
||||
(group name or numeric group ID).
|
||||
.TP
|
||||
.B \-nogroup
|
||||
True if the file belongs to a group
|
||||
.I not
|
||||
in the /etc/group database.
|
||||
.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
|
||||
.B \-ls
|
||||
Always true;
|
||||
causes current pathname to be printed together
|
||||
with its associated statistics.
|
||||
These include (respectively) inode number,
|
||||
size in kilobytes (1024 bytes),
|
||||
protection mode,
|
||||
number of hard links,
|
||||
user,
|
||||
group,
|
||||
size in bytes,
|
||||
and modification time.
|
||||
If the file is a special file
|
||||
the size field will instead contain the major and minor
|
||||
device numbers.
|
||||
If the file is a symbolic link the
|
||||
pathname of the linked-to file is printed preceded by ``->''.
|
||||
The format is identical to that of ``ls -gilds''
|
||||
(note however that formatting is done internally,
|
||||
without executing the ls program).
|
||||
.TP
|
||||
.BR \-newer " file"
|
||||
True if
|
||||
the current file has been modified more recently than the argument
|
||||
.I file.
|
||||
.TP
|
||||
.BR \-cpio " file"
|
||||
Write the current file on the argument
|
||||
.I file
|
||||
in
|
||||
.I cpio
|
||||
format.
|
||||
.TP
|
||||
.B \-xdev
|
||||
Always true;
|
||||
causes find
|
||||
.I not
|
||||
to traverse down into a file system different
|
||||
from the one on which current
|
||||
.I argument
|
||||
pathname resides.
|
||||
.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 EXAMPLES
|
||||
.PP
|
||||
To find all accessible files whose pathname contains `find':
|
||||
.IP
|
||||
find find
|
||||
.PP
|
||||
To typeset all variants of manual pages for `ls':
|
||||
.IP
|
||||
vtroff -man `find '*man*/ls.?'`
|
||||
.PP
|
||||
To remove all files named
|
||||
`a.out' or `*.o' that have not been accessed for a week:
|
||||
.IP "" .2i
|
||||
find / \e( \-name a.out \-o \-name '*.o' \e) \-atime +7 \-exec rm {} \e\;
|
||||
.SH FILES
|
||||
.nf
|
||||
.ta \w'/var/db/find.codes 'u
|
||||
/etc/passwd
|
||||
/etc/group
|
||||
/var/db/find.codes coded pathnames database
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
sh(1), test(1), fs(5)
|
||||
.br
|
||||
Relevant paper in February, 1983 issue of
|
||||
.I ;login:.
|
||||
.SH BUGS
|
||||
The first form's syntax is painful, and
|
||||
the second form's exact semantics is confusing and
|
||||
can vary from site to site.
|
||||
.PP
|
||||
More than one `-newer' option does not work properly.
|
||||
@@ -0,0 +1,45 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)fmt.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH FMT 1 "April 29, 1985"
|
||||
.UC
|
||||
.SH NAME
|
||||
fmt \- simple text formatter
|
||||
.SH SYNOPSIS
|
||||
.B fmt
|
||||
[
|
||||
name ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Fmt
|
||||
is a simple text formatter which reads the concatenation of input
|
||||
files (or standard input if none are given) and produces on
|
||||
standard output a version of its input with lines as close to
|
||||
72 characters long as possible. The spacing at the beginning
|
||||
of the input lines is preserved in the output, as are blank lines
|
||||
and interword spacing.
|
||||
.PP
|
||||
.I Fmt
|
||||
is meant to format mail messages prior to sending, but may also be useful
|
||||
for other simple tasks.
|
||||
For instance,
|
||||
within visual mode of the
|
||||
.I ex
|
||||
editor (e.g.
|
||||
.IR vi )
|
||||
the command
|
||||
.br
|
||||
!}fmt
|
||||
.br
|
||||
will reformat a paragraph,
|
||||
evening the lines.
|
||||
.SH "SEE ALSO"
|
||||
nroff(1), mail(1)
|
||||
.SH AUTHOR
|
||||
Kurt Shoens
|
||||
.SH BUGS
|
||||
The program was designed to be simple and fast \- for more complex
|
||||
operations, the standard text processors are likely to be more appropriate.
|
||||
@@ -0,0 +1,36 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)fold.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH FOLD 1 "April 29, 1985"
|
||||
.UC
|
||||
.SH NAME
|
||||
fold \- fold long lines for finite width output device
|
||||
.SH SYNOPSIS
|
||||
.B fold
|
||||
[
|
||||
\-width
|
||||
] [
|
||||
file ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Fold
|
||||
is a filter which will fold the contents of the specified files,
|
||||
or the standard input if no files are specified,
|
||||
breaking the lines to have maximum width
|
||||
.I width.
|
||||
The default for
|
||||
.I width
|
||||
is 80.
|
||||
.I Width
|
||||
should be a multiple of 8 if tabs are present, or the tabs should
|
||||
be expanded using
|
||||
.IR expand (1)
|
||||
before coming to
|
||||
.I fold.
|
||||
.SH SEE\ ALSO
|
||||
expand(1)
|
||||
.SH BUGS
|
||||
If underlining is present it may be messed up by folding.
|
||||
@@ -0,0 +1,184 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)fpr.1 6.2 (Berkeley) 5/7/86
|
||||
.\"
|
||||
.TH FPR 1 "May 7, 1986"
|
||||
.UC 5
|
||||
.ds f. fpr.tbl
|
||||
.SH NAME
|
||||
fpr \- print Fortran file
|
||||
.SH SYNOPSIS
|
||||
.B fpr
|
||||
.SH DESCRIPTION
|
||||
.I Fpr
|
||||
is a filter that transforms files formatted according to
|
||||
Fortran's carriage control conventions into files formatted
|
||||
according to UNIX line printer conventions.
|
||||
.PP
|
||||
.I Fpr
|
||||
copies its input onto its output, replacing the carriage
|
||||
control characters with characters that will produce the intended
|
||||
effects when printed using
|
||||
.IR lpr (1).
|
||||
The first character of each line determines the vertical spacing as follows:
|
||||
|
||||
.if t \{\
|
||||
.\" tbl input for vertical spacing table
|
||||
.\" .TS
|
||||
.\" center box;
|
||||
.\" c | l.
|
||||
.\" Character Vertical Space Before Printing
|
||||
.\" _
|
||||
.\" Blank One line
|
||||
.\" 0 Two lines
|
||||
.\" 1 To first line of next page
|
||||
.\" + No advance
|
||||
.\" .TE
|
||||
.\" end of tbl input for vertical spacing table
|
||||
.\" tbl output for vertical spacing table
|
||||
.TS
|
||||
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
|
||||
.de 35
|
||||
.ps \n(.s
|
||||
.vs \n(.vu
|
||||
.in \n(.iu
|
||||
.if \n(.u .fi
|
||||
.if \n(.j .ad
|
||||
.if \n(.j=0 .na
|
||||
..
|
||||
.nf
|
||||
.nr #~ 0
|
||||
.if n .nr #~ 0.6n
|
||||
.ds #d .d
|
||||
.if \(ts\n(.z\(ts\(ts .ds #d nl
|
||||
.fc
|
||||
.nr 33 \n(.s
|
||||
.rm 80 81
|
||||
.nr 80 0
|
||||
.nr 38 \wCharacter
|
||||
.if \n(80<\n(38 .nr 80 \n(38
|
||||
.nr 38 \wBlank
|
||||
.if \n(80<\n(38 .nr 80 \n(38
|
||||
.nr 38 \w0
|
||||
.if \n(80<\n(38 .nr 80 \n(38
|
||||
.nr 38 \w1
|
||||
.if \n(80<\n(38 .nr 80 \n(38
|
||||
.nr 38 \w+
|
||||
.if \n(80<\n(38 .nr 80 \n(38
|
||||
.80
|
||||
.rm 80
|
||||
.nr 81 0
|
||||
.nr 38 \wVertical Space Before Printing
|
||||
.if \n(81<\n(38 .nr 81 \n(38
|
||||
.nr 38 \wOne line
|
||||
.if \n(81<\n(38 .nr 81 \n(38
|
||||
.nr 38 \wTwo lines
|
||||
.if \n(81<\n(38 .nr 81 \n(38
|
||||
.nr 38 \wTo first line of next page
|
||||
.if \n(81<\n(38 .nr 81 \n(38
|
||||
.nr 38 \wNo advance
|
||||
.if \n(81<\n(38 .nr 81 \n(38
|
||||
.81
|
||||
.rm 81
|
||||
.nr 38 1n
|
||||
.nr 79 0
|
||||
.nr 40 \n(79+(1*\n(38)
|
||||
.nr 80 +\n(40
|
||||
.nr 41 \n(80+(3*\n(38)
|
||||
.nr 81 +\n(41
|
||||
.nr TW \n(81
|
||||
.nr TW +1*\n(38
|
||||
.if t .if (\n(TW+\n(.o)>7.65i .tm Table at line 45 file fpr.tbl is too wide - \n(TW units
|
||||
.ne 5v+2p
|
||||
.nr #I \n(.i
|
||||
.in +(\n(.lu-\n(TWu-\n(.iu)/2u
|
||||
.fc
|
||||
.nr #T 0-1
|
||||
.nr #a 0-1
|
||||
.nr #a 0-1
|
||||
.eo
|
||||
.de T#
|
||||
.ds #d .d
|
||||
.if \(ts\n(.z\(ts\(ts .ds #d nl
|
||||
.mk ##
|
||||
.nr ## -1v
|
||||
.ls 1
|
||||
.if \n(#T>=0 .nr #a \n(#T
|
||||
.if \n(T. .vs \n(.vu-\n(.sp
|
||||
.if \n(T. \h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
|
||||
.if \n(T. .vs
|
||||
.if \n(#a>=0 .sp -1
|
||||
.if \n(#a>=0 \h'|0'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'
|
||||
.if \n(#a>=0 .sp -1
|
||||
.if \n(#a>=0 \h'(|\n(41u+|\n(80u)/2u'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'\h'|\n(TWu'
|
||||
.if \n(#a>=0 .sp -1
|
||||
.if \n(#a>=0 \h'|\n(TWu'\s\n(33\h'-\n(#~u'\L'|\n(#au-1v'\s0\v'\n(\*(#du-\n(#au+1v'
|
||||
.ls
|
||||
..
|
||||
.ec
|
||||
.nr 36 \n(.v
|
||||
.vs \n(.vu-\n(.sp
|
||||
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
|
||||
.vs \n(36u
|
||||
.mk #a
|
||||
.ta \n(80u \n(81u
|
||||
.nr 31 \n(.f
|
||||
.nr 35 1m
|
||||
\&\h'|\n(40u'Character\h'|\n(41u'Vertical Space Before Printing
|
||||
.nr 36 \n(.v
|
||||
.vs \n(.vu-\n(.sp
|
||||
\h'|0'\s\n(33\l'|\n(TWu\(ul'\s0
|
||||
.vs \n(36u
|
||||
.ta \n(80u \n(81u
|
||||
.nr 31 \n(.f
|
||||
.nr 35 1m
|
||||
\&\h'|\n(40u'Blank\h'|\n(41u'One line
|
||||
.ta \n(80u \n(81u
|
||||
.nr 31 \n(.f
|
||||
.nr 35 1m
|
||||
\&\h'|\n(40u'0\h'|\n(41u'Two lines
|
||||
.ta \n(80u \n(81u
|
||||
.nr 31 \n(.f
|
||||
.nr 35 1m
|
||||
\&\h'|\n(40u'1\h'|\n(41u'To first line of next page
|
||||
.ta \n(80u \n(81u
|
||||
.nr 31 \n(.f
|
||||
.nr 35 1m
|
||||
\&\h'|\n(40u'+\h'|\n(41u'No advance
|
||||
.fc
|
||||
.nr T. 1
|
||||
.T# 1
|
||||
.in \n(#Iu
|
||||
.35
|
||||
.nr #a 0
|
||||
.TE
|
||||
.if \n-(b.=0 .nr c. \n(.c-\n(d.-9
|
||||
.\" end of tbl output for vertical spacing table
|
||||
.\}
|
||||
.if n \{\
|
||||
.nf
|
||||
+---------------+--------------------------------+
|
||||
| Character | Vertical Space Before Printing |
|
||||
|---------------+--------------------------------|
|
||||
| Blank | One line |
|
||||
| 0 | Two lines |
|
||||
| 1 | To first line of next page |
|
||||
| + | No advance |
|
||||
+---------------+--------------------------------+
|
||||
.fi
|
||||
.\}
|
||||
|
||||
.PP
|
||||
A blank line is treated as if its first
|
||||
character is a blank. A blank that appears as a carriage control
|
||||
character is deleted. A zero is changed to a newline. A one is
|
||||
changed to a form feed. The effects of a "+" are simulated using
|
||||
backspaces.
|
||||
.SH EXAMPLES
|
||||
a.out | fpr | lpr
|
||||
.PP
|
||||
fpr < f77.output | lpr
|
||||
.SH BUGS
|
||||
Results are undefined for input lines longer than 170 characters.
|
||||
@@ -0,0 +1,33 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)from.1 6.2 (Berkeley) 4/20/86
|
||||
.\"
|
||||
.TH FROM 1 "April 20, 1986"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
from \- who is my mail from?
|
||||
.SH SYNOPSIS
|
||||
.B from
|
||||
[
|
||||
.B \-s
|
||||
sender
|
||||
]
|
||||
[
|
||||
user
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I From
|
||||
prints out the mail header lines in your mailbox file
|
||||
to show you who your mail is from.
|
||||
If
|
||||
.I user
|
||||
is specified, then \fIuser\fP's mailbox is examined instead of your own.
|
||||
If the -s option is given, then only headers for mail sent by
|
||||
.I sender
|
||||
are printed.
|
||||
.SH FILES
|
||||
/usr/spool/mail/*
|
||||
.SH "SEE ALSO"
|
||||
biff(1), mail(1)
|
||||
@@ -0,0 +1,64 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)fsplit.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH FSPLIT 1 "April 29, 1985"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
fsplit \- split a multi-routine Fortran file into individual files
|
||||
.SH SYNOPSIS
|
||||
.B fsplit
|
||||
[
|
||||
.B -e
|
||||
efile] ... [ file ]
|
||||
.SH DESCRIPTION
|
||||
.B Fsplit
|
||||
takes as input either a file or standard input containing Fortran source code.
|
||||
It attempts to split the input into separate routine files of the
|
||||
form
|
||||
.I name.f,
|
||||
where
|
||||
.I name
|
||||
is the name of the program unit (e.g. function, subroutine, block data or
|
||||
program). The name for unnamed block data subprograms has the form
|
||||
.I blkdtaNNN.f
|
||||
where NNN is three digits and a file of this name does not already exist.
|
||||
For unnamed main programs the name has the form
|
||||
.I mainNNN.f.
|
||||
If there is an error in classifying a program unit, or if
|
||||
.I name.f
|
||||
already exists,
|
||||
the program unit will be put in a file of the form
|
||||
.I zzzNNN.f
|
||||
where
|
||||
.I zzzNNN.f
|
||||
does not already exist.
|
||||
.PP
|
||||
Normally each subprogram unit is split into a separate file. When the
|
||||
.I -e
|
||||
option is used, only the specified subprogram units are split into separate
|
||||
files. E.g.:
|
||||
.nf
|
||||
fsplit -e readit -e doit prog.f
|
||||
.fi
|
||||
will split readit and doit into separate files.
|
||||
.SH DIAGNOSTICS
|
||||
If names specified via the
|
||||
.I -e
|
||||
option are not found, a diagnostic is written to
|
||||
.I standard
|
||||
.I error.
|
||||
.SH AUTHOR
|
||||
Asa Romberger and Jerry Berkman
|
||||
.SH BUGS
|
||||
.I Fsplit
|
||||
assumes the subprogram name is on the first noncomment line of the subprogram
|
||||
unit. Nonstandard source formats may confuse
|
||||
.I fsplit.
|
||||
.PP
|
||||
It is hard to use
|
||||
.I -e
|
||||
for unnamed main programs and block data subprograms since you must
|
||||
predict the created file name.
|
||||
@@ -0,0 +1,41 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)gcore.1 1.1 (2.11BSD GTE) 4/15/94
|
||||
.\"
|
||||
.TH GCORE 1 "April 15, 1994"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
gcore \- get core image of running process
|
||||
.SH SYNOPSIS
|
||||
.B gcore
|
||||
[\fB-s\fP][\fB-c core\fP] \fIpid\fP
|
||||
.SH DESCRIPTION
|
||||
.I gcore
|
||||
creates a core image of each specified process,
|
||||
suitable for use with
|
||||
.IR adb (1).
|
||||
By default the core image is written to the file \fI<pid>.core\fP.
|
||||
.PP
|
||||
The options are:
|
||||
.TP
|
||||
\fB-c\fP
|
||||
Write the core file to the specified file instead of \fI<pid>.core\fP.
|
||||
.TP
|
||||
\fB-s\fP
|
||||
Stop the process while creating the core image and resume it when done.
|
||||
This makes sure that the core dump will be in a consistent state. The
|
||||
process is resumed even if it was already stopped. Of course, you can
|
||||
obtain the same result by manually stopping the process with kill(1).
|
||||
.PP
|
||||
The core image name was changed from \fIcore.<pid>\fP to \fI<pid>.core\fP
|
||||
to prevent matching names like \fIcore.h\fP and \fIcore.c\fP when using
|
||||
programs such as \fIfind(1)\fP.
|
||||
.SH FILES
|
||||
<process-id>.core The core image.
|
||||
.SH BUGS
|
||||
If \fBgcore\fP encounters an error while creating the core image and
|
||||
the \fB-s\fP option was used the process will remain stopped.
|
||||
.PP
|
||||
Swapped out processes and system processes (the swapper) may not be gcore'd.
|
||||
@@ -0,0 +1,115 @@
|
||||
.\" @(#)graph.1g 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH GRAPH 1G "April 29, 1985"
|
||||
.AT 3
|
||||
.SH NAME
|
||||
graph \- draw a graph
|
||||
.SH SYNOPSIS
|
||||
.B graph
|
||||
[ option ] ...
|
||||
.SH DESCRIPTION
|
||||
.I Graph
|
||||
with no options takes pairs of numbers from the
|
||||
standard input as abscissas and
|
||||
ordinates of a graph.
|
||||
Successive points are connected by straight lines.
|
||||
The graph is encoded on the standard output
|
||||
for display by the
|
||||
.IR plot (1G)
|
||||
filters.
|
||||
.PP
|
||||
If the coordinates of a point are followed by
|
||||
a nonnumeric string, that string is printed as a
|
||||
label beginning on the point.
|
||||
Labels may be surrounded with quotes "...", in
|
||||
which case they may be empty or contain blanks
|
||||
and numbers;
|
||||
labels never contain newlines.
|
||||
.PP
|
||||
The following options are recognized,
|
||||
each as a separate argument.
|
||||
.TP
|
||||
.B \-a
|
||||
Supply abscissas automatically (they are missing from
|
||||
the input); spacing is given by the next
|
||||
argument (default 1).
|
||||
A second optional argument is the starting point for
|
||||
automatic abscissas (default 0 or lower limit given by
|
||||
.BR \-x ).
|
||||
.TP
|
||||
.B \-b
|
||||
Break (disconnect) the graph after each label in the input.
|
||||
.TP
|
||||
.B \-c
|
||||
Character string given by next argument
|
||||
is default label for each point.
|
||||
.TP
|
||||
.B \-g
|
||||
Next argument is grid style,
|
||||
0 no grid, 1 frame with ticks, 2 full grid (default).
|
||||
.TP
|
||||
.B \-l
|
||||
Next argument is label for graph.
|
||||
.TP
|
||||
.B \-m
|
||||
Next argument is mode (style)
|
||||
of connecting lines:
|
||||
0 disconnected, 1 connected (default).
|
||||
Some devices give distinguishable line styles
|
||||
for other small integers.
|
||||
.TP
|
||||
.B \-s
|
||||
Save screen, don't erase before plotting.
|
||||
.TP
|
||||
\fB\-x\fR [ \fBl\fR ]
|
||||
If
|
||||
.B l
|
||||
is present, x axis is logarithmic.
|
||||
Next 1 (or 2) arguments are lower (and upper)
|
||||
.IR x ""
|
||||
limits.
|
||||
Third argument, if present, is grid spacing on
|
||||
.I x
|
||||
axis.
|
||||
Normally these quantities are determined automatically.
|
||||
.TP
|
||||
\fB\-y\fR [ \fBl\fR ]
|
||||
Similarly for
|
||||
.IR y .
|
||||
.TP
|
||||
.B \-h
|
||||
Next argument is fraction of space for height.
|
||||
.TP
|
||||
.B \-w
|
||||
Similarly for width.
|
||||
.TP
|
||||
.B \-r
|
||||
Next argument is fraction of space to move right before plotting.
|
||||
.TP
|
||||
.B \-u
|
||||
Similarly to move up before plotting.
|
||||
.TP
|
||||
.B \-t
|
||||
Transpose horizontal and vertical axes.
|
||||
(Option
|
||||
.B \-x
|
||||
now applies to the vertical axis.)
|
||||
.PP
|
||||
A legend indicating grid range is produced
|
||||
with a grid unless the
|
||||
.B \-s
|
||||
option is present.
|
||||
.PP
|
||||
If a specified lower limit exceeds the upper limit,
|
||||
the axis
|
||||
is reversed.
|
||||
.SH "SEE ALSO"
|
||||
spline(1G), plot(1G)
|
||||
.SH BUGS
|
||||
.I Graph
|
||||
stores all points internally and drops those for which
|
||||
there isn't room.
|
||||
.br
|
||||
Segments that run out of bounds are dropped, not windowed.
|
||||
.br
|
||||
Logarithmic axes may not be reversed.
|
||||
@@ -0,0 +1,159 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)grep.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH GREP 1 "April 29, 1985"
|
||||
.UC 4
|
||||
.SH NAME
|
||||
grep, egrep, fgrep \- search a file for a pattern
|
||||
.SH SYNOPSIS
|
||||
.B grep
|
||||
[ option ] ...
|
||||
expression [ file ] ...
|
||||
.LP
|
||||
.B egrep
|
||||
[ option ] ...
|
||||
[ expression ]
|
||||
[ file ] ...
|
||||
.LP
|
||||
.B fgrep
|
||||
[ option ] ...
|
||||
[ strings ]
|
||||
[ file ]
|
||||
.SH DESCRIPTION
|
||||
Commands of the
|
||||
.I grep
|
||||
family search the input
|
||||
.I files
|
||||
(standard input default) for lines matching a pattern.
|
||||
Normally, each line found is copied to the standard output.
|
||||
.I Grep
|
||||
patterns are limited regular expressions in the style of
|
||||
.IR ex (1);
|
||||
it uses a compact nondeterministic algorithm.
|
||||
.I Egrep
|
||||
patterns are full regular expressions; it uses a fast deterministic
|
||||
algorithm that sometimes needs exponential space.
|
||||
.I Fgrep
|
||||
patterns are fixed strings; it is fast and compact.
|
||||
The following options are recognized.
|
||||
.TP
|
||||
.B \-v
|
||||
All lines but those matching are printed.
|
||||
.TP
|
||||
.B \-x
|
||||
(Exact) only lines matched in their entirety are printed
|
||||
.RI ( fgrep
|
||||
only).
|
||||
.TP
|
||||
.B \-c
|
||||
Only a count of matching lines is printed.
|
||||
.TP
|
||||
.B \-l
|
||||
The names of files with matching lines are listed (once) separated by newlines.
|
||||
.TP
|
||||
.B \-n
|
||||
Each line is preceded by its relative line number in the file.
|
||||
.TP
|
||||
.B \-b
|
||||
Each line is preceded by the block number on which it was found.
|
||||
This is sometimes useful in locating disk block numbers by context.
|
||||
.TP
|
||||
.B \-i
|
||||
The case of letters is ignored in making comparisons \(em that is, upper and
|
||||
lower case are considered identical. This applies to \fIgrep\fR\| and
|
||||
\fIfgrep\fR only.
|
||||
.TP
|
||||
.B \-s
|
||||
Silent mode. Nothing is printed (except error messages).
|
||||
This is useful for checking the error status.
|
||||
.TP
|
||||
.B \-w
|
||||
The expression is searched for as a word
|
||||
(as if surrounded by `\e<' and `\e>', see
|
||||
.IR ex (1).)
|
||||
(\fIgrep\fR\| only)
|
||||
.TP
|
||||
.BI \-e " expression"
|
||||
Same as a simple
|
||||
.I expression
|
||||
argument, but useful when the
|
||||
.I expression
|
||||
begins with a \-.
|
||||
.TP
|
||||
.BI \-f " file"
|
||||
The regular expression
|
||||
.RI ( egrep )
|
||||
or string list
|
||||
.RI ( fgrep )
|
||||
is taken from the
|
||||
.I file.
|
||||
.LP
|
||||
In all cases the file name is shown if there is more than one input file.
|
||||
Care should be taken when using the characters $ * [ ^ | ( ) and \\ in the
|
||||
.I expression
|
||||
as they are also meaningful to the Shell. It is safest to enclose the entire
|
||||
.I expression
|
||||
argument in single quotes \' \'.
|
||||
.LP
|
||||
.I Fgrep
|
||||
searches for lines that contain one of the (newline-separated)
|
||||
.I strings.
|
||||
.LP
|
||||
.I Egrep
|
||||
accepts extended regular expressions.
|
||||
In the following description `character' excludes newline:
|
||||
.IP
|
||||
A \e followed by a single character other than newline matches that character.
|
||||
.IP
|
||||
The character ^ matches the beginning of a line.
|
||||
.IP
|
||||
The character $ matches the end of a line.
|
||||
.IP
|
||||
A
|
||||
.B .
|
||||
(period) matches any character.
|
||||
.IP
|
||||
A single character not otherwise endowed with special
|
||||
meaning matches that character.
|
||||
.IP
|
||||
A string enclosed in brackets [\|] matches any single character from the string.
|
||||
Ranges of ASCII character codes may be abbreviated as in `a\-z0\-9'.
|
||||
A ]
|
||||
may occur only as the first character of the string.
|
||||
A literal \- must be placed where it can't be mistaken as a range indicator.
|
||||
.IP
|
||||
A regular expression followed by an * (asterisk) matches a sequence of 0
|
||||
or more matches of the regular expression.
|
||||
A regular expression followed by a + (plus) matches a sequence of 1 or more
|
||||
matches of the regular expression.
|
||||
A regular expression followed by a ? (question mark) matches a sequence of
|
||||
0 or 1 matches of the regular expression.
|
||||
.IP
|
||||
Two regular expressions concatenated match a match of the first followed
|
||||
by a match of the second.
|
||||
.IP
|
||||
Two regular expressions separated by | or newline
|
||||
match either a match for the first or a match for the second.
|
||||
.IP
|
||||
A regular expression enclosed in parentheses
|
||||
matches a match for the regular expression.
|
||||
.LP
|
||||
The order of precedence of operators at the same parenthesis level
|
||||
is [\|] then *+? then concatenation then | and newline.
|
||||
.LP
|
||||
Ideally there should be only one
|
||||
.I grep,
|
||||
but we don't know a single algorithm that spans a wide enough
|
||||
range of space-time tradeoffs.
|
||||
.SH "SEE ALSO"
|
||||
ex(1),
|
||||
sed(1),
|
||||
sh(1)
|
||||
.SH DIAGNOSTICS
|
||||
Exit status is 0 if any matches are found,
|
||||
1 if none, 2 for syntax errors or inaccessible files.
|
||||
.SH BUGS
|
||||
Lines are limited to 256 characters; longer lines are truncated.
|
||||
@@ -0,0 +1,27 @@
|
||||
.\" Copyright (c) 1980 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)head.1 6.1 (Berkeley) 4/29/85
|
||||
.\"
|
||||
.TH HEAD 1 "April 29, 1985"
|
||||
.UC
|
||||
.SH NAME
|
||||
head \- give first few lines
|
||||
.SH SYNOPSIS
|
||||
.B head
|
||||
[
|
||||
.BR \- count
|
||||
] [
|
||||
file ...
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
This filter gives the first
|
||||
.I count
|
||||
lines of each of the specified files, or of the standard input.
|
||||
If
|
||||
.I count
|
||||
is omitted it defaults to
|
||||
10.
|
||||
.SH SEE\ ALSO
|
||||
tail(1)
|
||||
@@ -0,0 +1,24 @@
|
||||
.\" Copyright (c) 1983 Regents of the University of California.
|
||||
.\" All rights reserved. The Berkeley software License Agreement
|
||||
.\" specifies the terms and conditions for redistribution.
|
||||
.\"
|
||||
.\" @(#)hostid.1 6.2 (Berkeley) 5/5/86
|
||||
.\"
|
||||
.TH HOSTID 1 "May 5, 1986"
|
||||
.UC 5
|
||||
.SH NAME
|
||||
hostid \- set or print identifier of current host system
|
||||
.SH SYNOPSIS
|
||||
.B hostid
|
||||
[ identifier ]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.I hostid
|
||||
command prints the identifier of the current host in hexadecimal.
|
||||
This numeric value is expected to be unique across all hosts and
|
||||
is commonly set to the host's Internet address.
|
||||
The super-user can set the hostid by giving a hexadecimal
|
||||
argument or the hostname;
|
||||
this is usually done in the startup script /etc/rc.local.
|
||||
.SH SEE ALSO
|
||||
gethostid(2), sethostid(2)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user