BSD 4_4 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 10 Oct 1986 04:44:58 +0000 (20:44 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Fri, 10 Oct 1986 04:44:58 +0000 (20:44 -0800)
Work on file usr/src/share/man/tools/TOOLKIT
Work on file usr/src/share/man/tools/M.tabs
Work on file usr/src/share/man/tools/M.folio
Work on file usr/src/share/man/tools/README
Work on file usr/src/share/man/tools/ckcrefs.old
Work on file usr/src/share/man/tools/break
Work on file usr/src/share/man/tools/ckcrefs
Work on file usr/src/share/man/tools/ckfrefs
Work on file usr/src/share/man/tools/cknames
Work on file usr/src/share/man/tools/ckso
Work on file usr/src/share/man/tools/ckspell
Work on file usr/src/share/man/tools/ignore
Work on file usr/src/share/man/tools/list
Work on file usr/src/share/man/tools/mcmp
Work on file usr/src/share/man/tools/mgrep
Work on file usr/src/share/man/tools/pages.c
Work on file usr/src/share/man/tools/mklinks
Work on file usr/src/share/man/tools/mroff
Work on file usr/src/share/man/tools/pgcnt
Work on file usr/src/share/man/tools/prsynops
Work on file usr/src/share/man/tools/prnames
Work on file usr/src/share/man/tools/tocrc
Work on file usr/src/share/man/tools/sp.ignore
Work on file usr/src/share/man/tools/.param
Work on file usr/src/share/man/tools/missing
Work on file usr/src/share/man/tools/noso.c
Work on file usr/src/share/man/tools/newsp.errs
Work on file usr/src/share/man/tools/badcref3

Synthesized-from: CSRG/cd3/4.4

28 files changed:
usr/src/share/man/tools/.param [new file with mode: 0644]
usr/src/share/man/tools/M.folio [new file with mode: 0644]
usr/src/share/man/tools/M.tabs [new file with mode: 0644]
usr/src/share/man/tools/README [new file with mode: 0644]
usr/src/share/man/tools/TOOLKIT [new file with mode: 0644]
usr/src/share/man/tools/badcref3 [new file with mode: 0644]
usr/src/share/man/tools/break [new file with mode: 0644]
usr/src/share/man/tools/ckcrefs [new file with mode: 0755]
usr/src/share/man/tools/ckcrefs.old [new file with mode: 0644]
usr/src/share/man/tools/ckfrefs [new file with mode: 0755]
usr/src/share/man/tools/cknames [new file with mode: 0755]
usr/src/share/man/tools/ckso [new file with mode: 0755]
usr/src/share/man/tools/ckspell [new file with mode: 0755]
usr/src/share/man/tools/ignore [new file with mode: 0755]
usr/src/share/man/tools/list [new file with mode: 0755]
usr/src/share/man/tools/mcmp [new file with mode: 0755]
usr/src/share/man/tools/mgrep [new file with mode: 0755]
usr/src/share/man/tools/missing [new file with mode: 0644]
usr/src/share/man/tools/mklinks [new file with mode: 0644]
usr/src/share/man/tools/mroff [new file with mode: 0755]
usr/src/share/man/tools/newsp.errs [new file with mode: 0644]
usr/src/share/man/tools/noso.c [new file with mode: 0644]
usr/src/share/man/tools/pages.c [new file with mode: 0644]
usr/src/share/man/tools/pgcnt [new file with mode: 0755]
usr/src/share/man/tools/prnames [new file with mode: 0755]
usr/src/share/man/tools/prsynops [new file with mode: 0755]
usr/src/share/man/tools/sp.ignore [new file with mode: 0644]
usr/src/share/man/tools/tocrc [new file with mode: 0755]

diff --git a/usr/src/share/man/tools/.param b/usr/src/share/man/tools/.param
new file mode 100644 (file)
index 0000000..329b82d
--- /dev/null
@@ -0,0 +1,95 @@
+export MANDIR TMPDIR
+export DIRLST FILLST
+export LFLAG PFLAG ID
+
+MANDIR=/usr/man
+TMPDIR=/tmp
+DIRLST=
+FILLST=
+LFLAG=
+PFLAG=
+ID=
+
+shift
+
+while [ $# -gt 0 ]
+do
+       case $1 in
+       -m)
+               shift
+               MANDIR=$1
+               shift
+               ;;
+
+       -t)
+               shift
+               TMPDIR=$1
+               shift
+               ;;
+
+       -d | -l)
+               LFLAG=1
+               shift
+               ;;
+
+       -p)
+               PFLAG=1
+               shift
+               ;;
+
+       -i | -o)
+               shift
+               ID=$1
+               shift
+               ;;
+
+       -s)
+               shift
+               while [ $# -gt 0 ]
+               do
+                       case $1 in
+                       [1-8])
+                               DIRLST="$DIRLST $1"
+                               shift
+                               ;;
+
+                       *)
+                               break
+                               ;;
+                       esac
+               done
+               ;;
+
+       -f)
+               shift
+               while [ $# -gt 0 ]
+               do
+                       case $1 in
+                       -*)
+                               break
+                               ;;
+
+                       *)
+                               FILLST="$FILLST $1"
+                               shift
+                               ;;
+                       esac
+               done
+               ;;
+
+       *)
+               echo $0: unknown option $1
+               exit 2
+               ;;
+       esac
+done
+
+if [ -z "$DIRLST" ]
+then
+       DIRLST="1 2 3 4 5 6 7 8"
+fi
+
+if [ -z "$FILLST" ]
+then
+       FILLST=*.*
+fi
diff --git a/usr/src/share/man/tools/M.folio b/usr/src/share/man/tools/M.folio
new file mode 100644 (file)
index 0000000..5971c93
--- /dev/null
@@ -0,0 +1,249 @@
+'\"    mm -12 M.folio
+.br
+.tl '''May 16, 1980'
+.tl '''T.A.D.'
+.rs
+.sp 3
+.ce
+UNIX User's Manual
+.ce
+Release 3.0
+.tr ~
+.sp 3
+.ce
+.ul
+PRINTING INSTRUCTIONS
+.sp 2
+Print entire manual two-sided; mock-ups of front and back
+cover (together with sizing information), as well as cover
+title and tabs copy are attached.
+.sp
+Total page count (including blank pages) is 704.
+.nf
+.sp 2
+.ce
+.I "FOLIO LIST"
+.sp 2
+.I "Front Matter:"
+.sp
+.ta 5 10 25 34
+.ul
+       No tab:
+               Title page                      ~~~~1*
+               Trademark page                  ~~~~2*
+.FS *
+Pages 1 and 2 are
+.I not
+numbered.
+.I All
+other pages
+.I "that carry any text"
+are numbered.
+.FE
+               Acknowledgements                        ~~~~3
+                    Blank page         ~~~~4
+.sp
+.ul
+       Tab "INTRO":
+               Introduction                    ~~~~5-6 incl.
+               How To Get Started                      ~~~~7-10 incl.
+.sp
+.ul
+       Tab "CONTENTS":
+               Contents                        ~~~~1-9 incl.
+                    Blank page ~~~10
+.sp
+.ul
+       Tab "INDEX":
+               Permuted Index          ~~~~1-32 incl.
+.bp
+.nf
+.ta 18 +12 +18 +12 +18 +12
+.sp 3
+.ul
+Tab "1":
+'\"    Section 1 goes here
+INTRO(1) \ 1 1   DATE(1) \ 1 1     JOIN(1) \ 1 1
+300(1) \ 1 1-2 incl.     DC(1) \ 1 1-2 incl.       KAS(1) \ 1 1
+4014(1) \ 1 1    DD(1) \ 1 1-2 incl.       KILL(1) \ 1 1
+450(1) \ 1 1     DELTA(1) \ 1 1-2 incl.    KUN(1) \ 1 1
+ACCT(1M) \ 1 1-2 incl.   DEROFF(1) \ 1 1   LD(1) \ 1 1-2 incl.
+ACCTCMS(1M) \ 1 1        DEVNM(1M) \ 1 1   LEX(1) \ 1 1-2 incl.
+ACCTCOM(1) \ 1 1-2 incl. DF(1) \ 1 1       LINE(1) \ 1 1
+ACCTCON(1M) \ 1 1        DIFF(1) \ 1 1     LINK(1M) \ 1 1
+ACCTMERG(1M) \ 1 1       DIFF3(1) \ 1 1    LINT(1) \ 1 1-2 incl.
+ACCTPRC(1M) \ 1 1        DIFFMK(1) \ 1 1   LOGIN(1) \ 1 1
+ACCTSH(1M) \ 1 1-2 incl. DIRCMP(1) \ 1 1   LOGNAME(1) \ 1 1
+ADB(1) \ 1 1-6 incl.     DPD(1C) \ 1 1-2 incl.     LORDER(1) \ 1 1
+ADMIN(1) \ 1 1-4 incl.   DPR(1C) \ 1 1     LPR(1) \ 1 1
+AR(1) \ 1 1-2 incl.      DU(1) \ 1 1       LS(1) \ 1 1-2 incl.
+ARCV(1) \ 1 1    DUMP(1M) \ 1 1    M4(1) \ 1 1-3 incl.
+AS.PDP(1) \ 1 1  ECHO(1) \ 1 1     MAIL(1) \ 1 1-2 incl.
+AS.VAX(1) \ 1 1  ED(1) \ 1 1-8 incl.       MAKE(1) \ 1 1-5 incl.
+AWK(1) \ 1 1-3 incl.     EFL(1) \ 1 1-2 incl.      MAN(1) \ 1 1-2 incl.
+BANNER(1) \ 1 1  ENV(1) \ 1 1      MESG(1) \ 1 1
+BASENAME(1) \ 1 1        EQN(1) \ 1 1-2 incl.      MKDIR(1) \ 1 1
+BC(1) \ 1 1-2 incl.      ERRDEAD(1M) \ 1 1 MKFS(1M) \ 1 1-2 incl.
+BCOPY(1M) \ 1 1  ERRDEMON(1M) \ 1 1        MKNOD(1M) \ 1 1
+BDIFF(1) \ 1 1   ERRPT(1M) \ 1 1   MM(1) \ 1 1-2 incl.
+BFS(1) \ 1 1-3 incl.     ERRSTOP(1M) \ 1 1 MMCHEK(1) \ 1 1
+BS(1) \ 1 1-9 incl.      EXPR(1) \ 1 1-2 incl.     MMT(1) \ 1 1
+CAL(1) \ 1 1     F77(1) \ 1 1-2 incl.      MOUNT(1M) \ 1 1
+CALENDAR(1) \ 1 1        FACTOR(1) \ 1 1   MVDIR(1M) \ 1 1
+CAT(1) \ 1 1     FGET(1C) \ 1 1-2 incl.    NCHECK(1M) \ 1 1
+CB(1) \ 1 1      FGET.DEMON(1C) \ 1 1      NEWGRP(1) \ 1 1
+CC(1) \ 1 1-2 incl.      FILE(1) \ 1 1     NEWS(1) \ 1 1
+CD(1) \ 1 1      FIND(1) \ 1 1-2 incl.     NICE(1) \ 1 1
+CDC(1) \ 1 1-2 incl.     FSCK(1M) \ 1 1-2 incl.    NL(1) \ 1 1-2 incl.
+CHMOD(1) \ 1 1   FSCV(1M) \ 1 1    NM(1) \ 1 1
+CHOWN(1) \ 1 1   FSDB(1M) \ 1 1-3 incl.    NOHUP(1) \ 1 1
+CHROOT(1M) \ 1 1 FSEND(1C) \ 1 1-2 incl.   OD(1) \ 1 1
+CLRI(1M) \ 1 1   FWTMP(1M) \ 1 1   ORJESTAT(1C) \ 1 1
+CMP(1) \ 1 1     GCAT(1C) \ 1 1-2 incl.    PACK(1) \ 1 1-2 incl.
+COL(1) \ 1 1     GCOSMAIL(1C) \ 1 1        PASSWD(1) \ 1 1
+COMB(1) \ 1 1    GDEV(1G) \ 1 1    PASTE(1) \ 1 1
+COMM(1) \ 1 1    GED(1G) \ 1 1-6 incl.     PR(1) \ 1 1-2 incl.
+CONFIG(1M) \ 1 1-3 incl. GET(1) \ 1 1-5 incl.      PROF(1) \ 1 1
+CP(1) \ 1 1      GETOPT(1) \ 1 1   PROFILER(1M) \ 1 1
+CPIO(1) \ 1 1-2 incl.    GRAPH(1G) \ 1 1   PRS(1) \ 1 1-3 incl.
+CRASH(1M) \ 1 1-2 incl.  GRAPHICS(1G) \ 1 1        PS(1) \ 1 1-2 incl.
+CREF(1) \ 1 1-2 incl.    GREEK(1) \ 1 1    PTX(1) \ 1 1
+CRON(1M) \ 1 1   GREP(1) \ 1 1-2 incl.     PWCK(1M) \ 1 1
+CRYPT(1) \ 1 1   GUTIL(1G) \ 1 1-2 incl.   PWD(1) \ 1 1
+CSPLIT(1) \ 1 1-2 incl.  HELP(1) \ 1 1     RATFOR(1) \ 1 1
+CT(1C) \ 1 1     HP(1) \ 1 1-2 incl.       REFORM(1) \ 1 1-3 incl.
+CU(1C) \ 1 1-2 incl.     HYPHEN(1) \ 1 1   REGCMP(1) \ 1 1
+CUT(1) \ 1 1     ID(1) \ 1 1       RESTOR(1M) \ 1 1-2 incl.
+CW(1) \ 1 1-3 incl.      INSTALL(1M) \ 1 1 RJESTAT(1C) \ 1 1
+RM(1) \ 1 1      SU(1) \ 1 1       UNIQ(1) \ 1 1
+RMDEL(1) \ 1 1   SUM(1) \ 1 1      UNITS(1) \ 1 1
+RSH(1) \ 1 1     SYNC(1M) \ 1 1    UUCLEAN(1M) \ 1 1
+RUNACCT(1M) \ 1 1-2 incl.        SYSDEF(1M) \ 1 1  UUCP(1C) \ 1 1-2 incl.
+SACT(1) \ 1 1    TABS(1) \ 1 1-2 incl.     UUSTAT(1C) \ 1 1-2 incl.
+SAG(1M) \ 1 1    TAIL(1) \ 1 1     UUSUB(1M) \ 1 1
+SCC(1) \ 1 1     TAR(1) \ 1 1-2 incl.      UUTO(1C) \ 1 1
+SCCSDIFF(1) \ 1 1        TBL(1) \ 1 1-2 incl.      UUX(1C) \ 1 1
+SDB(1) \ 1 1-4 incl.     TC(1) \ 1 1       VAL(1) \ 1 1-2 incl.
+SDIFF(1) \ 1 1   TEE(1) \ 1 1      VC(1) \ 1 1-3 incl.
+SED(1) \ 1 1-3 incl.     TEST(1) \ 1 1     VLX(1M) \ 1 1
+SEND(1C) \ 1 1-6 incl.   TIME(1) \ 1 1     VOLCOPY(1M) \ 1 1
+SETMNT(1M) \ 1 1 TIMEX(1) \ 1 1    VPMC(1C) \ 1 1-10 incl.
+SH(1) \ 1 1-7 incl.      TOC(1G) \ 1 1-2 incl.     VPMSTART(1C) \ 1 1
+SHUTDOWN(1M) \ 1 1       TOUCH(1) \ 1 1    VPR(1) \ 1 1
+SIZE(1) \ 1 1    TP(1) \ 1 1-2 incl.       WAIT(1) \ 1 1
+SLEEP(1) \ 1 1   TPLOT(1G) \ 1 1   WALL(1M) \ 1 1
+SNO(1) \ 1 1     TR(1) \ 1 1       WC(1) \ 1 1
+SORT(1) \ 1 1-2 incl.    TROFF(1) \ 1 1-2 incl.    WHAT(1) \ 1 1
+SPELL(1) \ 1 1   TRUE(1) \ 1 1     WHO(1) \ 1 1
+SPLINE(1G) \ 1 1 TSORT(1) \ 1 1    WHODO(1M) \ 1 1
+SPLIT(1) \ 1 1   TTY(1) \ 1 1      WRITE(1) \ 1 1
+ST(1M) \ 1 1     TYPO(1) \ 1 1     XARGS(1) \ 1 1-2 incl.
+STAT(1G) \ 1 1-3 incl.   UMASK(1) \ 1 1    XREF(1) \ 1 1
+STRIP(1) \ 1 1   UNAME(1) \ 1 1    YACC(1) \ 1 1
+STTY(1) \ 1 1-3 incl.    UNGET(1) \ 1 1
+.sp 3
+.ul
+Tab "2":
+'\"    Section 2 goes here
+INTRO(2) \ 1 1-5 incl.   GETPID(2) \ 1 1   SETUID(2) \ 1 1
+ACCESS(2) \ 1 1  GETUID(2) \ 1 1   SIGNAL(2) \ 1 1-3 incl.
+ACCT(2) \ 1 1    IOCTL(2) \ 1 1    STAT(2) \ 1 1-2 incl.
+ALARM(2) \ 1 1   KILL(2) \ 1 1     STIME(2) \ 1 1
+BRK(2) \ 1 1     LINK(2) \ 1 1     SYNC(2) \ 1 1
+CHDIR(2) \ 1 1   LSEEK(2) \ 1 1    TIME(2) \ 1 1
+CHMOD(2) \ 1 1   MKNOD(2) \ 1 1-2 incl.    TIMES(2) \ 1 1
+CHOWN(2) \ 1 1   MOUNT(2) \ 1 1    ULIMIT(2) \ 1 1
+CHROOT(2) \ 1 1  NICE(2) \ 1 1     UMASK(2) \ 1 1
+CLOSE(2) \ 1 1   OPEN(2) \ 1 1-2 incl.     UMOUNT(2) \ 1 1
+CREAT(2) \ 1 1   PAUSE(2) \ 1 1    UNAME(2) \ 1 1
+DUP(2) \ 1 1     PIPE(2) \ 1 1     UNLINK(2) \ 1 1
+EXEC(2) \ 1 1-2 incl.    PROFIL(2) \ 1 1   USTAT(2) \ 1 1
+EXIT(2) \ 1 1    PTRACE(2) \ 1 1-2 incl.   UTIME(2) \ 1 1
+FCNTL(2) \ 1 1   READ(2) \ 1 1     WAIT(2) \ 1 1
+FORK(2) \ 1 1    SETPGRP(2) \ 1 1  WRITE(2) \ 1 1
+                               Blank page \ 1 1
+.sp 3
+.bp
+.ul
+Tab "3":
+'\"    Section 3 goes here
+INTRO(3) \ 1 1   FREXP(3C) \ 1 1   PRINTF(3S) \ 1 1-3 incl.
+A64L(3C) \ 1 1   FSEEK(3S) \ 1 1   PUTC(3S) \ 1 1
+ABORT(3C) \ 1 1  GAMMA(3M) \ 1 1   PUTPWENT(3C) \ 1 1
+ABS(3C) \ 1 1    GETC(3S) \ 1 1    PUTS(3S) \ 1 1
+ASSERT(3X) \ 1 1 GETENV(3C) \ 1 1  QSORT(3C) \ 1 1
+ATOF(3C) \ 1 1   GETGRENT(3C) \ 1 1        RAND(3C) \ 1 1
+BESSEL(3M) \ 1 1 GETLOGIN(3C) \ 1 1        REGEX(3X) \ 1 1-2 incl.
+BSEARCH(3C) \ 1 1        GETOPT(3C) \ 1 1-2 incl.  SCANF(3S) \ 1 1-3 incl.
+CONV(3C) \ 1 1   GETPASS(3C) \ 1 1 SETBUF(3S) \ 1 1
+CRYPT(3C) \ 1 1  GETPW(3C) \ 1 1   SETJMP(3C) \ 1 1
+CTERMID(3S) \ 1 1        GETPWENT(3C) \ 1 1        SINH(3M) \ 1 1
+CTIME(3C) \ 1 1-2 incl.  GETS(3S) \ 1 1    SLEEP(3C) \ 1 1
+CTYPE(3C) \ 1 1  HYPOT(3M) \ 1 1   SSIGNAL(3C) \ 1 1
+CUSERID(3S) \ 1 1        L3TOL(3C) \ 1 1   STDIO(3S) \ 1 1
+ECVT(3C) \ 1 1   LOGNAME(3X) \ 1 1 STRING(3C) \ 1 1-2 incl.
+END(3C) \ 1 1    LSEARCH(3C) \ 1 1 SWAB(3C) \ 1 1
+EXP(3M) \ 1 1    MALLOC(3C) \ 1 1  SYSTEM(3S) \ 1 1
+FCLOSE(3S) \ 1 1 MKTEMP(3C) \ 1 1  TMPFILE(3S) \ 1 1
+FERROR(3S) \ 1 1 MONITOR(3C) \ 1 1 TMPNAM(3S) \ 1 1
+FLOOR(3M) \ 1 1  NLIST(3C) \ 1 1   TRIG(3M) \ 1 1
+FOPEN(3S) \ 1 1  PERROR(3C) \ 1 1  TTYNAME(3C) \ 1 1
+FPTRAP(3X) \ 1 1 PLOT(3X) \ 1 1    UNGETC(3S) \ 1 1
+FREAD(3S) \ 1 1  POPEN(3S) \ 1 1
+.sp 3
+.ul
+Tab "4":
+'\"    Section 4 goes here
+INTRO(4) \ 1 1   HS(4) \ 1 1       RK(4) \ 1 1
+CAT(4) \ 1 1     HT(4) \ 1 1       RL(4) \ 1 1
+DJ(4) \ 1 1      KL(4) \ 1 1       RP(4) \ 1 1
+DMC(4) \ 1 1     KMC(4) \ 1 1      ST(4) \ 1 1
+DN(4) \ 1 1      LP(4) \ 1 1       TM(4) \ 1 1
+DQS(4) \ 1 1-2 incl.     MEM(4) \ 1 1      TRACE(4) \ 1 1
+DU(4) \ 1 1      NULL(4) \ 1 1     TTY(4) \ 1 1-8 incl.
+DZ(4) \ 1 1      PCL(4) \ 1 1      VP(4) \ 1 1
+ERR(4) \ 1 1     PRF(4) \ 1 1      VPM(4) \ 1 1-2 incl.
+HP(4) \ 1 1      RF(4) \ 1 1
+.sp 3
+.ul
+Tab "5":
+'\"    Section 5 goes here
+INTRO(5) \ 1 1   ERRFILE(5) \ 1 1-2 incl.  MNTTAB(5) \ 1 1
+A.OUT(5) \ 1 1-4 incl.   FS(5) \ 1 1-2 incl.       PASSWD(5) \ 1 1
+ACCT(5) \ 1 1-2 incl.    FSPEC(5) \ 1 1    PLOT(5) \ 1 1
+AR(5) \ 1 1      GPS(5) \ 1 1-2 incl.      PNCH(5) \ 1 1
+CHECKLIST(5) \ 1 1       GROUP(5) \ 1 1    PROFILE(5) \ 1 1
+CORE(5) \ 1 1    INITTAB(5) \ 1 1  SCCSFILE(5) \ 1 1-3 incl.
+CPIO(5) \ 1 1    INODE(5) \ 1 1    TP(5) \ 1 1
+DIR(5) \ 1 1     MASTER(5) \ 1 1-2 incl.   UTMP(5) \ 1 1
+DUMP(5) \ 1 1-2 incl.
+.sp 3
+.bp
+.ul
+Tab "6":
+'\"    Section 6 goes here
+INTRO(6) \ 1 1   CRAPS(6) \ 1 1-2 incl.    REVERSI(6) \ 1 1
+ARITHMETIC(6) \ 1 1      HANGMAN(6) \ 1 1  SKY(6) \ 1 1
+BACK(6) \ 1 1    MAZE(6) \ 1 1     TTT(6) \ 1 1
+BJ(6) \ 1 1      MOO(6) \ 1 1      WUMP(6) \ 1 1
+CHESS(6) \ 1 1   QUIZ(6) \ 1 1     Blank page \ 1 1
+.sp 3
+.ul
+Tab "7":
+'\"    Section 7 goes here
+INTRO(7) \ 1 1   GREEK(7) \ 1 1    REGEXP(7) \ 1 1-3 incl.
+ASCII(7) \ 1 1   MAN(7) \ 1 1-2 incl.      STAT(7) \ 1 1
+ENVIRON(7) \ 1 1 MM(7) \ 1 1       TERM(7) \ 1 1
+EQNCHAR(7) \ 1 1 MV(7) \ 1 1       TYPES(7) \ 1 1
+FCNTL(7) \ 1 1
+.sp 3
+.ul
+Tab "8":
+'\"    Section 8 goes here
+INTRO(8) \ 1 1   HASP(8) \ 1 1-6 incl.     RP6FMT(8) \ 1 1
+70BOOT(8) \ 1 1-4 incl.  INIT(8) \ 1 1-2 incl.     SAR(8) \ 1 1
+CRASH(8) \ 1 1-3 incl.   MAKEKEY(8) \ 1 1  TAPEBOOT(8) \ 1 1
+DISKBOOT(8) \ 1 1        MK(8) \ 1 1-2 incl.       UNIXBOOT(8) \ 1 1
+ETP(8) \ 1 1     RC(8) \ 1 1       UVAC(8) \ 1 1
+FILESAVE(8) \ 1 1        RJE(8) \ 1 1-4 incl.      VAXOPS(8) \ 1 1-4 incl.
+GETTY(8) \ 1 1   ROMBOOT(8) \ 1 1-2 incl.  Blank page \ 1 1
diff --git a/usr/src/share/man/tools/M.tabs b/usr/src/share/man/tools/M.tabs
new file mode 100644 (file)
index 0000000..abcaeaf
--- /dev/null
@@ -0,0 +1,68 @@
+'\"    troff -g M.tabs | gcat -ftabs&
+.fp 2 CW
+.de h
+.ps 6
+.vs 6p
+.tl '___''___'
+.vs
+.ps
+..
+.wh 0 h
+.ss 18
+.nf
+.rs
+.ft 3
+.ps 24
+.vs 33p
+.sp 1i
+.ce 4
+U\s-6NIX\s+6
+User's Manual
+.sp 1i
+U\s-6NIX\s+6
+User's Manual
+.bp
+.rs
+.ft 2
+.ps 10
+.vs 11p
+.ta 3i
+.sp 1i
+I      I
+N      N
+T      T
+R      R
+O      O
+.sp 27p
+C      C
+O      O
+N      N
+T      T
+E      E
+N      N
+T      T
+S      S
+.sp 27p
+I      I
+N      N
+D      D
+E      E
+X      X
+.sp 27p
+.ps 12
+.vs 13p
+1      1
+.sp 27p
+2      2
+.sp 27p
+3      3
+.sp 27p
+4      4
+.sp 27p
+5      5
+.sp 27p
+6      6
+.sp 27p
+7      7
+.sp 27p
+8      8
diff --git a/usr/src/share/man/tools/README b/usr/src/share/man/tools/README
new file mode 100644 (file)
index 0000000..ac139a1
--- /dev/null
@@ -0,0 +1,198 @@
+This directory contains 14 shell procedures designed to carry out
+various verification and regeneration tasks on the UNIX User's
+Manual.  The outputs of all procedures are left in files in
+/_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp; `tocrc (see below) also leaves output in
+/_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn_\b0.  By default, these procedures operate on all 8
+sections of the manual.  The options `-s' and `-f' are available
+(except in `mgrep' and `tocrc') to restrict the list of sections
+and/or files to be used.  For example:
+
+          ckspell -s 1 2 3 -f a\*
+
+will check spelling in all files whose names begin with `a' in
+Sections 1-3.  Two additional options, `-m' and `-t', can be used
+to change the shell procedures' idea of where the manual and its
+`tmp' directory reside.  For example:
+
+          list -m /usr/aman -t /usr/aman/tmp
+
+might be meaningful if, for instance, an alternate manual is
+located in /_\bu_\bs_\br/_\ba_\bm_\ba_\bn.  These options are also useful when a new
+manual is being built in a secluded place.
+
+Note that some of the shell procedures produce 8 result files,
+one for each section of the manual.  In particular, the 4 shell
+procedures prefaced with `ck', which perform different types of
+verification, produce a unique sorted list for each section, as
+opposed to a file-by-file list.  This means that one must search
+all the files in a section (using `grep', most likely) for
+occurrences of a particular string.
+
+Occasionally, some of these procedures will produce lines of
+spurious output.  This happens when, for instance, some text
+looks like a cross-reference or a file name, e.g., `array(3)' or
+`nroff/troff'.
+
+The following describes these 14 procedures:
+
+1.  ckcrefs
+    Locates all cross-references to other manual entries and
+    checks to see whether the referenced pages exist.  Produces
+    files _\bb_\ba_\bd_\bc_\br_\be_\bf[_\b1-_\b8] containing all bad cross-references in
+    each section.  Also produces files _\bl_\bo_\bw_\be_\br._\bs_\bu_\bf[_\b1-_\b8], containing
+    occurrences of lower-case section suffixes, i.e., 1c, 1m, 3c,
+    which should be changed to upper-case (1C, 1M, 3C, etc.).
+
+2.  ckfrefs
+    Locates all references in the FILES portion of manual entries
+    and checks to see whether the referenced files exist in the
+    running system.  Produces files _\bb_\ba_\bd_\bf_\br_\be_\bf[_\b1-_\b8] containing
+    references to non-existent files.  Note that file references
+    under headings other than FILES are _\bn_\bo_\bt checked.  Temporary
+    files will, of course, not be found.
+
+3.  cknames
+    Performs various checks on the `.TH' line and the NAME
+    section of entries.  Note that the files produced by this
+    procedure contain the file names of entries that fail the
+    corresponding check:
+
+        Checks to see that the entry contains a `.SH NAME'
+        section, producing files _\bn_\bo._\bN_\bA_\bM_\bE[_\b1-_\b8].
+
+        Checks the NAME section of the entry to insure that it is
+        exactly one line long (multi-line NAMEs will severely
+        confuse `tocrc'), producing files _\bn_\bo_\bt._\bo_\bn_\be._\bl_\bi_\bn_\be[_\b1-_\b8].
+
+        Checks to see that the entry contains a `.TH' line,
+        producing files _\bn_\bo._\bT_\bH[_\b1-_\b8].
+
+        Checks that the entry name and section given on the TH
+        line match the file name of that entry.  For example, a
+        file containing `.TH GURP 1M' should be called `gurp.1m'.
+        Produces files _\bf_\bi_\bl_\be._\bm_\ba_\bt_\bc_\bh[_\b1-_\b8].
+
+        Checks that the first name appearing on the NAME line is
+        the same as the entry name on the TH line (`ckso' below
+        assumes that this is always true).  Produces files
+        _\bn_\ba_\bm_\be._\bo_\br_\bd_\be_\br[_\b1-_\b8].
+
+4.  ckso
+    This procedure performs two types of verification of _\bn_\br_\bo_\bf_\bf
+    `.so' pointers in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn[_\b1-_\b8].  It first locates files
+    that contain only a `.so' reference to a real entry, and
+    checks to see whether that file (entry) exists.  Bad
+    references are written to the files _\bb_\ba_\bd_\bs_\bo[_\b1-_\b8].  Secondly,
+    `ckso' verifies the reverse; it locates each real entry,
+    looks at the NAME portion to see whether more than one name
+    appears there, and checks whether a file with a `.so'
+    reference exists for all such names other than the first.
+    Missing `.so' entries are written to the files _\bn_\be_\be_\bd_\bs_\bo[_\b1-_\b8].
+
+5.  ckspell
+    Utilizes _\bs_\bp_\be_\bl_\bl to check for spelling errors in manual
+    entries.  Produces file _\bs_\bp._\be_\br_\br_\bs containing a section-by-
+    section list of errors.  Uses file /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bo_\bo_\bl_\bs/_\bs_\bp._\bi_\bg_\bn_\bo_\br_\be
+    to eliminate strings that appear often in the manual and are
+    normally flagged as errors by `spell'.
+
+6.  list
+    Produces file _\bl_\bi_\bs_\bt containing a `long' listing with block
+    counts (`ls -ls') for each section of the manual.
+
+7.  mcmp
+    Compares two versions of the manual and reports what files
+    are unique to each and whether or not the common files have
+    changed.  If the `-d' option is given, _\bd_\bi_\bf_\bf-style listings
+    are generated for each common file instead.  The `-o' option
+    is used to specify the name of the second manual directory;
+    /_\bu_\bs_\br/_\bn_\bm_\ba_\bn is the default.  Produces files _\bc_\bm_\bp[_\b1-_\b8] or
+    _\bd_\bi_\bf_\bf[_\b1-_\b8].
+
+8.  mgrep
+    Searches entire manual for the patterns specified as
+    arguments (i.e., `mgrep "typewriter"').  Produces file _\bg_\br_\be_\bp_\bs,
+    containing section-by-section list for each pattern.
+
+9.  mklinks
+    Creates files containing appropriate `.so' links to major
+    entries where necessary.  These links point to their own
+    directory; don't run this procedure anywhere else than in
+    /_\bu_\bs_\br/_\bm_\ba_\bn.  Should resolve all errors noted in _\bn_\be_\be_\bd_\bs_\bo[_\b1-_\b8]
+    (see `ckso' above).
+
+10. mroff
+    Utilizes the _\bm_\ba_\bn command to _\bt_\br_\bo_\bf_\bf and typeset manual entries.
+    The `-p' (yes, `-p'!) option is used to produce entries in a
+    6x9 inch format, as opposed to the default 8.5x11.  Produces
+    files _\bm_\bl_\bo_\bg[_\b1-_\b8] containing logs of the files that were
+    processed.  _\bM_\br_\bo_\bf_\bf ignores files that contain only a `.so'
+    line.
+
+11. pgcnt
+    Produces files _\bp_\ba_\bg_\be_\bs[_\b1-_\b8] containing page counts for each
+    entry.  Also produces _\bt_\bo_\bt_\ba_\bl_\bp_\bg_\bs containing totals for each
+    section and a grand total.  The `-p' option should be used to
+    count pages in the small format (see `mroff' above).  Uses
+    the C program _\bp_\ba_\bg_\be_\bs (compiled from _\bp_\ba_\bg_\be_\bs._\bc).
+
+12. prnames
+    Produces files _\bn_\ba_\bm_\be_\bs[_\b1-_\b8] containing the NAME portion of each
+    entry.
+
+13. prsynops
+    Produces files _\bs_\by_\bn_\bo_\bp_\bs[_\b1-_\b8] containing the SYNOPSIS portion of
+    each entry.  A question mark means that the entry has no
+    SYNOPSIS portion.
+
+14. tocrc
+    Regenerates input for Table of Contents and Permuted Index.
+    Use `tocrc all' to regenerate both from scratch, `tocrc t' to
+    regenerate both from existing input files _\bt_\bo_\bc_\bx[_\b1-_\b8] in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp, or `tocrc [1-8]' to create, in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp,
+    the corresponding input file _\bt_\bo_\bc_\bx[_\b1-_\b8].  The `-p' option
+    should be used when preparing the table of contents and/or
+    index in the small (6x9 inch) format (this option, if
+    present, _\bm_\bu_\bs_\bt be the first argument to `tocrc').  See
+    description in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bR_\bE_\bA_\bD._\bM_\bE of the files in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn_\b0.  Uses files _\bb_\br_\be_\ba_\bk and _\bi_\bg_\bn_\bo_\br_\be in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bo_\bo_\bl_\bs.
+
+The file ._\bp_\ba_\br_\ba_\bm is described in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bR_\bE_\bA_\bD._\bM_\bE.  The files
+_\bM._\bf_\bo_\bl_\bi_\bo and _\bM._\bt_\ba_\bb_\bs are self-explanatory.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/usr/src/share/man/tools/TOOLKIT b/usr/src/share/man/tools/TOOLKIT
new file mode 100644 (file)
index 0000000..ac139a1
--- /dev/null
@@ -0,0 +1,198 @@
+This directory contains 14 shell procedures designed to carry out
+various verification and regeneration tasks on the UNIX User's
+Manual.  The outputs of all procedures are left in files in
+/_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp; `tocrc (see below) also leaves output in
+/_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn_\b0.  By default, these procedures operate on all 8
+sections of the manual.  The options `-s' and `-f' are available
+(except in `mgrep' and `tocrc') to restrict the list of sections
+and/or files to be used.  For example:
+
+          ckspell -s 1 2 3 -f a\*
+
+will check spelling in all files whose names begin with `a' in
+Sections 1-3.  Two additional options, `-m' and `-t', can be used
+to change the shell procedures' idea of where the manual and its
+`tmp' directory reside.  For example:
+
+          list -m /usr/aman -t /usr/aman/tmp
+
+might be meaningful if, for instance, an alternate manual is
+located in /_\bu_\bs_\br/_\ba_\bm_\ba_\bn.  These options are also useful when a new
+manual is being built in a secluded place.
+
+Note that some of the shell procedures produce 8 result files,
+one for each section of the manual.  In particular, the 4 shell
+procedures prefaced with `ck', which perform different types of
+verification, produce a unique sorted list for each section, as
+opposed to a file-by-file list.  This means that one must search
+all the files in a section (using `grep', most likely) for
+occurrences of a particular string.
+
+Occasionally, some of these procedures will produce lines of
+spurious output.  This happens when, for instance, some text
+looks like a cross-reference or a file name, e.g., `array(3)' or
+`nroff/troff'.
+
+The following describes these 14 procedures:
+
+1.  ckcrefs
+    Locates all cross-references to other manual entries and
+    checks to see whether the referenced pages exist.  Produces
+    files _\bb_\ba_\bd_\bc_\br_\be_\bf[_\b1-_\b8] containing all bad cross-references in
+    each section.  Also produces files _\bl_\bo_\bw_\be_\br._\bs_\bu_\bf[_\b1-_\b8], containing
+    occurrences of lower-case section suffixes, i.e., 1c, 1m, 3c,
+    which should be changed to upper-case (1C, 1M, 3C, etc.).
+
+2.  ckfrefs
+    Locates all references in the FILES portion of manual entries
+    and checks to see whether the referenced files exist in the
+    running system.  Produces files _\bb_\ba_\bd_\bf_\br_\be_\bf[_\b1-_\b8] containing
+    references to non-existent files.  Note that file references
+    under headings other than FILES are _\bn_\bo_\bt checked.  Temporary
+    files will, of course, not be found.
+
+3.  cknames
+    Performs various checks on the `.TH' line and the NAME
+    section of entries.  Note that the files produced by this
+    procedure contain the file names of entries that fail the
+    corresponding check:
+
+        Checks to see that the entry contains a `.SH NAME'
+        section, producing files _\bn_\bo._\bN_\bA_\bM_\bE[_\b1-_\b8].
+
+        Checks the NAME section of the entry to insure that it is
+        exactly one line long (multi-line NAMEs will severely
+        confuse `tocrc'), producing files _\bn_\bo_\bt._\bo_\bn_\be._\bl_\bi_\bn_\be[_\b1-_\b8].
+
+        Checks to see that the entry contains a `.TH' line,
+        producing files _\bn_\bo._\bT_\bH[_\b1-_\b8].
+
+        Checks that the entry name and section given on the TH
+        line match the file name of that entry.  For example, a
+        file containing `.TH GURP 1M' should be called `gurp.1m'.
+        Produces files _\bf_\bi_\bl_\be._\bm_\ba_\bt_\bc_\bh[_\b1-_\b8].
+
+        Checks that the first name appearing on the NAME line is
+        the same as the entry name on the TH line (`ckso' below
+        assumes that this is always true).  Produces files
+        _\bn_\ba_\bm_\be._\bo_\br_\bd_\be_\br[_\b1-_\b8].
+
+4.  ckso
+    This procedure performs two types of verification of _\bn_\br_\bo_\bf_\bf
+    `.so' pointers in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn[_\b1-_\b8].  It first locates files
+    that contain only a `.so' reference to a real entry, and
+    checks to see whether that file (entry) exists.  Bad
+    references are written to the files _\bb_\ba_\bd_\bs_\bo[_\b1-_\b8].  Secondly,
+    `ckso' verifies the reverse; it locates each real entry,
+    looks at the NAME portion to see whether more than one name
+    appears there, and checks whether a file with a `.so'
+    reference exists for all such names other than the first.
+    Missing `.so' entries are written to the files _\bn_\be_\be_\bd_\bs_\bo[_\b1-_\b8].
+
+5.  ckspell
+    Utilizes _\bs_\bp_\be_\bl_\bl to check for spelling errors in manual
+    entries.  Produces file _\bs_\bp._\be_\br_\br_\bs containing a section-by-
+    section list of errors.  Uses file /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bo_\bo_\bl_\bs/_\bs_\bp._\bi_\bg_\bn_\bo_\br_\be
+    to eliminate strings that appear often in the manual and are
+    normally flagged as errors by `spell'.
+
+6.  list
+    Produces file _\bl_\bi_\bs_\bt containing a `long' listing with block
+    counts (`ls -ls') for each section of the manual.
+
+7.  mcmp
+    Compares two versions of the manual and reports what files
+    are unique to each and whether or not the common files have
+    changed.  If the `-d' option is given, _\bd_\bi_\bf_\bf-style listings
+    are generated for each common file instead.  The `-o' option
+    is used to specify the name of the second manual directory;
+    /_\bu_\bs_\br/_\bn_\bm_\ba_\bn is the default.  Produces files _\bc_\bm_\bp[_\b1-_\b8] or
+    _\bd_\bi_\bf_\bf[_\b1-_\b8].
+
+8.  mgrep
+    Searches entire manual for the patterns specified as
+    arguments (i.e., `mgrep "typewriter"').  Produces file _\bg_\br_\be_\bp_\bs,
+    containing section-by-section list for each pattern.
+
+9.  mklinks
+    Creates files containing appropriate `.so' links to major
+    entries where necessary.  These links point to their own
+    directory; don't run this procedure anywhere else than in
+    /_\bu_\bs_\br/_\bm_\ba_\bn.  Should resolve all errors noted in _\bn_\be_\be_\bd_\bs_\bo[_\b1-_\b8]
+    (see `ckso' above).
+
+10. mroff
+    Utilizes the _\bm_\ba_\bn command to _\bt_\br_\bo_\bf_\bf and typeset manual entries.
+    The `-p' (yes, `-p'!) option is used to produce entries in a
+    6x9 inch format, as opposed to the default 8.5x11.  Produces
+    files _\bm_\bl_\bo_\bg[_\b1-_\b8] containing logs of the files that were
+    processed.  _\bM_\br_\bo_\bf_\bf ignores files that contain only a `.so'
+    line.
+
+11. pgcnt
+    Produces files _\bp_\ba_\bg_\be_\bs[_\b1-_\b8] containing page counts for each
+    entry.  Also produces _\bt_\bo_\bt_\ba_\bl_\bp_\bg_\bs containing totals for each
+    section and a grand total.  The `-p' option should be used to
+    count pages in the small format (see `mroff' above).  Uses
+    the C program _\bp_\ba_\bg_\be_\bs (compiled from _\bp_\ba_\bg_\be_\bs._\bc).
+
+12. prnames
+    Produces files _\bn_\ba_\bm_\be_\bs[_\b1-_\b8] containing the NAME portion of each
+    entry.
+
+13. prsynops
+    Produces files _\bs_\by_\bn_\bo_\bp_\bs[_\b1-_\b8] containing the SYNOPSIS portion of
+    each entry.  A question mark means that the entry has no
+    SYNOPSIS portion.
+
+14. tocrc
+    Regenerates input for Table of Contents and Permuted Index.
+    Use `tocrc all' to regenerate both from scratch, `tocrc t' to
+    regenerate both from existing input files _\bt_\bo_\bc_\bx[_\b1-_\b8] in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp, or `tocrc [1-8]' to create, in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bm_\bp,
+    the corresponding input file _\bt_\bo_\bc_\bx[_\b1-_\b8].  The `-p' option
+    should be used when preparing the table of contents and/or
+    index in the small (6x9 inch) format (this option, if
+    present, _\bm_\bu_\bs_\bt be the first argument to `tocrc').  See
+    description in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bR_\bE_\bA_\bD._\bM_\bE of the files in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bm_\ba_\bn_\b0.  Uses files _\bb_\br_\be_\ba_\bk and _\bi_\bg_\bn_\bo_\br_\be in
+    /_\bu_\bs_\br/_\bm_\ba_\bn/_\bt_\bo_\bo_\bl_\bs.
+
+The file ._\bp_\ba_\br_\ba_\bm is described in /_\bu_\bs_\br/_\bm_\ba_\bn/_\bR_\bE_\bA_\bD._\bM_\bE.  The files
+_\bM._\bf_\bo_\bl_\bi_\bo and _\bM._\bt_\ba_\bb_\bs are self-explanatory.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/usr/src/share/man/tools/badcref3 b/usr/src/share/man/tools/badcref3
new file mode 100644 (file)
index 0000000..b66e285
--- /dev/null
@@ -0,0 +1,55 @@
+Thu Jul 28 15:27:15 PDT 1983
+
+040(8)
+Execve(2)
+Fopen(3S)
+Fseek(3S)
+fIfcntlfP(2)
+fIfflushfP(3)
+fIsetitimerfP(2)
+fIsetrlimitfP(2)
+access(3F)
+exec(2)
+fclose(3s /usr/man/man3/ferror.3s /usr/man/man3/fread.3s /usr/man/man3/fseek.3S)
+fclose(3)
+fdate(3F)
+fflush(3S)
+filsys(5)
+fopen(3S)
+fork(3F)
+getchar(3)
+getenv(3F)
+gethostent(3N)
+getnetent(3N)
+getprotoent(3N)
+getpw(3)
+getpwuid(3)
+iarray(3)
+idate(3F)
+itime(3F)
+kill(3F)
+library(3M)
+link(3F)
+ltime(3F)
+moncontrol(1)
+perror(3F)
+plot(1)
+popen(3S)
+printf(3)
+rand(3)
+rewind(1)
+sigmask(2)
+signal(2)
+signal(3)
+signal(3F)
+sleep(3F)
+stdio(3)
+stty(3)
+system(3F)
+tarray(2)
+time(2)
+time(3)
+time(3F)
+times(2)
+unlink(3F)
+wait(3F)
diff --git a/usr/src/share/man/tools/break b/usr/src/share/man/tools/break
new file mode 100644 (file)
index 0000000..4ae5b8c
--- /dev/null
@@ -0,0 +1,3 @@
+\a
+;
+:
diff --git a/usr/src/share/man/tools/ckcrefs b/usr/src/share/man/tools/ckcrefs
new file mode 100755 (executable)
index 0000000..295c070
--- /dev/null
@@ -0,0 +1,78 @@
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       > $TMPDIR/cref$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*$//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               grep ".*([1-8][cmsgxjvCMSGXJV]*)" $file >> $TMPDIR/cref$dir
+       done
+
+       cd $TMPDIR
+       echo "   ," >> cref$dir
+       date > lower.suf$dir
+       echo >> lower.suf$dir
+       date > badcref$dir
+       echo >> badcref$dir
+       ed - cref$dir >> lower.suf$dir <<!
+               g/ *\(([1-8][CMSGXJVcmsgxjv]*)\)/s//\1/
+               1,\$s/ /\\
+/g
+               1,\$s/  /\\
+/g
+               1,\$s/,/\\
+/g
+               v/(/d
+               g/\\\\\^/s///
+               g/\\\\\|/s///
+               g/([1-8][cgmsxjv])/p
+               g//d
+               g/^(/d
+               g/(/s//./
+               g/^\./d
+               g/C).*/s//c/
+               g/G).*/s//g/
+               g/M).*/s//m/
+               g/S).*/s//s/
+               g/X).*/s//x/
+               g/J).*/s//j/
+               g/V).*/s//v/
+               g/).*/s///
+               w
+               q
+!
+       sort -i cref$dir | uniq > tmp.$$
+       while read cref
+       do
+               sect=`echo $cref | sed "s/.*\.\(.\).*/\1/"`
+               try=`ls $MANDIR/man$sect/$cref 2>&1`
+               if test "$try" = "$MANDIR/man$sect/$cref"
+               then
+                       continue
+               else
+                       echo $try | sed -e "s;$MANDIR/man..;;" -e "s; not found;;" >> badcref$dir
+               fi
+       done < tmp.$$
+       ed - badcref$dir <<!
+               g/\.\([1-8]\)/s//(\1/
+               g/c$/s//C)/
+               g/m$/s//M)/
+               g/s$/s//S)/
+               g/g$/s//G)/
+               g/x$/s//X)/
+               g/j$/s//J)/
+               g/v$/s//V)/
+               g/[^)]$/s/$/)/
+               1s/.$//
+               w
+               q
+!
+       rm -f tmp.$$ cref$dir
+done
diff --git a/usr/src/share/man/tools/ckcrefs.old b/usr/src/share/man/tools/ckcrefs.old
new file mode 100644 (file)
index 0000000..4996d9b
--- /dev/null
@@ -0,0 +1,79 @@
+set x $*
+set -x
+. ./.param
+
+for dir in $DIRLST
+do
+       > $TMPDIR/cref$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*$//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               grep ".*([1-8][cmsgxjvCMSGXJV]\{0,1\})" $file >> $TMPDIR/cref$dir
+       done
+
+       cd $TMPDIR
+       echo "   ," >> cref$dir
+       date > lower.suf$dir
+       echo >> lower.suf$dir
+       date > badcref$dir
+       echo >> badcref$dir
+       ed - cref$dir >> lower.suf$dir <<!
+               g/ *\(([1-8][CMSGXJVcmsgxjv]\{0,1\})\)/s//\1/
+               1,\$s/ /\\
+/g
+               1,\$s/  /\\
+/g
+               1,\$s/,/\\
+/g
+               v/(/d
+               g/\\\\\^/s///
+               g/\\\\\|/s///
+               g/([1-8][cgmsxjv])/p
+               g//d
+               g/^(/d
+               g/(/s//./
+               g/^\./d
+               g/C).*/s//c/
+               g/G).*/s//g/
+               g/M).*/s//m/
+               g/S).*/s//s/
+               g/X).*/s//x/
+               g/J).*/s//j/
+               g/V).*/s//v/
+               g/).*/s///
+               w
+               q
+!
+       sort -i cref$dir | uniq > tmp.$$
+       while read cref
+       do
+               sect=`echo $cref | sed "s/.*\.\(.\).*/\1/"`
+               try=`ls $MANDIR/man$sect/$cref 2>&1`
+               if test "$try" = "$MANDIR/man$sect/$cref"
+               then
+                       continue
+               else
+                       echo $try | sed -e "s;$MANDIR/man..;;" -e "s; not found;;" >> badcref$dir
+               fi
+       done < tmp.$$
+       ed - badcref$dir <<!
+               g/\.\([1-8]\)/s//(\1/
+               g/c$/s//C)/
+               g/m$/s//M)/
+               g/s$/s//S)/
+               g/g$/s//G)/
+               g/x$/s//X)/
+               g/j$/s//J)/
+               g/v$/s//V)/
+               g/[^)]$/s/$/)/
+               1s/.$//
+               w
+               q
+!
+       rm -f tmp.$$ cref$dir
+done
diff --git a/usr/src/share/man/tools/ckfrefs b/usr/src/share/man/tools/ckfrefs
new file mode 100755 (executable)
index 0000000..5542986
--- /dev/null
@@ -0,0 +1,71 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       > $TMPDIR/fref$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               ed - $file >> $TMPDIR/fref$dir <<!
+                       /FILES/
+                       +,/\.SH/-p
+                       q
+!
+       done
+
+       cd $TMPDIR
+       date > badfref$dir
+       echo >> badfref$dir
+       grep "/" fref$dir > /dev/null
+       if test $? -eq 1
+       then
+               rm -f fref$dir
+               continue
+       fi
+       echo "\\t ," >> fref$dir
+       ed - fref$dir <<!
+               1,\$s/ /\\
+/g
+               1,\$s/  /\\
+/g
+               1,\$s/,/\\
+/g
+               v/\//d
+               g/:$/s///
+               g/\\\\(\*/s///g
+               g/\\\\s+1/s///g
+               g/\\\\s-1/s///g
+               g/\\\\s0/s///g
+               g/\\\\f./s///g
+               g/\\\\\*S/s///g
+               g/\\\\\&/s///g
+               g/\$\$/s//*/
+               g/^?/d
+               g/^\./d
+               g/tmp/d
+               g/spool/d
+               g/mail/d
+               g/^[^\/]/d
+               g/(/d
+               g/)/d
+               g/\'/d
+               g/\`/d
+               g/\"/d
+               g/\&/d
+               g/\|/d
+               1,\$s/^/ls /
+               w
+               q
+!
+       sort fref$dir | uniq > tmp.$$
+       sh tmp.$$ > fref$dir 2>&1
+       grep "not found" fref$dir | sed "s/ not found//" >> badfref$dir
+       rm -f tmp.$$ fref$dir
+done
diff --git a/usr/src/share/man/tools/cknames b/usr/src/share/man/tools/cknames
new file mode 100755 (executable)
index 0000000..f1d018a
--- /dev/null
@@ -0,0 +1,73 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+trap "rm -f $TMPDIR/*$$; exit;" 2
+
+for sec in $DIRLST
+do
+       /bin/ls $MANDIR/man$sec > $TMPDIR/man${sec}$$
+done
+
+for sec in $DIRLST
+do
+       cd $MANDIR/man$sec
+       dt=`date`
+       echo "$dt\n" > $TMPDIR/not.one.line$sec
+       echo "$dt\n" > $TMPDIR/name.order$sec
+       echo "$dt\n" > $TMPDIR/file.match$sec
+       echo "$dt\n" > $TMPDIR/no.TH$sec
+       echo "$dt\n" > $TMPDIR/no.NAME$sec
+       while read file
+       do
+               so=`line < $file | sed "s/ .*$//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               grep "^.SH NAME" $file > /dev/null
+               if test $? -eq 1
+               then
+                       echo $file >> $TMPDIR/no.NAME$sec
+                       continue
+               fi
+               grep "^.SH SYNOPSIS" $file > /dev/null
+               if test $? -eq 0
+               then
+                       lines=`cat $file | sed -n "/\.SH NAME/,/\.SH SYNOP/p" | wc -l | sed "s/ //g"`
+               else
+                       lines=`cat $file | sed -n "/\.SH NAME/,/\.SH DESCR/p" | wc -l | sed "s/ //g"`
+               fi
+               if test $lines -gt 3
+               then
+                       echo $file >> $TMPDIR/not.one.line$sec
+                       continue
+               fi
+               th=`grep "^.TH" $file | line`
+               if test -z "$th"
+               then
+                       echo $file >> $TMPDIR/no.TH$sec
+                       continue
+               fi
+               set $th
+               name=`echo $2 | tr [A-Z] [a-z]`
+               suf=`echo $3 | tr [A-Z] [a-z]`
+               fname="${name}.$suf"
+               if test $fname != $file
+               then
+                       echo $file >> $TMPDIR/file.match$sec
+               fi
+               ed - $file > $TMPDIR/tmp.$$ <<!
+                       /^.SH NAME/+p
+                       q
+!
+               nname=`cat $TMPDIR/tmp.$$ | sed -e "s/ .*//" -e "s/,.*//"`
+               rm -f $TMPDIR/tmp.$$
+               if test $name != $nname
+               then
+                       echo $file >> $TMPDIR/name.order$sec
+               fi
+       done < $TMPDIR/man${sec}$$
+done
+
+rm -f $TMPDIR/*$$
diff --git a/usr/src/share/man/tools/ckso b/usr/src/share/man/tools/ckso
new file mode 100755 (executable)
index 0000000..dde9d55
--- /dev/null
@@ -0,0 +1,46 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       > $TMPDIR/tmp.$$
+       date > $TMPDIR/badso$dir
+       echo >> $TMPDIR/badso$dir
+       date > $TMPDIR/needso$dir
+       echo >> $TMPDIR/needso$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               ln=`line < $file`
+               so=`echo $ln | sed "s/ .*//"`
+               if test "$so" = ".so" 
+               then
+                       so=`echo $ln | sed -e "s/.so//" -e "s/^/ls/"`
+                       echo $so >> $TMPDIR/tmp.$$
+               else
+                       ed - $file > $TMPDIR/tmp2.$$ <<!
+                               /^\.SH NAME/+s/ .-.*//p
+                               q
+!
+                       name=`line < $TMPDIR/tmp2.$$`
+                       echo $name | grep "," > /dev/null
+                       if test $? -eq 0
+                       then
+                               name=`echo $name | sed "s/,/ /g"`
+                               for ent in $name
+                               do
+                                       if test $ent = `echo $file | sed "s/\..*//"`
+                                       then
+                                               continue
+                                       fi
+                                       ls $MANDIR/man$dir/$ent.* 2>&1 | grep "not found" >> $TMPDIR/needso$dir
+                               done
+                       fi
+               fi
+       done
+
+       cd $TMPDIR
+       sh tmp.$$ 2>&1 | grep "not found" >> badso$dir
+       rm -f tmp.$$ tmp2.$$
+done
diff --git a/usr/src/share/man/tools/ckspell b/usr/src/share/man/tools/ckspell
new file mode 100755 (executable)
index 0000000..8a96584
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+TOOLS=$MANDIR/tools
+
+date > $TMPDIR/sp.errs
+echo >> $TMPDIR/sp.errs
+
+for dir in $DIRLST
+do
+       cd $MANDIR/man$dir
+       echo "cat <<'EOF' >----------------" >> $TMPDIR/sp.errs
+       echo "Section $dir" >> $TMPDIR/sp.errs
+       for file in $FILLST
+       do
+               spell $file >> $TMPDIR/tmp.$$
+       done
+       sort $TMPDIR/tmp.$$ | uniq | comm -23 - $TOOLS/sp.ignore >> $TMPDIR/sp.errs
+       > $TMPDIR/tmp.$$
+done
+
+rm -f $TMPDIR/tmp.$$
diff --git a/usr/src/share/man/tools/ignore b/usr/src/share/man/tools/ignore
new file mode 100755 (executable)
index 0000000..f666d78
--- /dev/null
@@ -0,0 +1,891 @@
+&
+&.
++
++.
+-
+-.
+0
+0.
+1
+1.
+1.0
+1.0.
+1.1
+1.1.
+10
+10.
+2
+2.
+3
+3.
+4
+4.
+5
+5.
+6
+6.
+7
+7.
+8
+8.
+9
+9.
+;
+A.
+B.
+C.
+D.
+E.
+F.
+G.
+H.
+I.
+J.
+K.
+L.
+M.
+MERT
+MERT.
+N.
+O.
+P.
+Q.
+S.
+T.
+U.
+UNIX
+UNIX.
+UNIX/RT
+UNIX/RT.
+UNIX/TS
+UNIX/TS.
+V.
+W.
+X.
+Y.
+Z.
+\s
+\s-1
+\s-1.
+\s-2
+\s-2.
+\s.
+\s0
+\s0.
+a
+a.
+about
+about.
+above
+above.
+across
+across.
+act
+act.
+action
+action.
+actions
+actions.
+after
+after.
+again
+again.
+against
+against.
+ago
+ago.
+air
+air.
+al.
+all
+all.
+almost
+almost.
+along
+along.
+already
+already.
+also
+also.
+although
+although.
+always
+always.
+american
+american.
+among
+among.
+an
+an.
+and
+and.
+another
+another.
+any
+any.
+anything
+anything.
+are
+are.
+area
+area.
+areas
+areas.
+around
+around.
+asked
+asked.
+at
+at.
+available
+available.
+away
+away.
+be
+be.
+became
+became.
+because
+because.
+become
+become.
+been
+been.
+before
+before.
+began
+began.
+behind
+behind.
+being
+being.
+best
+best.
+better
+better.
+between
+between.
+big
+big.
+board
+board.
+boards
+boards.
+bodies
+bodies.
+body
+body.
+both
+both.
+boy
+boy.
+boys
+boys.
+brought
+brought.
+business
+business.
+businesses
+businesses.
+but
+but.
+by
+by.
+called
+called.
+came
+came.
+can
+can.
+cannot
+cannot.
+car
+car.
+cars
+cars.
+case
+case.
+cases
+cases.
+certain
+certain.
+change
+change.
+changes
+changes.
+come
+come.
+could
+could.
+course
+course.
+courses
+courses.
+day
+day.
+days
+days.
+development
+development.
+did
+did.
+didn't
+didn't.
+different
+different.
+do
+do.
+does
+does.
+don't
+don't.
+done
+done.
+door
+door.
+down
+down.
+during
+during.
+each
+each.
+early
+early.
+economic
+economic.
+either
+either.
+end.
+ends
+ends.
+enough
+enough.
+even
+even.
+ever
+ever.
+every
+every.
+example
+example.
+examples
+examples.
+experience
+experience.
+eyes
+eyes.
+face
+face.
+facilities
+facilities.
+facility
+facility.
+fact
+fact.
+facts
+facts.
+families
+families.
+family
+family.
+far
+far.
+federal
+federal.
+feet
+feet.
+felt
+felt.
+few
+few.
+field
+field.
+fields
+fields.
+first
+first.
+five
+five.
+for
+for.
+force
+force.
+forces
+forces.
+found
+found.
+four
+four.
+free.
+gave
+gave.
+general
+general.
+get.
+give
+give.
+given
+given.
+go
+go.
+going
+going.
+good
+good.
+got
+got.
+government
+government.
+great
+great.
+had
+had.
+half
+half.
+hand
+hand.
+hands
+hands.
+has
+has.
+have
+have.
+having
+having.
+he
+he.
+head
+head.
+heads
+heads.
+heard
+heard.
+held
+held.
+her
+her.
+here
+here.
+high
+high.
+him
+him.
+himself
+himself.
+his
+his.
+history
+history.
+house
+house.
+houses
+houses.
+how
+how.
+however
+however.
+human
+human.
+i
+i'm
+i'm.
+i.
+if
+if.
+important
+important.
+in
+in.
+individual
+individual.
+information
+information.
+interest
+interest.
+into
+into.
+is
+is.
+it
+it's
+it's.
+it.
+its
+its.
+itself
+itself.
+job
+job.
+jobs
+jobs.
+just
+just.
+keep
+keep.
+kind
+kind.
+knew
+knew.
+know
+know.
+known
+known.
+large
+large.
+last
+last.
+later
+later.
+law
+law.
+least
+least.
+left
+left.
+less
+less.
+let
+let.
+life
+life.
+light
+light.
+like
+like.
+little
+little.
+local
+local.
+look
+look.
+looked
+looked.
+made
+made.
+major
+major.
+making
+making.
+many
+many.
+matter
+matter.
+matters
+matters.
+may
+may.
+me
+me.
+means
+means.
+member
+member.
+members
+members.
+men
+men.
+might
+might.
+mind
+mind.
+miscellaneous
+miscellaneous.
+miscellany
+miscellany.
+miss
+miss.
+moment
+moment.
+money
+money.
+more
+more.
+most
+most.
+mr
+mr.
+mrs
+mrs.
+much
+much.
+must
+must.
+my
+my.
+name
+name.
+names
+names.
+national
+national.
+need
+need.
+needs
+needs.
+never
+never.
+new
+new.
+next
+next.
+night
+night.
+no
+no.
+not
+not.
+nothing
+nothing.
+now
+now.
+number
+number.
+numbers
+numbers.
+of
+of.
+off
+off.
+office
+office.
+often
+often.
+old
+old.
+on
+on.
+once
+once.
+one
+one.
+only
+only.
+or
+or.
+order
+order.
+orders
+orders.
+other
+other.
+others
+others.
+our
+our.
+out
+out.
+over
+over.
+own
+own.
+part
+part.
+parts
+parts.
+past
+past.
+people
+people.
+per
+per.
+perhaps
+perhaps.
+period
+period.
+periods
+periods.
+place
+place.
+point
+point.
+points
+points.
+political
+political.
+position
+position.
+positions
+positions.
+possible
+possible.
+power
+power.
+present
+present.
+probably
+probably.
+problem
+problem.
+problems
+problems.
+procedure
+procedure.
+procedures
+procedures.
+program
+program.
+programs
+programs.
+public
+public.
+put
+put.
+question
+question.
+quite
+quite.
+rather
+rather.
+real
+real.
+really
+really.
+reason
+reason.
+result
+result.
+results
+results.
+right
+right.
+room
+room.
+said
+said.
+same
+same.
+saw
+saw.
+say
+say.
+school
+school.
+schools
+schools.
+second
+second.
+see
+see.
+seemed
+seemed.
+seems
+seems.
+seen
+seen.
+sense
+sense.
+service
+service.
+services
+services.
+set
+set.
+several
+several.
+shall
+shall.
+she
+she.
+should
+should.
+show
+show.
+side
+side.
+since
+since.
+small
+small.
+so
+so.
+social
+social.
+society
+society.
+some
+some.
+something
+something.
+special
+special.
+state
+state.
+states
+states.
+still
+still.
+street
+street.
+study
+study.
+such
+such.
+sure
+sure.
+system
+system.
+systems
+systems.
+taken
+taken.
+than
+than.
+that
+that.
+the
+the.
+their
+their.
+them
+them.
+themselves
+themselves.
+then
+then.
+there
+there.
+these
+these.
+they
+they.
+thing
+thing.
+things
+things.
+think
+think.
+this
+this.
+those
+those.
+though
+though.
+thought
+thought.
+three
+three.
+through
+through.
+thus
+thus.
+to
+to.
+today
+today.
+together
+together.
+told
+told.
+too
+too.
+took
+took.
+toward
+toward.
+towards
+towards.
+turn
+turn.
+turned
+turned.
+turns
+turns.
+two
+two.
+under
+under.
+united
+united.
+until
+until.
+up
+up.
+upon
+upon.
+us
+us.
+use
+use.
+used
+used.
+very
+very.
+want
+want.
+war
+war.
+wars
+wars.
+was
+was.
+water
+water.
+waters
+waters.
+way
+way.
+ways
+ways.
+we
+we.
+week
+week.
+weeks
+weeks.
+well
+well.
+went
+went.
+were
+were.
+what.
+when
+when.
+where
+where.
+whether
+whether.
+which
+which.
+while
+while.
+white
+white.
+whole
+whole.
+whose
+whose.
+why
+why.
+will
+will.
+with
+with.
+within
+within.
+without
+without.
+word
+word.
+words
+words.
+work
+work.
+world
+world.
+would
+would.
+year
+year.
+years
+years.
+yet
+yet.
+york
+york.
+you
+you.
+young
+young.
+your
+your.
diff --git a/usr/src/share/man/tools/list b/usr/src/share/man/tools/list
new file mode 100755 (executable)
index 0000000..937e874
--- /dev/null
@@ -0,0 +1,13 @@
+set x $*
+. ./.param
+
+date > $TMPDIR/list
+echo >> $TMPDIR/list
+
+for dir in $DIRLST
+do
+       cd $MANDIR/man$dir
+       echo "cat <<'EOF' >----------" >> $TMPDIR/list
+       echo "Section $dir" >> $TMPDIR/list
+       ls -ldas .* $FILLST >> $TMPDIR/list
+done
diff --git a/usr/src/share/man/tools/mcmp b/usr/src/share/man/tools/mcmp
new file mode 100755 (executable)
index 0000000..4a4c11d
--- /dev/null
@@ -0,0 +1,76 @@
+set x $*
+. ./.param
+
+if test -z "$ID"
+then
+       DIR2=/usr/nman
+else
+       DIR2=$ID
+fi
+
+if test ! -d $DIR2 
+then
+       echo "mcmp: $DIR2 - not a directory"
+       exit
+fi
+
+for dir in $DIRLST
+do
+       date > $TMPDIR/tmp3.$$
+       echo >> $TMPDIR/tmp3.$$
+       cd $MANDIR/man$dir
+       echo "Comparison of $MANDIR/man$dir and $DIR2/man$dir:">>$TMPDIR/tmp3.$$
+       echo >> $TMPDIR/tmp3.$$
+       ls $FILLST > $TMPDIR/tmp1.$$
+       cd $DIR2/man$dir
+       ls $FILLST > $TMPDIR/tmp2.$$
+       cd $MANDIR/man$dir
+       echo "Files found in $MANDIR/man$dir only:" >> $TMPDIR/tmp3.$$
+       comm -23 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/    /" >> $TMPDIR/tmp3.$$
+       echo >> $TMPDIR/tmp3.$$
+       echo "Files found in $DIR2/man$dir only:" >> $TMPDIR/tmp3.$$
+       comm -13 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/    /" >> $TMPDIR/tmp3.$$
+       echo >> $TMPDIR/tmp3.$$
+       comm -12 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ > $TMPDIR/tmp.$$
+       rm -f $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$
+       if [ ! -s $TMPDIR/tmp.$$ ]
+       then
+               echo "No common files for comparison" >> $TMPDIR/tmp3.$$
+               if [ -n "$LFLAG" ]
+               then
+                       mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
+               else
+                       mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
+               fi
+               continue
+       fi
+       if [ -n "$LFLAG" ]
+       then
+               mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
+               echo "Diffs of common files ($MANDIR=< $DIR2=>):" >> $TMPDIR/diff$dir
+       else
+               mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
+               echo "Files that differ:" >> $TMPDIR/cmp$dir
+       fi
+       while read file
+       do
+               if [ -z "$LFLAG" ]
+               then
+                       cmp -s $file $DIR2/man$dir/$file
+                       if [ $? -ne 0 ]
+                       then
+                               echo "\\t$file" >> $TMPDIR/cmp$dir
+                       fi
+               else
+                       diff $file $DIR2/man$dir/$file > $TMPDIR/tmp1.$$
+                       if [ $? -eq 1 ]
+                       then
+                               echo "\\n\\t****$file****" >> $TMPDIR/diff$dir
+                               cat $TMPDIR/tmp1.$$ >> $TMPDIR/diff$dir
+                       fi
+               fi
+       done < $TMPDIR/tmp.$$
+       rm -f $TMPDIR/tmp1.$$
+done
+
+rm -f $TMPDIR/tmp.$$
diff --git a/usr/src/share/man/tools/mgrep b/usr/src/share/man/tools/mgrep
new file mode 100755 (executable)
index 0000000..57dbc54
--- /dev/null
@@ -0,0 +1,19 @@
+MANDIR=/usr/man
+TMPDIR=/usr/man/tmp
+
+date > $TMPDIR/greps
+echo "Grep list:  $*" >> $TMPDIR/greps
+echo >> $TMPDIR/greps
+
+for pattern in $*
+do
+       echo "\n================" >> $TMPDIR/greps
+       echo "$pattern:" >> $TMPDIR/greps
+       for dir in 1 2 3 4 5 6 7 8
+       do
+               cd $MANDIR/man$dir
+               echo "cat <<'EOF' >---------------" >> $TMPDIR/greps
+               echo "Section $dir" >> $TMPDIR/greps
+               grep $pattern *.* >> $TMPDIR/greps
+       done
+done
diff --git a/usr/src/share/man/tools/missing b/usr/src/share/man/tools/missing
new file mode 100644 (file)
index 0000000..b94a8e7
--- /dev/null
@@ -0,0 +1,3 @@
+vadvise(2)
+vplot(1)
+vsort(1)
diff --git a/usr/src/share/man/tools/mklinks b/usr/src/share/man/tools/mklinks
new file mode 100644 (file)
index 0000000..3f7fb7c
--- /dev/null
@@ -0,0 +1,42 @@
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               else
+                       ed - $file > $TMPDIR/tmp.$$ <<!
+                               /^\.SH NAME/+s/ .-.*//p
+                               q
+!
+                       name=`line < $TMPDIR/tmp.$$`
+                       echo $name | grep "," > /dev/null
+                       if test $? -eq 0
+                       then
+                               name=`echo $name | sed "s/,/ /g"`
+                               for ent in $name
+                               do
+                                       if test $ent = `echo $file | sed "s/\..*//"`
+                                       then
+                                               continue
+                                       fi
+                                       suf=`echo $file | sed "s/.*\.\(.\{1,2\}\)\$/\1/"`
+                                       if test ! -f $ent.$suf
+                                       then
+                                               cat > $ent.$suf <<!
+.so $MANDIR/man$dir/$file
+!
+                                       fi
+                               done
+                       fi
+               fi
+       done
+
+       rm -f tmp.$$
+done
diff --git a/usr/src/share/man/tools/mroff b/usr/src/share/man/tools/mroff
new file mode 100755 (executable)
index 0000000..f2f071f
--- /dev/null
@@ -0,0 +1,26 @@
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       date > $TMPDIR/mlog$dir
+       echo >> $TMPDIR/mlog$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so"
+               then
+                       echo "$file: .so link -- ignored" >> $TMPDIR/mlog$dir
+                       continue
+               fi
+               echo "$file:" >> $TMPDIR/mlog$dir
+               file=`echo $file | sed "s/\..\{1,2\}\$//"`
+               if test -z "$PFLAG"
+               then
+                       man -t $dir $file
+               else
+                       man -s $dir $file
+               fi
+       done
+done
diff --git a/usr/src/share/man/tools/newsp.errs b/usr/src/share/man/tools/newsp.errs
new file mode 100644 (file)
index 0000000..2cde891
--- /dev/null
@@ -0,0 +1,4572 @@
+Fri Jul 29 00:07:08 PDT 1983
+
+cat <<'EOF' >----------------
+Section 1
+1ic
+4.2bsd
+ACSII
+ADDBIB
+ADDR
+ANOM
+AP
+ARGSUSED
+ARPANET
+ATD
+Aahimnrs
+Addbib
+Afile
+Aho
+Allman
+Arg
+Asa
+BFatuwvx
+BIFF
+BS.ES
+BSS
+Babaoglu
+Backslashes
+Backus
+Bedminster
+Berkman
+Berknet
+Bernardsville
+Bfile
+Biff
+Bizcomp
+Bourne
+Branchburg
+Breedlove
+CFLAGS
+CK
+CONT
+CPU
+CRT's
+CRTERASE
+CRTKILL
+CTRL
+Cbs
+Cfoo
+Changequote
+Colin
+Corfil
+Cory
+Cpu
+DASI
+DB
+DBX
+DEC's
+DECtape
+DVI
+Dbx
+Delimeters
+Diablo
+Dstring
+EBCDIC
+EECS
+EOF
+ESC
+FFLAGS
+FILENAME
+FP
+FPR
+FSPLIT
+FTP
+Ferrin
+File1
+Filename
+Foderaro
+Fortran77
+Fp
+Fpr
+Fsplit
+Ftp
+GCORE
+GID
+GPROF
+GSI
+GT
+Gallager
+Gcore
+HOSTID
+HOSTNAME
+HUP
+Hazeltine
+Hertzfeld
+Hostnames
+Hyterm
+I.E.E.E
+IDs
+IM
+Ignoreeof
+Ind
+Indxbib
+Katseff
+Kernighan
+Keypad
+Kleckner
+Kulp
+L6i
+LCK
+LE
+LFLAGS
+LIM
+LINTLIBRARY
+LOGFILE
+LR
+LT
+Larus
+Laxenburg
+Lesk
+Levinsky
+Llopart
+MACLISP
+MFLAGS
+MOS
+MT
+Mail.help
+Mail.rc
+Makefile
+McKusick
+Mt
+N.B
+NETSTAT
+NEWALIASES
+NNN
+NOSTRICT
+NOTREACHED
+NUL
+Newaliases
+Newline
+Newlines
+Niklaus
+Nohup
+Nowitz
+O1i
+OED
+OFMT
+OFS
+Objfil
+Orderlist
+Ossanna
+Ozalp
+PAGEIN
+PAGESIZE
+PDP
+PDX
+PFLAGS
+PID
+PMERGE
+PPID
+PRI
+Pagesize
+Pathname
+Pdx
+Pelegri
+Plauger
+Pmerge
+Pos1
+Pprinter
+Pre
+Presotto
+Procs
+RCP
+RCS
+RCVD
+RLOGIN
+RMAIL
+ROFFBIB
+RSH
+RSS
+RUBOUT
+RUPTIME
+RWHO
+RWNA
+Racal
+Rankine
+Rcp
+Reiser
+Retargetted
+Rlogin
+Rmail
+Roffbib
+Romberger
+Rowan
+Rsh
+Rubout
+Runtime
+Ruptime
+SANOM
+SBM
+SCCS
+SDETACH
+SDLYU
+SENDBUG
+SEQL
+SIG
+SIGALRM
+SIGCHILD
+SIGCONT
+SIGINT
+SIGKILL
+SIGPLAN
+SIGQUIT
+SIGTERM
+SIGTINT
+SKEEP
+SL
+SLOAD
+SLOCK
+SNOVM
+SORTBIB
+SOUSIG
+SPAGE
+SPAGI
+SPHYSIO
+SSIZ
+SSWAP
+SSYS
+STIMO
+STRC
+SUANOM
+SULOCK
+SVFDONE
+SVFORK
+SWEXIT
+SWTED
+SYMDEF
+SYSLINE
+Schriebman
+Sendbug
+Shenaut
+Shienbrood
+Shoens
+Sklower
+Sname
+Sortbib
+Spellin
+Spellout
+Stangenberger
+Studsworth
+Substitition
+Symbolfile
+TELNET
+TENEX
+TRS
+TSIZ
+TW
+TalkDaemon
+Televideo
+Televideos
+Telnet
+Temp
+TermiNet
+Tuthill
+Twp
+UCB
+UCI
+UID
+UNX
+Uudecode
+VARARGS
+VAX
+VLP
+VMS
+VWIDTH
+Vadic
+Ventel
+Versatec
+Vfontedpr
+Vlp
+Vol
+Vwidth
+WCHAN
+Wasley
+Wirth
+XXXXX
+YFLAGS
+ZZ
+a.out
+aN
+aa
+abchnpuvx
+abcissas
+abe
+abi
+acdefjnstuw
+acdfgilqrstu1ACLFR
+acegklstuvwx
+ack
+acu
+addbib
+addr
+ade
+adm3a
+afile
+allboxed
+alloc
+alt
+analyis
+annoation
+arg
+arg1
+arg1,arg2
+arg2
+argc
+argn
+args
+argv
+arpanet
+arpanet:dm2500
+arpanet:type
+ascii,lcase
+askcc
+atime
+atm
+atrun
+autoindent
+autoprint
+avm
+ba
+backslash
+backslashes
+backtrace
+bar.c
+baudrate
+bcdehDilmpqrsj
+bdf
+beginproc
+belgiumfranc
+betwee
+bfx
+bg
+biblio
+biff
+bio.c
+bl
+blah
+blkdtaNNN.f
+blnpstuwz
+bocklin
+bocklin.14
+bool
+bpi
+br
+breaksw
+brgallon
+britainpound
+bs0
+bs1
+bsf
+bsr
+buf
+bugformat
+bx
+cat.c
+cbreak
+cbs
+cccc
+ccol
+ccom
+cdflsu
+cdpath
+cds
+cef
+cefh
+ceiknrstuvx
+centimeters
+centre
+changequote
+checkeq
+chmach
+cifplot
+cleardot
+cleartext
+cmd
+cnnn
+colour
+comsat
+concept100
+cond
+cont
+coredump
+coredumpsize
+corfil
+cpile
+cpu
+cputime
+cr0
+cr1
+cr2
+cr3
+crmod
+crt
+crt's
+crt0.o
+crtbs
+crterase
+crtkill
+cryptosystem
+csh's
+cshrc
+csw
+ctlecho
+ctm
+cu'd
+cwd
+cypher
+dB
+daemon
+daemon's
+daemons
+dan
+datasize
+dbx
+dead.letter
+dec
+decctlq
+december
+def
+delim
+dequeue
+deriv
+dialog
+dialtimeout
+dialup
+dialup:concept100
+dialup:dw2
+dialup:h19
+dialup:type
+dialups
+dict
+diction,explain
+dir1
+dir2
+ditroff
+divnum
+dj
+dmr
+dnl
+dnnn
+doc
+doc,man
+doc.n
+doit
+dotdot
+dp
+drqtpmx
+ds
+dsa
+dsusp
+dumpdef
+dw2
+e.g
+ebcdic
+echocheck
+edhup
+effectors
+efil
+efile
+efilname
+eign
+ek
+eknptuvx
+elif
+emacs
+endcol
+endif
+endnotes
+endsw
+eof
+eofr
+eofread
+eofw
+eofwrite
+eol
+eq
+errorrc
+errprint
+es
+esac
+etx
+etxack
+eval
+ex3
+ex?.?preserve
+ex?.?recover
+ex?.?strings
+expr2
+exrc
+ext
+exta
+extb
+extern
+exum2.n
+exum?.n
+fFresc
+fasl'ed
+ff0
+ff1
+fg
+fhlpq
+fi
+fi.diff
+file.C
+file.c
+file.i
+file.o
+file.p
+filenames
+filesize
+fillin
+flags&onum
+flusho
+fo
+fontfile
+fontinfo
+fontname
+foo
+foo.c
+foo.l
+foreach
+formatted
+formatter
+formfeed
+formfeeds
+fp
+fpr
+fpr.tbl
+fr
+framesize
+franz
+fre
+from';echo
+fromdir
+fsf
+fsplit
+fsr
+fstab
+ft
+ftp
+func
+ga
+gcore
+gcos
+gcrt0.o
+ge
+gethostid
+gethostname
+getpagesize
+getwd
+gfont
+gmon.out
+gmon.sum
+gname
+gnopru
+goto
+goto's
+gotos
+gprof
+graphy
+grok
+gsize
+gt
+hangup
+hangups
+hardcopy
+hardwired
+hashstat
+hh
+hhhh
+hhmm
+histchars
+hlist
+hlista
+hookey
+host.port
+host.user
+host:user
+hostid
+hostname
+hosts.equiv
+hstop
+huckfinn
+hushlogin
+i.e
+ia
+ib
+ibase
+ibm
+ibs
+ic
+ident
+identifer
+ier
+ifdef
+ifdefs
+ifelse
+iff
+ig
+ignoreeof
+ignorefile
+ignorelevel
+incl
+incr
+indent.pro
+index'th
+indxbib
+inet
+inf
+inline
+inodes
+inr
+inrt
+instvVxX
+intr
+intrup
+intuit
+intuited
+inum
+inv
+ise
+jan
+jkf
+joe
+keypad
+kridle
+l.m
+lastlog
+lasttimedone
+lbc
+lc
+lc.ln
+lcase
+lcd
+lcol
+lcsh
+le
+len
+lex.yy.c
+lexcommands
+lfoo.ln
+lg
+lhost
+lib,bin,ucb,old,new,local
+lib.b
+libF77
+libF77.a
+libI77
+libI77.a
+libU77
+libU77.a
+libc.a
+libm.a
+libpc.a
+lightyear
+lim
+linefeed
+linenumber
+lispfile
+liszt.1
+litout
+llib
+lnext
+localfile
+loginname
+logout
+lpc
+lpile
+ls.c
+lsh
+lstat
+lt
+lwc
+lxref.1,v
+lyx
+m,n
+mac
+machacks.l
+magtapes
+mailaddr
+mailrc
+mainNNN.f
+majorfont
+makefile
+makefiles
+maketemp
+man1
+matchop
+mbox
+mcleanup
+mcount
+mcrt0.o
+mdelete
+mdir
+mdmbuf
+mds
+messagefile
+meta
+metoo
+mget
+mic
+michael
+minorfont
+mkey
+ml
+mls
+mm:ss
+mon.out
+mon.sum
+more.c
+more.help
+morefiles
+motd
+mpqruwxCQST
+mput
+msgsrc
+mt
+mtime
+mtio
+mtu
+mubdf
+mubdfinrt
+mumble.p
+mumble.p:17
+mutliple
+myhlist
+n1,n2
+n3,n4
+na
+name.c
+name.f
+name.i
+name.o
+name.p
+name.pointsize
+name.size
+name1
+name2
+namelist
+nameofhost
+nbc
+nbytes
+ndj
+netrc
+netstat
+network.port
+new.p
+newaliases
+newcrt
+newline
+newlines
+newps
+nexti
+nl
+nl0
+nl1
+nl2
+nl3
+nlambda
+nnn
+nnnnn
+noclobber
+noecho
+noerror
+noerror,sync
+noglob
+nohang
+nohup'ed
+nohup.out
+nologin
+nonie
+nonomatch
+nosave
+nr
+numcols
+nv
+obase
+obj
+objfil
+objfile
+obs
+occom
+ocpp
+offline
+ok
+old.p
+oldcsh
+oldls,ls
+oldls.c
+oldps
+oldwrite.c
+onetrip
+onintr
+onum
+oo
+oops
+op
+orderlist
+otherhost
+otherremotefile
+ozalp
+pagesize
+parens
+pascal
+pathnames
+paul
+paula
+pdx
+pdxinit
+pendin
+perm
+pfile
+pg
+pgm
+photoypesetter
+pid
+pistrings
+pla10
+playpen
+pltndgvcfrmhs
+plugboard
+plugboard:?adm3a
+plugboard:type
+pmerge
+pmon.out
+pointsize
+popd
+port.ln
+pos1
+pos2
+posname
+pr's
+pre
+preceed
+preceeded
+pred1
+pred2
+pred3
+prev
+printcap
+proc.h
+processid
+prog
+prog.f
+promptfile
+proto
+prterase
+ptmp
+pushd
+pushdown
+pwba
+qxscn
+ra
+railmag
+raisechar
+rc.local
+rcol
+rcp
+rd
+readit
+readlink
+readonly
+readtable
+rec
+recipt
+recv
+refcnt
+reformatted
+remotefile
+remotehelp
+repeat...until
+resp
+rewoffl
+rfile
+rhost
+rhost.rname
+rhost:path
+rhosts
+rlogin
+rlogind
+rmail
+rmt
+rmt0
+rmt12
+rmt8
+rname
+roffbib
+roman
+rp0a
+rpile
+rprnt
+ruptime
+rwho
+rwhod
+s1s2
+sA
+savehist
+sbm
+sc
+screenful
+screenfuls
+sd
+se
+secretmail
+securetty
+sendbug
+sendmail
+sendport
+setdot
+setenv
+setgroups
+sethostid
+sethostname
+setitimer
+setpriority
+setrlimit
+sfile
+shutdownlog
+sidebyside
+sig
+signal.h
+sigvec
+sinclude
+sn
+somefile
+sortbib
+sourcefile
+sourceing
+sp
+spb
+spellhist
+spellin
+spellout
+spf
+src
+ss
+stacksize
+standardise
+standout
+startcol
+stepi
+stm
+stopi
+str
+str1
+string1
+string2
+su'd
+substr
+suffixlist
+supresses
+susp
+switch:?vt100
+sym
+symbolfile
+symdef
+symlink
+symref
+sys1
+sys2
+syscall.l
+syscmd
+sysline
+sysline.1
+syslinelock
+tHouseholds
+tNumber
+tSize
+ta
+tab0
+tab1
+tab1,tab2,...,tabn
+tab2
+tab3
+tabexpand
+tabstop
+tabstops
+tapename
+tco
+td0
+tek
+telnet
+tenex
+terminfo
+tex
+th
+thier
+ti700
+tip.record
+tiprc
+title1
+title2
+tmac
+tmac.bib
+tmac.s
+tmac.vcat
+tmac.vgrind
+tn300
+todir
+toplevel.l
+toplines
+tostop
+tracct
+trace.l
+traceback
+tracei
+tranmission
+transfered
+translit
+travelled
+troff'ed
+trpt
+tty0
+tty3
+tty33
+tty37
+ttyd0
+tvfn
+typeahead
+typedefs
+typename
+ua
+ucase
+ucb
+ucbcory
+ucifnc.l
+udc
+ugo
+um
+undef
+unsetenv
+usd
+username
+usg
+uudecode
+uuencode,uudecode
+vE
+vS
+var
+vcat
+vd
+vec
+ver
+versatec's
+vfontedpr
+vgrindefs
+vh
+vide
+vk
+vlp
+vlpmacs
+vmcore
+vmunix
+vol
+vpd
+vpf
+vplot
+vrast
+vs
+vsort
+vt05
+vuaibclo
+vwidth
+weof
+werase
+wfile
+wg
+whod
+wildcard
+wildcards
+windowfuls
+wline
+wordlist
+wrapmargin
+wri
+write.c
+x.c
+x1.x2.x3
+x1.y1.x2.y2
+xit
+xn
+xn.yn
+xs.c
+xs.o
+xx
+xxx
+xy
+y.output
+y.tab.c
+y.tab.h
+yacc.acts
+yacc.tmp
+yaccpar
+yourname
+yoursystem
+yourttyname
+yy
+yy.ddd.hhhh
+yyerror
+yylex
+yymmddhhmm
+yyparse
+yytext
+zzzNNN.f
+cat <<'EOF' >----------------
+Section 2
+ARG
+ASKNAME
+AUTOBOOT
+Addr
+Arg
+Bpt
+Buf
+CHROOT
+CPU
+Chme
+Chms
+Chmu
+Chroot
+Cmd
+DARPA
+DECOVF
+DFL
+DGRAM
+DONTLINGER
+DONTROUTE
+DOWARN
+DUPFD
+Dirname
+E2BIG
+EACCESS
+EADDRINUSE
+EADDRNOTAVAIL
+EAFNOSUPPORT
+EALREADY
+ECONNABORTED
+ECONNREFUSED
+ECONNRESET
+EDESTADDRREQ
+EINPROGRESS
+EISCONN
+ELOOP
+EMSGSIZE
+ENAMETOOLONG
+ENETDOWN
+ENETRESET
+ENETUNREACH
+ENOBUFS
+ENOPROTOOPT
+ENOTCONN
+ENOTEMPTY
+ENOTSOCK
+EOPNOSUPPORT
+EOPNOTSUPP
+EPFNOSUPPORT
+EPROTONOSUPPORT
+EPROTOTYPE
+ESHUTDOWN
+ESOCKTNOSUPPORT
+ETIMEDOUT
+EUSERS
+EWOULDBLOCK
+EXCL
+Envp
+FASYNC
+FCNTL
+FILENAME
+FLTDIV
+FLTOVF
+FLTUND
+FPE
+FSIZE
+FSYNC
+Fchmod
+Fchown
+Fcntl
+Fd
+Febuary
+Fromlen
+Fstat
+Fsync
+Ftruncate
+GETDLIM
+GETDTABLESIZE
+GETFD
+GETFL
+GETGID
+GETGROUPS
+GETHOSTID
+GETHOSTNAME
+GETITIMER
+GETOWN
+GETPAGESIZE
+GETPEERNAME
+GETPRIORITY
+GETRLIMIT
+GETRUSAGE
+GETSOCKNAME
+GETSOCKOPT
+GETTIMEOFDAY
+Getgid
+Getgroups
+Gethostid
+Gethostname
+Getpagesize
+Getpeername
+Getppid
+Getpriority
+Getrusage
+Getsockname
+Getsockopt
+Gettimeofday
+Howto
+ID's
+IDs
+IEXEC
+IFBLK
+IFCHR
+IFDIR
+IFLNK
+IFMT
+IFREG
+IFSOCK
+IGN
+IMPLINK
+INCR
+INET
+INTDIV
+INTOVF
+IREAD
+ISGID
+ISUID
+ISVTX
+ITIMER
+IWRITE
+Iovcnt
+KEEPALIVE
+Lstat
+MSG
+NDELAY
+NGRPS
+NODEV
+Name1
+Name2
+OOB
+Oldd
+Optname
+PATHNAME
+PGRP
+PKTSTREAM
+PRIO
+PRIVIN
+PROC
+PSL
+Prio
+RDM
+RDONLY
+RDWR
+READLINK
+RECV
+REUSEADDR
+RLIMIT
+RSS
+RUSAGE
+Readlink
+Readv
+Recv
+SEQPACKET
+SETDLIM
+SETDUSE
+SETFD
+SETFL
+SETGROUPS
+SETOWN
+SETQUOTA
+SETREGID
+SETREUID
+SETWARN
+SIG
+SIGALRM
+SIGBLOCK
+SIGBUS
+SIGCHLD
+SIGCONT
+SIGEMT
+SIGFPE
+SIGHUP
+SIGILL
+SIGINT
+SIGIO
+SIGIOT
+SIGKILL
+SIGPAUSE
+SIGPIPE
+SIGPROF
+SIGQUIT
+SIGSEGV
+SIGSETMASK
+SIGSTACK
+SIGSTOP
+SIGTERM
+SIGTRAP
+SIGTSTP
+SIGTTIN
+SIGTTOU
+SIGURG
+SIGVEC
+SIGVTALRM
+SIGXCPU
+SIGXFSZ
+SOCKETPAIR
+SOF
+SUBRNG
+SYMLINK
+SYSCALL
+Sbrk
+Scp
+Setgroups
+Sethostid
+Sethostname
+Setquota
+Setsockopt
+Sig
+Sigblock
+Sigmask
+Sigpause
+Sigsetmask
+Sigstack
+Sigvec
+Syscall
+TCP
+TIOCGPGRP
+TIOCSPGRP
+TRUNC
+Timerclear
+Tvp
+UDP
+UID
+Umount
+Unpriviledged
+VAX
+WNOHANG
+WRONLY
+WUNTRACED
+Writev
+XTND
+a.out
+accrights
+accrightslen
+addr
+addrlen
+af
+arg
+argc
+argp
+argv
+atime
+blksize
+blocksize
+bootstrapped
+buf
+bufsiz
+cacheing
+caddr
+checkquota
+cmd
+cpu
+daemon
+datagram
+datagrams
+dialup
+dqblk
+dqusage
+dqwarn
+ds
+dst
+dsttime
+dup2
+egid
+envp
+errno.h
+euid
+exec'd
+execptfds
+facilitity
+fchmod
+fchown
+fcntl.h
+fd
+file.h
+foo
+fromlen
+fsync
+ftruncate
+getdtablesize
+getgroup
+getgroups
+gethostid
+gethostname
+getitimer
+getpagesize
+getpeername
+getpriority
+getprotoent
+getrlimit
+getrusage
+getsockname
+getsockopt
+gettimeofday
+gidset
+gprof
+hangup
+hostid
+howto
+idrss
+inblock
+incr
+ing
+initgroups
+initilized
+ino
+inode's
+instr
+ioctl.h
+iov
+iovcnt
+iovec
+ioveclen
+iovlen
+ipc
+isrss
+itimerval
+ixrss
+keepalives
+len
+lstat
+majflt
+max
+maxrss
+messags
+minflt
+minuteswest
+msg
+msghdr
+msglen
+msgrcv
+msgsnd
+mtime
+name1
+name2
+namelen
+nbytes
+nds
+newd
+nfds
+ngroups
+nivcsw
+nlink
+ns
+nsignals
+nswap
+numask
+nvcsw
+occurance
+occured
+occurence
+oldd
+onstack
+ops
+optlen
+optname
+optval
+oss
+oublock
+oumask
+ovalue
+ovec
+pagesize
+param.h
+pathnames
+pc's
+pdp
+pgrp
+pid
+pos
+ppid
+prgp
+prio
+priviledged
+psl
+quota.h
+quotacheck
+quotaon
+rdev
+readfds
+readlink
+readv
+reboot.h
+recv
+recvfrom
+recvmsg
+res
+resource.h
+resp
+rgid
+rlim
+rlimit
+rlp
+ru
+ruid
+rusage
+rwflag
+scp
+sendmsg
+sendto
+setgroups
+sethostid
+sethostname
+setitimer
+setpriority
+setquota
+setregid
+setreuid
+setrlimit
+setsockopt
+settimeofday
+sig
+sigblock
+sigcontext
+sigmask
+signal.h
+signalling
+sigpause
+sigsetmask
+sigstack
+sigvec
+sockaddr
+socket.h
+socketpair
+someway
+sp
+spare1
+spare2
+spare3
+spare4
+ss
+st
+stat.h
+sv
+symlink
+th
+time.h
+timercmp
+timerisset
+timeval
+timezone
+tolen
+tvp
+types.h
+tzp
+uio.h
+usec
+vec
+vmunix
+wait.h
+writefds
+writen
+writev
+zero'd
+cat <<'EOF' >----------------
+Section 3
+Acos
+Alloca
+Alphasort
+Arg
+Argv
+Asctime
+Asin
+Atan
+Atan2
+Atoi
+BSD
+BSTRING
+BUFSIZ
+BYTEORDER
+Bcmp
+Bcopy
+Bp
+Bpt
+Bzero
+CBREAK
+CPU
+CallingHost
+Calloc
+Chme
+Chms
+Chmu
+Closedir
+Closelog
+Closepl
+Clrerr
+Compar
+DARPA
+DASI
+DECOVF
+DFL
+DISKTAB
+DNDEBUG
+Dptr
+Dtime
+EMOD
+EOF
+ETIME
+Endfsent
+Endgrent
+Endhostent
+Endnetent
+Endprotoent
+Endservent
+Envp
+Etext
+FDATE
+FLMIN
+FLTDIV
+FLTOVF
+FLTUND
+FORT01
+FORT12
+FPE
+FSIZE
+Fabs
+Fcvt
+Fdate
+Feof
+Fflush
+Ffs
+Fgetc
+Fgets
+Fileno
+Firstkey
+Fpecnt
+Fprintf
+Fputc
+Fputs
+Fscanf
+Ftell
+Fwrite
+GETCWD
+GETDISKBYNAME
+GETFSENT
+GETHOSTENT
+GETLOG
+GETNETENT
+GETPROTOENT
+GETSERVENT
+GETWD
+GSI
+Gcvt
+Gerror
+Getchar
+Getdiskbyname
+Getfsent
+Getfsspec
+Getfstype
+Gethostbyname
+Gethostent
+Getlog
+Getnetbyname
+Getnetent
+Getprotobyname
+Getprotoent
+Getpwuid
+Getservbyname
+Getservent
+Getw
+Getwd
+Gtty
+HOSTNM
+HPIB
+IDATE
+IGN
+INET
+INFO
+INITGROUPS
+INSQUE
+INTDIV
+INTOVF
+IOINIT
+Iargc
+Idate
+Ierrno
+Initgroups
+Initstate
+Insque
+Ioinit
+Irand
+Isascii
+Isatty
+Itime
+LIB2648
+LIM
+LOC
+Ldexp
+Lib2648
+Lnblnk
+Localtime
+Lowpc
+Lshift
+Ltime
+MAXPATHLEN
+MAXRSS
+MAXUINT
+Modf
+Moncontrol
+Monstartup
+Msg
+NCARGS
+NN
+NORAISE
+NSIG
+Name1
+Name2
+Nbytes
+Noone
+OOPS
+Opendir
+Openlog
+Openpl
+PDP
+PDP11
+PDP11's
+PID
+PRIVIN
+PSIGNAL
+PSL
+Pclose
+Pid
+Psignal
+Putchar
+Putw
+RCMD
+REXEC
+Rcmd
+Readdir
+Realloc
+Rewinddir
+Rexec
+Rresvport
+Rshift
+Rtnval
+Ruserok
+SALERT
+SCANDIR
+SCCS
+SIG
+SIGALRM
+SIGBUS
+SIGCHLD
+SIGCONT
+SIGEMT
+SIGFPE
+SIGHUP
+SIGILL
+SIGINT
+SIGIO
+SIGIOT
+SIGKILL
+SIGPIPE
+SIGPROF
+SIGQUIT
+SIGSEGV
+SIGSTOP
+SIGTERM
+SIGTRAP
+SIGTSTP
+SIGTTIN
+SIGTTOU
+SIGURG
+SIGVTALRM
+SIGXCPU
+SIGXFSZ
+SUBRNG
+Scandir
+Scp
+Seekdir
+Sep
+Setbuffer
+Seteuid
+Setfsent
+Sethostent
+Setlinebuf
+Setnetent
+Setprotoent
+Setruid
+Setservent
+Setstate
+Sig
+Signum
+Sprintf
+Sqrt
+Sscanf
+Strcat
+Strcmp
+Strcpy
+Strlen
+Strncat
+Strncmp
+Strncpy
+Symlnk
+Syslog
+TIOCGETP
+TIOCSETP
+TOPEN
+TRAPER
+TRAPOV
+TRPFPE
+TTYNAM
+Tclose
+Telldir
+Tgetent
+Tgetflag
+Tgetnum
+Tgetstr
+Tgoto
+Timezone
+Tlu
+Topen
+Tputs
+Trewin
+Trpfpe
+Tskipf
+Ttynam
+Ttyslot
+Twrite
+VARARGS
+VAX
+Vax
+Vfree
+Vm
+Wasley
+XTABS
+a.out
+abort.3
+abort.3f
+abs.3
+access.3f
+accessability
+addch
+addr
+addrtype
+addstr
+affcnt
+agoto
+ahost
+alarm.3c
+alarm.3f
+alloca
+alphasort
+aoff
+aon
+apnd
+areaclear
+arg
+arg0
+arg1
+argc
+argn
+argno
+args
+argv
+arithmatic
+arpa
+assert.3x
+assert.h
+atof.3
+basec
+basegid
+bcmp
+bcopy
+besj0
+besj1
+besjn
+bessel.3f
+besy0
+besy1
+besyn
+bit.3f
+bitcopy
+bitmap
+bitmat
+bp
+bsize
+bstring.3
+buf
+bufsize
+byteorder.3n
+bzero
+bzro
+caching
+cbreak
+cctl
+ch
+chdir.3f
+chmod.3f
+cleara
+clearerr
+clearg
+clearok
+closedir
+closelog
+closepl
+clrtobot
+clrtoeol
+cm
+cmax
+cmd
+cmin
+comp
+compar
+compatibilty
+congruential
+cont
+cpu
+crmode
+crypt.3
+cstime
+ctime.3
+ctype.3
+ctype.h
+curoff
+curon
+curses.3x
+cutime
+daemons
+dbesj0
+dbesj1
+dbesjn
+dbesy0
+dbesy1
+dbesyn
+dbm.3x
+dbminit
+dcl
+ddd
+ddd.ddd
+decpt
+delch
+deleteln
+delwin
+dest
+destcol
+destline
+devnam
+dffrac
+dflmax
+dflmin
+dir.h
+directory.3
+dirp
+disect
+disktab
+disktab.h
+dispmsg
+doprnt
+dox
+dptr
+drand
+drawbox
+ds
+dsize
+dst
+dstflag
+dtime
+dumpmat
+ecvt.3
+edflag
+egid
+elem
+emptyrow
+ename
+end.3
+endfsent
+endhostent
+endnetent
+endprotoent
+endservent
+endwin
+envp
+eoff
+eotf
+eptr
+errf
+errlist
+etime
+etime.3f
+euid
+evalue
+exec'ed
+exece
+execl.3
+exect
+exit.3
+exit.3f
+exp.3m
+extern
+fclose.3s
+fd
+fd2p
+fdate
+fdate.3f
+ferror.3s
+ffrac
+ffs
+file.c
+filedes
+firstkey
+flmax
+flmin
+flmin.3f
+floor.3m
+flush.3f
+fmt,arg1,arg2
+fork.3f
+formatted
+formfeed
+fortran
+forw
+fpecnt
+fpeflt
+fperr
+frag
+fread.3s
+freq
+frexp.3
+fseek.3f
+fseek.3s
+fsize
+fstab
+fstab.h
+ftime
+func
+funtions
+gamma.3m
+gcvt
+gdefault
+gerror
+getarg.3f
+getc.3f
+getc.3s
+getcap
+getch
+getcwd
+getcwd.3f
+getdisk.3x
+getdiskbyname
+getenv.3
+getenv.3f
+getfsent
+getfsent.3x
+getfsfile
+getfsspec
+getfstype
+getgrent.3
+gethost
+gethostbyaddr
+gethostbyname
+gethostent
+gethostent.3n
+gethostname
+getlog
+getlog.3f
+getlogin.3
+getnet
+getnetbyaddr
+getnetbyname
+getnetent
+getnetent.3n
+getpass.3
+getpid.3f
+getproto
+getprotobyname
+getprotobynumber
+getprotoent
+getprotoent.3n
+getpw.3
+getpw.3c
+getpwent.3
+getrlimit
+getrusage
+gets.3s
+getserv
+getservbyname
+getservbyport
+getservent
+getservent.3n
+getstr
+gettimeofday
+gettmode
+getuid.3f
+getwd
+getwd.3
+getyx
+goff
+gon
+goto
+gprof
+grp.h
+hangup
+highpc
+host.equiv
+hostent
+hostlong
+hostnm
+hostnm.3f
+hosts.equiv
+hostshort
+htonl
+htons
+hypot.3m
+iargc
+iarray
+ibzr
+ictl
+idate
+idate.3f
+ident
+idrss
+idsrss
+ieof
+ierrno
+iflag
+imediately
+in.h
+inblk
+incr
+index.3f
+inet
+inet.3n
+inet.h
+initgroups
+initgroups.3x
+initscr
+initstate
+inmax
+inport
+insch
+insertln
+insque
+insque.3
+instantiations
+instr
+int2
+int4
+intro.3f
+intro.3s
+ioiflg
+ioinit
+ioinit.3f
+iptr
+irand
+irregardless
+isdst
+isize
+itime
+ixrss
+key.dptr
+keypad
+kill.3f
+koff
+kon
+l300s
+labelled
+lasty,lastx,newy,newx
+lcurses
+ldbm
+leaveok
+len
+lib2648
+lib2648.3x
+lib2648.a
+libF77.a
+libI66.a
+libI77.a
+libU77.a
+libc.a
+libcurses.a
+libdbm.a
+libm.a
+libplot.a
+libtermcap.a
+linemod
+lines,cols,begin
+link.3f
+lna
+lnaof
+lnblnk
+loc
+loc.3f
+log10
+logstat
+long.3f
+longname
+longword
+lowleft
+lowpc
+lplot
+lshift
+lstat
+ltermcap
+ltime
+lunit
+luser
+majflt
+makeaddr
+malloc.3
+math.h
+maxlen
+maxrss
+mday
+millitm
+min
+minflt
+minmax
+mktemp.3
+mnew
+mon
+mon.out
+moncontrol
+monitor.3
+monstartup
+movecurs
+msg
+mvcur
+mydata
+myprogram
+myresults
+name1
+name2
+namelist
+namlen
+nbits
+nbytes
+ncylinders
+ndigit
+ndigits
+nel
+nelem
+nerr
+net.host
+netdb.h
+netent
+netinet
+netlong
+netof
+netrc
+netshort
+newline
+newlines
+newmat
+newwin
+nextkey
+nfiles
+nfunc
+nice.3c
+nitems
+nl
+nlist.3
+nlist.h
+nocrmode
+noecho
+nonl
+noraise
+noraw
+nptr
+nrecs
+nsectors
+nswap
+ntoa
+ntohl
+ntohs
+ntracks
+numesg
+occured
+occurences
+opcodes
+open''ed
+opendir
+openlog
+openpl
+ospeed
+oublk
+outc
+outstr
+pag
+param.h
+passno
+pause.3c
+perror.3
+perror.3f
+pg
+pid
+plot.3x
+popen.3
+preceeded
+pred
+printf.3s
+printg
+printw
+proc
+proto
+protoent
+psignal
+psignal.3
+psl
+ptr
+ptrname
+pushback
+putc.3f
+putc.3s
+puts.3s
+pvar
+pw
+pwd.h
+qelem
+qsort.3
+qsort.3f
+rand.3c
+rand.3f
+random.3
+range.3f
+rawchar
+rboff
+rbon
+rcmd
+rcmd.3x
+rdchar
+readdir
+readline
+recno
+regex.3
+rem
+remque
+rename.3f
+resetty
+rewinddir
+rexec
+rexec.3x
+rexecd
+rgid
+rhost
+rhosts
+rindex
+rlogin
+rlogind
+rmax
+rmin
+rpm
+rresvport
+rshd
+rshift
+rss
+rtnval
+ruid
+ruserok
+savetty
+scandir
+scandir.3
+scanf.3s
+scanw
+scp
+scr
+scr,boolf
+scrollok
+secsize
+seekdir
+servent
+serverftp
+setbuf.3s
+setbuffer
+setclear
+setegid
+setenv
+seteuid
+setfsent
+setgroups
+sethostent
+setitimer
+setjmp.3
+setjmp.h
+setlinebuf
+setmat
+setnetent
+setpriority
+setprotoent
+setregid
+setreuid
+setrgid
+setrlimit
+setruid
+setservent
+setset
+setstate
+setterm
+settimeofday
+setuid.3
+setxor
+sevral
+sgtty.h
+sgttyb
+sig
+sigblock
+sigcontext
+siglist
+sigmask
+signal.3
+signal.3c
+signal.3f
+signal.h
+signgam
+signum
+sigpause
+sigsetmask
+sigstack
+sigvec
+sin.3m
+sinh.3m
+sizeof
+sleep.3
+sleep.3f
+socket.h
+srandom
+src
+standend
+standout
+stat.3f
+statb
+stayopen
+stdio.h
+stdscr
+str
+string.3
+strings.h
+stty.3c
+substr
+swab.3
+symlink
+symlnk
+syslog
+syslog.3
+syslog.h
+system.3
+system.3f
+tarray
+tclose
+tcp
+tcsr
+telldir
+termbuf
+termbuf,name
+termcap.3x
+tgetent
+tgetflag
+tgetnum
+tgetstr
+tgoto
+thompson
+time.3c
+time.3f
+time.h
+timeb
+timeb.h
+timekeeping
+timep
+times.3c
+times.h
+timezone
+tloc
+tlu
+tms
+togvid
+topen
+topen''ed
+topen.3f
+touchwin
+tputs
+traper
+traper.3f
+trapov
+trapov.3f
+trewin
+trpfpe
+trpfpe.3f
+tskipf
+tstate
+ttyinit
+ttynam
+ttynam.3f
+ttyname.3
+ttyslot
+twrite
+typedef
+types.h
+ucb
+unctrl
+unformatted
+ungetc.3s
+unlink.3f
+username
+utime.3c
+val
+valloc.3
+varargs
+varargs.3
+varargs.h
+vidinv
+vidnorm
+vlimit.3c
+vlimit.h
+vm
+vmunix
+vrbose
+vtimes.3c
+vtimes.h
+waddch
+waddstr
+wait.3f
+wclear
+wclrtobot
+wclrtoeol
+wday
+wdelch
+wdeleteln
+werase
+wgetch
+wgetstr
+win,boolf
+win,c
+win,ch
+win,fmt,arg1,arg2
+win,lines,cols,begin
+win,str
+win,vert,hor
+win,y,x
+win1
+win1,win2
+win2
+winsch
+winsertln
+wmove
+word1
+word2
+wprintw
+wrefresh
+wscanw
+wstandend
+wstandout
+xmat
+xor
+yday
+zermat
+zoomn
+zoomoff
+zoomon
+cat <<'EOF' >----------------
+Section 4
+5Mbytes
+ACC
+ACU
+AF
+ALLDELAY
+ARP
+ASKNAME
+AUTOCONF
+ArpaNet
+BBN
+BSDELAY
+BSP
+BUFSIZ
+Backoff
+Berknet
+CBREAK
+CHAN
+CPU
+CRDELAY
+CRMOD
+CSS
+CT
+CTL
+Crt
+DARPA
+DDCMP
+DECtape
+DGRAM
+DMA
+DMA'ed
+DMC
+DMF
+DMR
+DN
+DOSTOP
+DTABT
+Datagram
+Diablo
+Diskette
+EADDRINUSE
+EADDRNOTAVAIL
+EC
+ECC
+ECONNREFUSED
+ECONNRESET
+EISCONN
+EMSGSIZE
+ENETDOWN
+ENETUNREACH
+ENF
+ENOBUFS
+ENOTCONN
+ETIMEDOUT
+EVENP
+EWOULDBLOCK
+EXTA
+EXTB
+Emulex
+Ethernet
+Ethernets
+FASYNC
+FIONREAD
+FLUSHREAD
+FLUSHWRITE
+GETADDR
+GETDENS
+HK
+HY
+Hardcopy
+Hazeltine
+Hazeltines
+Helge
+ICMP
+IFF
+IK
+IL
+IMPLINK
+INADDR
+INET
+INIT
+IP
+ISHT
+ISMT
+ISTM
+ISTS
+ISUT
+Ik
+Ikonas
+KG
+LCASE
+LCRTBS
+LCRTERA
+LCRTKIL
+LCRTKILL
+LCTLECH
+LDECCTQ
+LDISC
+LETXACK
+LFLUSHO
+LINTRUP
+LLITOUT
+LMDMBUF
+LNOHANG
+LPENDIN
+LPRTERA
+LTILDE
+LTOSTOP
+MASSBUS
+MAXPUPSIZ
+MBEXC
+MINPUPSIZ
+ML11A
+ML11B
+MPSIZE
+MRSP
+MSCP
+MT
+MTBSF
+MTBSR
+MTFSF
+MTFSR
+MTIO
+MTIOCGET
+MTIOCTOP
+MTNOP
+MTOFFL
+MTREW
+MTWEOF
+N.B
+NCC
+NETLDISC
+NEX
+NEXUS
+NLDELAY
+NOCKSUM
+NOOP
+NOSTOP
+NOTRAILERS
+NSC
+NTTYDISC
+NXM
+ODDP
+ODT
+OFFLINE
+OTTYDISC
+PCL
+PDP11's
+PSAUTOMAP
+PSAUTOREFRESH
+PSDOUBLEBUFFER
+PSGETADDR
+PSSINGLEBUFFER
+PSSINGLEMAP
+PSSINGLEREFRESH
+PSSTOPMAP
+PSSTOPREFRESH
+PSTIMEREFRESH
+PSWAITMAP
+PSWAITREFRESH
+PTY
+PUPPROTO
+Proteon
+Quadracall
+RDDMK
+RDM
+RECVD
+RK07's
+RSP
+RTF
+RX
+RX02's
+RXIOC
+SDI
+SIGHUP
+SIGINT
+SIGIO
+SIGQUIT
+SIGTINT
+SIGTSTP
+SIGTTIN
+SIGTTOU
+SIOCADDRT
+SIOCDELRT
+SIOCGIFADDR
+SIOCGIFCONF
+SIOCGIFDSTADDR
+SIOCGIFFLAGS
+SIOCSIFADDR
+SIOCSIFDSTADDR
+SIOCSIFFLAGS
+SMD
+SWABIPS
+Skrivervik
+TAB0
+TAB1
+TAB2
+TBDELAY
+TCP
+TDM
+TIMEREFRESH
+TIOCCBRK
+TIOCCDTR
+TIOCEXCL
+TIOCFLUSH
+TIOCGETC
+TIOCGETD
+TIOCGETP
+TIOCGLTC
+TIOCGPGRP
+TIOCHPCL
+TIOCLBIC
+TIOCLBIS
+TIOCLGET
+TIOCLSET
+TIOCNXCL
+TIOCPKT
+TIOCREMOTE
+TIOCSBRK
+TIOCSDTR
+TIOCSETC
+TIOCSETD
+TIOCSETN
+TIOCSETP
+TIOCSLTC
+TIOCSPGRP
+TIOCSTART
+TIOCSTI
+TIOCSTOP
+TS
+TU
+TU58's
+Tchars
+Terminet
+UDA
+UDP
+UNIBUS
+UT
+UU
+UUDMA
+Ungermann
+VAX
+VAX'en
+VAX's
+VPLOT
+VSETSTATE
+VTDELAY
+VV
+Versatec
+WAITINT
+WDDMK
+WIRECENTER
+Wildcard
+Wirecenter
+XTABS
+acc
+acc0
+accrint
+accxint
+ad0
+adaptors
+addr
+adintr
+af
+arg
+args
+arp
+arpanet
+autocall
+autoconf
+autoconfiguration
+autoconfigure
+autoconfigured
+autodialer
+autoloads
+backoff
+blkno
+bn
+bp
+bpi
+brkc
+buf
+caddr
+calulates
+capricorn
+cbreak
+chan
+cnt
+cpu
+crt
+crt's
+cs
+cs1
+cs2
+csr
+css
+css0
+cssrint
+cssxint
+ct0
+ctintr
+cua
+cua0
+cua1
+cul
+cul0
+cul1
+cyl
+cyls
+daemon
+datagram
+dataphone
+dataset
+datasets
+db
+degaussed
+dh0
+dhost
+dhrint
+dhxint
+dialup
+dialups
+diskette
+diskettes
+diskpart
+dm0
+dma
+dmc
+dmc0
+dmcload
+dmcrint
+dmcxint
+dmf
+dmf0
+dmfdaint
+dmfdbint
+dmflint
+dmfrint
+dmfsrint
+dmfsxint
+dmfxint
+dmintr
+dn0
+dnet
+dnintr
+ds
+dsock
+dsreg
+dst
+dstaddr
+dsuspc
+dz0
+dzrint
+dzxint
+ec
+ec0
+ecc
+eccollide
+ecrint
+ecxint
+effectors
+en0
+enrint
+enxint
+eofc
+er
+erreg
+ethernet
+existant
+filedes
+flakey
+flushc
+formatted
+formatter
+formatters
+fx0
+fxxxxx
+hangup
+hardcopy
+hk0
+hk?a
+hk?b
+hk?c
+hk?g
+hosts's
+hp0
+hp?a
+hp?b
+hp?c
+hp?d
+hp?e
+hp?f
+hp?g
+hp?h
+ht0
+hy
+hy0
+hyint
+icsr
+if.h
+ifc
+ifconf
+ifcu
+ifcu.ifcu
+ifnet
+ifp
+ifr
+ifreq
+ifrequest
+ifru
+ifru.ifru
+ik0
+ikintr
+ikonas
+il
+il0
+ilcint
+ilrint
+imp.h
+impostors
+in.h
+inet
+info
+intr
+intrc
+ioctl.h
+ipl
+ips
+ispeed
+kbytes
+kg
+kg0
+kglock
+kgmon
+kludge
+ldisc
+len
+lnextc
+longword
+longwords
+loopback
+lp0
+lpintr
+ltchars
+mag
+mba
+mba's
+mba0
+mbsr
+mcr
+mcr's
+mod
+mpm
+mscp.h
+mt
+mt0
+mt11
+mt15
+mt16
+mt19
+mt23
+mt3
+mt7
+mt8
+mtget
+mtio
+mtio.h
+mtop
+mu0
+netimp
+netinet
+netpup
+newcrt
+newfs
+newline
+newlines
+npr
+nsectors
+ntracks
+occured
+ocsr
+offline
+olen
+online
+op
+ospeed
+pcl
+pcl0
+pclrint
+pclxint
+pgrp
+pk
+plotmd
+powerfails
+pre
+proNET
+prom
+proms
+prtmd
+ps0
+psec
+pseud
+psintr
+pty
+pup.h
+pupport
+quitc
+ra0
+ra?a
+ra?b
+ra?c
+ra?d
+ra?e
+ra?f
+ra?g
+ra?h
+rcr
+rcv
+recive
+recv
+recvfrom
+refcnt
+req
+resid
+resyncing
+rhk
+rhp
+rk0
+rk07's
+rkintr
+rlogin
+rlogind
+rmt
+rmt0
+rmt23
+route.h
+rprntc
+rra
+rrx
+rrx0a
+rrx0b
+rrx0c
+rrx0d
+rsr
+rt
+rtentry
+rup
+rx
+rx0
+rx1
+rxformat
+rxintr
+rxreg.h
+sc0
+sendto
+sg
+sgtty
+sgtty.h
+sgttyb
+shost
+sigvec
+snet
+sockaddr
+socket.h
+spup
+ssock
+startc
+stopc
+subsituting
+subsytem
+suspc
+ta
+tapemarks
+tchars
+tcontrol
+tcp
+tcr
+te0
+thru
+tj
+tj0
+tm0
+tmintr
+tri
+trk
+ts
+ts0
+tsintr
+tsr
+tty02
+ttyd
+ttyh2
+tu
+tu0
+types.h
+uba
+uba0
+ubinfo
+uda
+uda0
+udasa
+udintr
+udp
+un
+un0
+unibus
+unintr
+unuseable
+up0
+up?a
+up?b
+up?c
+up?d
+up?e
+up?f
+up?g
+up?h
+upintr
+uploading
+useable
+ut
+ut0
+utintr
+uu
+uu0
+uu?a
+uurintr
+uuxintr
+va0
+vaintr
+vax
+vaxuba
+vcmd.h
+vec
+versatec
+vp0
+vpbuf
+vpintr
+vs
+vv
+vv0
+vvicsr
+vvocsr
+vvrint
+vvxint
+vz0
+werasc
+wildcard
+xmit
+zero1
+zero2
+zs0
+cat <<'EOF' >----------------
+Section 5
+A.OUT
+A.out
+ACOMPAT
+ACORE
+ADDR
+ADM
+AFORK
+ARFMAG
+ARMAG
+ASU
+AXSIG
+BADMAG
+BCOMM
+BIZCOMP
+BSIZE
+BSS
+BUFSIZ
+Chksum
+DARPA
+DECtape
+DEV
+DIRBLKSIZ
+DIRSIZ
+DISKTAB
+DM2500,H2000
+DUMPINFMT
+DUMPOUTFMT
+DVI
+Datamedia's
+Disktab
+ECOML
+ECOMM
+EE:ta
+EK:xn
+ENH
+EOF
+EXT
+Ee:so
+FNAME
+FS
+FSTAB
+GETTYTAB
+GSYM
+Gettytab
+Hardcopy
+Hazeltine
+ID's
+INODE
+INOPB
+Inode
+Keypad
+Kj
+LBRAC
+LCSYM
+LENG
+LSYM
+Linkflag
+MAXBPC
+MAXBPG
+MAXBSIZE
+MAXCPG
+MAXCSBUFS
+MAXIPG
+MAXMNTLEN
+MAXNAMLEN
+MICOM
+MINBSIZE
+MLEN
+MSIZ
+Maxx
+Mime
+Mtime
+N.B
+NAMSIZ
+NBPI
+NIC
+NINDIR
+NMAGIC
+NRPOS
+NSPF
+NTREC
+Newline
+OMAGIC
+Op
+PRINTCAP
+PSYM
+Perkin
+Presotto
+Printcap
+RBRAC
+RSYM
+SARMAG
+SBSIZE
+SENDMAIL
+SLINE
+SSYM
+STROFF
+STSYM
+SYMOFF
+Siegler
+Stab.h
+Standout
+TBLOCK
+TVI
+TXTOFF
+Teleray
+UNDF
+UPAGES
+Uid
+Umount
+Upline
+Uudecode
+VAX
+VGRINDEFS
+Versatec
+Vgrindefs
+XOFF
+XON
+Xl
+ZMAGIC
+Zk
+a.out
+a.out.h
+acct.h
+acctbuf
+acctp
+addr
+adm3
+adm3:am:bs:cl
+aliases.dir
+aliases.pag
+ap
+ar.h
+arpavax
+asm
+basic:4
+blk
+blkno
+blkoff
+blks
+blksize
+bmask
+bool
+br
+bshift
+bsize
+btime
+buf
+caddr
+calc
+cau0:el
+cblkno
+cbreak
+cgmask
+cgoffset
+cgrotor
+cgsize
+chksum
+cifplot
+cl
+cl,ll,sf,sb
+cm
+comp
+compat
+concept100:is
+cont
+cpc
+cpg
+crt
+csaddr
+csmask
+csp
+csshift
+cssize
+cstotal
+csum
+ctrl
+cyl
+daemon
+dblkno
+dbtofsb
+dbuf
+dbx
+def
+desc
+di
+dialup
+dinode
+dir.h
+dirdesc
+diskpart
+disktab
+disktab.h
+ditroff
+dotdashed
+drsize
+dsize
+du:at
+dumpdates
+dumprestor.h
+dv
+e.g
+elt
+endif
+enum
+enviroment
+eol
+etime
+ev
+extern
+extern:1
+fds
+filesys
+fmag
+fmask
+formatted
+formfeed
+fortran
+fpg
+frag
+fragoff
+frags
+fragshift
+freelist
+freq
+fs.h
+fsbtodb
+fshift
+fsize
+fsmnt
+fstab
+fstab.h
+getfsent
+getfsfile
+getfsspec
+getfstype
+gethostent
+getnetent
+getprotoent
+getservent
+gettytab
+goto
+grp
+hangup
+hardcopy
+harris
+hblock
+hd
+hdr
+hn
+hostname
+iblkno
+idates
+ie
+ifdef
+ifndef
+im
+incno
+incore
+inet
+info
+initgroups
+ino
+inode.h
+inodes
+inopb
+inumber
+ipg
+kd
+keyletter
+keypad
+kh
+kludge
+kr
+ku
+lblkno
+lbn
+lcomm
+length:2
+level,address
+linefeed
+linemod
+linkflag
+linkname
+linknames
+lm
+loc
+logout
+longdashed
+lpc
+lsi
+mag
+magtapes
+makedev
+max
+maxbpg
+maxcontig
+maxx
+maxy
+mime
+minfree
+mod
+modtime
+mtab.h
+mtime
+nam
+name,,0
+name,,0,0,address
+name,,0,linenumber,address
+name,,0,subtype,line
+name,,0,type,0
+name,,0,type,address
+name,,0,type,offset
+name,,0,type,register
+name,,0,type,struct
+name,linenumber,address
+name2
+namelist
+namlen
+nbytes
+ncg
+ncyl
+newaliases
+newfs
+newline
+newlines
+nindir
+nsect
+nspf
+ntrak
+numfrags
+nx
+oe
+op
+or'ed
+overriden
+pac
+param.h
+pascal
+passno
+pcrel:1
+physadr
+plugboard
+pn
+postbl
+pre
+printcap
+quotacheck
+quotaon
+reclen
+resp
+rlink
+ronly
+rotbl
+rotdelay
+rpm
+rps
+rw,ro,sw
+sblkno
+sbsize
+sendmail
+setgroups
+setrlimit
+sgtty.h
+shortdashed
+sigvec
+sizeof
+sparecon
+spc
+spcl
+src
+ssize
+stab.h
+stabd
+stabn
+standout
+std
+steamerflies
+str
+strx
+swblk
+sym
+symbolnum
+symbolnum:24
+syms
+tabset
+tapea
+tapeaddr
+tapemark
+tcp
+tex
+tip300
+trampflies
+trsize
+tt
+tty33:co
+typedef
+types.h
+un.n
+undef
+unused1
+unused2
+user.h
+ushort
+utmp.h
+uudecode
+val
+vax
+vcat
+ve
+ventel:ie
+ver
+vgrindefs
+vipw
+vs
+xtnd
+cat <<'EOF' >----------------
+Section 6
+ATPB
+Allman
+BR
+Backslash
+Bournes
+Bros
+DDL
+ELIZA
+EOF
+Foderaro
+Fourr
+HJKL
+Heuer
+Hoyle
+Lebling
+McKusick
+Mikey
+PD
+RUBOUT
+Rogerian
+Rubout
+SEFC
+VAX
+VMS
+Weizenbaum
+Wichman
+Wumpus
+Yendor
+aliens.log
+amt1
+anual
+appl
+arg
+arp
+atus
+bdh
+canfield
+cards.pck
+category1
+category2
+cfscores
+cithep
+cmd
+commadore
+course1
+crt
+ddl
+ddlrun
+de
+debtee
+decwriter
+dict
+doc
+ds
+e.g
+epie
+erhd
+est
+fortunes.dat
+grainier
+hardcopy
+hasers
+hexagram
+hexagrams
+hjkl
+i.e
+ields
+isual
+logout
+mages
+mortgageable
+mpulse
+ndock
+newline
+newlines
+nfences
+nrobots
+omputer
+orpedo
+ove
+pture
+quiz.k
+req
+rogue.save
+rscan
+scrunched
+sefc
+snake.log
+snakerawscores
+snscore
+solitaire
+spread1
+strfile
+trekkie
+ucb
+utomatic
+wslao
+wumpus
+cat <<'EOF' >----------------
+Section 7
+ARPANET
+Adm
+Allman
+Arpa
+Berkeley.ARPA
+Berknet
+Bitnet
+CSNET
+DARPA
+DASI
+DIABLO
+DTC
+EXINIT
+Ethernet
+GSI
+L.sys
+LOGFILE
+MAILADDR
+MAKEDEV
+MAKEDEV.local
+MASBUS
+MULTICS
+Nofill
+PP
+RA
+RC
+RFC822
+Reg
+SM
+Seigler
+Tterm
+UCB
+UDel
+UNIBUS
+VAX
+a.out
+a.out.h
+abs.c
+access.s
+acct.h
+ack
+addrs
+adm3a
+africa
+ar.c
+arpavax
+as.1
+atrun
+bitnet
+bp
+brk.s
+calder.Berkeley.ARPA
+cat1
+ccom
+cf
+conf
+crt0.s
+cshrc
+csu
+csvax
+ctm
+daemon
+datebook
+del
+dh.c
+dialup
+dict
+disktab
+dle
+doc
+dumpdates
+ec.c
+eign
+en.c
+enq
+eric
+etb
+etx
+exdented
+exrc
+extern
+fIword
+fgets.c
+fopen.c
+fstab
+ftB
+ftR
+ftR.c
+gen
+gethostbyname.c
+hangups
+host.ARPA
+host.BITNET
+host.CC
+host.UUCP
+host:user
+hosta
+hostb
+hostb:user
+hostc
+hostnames
+hp.c
+ht.c
+imp.c
+imphost.c
+imphost.h
+ingvax
+lc
+libc.a
+libc.m
+lineprinter
+llib
+lm
+locore.s
+lpacct
+machdep.c
+mailaddr
+mailrc
+main.c
+man1
+math.h
+mba.c
+mcrt0.s
+mime
+monet
+monet.Berkeley.ARPA
+motd
+mount.1m
+mqueue
+msgsrc
+n.t.l
+netimp
+netinet
+netrc
+nical
+nofill
+p.i
+pac
+preformatted
+pupose
+quiz.k
+rc.local
+rcp
+rhp
+secretmail
+sendmail
+setenv
+socket.c
+soh
+spellhist
+src
+stat.h
+stdio.h
+stm
+stx
+syn
+syscalls.c
+tab300.c
+tf
+tmac
+tmac.an
+tmac.e
+tmac.s
+tmac.x
+tracct
+uba.c
+ucb
+ucbarpa
+ucbcad
+ucbcory
+ucbernie
+ucbingres
+ucbkim
+ucbvax
+uipc
+umlaut
+undef
+up.c
+user.host
+usr.bin
+uucico
+vaacct
+varian
+vax
+vaxif
+vaxmba
+vaxuba
+versatec
+vmunix
+vpacct
+vv.c
+wd
+xx
+yourname
+cat <<'EOF' >----------------
+Section 8
+0123456789fusdWn
+ADDR
+ALLO
+APPE
+ARPANET
+BAD144
+BADSECT
+BPI
+BUGFILER
+Babaoglu
+Bad144
+Badsect
+Bcc
+BerkNet
+Berknet
+Blksize
+Bugfiler
+CADDR
+CCNT
+CHM
+CLKT
+CNT
+COMSAT
+CONFIG
+CPU
+CPU's
+CRIT
+CRMOD
+CWD
+Catchall
+Cifplot
+Cmds
+Comsat
+Config
+Cory
+Countdown
+Crontab
+DADDR
+DARPA
+DBA0
+DELE
+DEV
+DISKPART
+DMA
+DMA0
+DRA0
+DRTEST
+DSK
+DUMPFS
+DVI
+Dept
+Diskpart
+Drtest
+Dumpfs
+ECC
+EDQUOTA
+EECS
+EMERG
+EMULEX
+ESSAA
+EVRAC
+Edquota
+FASTBOOT
+FLG
+FTPD
+Fastboot
+Formatted
+Fragsize
+Ftpd
+HKM
+HKS
+HPM
+HPS
+HTABLE
+HUP
+Helge
+Hostname
+Htable
+ICMP
+ID's
+IDC
+IMPLOG
+IMPLOGD
+INADDR
+INFO
+INIT
+INO
+IPC
+IPTR
+Implog
+Implogd
+Init's
+Inode
+Intransit
+KGMON
+KSP
+Kgmon
+Kovacs
+Kovacs,508E,7925,6428202
+LOC
+LPC
+LPD
+Leffler
+Lpc
+Lpd
+MAKEDEV
+MAKEDEV.local
+MASSBUS
+MIN
+MKLOST
+MKPROTO
+MTIOCGET
+MTIOCOP
+McKusick
+Minfree
+Mkproto
+N.B
+NCP
+NETLDISC
+NEWFS
+NI
+NIC
+NLK
+NLST
+NOHOST
+NOOP
+NOUSER
+NPR
+NTTYDISC
+Name1
+Name2
+Ncpg
+Newfs
+Nsect
+Ntrack
+OSERR
+OTTYDISC
+Ozalp
+PAC
+PCB
+PGRP
+PID
+POIP
+PPID
+PRI
+PRIO
+Pac
+Pprinter
+Prototocol
+QUOTACHECK
+QUOTAON
+Quotacheck
+Quotaoff
+Quotaon
+RC
+RDC
+RDUMP
+REPQUOTA
+RETR
+REXECD
+RFC
+RFC733
+RFC819
+RFC821
+RFC822
+RK07
+RK07's
+RLOGIND
+RM0X
+RMT
+RNFR
+RNTO
+RP0X
+RRESTORE
+RSHD
+RSS
+RWHOD
+RXFORMAT
+Rc
+Rc.local
+Rdump
+Repquota
+Rexecd
+Rlogind
+Rmt
+Rrestore
+Rshd
+Rwhod
+SALERT
+SAVECORE
+SBI
+SEC:PACKINIT
+SENDMAIL
+SETIFADDR
+SIGHUP
+SIOCADDRT
+SIOCDELRT
+SIOCGIFCONF
+SIOGIFCONF
+SIZ
+SLP
+SMTP
+SRSS
+SSE
+STOR
+STRU
+STST
+SYOPNSIS
+Savecore
+Sendmail
+Setifaddr
+Sklower
+Skrivervik
+Standford
+Syslog
+TCP
+TE16,TU45,TU77
+TELNET
+TELNETD
+TEMPFAIL
+TEXTP
+TFTP
+TFTPD
+TRPT
+TSTP
+TUNEFS
+Telnetd
+Tex
+Tftpd
+Trpt
+Tunefs
+UCB
+UDA50
+UDP
+UID
+UNIBUS
+UPM
+UUSNAP
+Umount
+Uusnap
+VAX
+VIPW
+Vipw
+WCHAN
+WRC
+XCUP
+XCWD
+XMKD
+XPWD
+XRMD
+XSIS
+XTABS
+Xqts
+abcdDfijkKlnrstuv
+abreviated
+abreviation
+ack
+adapter,unit
+adaptor
+addr
+adduser.8
+aixptufT
+aliases.dir
+aliases.pag
+analyze.8
+arcv.8
+arff.8v
+arg
+args
+arpa
+ast
+autoboot
+avio
+axl
+ba
+backslash
+bad144
+bad144.8
+badsect
+badsect.8
+bbdir
+bd
+bi
+biff
+blksize
+bm
+bootstrapped
+boottime
+bp
+bpt
+bse
+bt
+bugfiler
+bugfiler.8
+bv
+bz
+catman.8
+cf
+chown.8
+cifplot
+clri.8
+cmd
+comsat
+comsat.8c
+conf
+conf.c
+config.8
+corefile
+coremap
+cpu
+cpu's
+crash.8v
+cron.8
+crontab
+cshrc
+csn
+csvax
+cyl
+daemon
+daemons
+dameons
+datagram
+dcheck.8
+dead.letter
+deamons
+dec
+degaussed
+devices.vax
+dialup
+dieing
+diskette
+diskmap
+diskpart
+diskpart.8
+disktab
+disktype
+dissappears
+dkbad
+dmesg.8
+dmf
+drtest
+drtest.8
+dump.8
+dumpdates
+dumpfs
+dumpfs.8
+ec6d
+ecc
+ecc's
+edquota
+edquota.8
+eric
+ernie
+ernie's
+ernie::235:20
+fastboot
+fastboot.8
+fasthalt
+files.ERNIE
+files.vax
+filesys
+flakey
+format.8v
+formatted
+formatter
+formatting...make
+found.8
+frag
+fragsize
+freeblock
+fsck.8
+fstab
+fsync
+ftp
+ftpd
+ftpd.8c
+ftplog
+ftpusers
+fullname
+gethostent
+gethostname
+getnetent
+getpriority
+getservbyname
+gettable.8c
+getty.8
+gettytab
+gmon.out
+googol
+gprof
+halt.8
+hangup
+hostname
+hosts.equiv
+hosts.txt
+htable
+htable.8
+icheck.8
+implog
+implog.8c
+implogd
+implogd.8c
+incore
+inet
+info
+ing
+init's
+init.8
+innocuous
+inodes
+inscruitable
+instantiate
+intransit
+intstack
+inumber
+ioconf.c
+jobnum
+john
+kalash
+kgmon
+kgmon.8
+kilo
+kridle
+len
+loadav
+localgateways
+localhosts
+localnetworks
+logfile
+loopback
+lpc
+lpc.8
+lpd.8
+machine:device
+mailaddr
+maildir
+mailq
+makedev
+makedev.8
+makefile
+makefile.vax
+makekey.8
+makewhatis
+maxbpg
+maxcontig
+mba
+mba0
+mba1
+mbz
+mdec
+min
+minfree
+mkfs.8
+mklost
+mknod.8
+mkproto
+mkproto.8
+mnt
+mount.8
+mqueue
+msgbuf
+mt
+mtio
+name1
+name2
+namelist
+ncheck.8
+ncpg
+netstat
+newaliases
+newfs
+newfs.8
+newlines
+nicname
+nnnnn
+nologin
+nsect
+ntrack
+online
+op
+outmp
+p0br
+pac
+pac.8
+pathnames
+pgrp
+pid
+ploter
+pprice
+pre
+preformatted
+printcap
+proto
+pseduo
+pstat.8
+ptmp
+pty
+putput
+queuedir
+queueing
+quot.8
+quotacheck
+quotacheck.8
+quotaoff
+quotaon
+quotaon.8
+radix50
+rc.local
+rcmd
+rdump
+rdump.8c
+reboot.8
+recvtime
+renice.8
+repquota
+repquota.8
+restore.8
+restoresymtab
+rexec
+rexecd
+rexecd.8c
+rhosts
+rlogin
+rlogind
+rlogind.8c
+rmail
+rmt
+rmt.8c
+rmt8
+roms
+rotdelay
+route.8c
+routed.8c
+rp0g
+rps
+rrestore
+rrestore.8c
+rrp0g
+rrp1g
+rrx
+rrx0
+rrx1
+rshd
+rshd.8c
+rstdir
+rstmode
+ruptime
+rwho
+rwhod
+rwhod.8c
+rxformat
+rxformat.8v
+sandbagged
+savacct
+savecore
+savecore.8
+selfexplanatory
+sendberkmail
+sendmail
+sendmail.8
+sendmail.cf
+sendmail.fc
+sendmail.hf
+sendmail.st
+sendtime
+setifaddr
+setifaddr.8c
+setitimer
+setpriority
+setquota
+setsockopt
+shutdown.8
+shutdownlog
+sizeof
+skel
+sno
+sockstamp
+standalone
+std
+sticky.8
+stz,dtz
+swapfile
+swapon.8
+sync.8
+sysexits.h
+syslog
+syslog.8
+syslog.conf
+syslog.h
+syslog.pid
+sysname
+ta
+telnet
+telnetd
+telnetd.8c
+tftp
+tftpd
+tftpd.8c
+threshhold
+tio
+topq
+trksec
+trpt
+trpt.8c
+ttyd
+tunefs
+tunefs.8
+tuneup
+typeX
+uba
+uba0
+ubglue.s
+udp
+unixtomh
+update.8
+username
+usracct
+uuclean.8c
+uusnap
+uusnap.8c
+vers
+vipw
+vipw.8
+vmcore
+vmcore.n
+vmunix
+vmunix.n
+whod
+whoent
+xfc
+zz
diff --git a/usr/src/share/man/tools/noso.c b/usr/src/share/man/tools/noso.c
new file mode 100644 (file)
index 0000000..a5fd201
--- /dev/null
@@ -0,0 +1,34 @@
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/file.h>
+
+main(argc, argv)
+       char *argv[];
+{
+       struct stat sb;
+       register char *cp;
+       int i, fd, count = 0;
+       char buf[10];
+
+       for (cp = "", i = 1; i < argc; cp = " ", i++) {
+               if (lstat(argv[i], &sb) < 0)
+                       continue;
+               if ((sb.st_mode & S_IFMT) != S_IFREG)
+                       continue;
+               fd = open(argv[i], O_RDONLY);
+               if (fd < 0) {
+                       perror(argv[i]);
+                       continue;
+               }
+               if (read(fd, buf, 3) != 3) {
+                       close(fd);
+                       continue;
+               }
+               if (strncmp(buf, ".so", 3))
+                       count++, printf("%s%s", cp, argv[i]);
+               close(fd);
+       }
+       if (count > 0)
+               putchar('\n');
+}
diff --git a/usr/src/share/man/tools/pages.c b/usr/src/share/man/tools/pages.c
new file mode 100644 (file)
index 0000000..9e2e6d4
--- /dev/null
@@ -0,0 +1,34 @@
+#include <stdio.h>
+
+#define T_INIT 0100
+#define T_STOP 0111
+
+long   charin;                 /* number of input character */
+
+main(argc, argv)
+char   **argv;
+{
+
+       int      npages = 0;
+       register int    c;
+
+       while((c=getchar()) != EOF) {
+               charin++;
+               c &= 0377;
+               if(c != T_INIT)
+                       continue;
+               else {
+                       c=getchar();
+                       c &= 0377;
+                       if(c == T_STOP) {
+                               npages++;
+                               charin++;
+                       }
+               }
+       }
+       if(charin<5) {
+               fprintf(stderr, "%s: no input\n", argv[0]);
+               exit(1);
+       }
+       printf("%d\n", npages);
+}
diff --git a/usr/src/share/man/tools/pgcnt b/usr/src/share/man/tools/pgcnt
new file mode 100755 (executable)
index 0000000..6a7d4f0
--- /dev/null
@@ -0,0 +1,92 @@
+set x $*
+. ./.param
+
+PATH=$PATH:$MANDIR/tools
+
+sm=
+if test "$PFLAG" -eq 1
+then
+       sm="-rs1"
+fi
+
+for dir in $DIRLST
+do
+       cd $MANDIR/man$dir
+       date > $TMPDIR/pages$dir
+       echo >> $TMPDIR/pages$dir
+       for file in $FILLST
+       do
+               prep="cat $file |"
+
+               first=`line < $file`
+               case "$first" in
+                       .so*)   continue
+                               ;;
+                       \'\\\"*)
+                               option=`expr "$first" : '.* \(.*\)'`
+                               case "$option" in
+                                       c)
+                                               prep="${prep} cw |"
+                                               ;;
+                                       e)
+                                               prep="${prep} eqn |"
+                                               ;;
+                                       t)
+                                               prep="${prep} tbl |"
+                                               ;;
+                                       ce | ec)
+                                               prep="${prep} cw | eqn"
+                                               ;;
+                                       ct | tc)
+                                               prep="${prep} cw | tbl |"
+                                               ;;
+                                       et | te)
+                                               prep="${prep} tbl | eqn |"
+                                               ;;
+                                       cet | cte | ect | etc | tce | tec)
+                                               prep="${prep} cw | tbl | eqn |"
+                                               ;;
+                               esac
+                               ;;
+                       *)
+                               ;;
+               esac
+
+               numb=`eval ${prep} troff -man $sm -s -f -t | pages`
+               echo "$file     $numb" >> $TMPDIR/pages$dir
+       done
+done
+
+tsum=0
+cd $TMPDIR
+date > totalpgs
+echo >> totalpgs
+
+for dir in $DIRLST
+do
+       ed - pages$dir <<!
+               1,2d
+               w tmp1.$$
+               q
+!
+       sum=0
+       while read val
+       do
+               val=`echo $val | sed "s/.* / /"`
+               sum=`expr $sum + $val`
+               if test $? -eq 2
+               then
+                       echo "pgcnt: error in summing - sum is $sum, val is $val"
+                       exit
+               fi
+               echo $sum > tmp.$$
+       done < tmp1.$$
+       sumt=`line < tmp.$$`
+       echo "total pages Section $dir -- $sumt" >> totalpgs
+       tsum=`expr $tsum + $sumt`
+done
+
+echo >> totalpgs
+echo >> totalpgs
+echo "total pages -- $tsum" >> totalpgs
+rm tmp.$$ tmp1.$$
diff --git a/usr/src/share/man/tools/prnames b/usr/src/share/man/tools/prnames
new file mode 100755 (executable)
index 0000000..fe5f0df
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       date > $TMPDIR/names$dir
+       echo >> $TMPDIR/names$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so" 
+               then
+                       continue
+               fi
+               ed - $file >> $TMPDIR/names$dir <<!
+                       /^.SH NAME/+
+                       q
+!
+       done
+done
diff --git a/usr/src/share/man/tools/prsynops b/usr/src/share/man/tools/prsynops
new file mode 100755 (executable)
index 0000000..a0cfffe
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+       date > $TMPDIR/synops$dir
+       echo >> $TMPDIR/synops$dir
+       cd $MANDIR/man$dir
+       for file in $FILLST
+       do
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               nroff -man $file > $TMPDIR/tmp.$$
+               echo "$file:" >> $TMPDIR/synops$dir
+               ed - $TMPDIR/tmp.$$ >> $TMPDIR/synops$dir <<!
+                       /SYNOPSIS/;+,/^     [A-Z][A-Z][A-Z][A-Z]/-p
+                       q
+!
+       done
+done
+
+rm -f $TMPDIR/tmp.$$
diff --git a/usr/src/share/man/tools/sp.ignore b/usr/src/share/man/tools/sp.ignore
new file mode 100644 (file)
index 0000000..057be89
--- /dev/null
@@ -0,0 +1,1894 @@
+300
+300S
+300s
+4014
+450
+70boot
+ACCT
+Acctdisk
+Accton
+Acctsh
+Acctwtmp
+BPT
+CONV
+CR
+Datamedia
+EACCES
+EAGAIN
+EBADF
+EBUSY
+ECHILD
+EDOM
+EDTEST
+EEXIST
+EFAULT
+EFBIG
+EINTR
+EINVAL
+EIO
+EISDIR
+EMFILE
+EMLINK
+EMT
+ENFILE
+ENODEV
+ENOENT
+ENOEXEC
+ENOMEM
+ENOSPC
+ENOTBLK
+ENOTDIR
+ENOTTY
+ENXIO
+EOT
+EPERM
+EPIPE
+ERANGE
+EROFS
+ESPIPE
+ESRCH
+ETXTBSY
+EXDEV
+Errno
+FILESAVE
+FOPEN
+FSCK
+Fdopen
+Fildes
+Filesave
+Fopen
+Freopen
+Fsck
+Fsize
+GCOS
+HS
+HyType
+ID
+INTRO
+IOT
+Init
+LF
+Longjmp
+Ltol3
+MKDIR
+Mkdir
+Ninode
+PASSWD
+PC
+PS1
+PS2
+Passwd
+Pathnames
+Pcc
+Prtacct
+RH11
+RJS03
+RJS04
+RP
+RP03
+RP04
+RP05
+RP06
+Rmdir
+SETJMP
+STDIO
+SYSLOG
+Setjmp
+Toascii
+Toupper
+ULIMIT
+USERFILE
+UTMP
+UUCP
+Uucp
+_tolower
+_toupper
+a64l
+abs
+acct
+acctcms
+acctcom
+acctcon
+acctdisk
+acctmerg
+accton
+acctprc
+acctsh
+acctwtmp
+acos
+adb
+adm
+ar
+ascii
+asctime
+asin
+atan
+atan2
+atof
+atoi
+atol
+awk
+backgammon
+backrules
+basename
+bc
+bessel
+bj
+blkdev
+brk
+bs
+bss
+cal
+calloc
+cb
+cc
+cd
+ceil
+chdir
+chessrules
+chgrp
+chmod
+chown
+chroot
+clrerr
+clri
+cmp
+col
+comm
+config
+conv
+cos
+cosh
+cp
+cpio
+cpp
+creat
+cref
+cron
+crt0
+ctermid
+ctime
+ctype
+cu
+cubic
+cuserid
+cx
+daddr
+dc
+dc1
+dc2
+dc3
+dc4
+dcheck
+dd
+deroff
+dev
+devnm
+devtab
+df
+dh
+dialcodes
+diff
+diff3
+diffmk
+dir
+dircmp
+dirname
+diskboot
+dn
+dpd
+dpr
+du
+dup
+ecvt
+ed
+edata
+egrep
+encrypt
+endgrent
+endpwent
+env
+environ
+eot
+eqn
+eqnchar
+err
+errdead
+errdemon
+errfile
+errno
+errpt
+errstop
+esc
+etext
+exec
+execl
+execle
+execlp
+execv
+execve
+execvp
+exp
+expr
+f77
+fabs
+fcheck
+fclose
+fcntl
+fcrt0
+fcvt
+fdopen
+feof
+ferror
+fflush
+fget
+fgetc
+fgets
+fgrep
+fildes
+file1
+file2
+file3
+filename
+fileno
+filesave
+filesystem
+filesystems
+filsys
+fmod
+fname
+fopen
+fprintf
+fptrap
+fputc
+fputs
+fread
+freopen
+frexp
+fs
+fscanf
+fsck
+fsdb
+fseek
+fsend
+fstat
+ftell
+fwrite
+gamma
+gcat
+gecos
+getblk
+getc
+getchar
+getegid
+getenv
+geteuid
+getgid
+getgrent
+getgrgid
+getgrnam
+getlogin
+getpass
+getpid
+getppid
+getpw
+getpwent
+getpwnam
+getpwuid
+gets
+getty
+getuid
+getw
+gid
+globl
+gmtime
+grep
+gsignal
+gtty
+hangman
+hp
+hs
+ht
+hypot
+icheck
+id
+iinit
+indir
+init
+inittab
+inode
+intro
+ioctl
+isalnum
+isalpha
+isascii
+isatty
+iscntrl
+isdigit
+islower
+isprint
+ispunct
+isspace
+isupper
+j0
+j1
+jmp
+jn
+ka6
+kas
+kl
+kmc
+kmem
+kun
+l3tol
+l64a
+labelit
+ld
+ldexp
+lex
+lib
+libc
+libm
+lint
+ln
+localtime
+log
+login
+logoff
+logouts
+longjmp
+lorder
+lp
+lpd
+lpr
+ls
+lseek
+ltol3
+m4
+magtape
+makekey
+malloc
+man0
+maze
+mcrt0
+mem
+mesg
+mk
+mkdir
+mkfs
+mknod
+mktemp
+mm
+mmt
+mnttab
+modf
+monitor
+moo
+mv
+mvdir
+mvt
+nak
+ncheck
+neqn
+newgrp
+nlist
+nm
+nohup
+nroff
+nsh
+nts
+nul
+od
+odpd
+pacct
+param
+passwd
+pathname
+pcat
+pcc
+pclose
+perror
+popen
+pow
+pr
+printf
+prof
+profil
+ps
+ptrace
+ptx
+putc
+putchar
+putpwent
+puts
+putw
+pwd
+qsort
+rand
+ratfor
+rc
+realloc
+reg
+regexp
+restor
+reversi
+rf
+rk
+rm
+rmdir
+romboot
+rp
+rsh
+rubout
+runtime
+sbrk
+scanf
+sdiff
+sed
+setbuf
+setgid
+setgrent
+setjmp
+setkey
+setmnt
+setpgrp
+setpwent
+setuid
+sh
+shcvt
+shutdown
+sin
+sinh
+spline
+sprintf
+sqrt
+srand
+sscanf
+ssh
+ssignal
+startoff
+stat
+stderr
+stdin
+stdio
+stdout
+stime
+strcat
+strchr
+strcmp
+strcpy
+strlen
+strncat
+strncmp
+strncpy
+strrchr
+struct
+stty
+su
+swab
+sync
+sys
+sys_errlist
+sys_nerr
+syscall
+tacct
+tan
+tanh
+tapeboot
+tapesave
+tbl
+tc
+temp
+tm
+tmp
+tmpnam
+toascii
+tolower
+toupper
+tp
+tr
+trig
+troff
+tsort
+tss
+ttt
+tty
+ttyname
+typo
+tzset
+ufs
+uid
+ulimit
+umask
+umount
+uname
+ungetc
+uniq
+unixboot
+unlink
+unpack
+userid
+usr
+ustat
+utime
+utmp
+uuclean
+uucp
+uulog
+uux
+volcopy
+wc
+whodo
+wtmp
+wump
+xargs
+xref
+y0
+y1
+yacc
+yn
+1ic
+4.1bsd
+ACU
+ACU's
+ADDR
+ANOM
+ARGSUSED
+ARPANET
+Aahimnrs
+Afile
+Aho
+Allman
+Arg
+BFatuwvx
+BIFF
+BIZCOMP
+BS.ES
+BSS
+Babaoglu
+Backslashes
+Backus
+Bedminster
+Berknet
+Bernardsville
+Bfile
+Biff
+Bizcomp's
+Bourne
+Branchburg
+Breedlove
+CAI
+CFLAGS
+CK
+CONT
+CPU
+CRT's
+CRTERASE
+CRTKILL
+Cbs
+Cfoo
+Changequote
+Colin
+Corfil
+Cory
+Cpu
+DASI
+DB
+DBX
+DEC's
+DECtape
+DSG
+Dbx
+Delimeters
+Diablo
+Dstring
+EBCDIC
+EOF
+ESC
+FFLAGS
+FILENAME
+FP
+FTP
+Ferrin
+File1
+Filename
+Foderaro
+Fortran77
+Fp
+Ftp
+GCORE
+GID
+GPROF
+GSI
+GT
+Gallager
+Gcore
+HOSTID
+HOSTNAME
+HUP
+Hazeltine
+Hertzfeld
+Horton,508E,7686,5240633
+Hostnames
+Hyterm
+I.E.E.E
+IDs
+IM
+ISP
+Ignoreeof
+Katseff
+Kernighan
+Keypad
+Kleckner
+Kulp
+LCK
+LE
+LFLAGS
+LIM
+LINTLIBRARY
+LOGFILE
+LR
+LT
+Larus
+Laxenburg
+Lesk
+Levinsky
+Llopart
+MACLISP
+MFLAGS
+MOS
+MT
+Mail.help
+Mail.rc
+Makefile
+McKusick
+Mt
+N.B
+NETSTAT
+NEWALIASES
+NOSTRICT
+NOTREACHED
+NUL
+Newaliases
+Newline
+Newlines
+Niklaus
+Nohup
+Nowitz
+OED
+OFMT
+OFS
+Objfil
+Orderlist
+Ossanna
+Ozalp
+PAGEIN
+PDP
+PDX
+PFLAGS
+PID
+PMERGE
+PPID
+PRI
+Pathname
+Pdx
+Pelegri
+Plauger
+Pmerge
+Pos1
+Pprinter
+Pre
+Presotto
+Procs
+RCP
+RCVD
+RLOGIN
+RSH
+RSS
+RUBOUT
+RUPTIME
+RWHO
+RWNA
+Rankine
+Rcp
+Reiser
+Retargetted
+Rlogin
+Rowan
+Rsh
+Rubout
+Runtime
+Ruptime
+SANOM
+SBM
+SCAPS
+SCCS
+SDETACH
+SDLYU
+SEQL
+SIG
+SIGALRM
+SIGCHILD
+SIGCONT
+SIGINT
+SIGKILL
+SIGPLAN
+SIGQUIT
+SIGTERM
+SIGTINT
+SKEEP
+SL
+SLOAD
+SLOCK
+SNOVM
+SNUSIG
+SPAGE
+SPAGI
+SPHYSIO
+SSIZ
+SSWAP
+SSYS
+STIMO
+STRC
+SUANOM
+SULOCK
+SVFDONE
+SVFORK
+SWEXIT
+SWTED
+SYMDEF
+SYSLINE
+Schriebman
+Shienbrood
+Shoens
+Sklower
+Sname
+Spellin
+Spellout
+Substitition
+Symbolfile
+TELNET
+TENEX
+TRS
+TSIZ
+TW
+Televideo
+Televideos
+Telnet
+Temp
+TermiNet
+Twp
+UCB
+UCI
+UID
+Uudecode
+VARARGS
+VAX
+VLP
+VMS
+VWIDTH
+Vadic
+Ventel's
+Versatec
+Vfontedpr
+Vol
+Vwidth
+WCHAN
+Wasley
+Wirth
+XXXXX
+YFLAGS
+ZZ
+a.out
+aN
+aa
+abcdeglmn
+abcdoxDOXw
+abchnpuvx
+abcissas
+abe
+abi
+acdfgilqrstu1ACLFR
+acegklstuvwx
+ARG
+ASKNAME
+AUTOBOOT
+Addr
+Arg
+BADSIG
+Bpt
+Buf
+CHROOT
+CPU
+Chme
+Chms
+Chmu
+Chroot
+DARPA
+DECOVF
+DEFERSIG
+DFL
+DGRAM
+DOFLAG
+DONTBLOCK
+DOPT
+Dirname
+Dopt
+E2BIG
+EACCESS
+EADDRINUSE
+EADDRNOTAVAIL
+EAFNOSUPPORT
+EALREADY
+ECHLID
+ECONNABORTED
+ECONNREFUSED
+ECONNRESET
+EDESTADDRREQ
+EINPROGRESS
+EINTRY
+EISCONN
+ELOOP
+EMSGSIZE
+EMSGSIZZE
+ENAMETOOLONG
+ENETDOWN
+ENETRESET
+ENETUNREACH
+ENOBUFS
+ENOPROTOOPT
+ENOTCONN
+ENOTEMPTY
+ENOTSOCK
+EOPNOSUPPORT
+EOPNOTSUPP
+EPFNOSUPPORT
+EPROTONOSUPPORT
+EPROTOTYPE
+ESHUTDOWN
+ESOCKTNOSUPPORT
+ETIMEDOUT
+EWOULDBLOCK
+Envp
+FAPPEND
+FCREATE
+FEXLOCK
+FILENAME
+FIOCLEX
+FIONBIO
+FIONCLEX
+FIONREAD
+FLTDIV
+FLTOVF
+FLTUND
+FNBLOCK
+FPE
+FRDONLY
+FRDWR
+FSHLOCK
+FSIZE
+FSYNC
+FTRUNCATE
+FUNLOCK
+FWRONLY
+Fchmod
+Fchown
+Fd
+Febuary
+Fromlen
+Fstat
+Fsync
+Ftruncate
+Func
+GETDOPT
+GETDTABLESIZE
+GETGID
+GETGROUPS
+GETHOSTID
+GETHOSTNAME
+GETITIMER
+GETPAGESIZE
+GETPRIORITY
+GETRLIMIT
+GETRUSAGE
+GETSOCKNAME
+GETSOCKOPT
+GETTIMEOFDAY
+Getgid
+Getgroups
+Gethostid
+Gethostname
+Getpagesize
+Getppid
+Getpriority
+Getrusage
+Getsockname
+Gettimeofday
+Howto
+ID's
+IEXEC
+IFBLK
+IFCHR
+IFDIR
+IFLNK
+IFMT
+IFREG
+IFSOCK
+IGN
+IMPLINK
+INCR
+INET
+INTDIV
+INTOVF
+IREAD
+ISGID
+ISUID
+ISVTX
+ITIMER
+IWRITE
+Iovcnt
+Lstat
+MADV
+MADVISE
+MINCORE
+MMAP
+MPROTECT
+MREMAP
+MSG
+MUNMAP
+Madvise
+Mincore
+Mmap
+Mprotect
+Mremap
+Munmap
+NGRPS
+NODEV
+Name1
+Name2
+OOB
+Oldd
+Othewise
+PATHNAME
+PGRP
+PKTSTREAM
+PRIO
+PRIVIN
+PROC
+PROT
+PSL
+Param
+Prio
+Proc0
+Proc1
+Proc2
+READLINK
+RECV
+RLIMIT
+RSS
+RUSAGE
+Readlink
+Readv
+Recv
+Recvmsg
+SETGROUPS
+SETREGID
+SETREUID
+SIG
+SIGALRM
+SIGBUS
+SIGCHLD
+SIGCONT
+SIGDOPAUSE
+SIGDORTI
+SIGEMT
+SIGFPE
+SIGHUP
+SIGILL
+SIGINT
+SIGIO
+SIGIOT
+SIGKILL
+SIGNALPGRP
+SIGNALPROC
+SIGPIPE
+SIGPROF
+SIGQUIT
+SIGSEGV
+SIGSTOP
+SIGTERM
+SIGTRAP
+SIGTSTP
+SIGTTIN
+SIGTTOU
+SIGURG
+SIGVTALRM
+SIGXCPU
+SIGXFSZ
+SIOCGPGRP
+SIOCSPGRP
+SOCKETPAIR
+SOF
+STK
+SUBRNG
+SYMLINK
+SYSCALL
+Sbrk
+Sendmsg
+Setgroups
+Sethostid
+Sethostname
+Sig
+Sstk
+Stk
+Swapoff
+Syscall
+THe
+TIOCGPGRP
+TIOCSPGRP
+Tvp
+UDP
+UID
+Unpriviledged
+VAX
+WILLNEED
+WNOHANG
+WONTNEED
+WUNTRACED
+Writev
+XTND
+Acos
+Alphasort
+Arg
+Argv
+Asctime
+Asin
+Atan
+Atan2
+Atoi
+BSD
+BSTRING
+BUFSIZ
+BYTEORDER
+Bcmp
+Bcopy
+Bis
+Bp
+Bzero
+CBREAK
+CallingHost
+Calloc
+Closedir
+Closelog
+Closepl
+Clrerr
+Compar
+DARPA
+DASI
+DFL
+DISKTAB
+DNDEBUG
+DST
+Dptr
+Dtime
+EOF
+ETIME
+Endfsent
+Endgrent
+Endhostent
+Endnetent
+Endprotoent
+Endservent
+Envp
+Etext
+FDATE
+FSNMLG
+Fabs
+Fcvt
+Fdate
+Feof
+Fflush
+Fgetc
+Fgets
+Fileno
+Firstkey
+Fprintf
+Fputc
+Fputs
+Fscanf
+Ftell
+Func
+Fwrite
+GETDISKBYNAME
+GETFSENT
+GETHOSTENT
+GETLOG
+GETNETENT
+GETPROTOENT
+GETSERVENT
+GETWD
+GSI
+Gcvt
+Gerror
+Getchar
+Getdiskbyname
+Getfsent
+Getfsspec
+Gethostbyname
+Gethostent
+Getlog
+Getnetbyname
+Getnetent
+Getprotobyname
+Getprotoent
+Getpwuid
+Getservbyname
+Getservent
+Getw
+Getwd
+Gtty
+HPIB
+IDATE
+IGN
+INET
+INFO
+INITGROUPS
+ITIMER
+Idate
+Ierrno
+Initgroups
+Initstate
+Irand
+Isascii
+Isatty
+Itime
+LIB2648
+LOC
+LTOSTOP
+Ldexp
+Lib2648
+Lnblnk
+Localtime
+Lowpc
+Lshift
+Ltime
+MAXPATHLEN
+MAXUINT
+Modf
+Moncontrol
+Monstartup
+Msg
+NSIG
+Name1
+Name2
+Nbytes
+OOPS
+Opendir
+Openlog
+Openpl
+PDP
+PDP11
+PDP11's
+PID
+PSIGNAL
+Pclose
+Pid
+Psignal
+Putchar
+Putw
+RCMD
+REXEC
+Rcmd
+Readdir
+Realloc
+Rewinddir
+Rexec
+Rresvport
+Rshift
+Ruserok
+SALERT
+SCANDIR
+SIG
+SIGALRM
+SIGCHLD
+SIGCONT
+SIGFPE
+SIGTSTP
+SIGTTIN
+SIGTTOU
+Scandir
+Seekdir
+Sep
+Setbit
+Setbuffer
+Setfsent
+Sethostent
+Setlinebuf
+Setnetent
+Setprotoent
+Setservent
+Setstate
+Sighold
+Sigignore
+Signum
+Sigpause
+Sprintf
+Sqrt
+Sscanf
+Strcat
+Strcmp
+Strcpy
+Strlen
+Strncat
+Strncmp
+Strncpy
+Syslog
+TIOCGETP
+TIOCGPGRP
+TIOCSETP
+TIOCSPGRP
+TRAPER
+TRAPOV
+TTYNAM
+TW
+Telldir
+Tgetent
+Tgetflag
+Tgetnum
+Tgetstr
+Tgoto
+Timezone
+Tputs
+Ttynam
+Ttyslot
+VARARGS
+VAX
+VAX'en
+Vax
+Vfree
+XTABS
+ACC
+ACU
+AF
+ALLDELAY
+ASKNAME
+AUTOCONF
+BBN
+BSDELAY
+BSP
+BUFSIZ
+Backoff
+Berknet
+CBREAK
+CHAN
+CPU
+CRDELAY
+CRMOD
+CSS
+CT
+CTL
+Crt
+DARPA
+DDCMP
+DGRAM
+DKIOCFORMAT
+DMA
+DMA'ed
+DMC
+DMF
+DMR
+DN
+DOSTOP
+DTABT
+Datagram
+Diablo
+Diskette
+EADDRINUSE
+EADDRNOTAVAIL
+EC
+ECC
+ECONNREFUSED
+ECONNRESET
+EISCONN
+ENETDOWN
+ENOBUFS
+ENOTCONN
+ETIMEDOUT
+EVENP
+EXTA
+EXTB
+Emulex
+Ethernet
+Existant
+FIONREAD
+FLUSHREAD
+FLUSHWRITE
+GETADDR
+Glaser
+HK
+HY
+Hardcopy
+Hazeltine
+Hazeltines
+ICMP
+IK
+IL
+IMPLINK
+INADDR
+INET
+IP
+IPPROTO
+ISHT
+ISMT
+ISTM
+ISTS
+ISUT
+Ik
+Ikonas
+Krull
+LCASE
+LCRTBS
+LCRTERA
+LCRTKIL
+LCRTKILL
+LCTLECH
+LDECCTQ
+LDISC
+LETXACK
+LFLUSHO
+LINTRUP
+LLITOUT
+LMDMBUF
+LNOHANG
+LPENDIN
+LPRTERA
+LTILDE
+LTOSTOP
+MASSBUS
+MBEXC
+ML11A
+ML11B
+MPSIZE
+MSCP
+MT
+MTBSF
+MTBSR
+MTFSF
+MTFSR
+MTIOCGET
+MTIOCTOP
+MTNOP
+MTOFFL
+MTREW
+MTWEOF
+N.B
+NCC
+NDMAXDATA
+NDMAXIO
+NDMAXPACKS
+NDOPCODE
+NDOPDONE
+NDOPERROR
+NDOPREAD
+NDOPWAIT
+NDOPWRITE
+NDXTIMER
+NETLDISC
+NEX
+NEXUS
+NLDELAY
+NOOP
+NOSTOP
+NSC
+NTTYDISC
+NXM
+ODDP
+ODT
+OFFLINE
+OTTYDISC
+PDP11's
+PRIBIO
+PROM
+PSAUTOMAP
+PSAUTOREFRESH
+PSDOUBLEBUFFER
+PSGETADDR
+PSSINGLEBUFFER
+PSSINGLEMAP
+PSSINGLEREFRESH
+PSSTOPMAP
+PSSTOPREFRESH
+PSTIMEREFRESH
+PSWAITMAP
+PSWAITREFRESH
+PTY
+PUPPROTO
+Proteon
+Quadracall
+RDM
+RECVD
+RK07's
+RTF
+RX
+RX02's
+SDI
+SIGHUP
+SIGINT
+SIGQUIT
+SIGTINT
+SIGTSTP
+SIGTTIN
+SIGTTOU
+SIOCADDRT
+SIOCDELRT
+SMD
+TAB0
+TAB1
+TAB2
+TBDELAY
+TCP
+TIMEREFRESH
+TIOCCBRK
+TIOCCDTR
+TIOCEXCL
+TIOCFLUSH
+TIOCGETC
+TIOCGETD
+TIOCGETP
+TIOCGLTC
+TIOCGPGRP
+TIOCHPCL
+TIOCLBIC
+TIOCLBIS
+TIOCLGET
+TIOCLSET
+TIOCNXCL
+TIOCPKT
+TIOCREMOTE
+TIOCSBRK
+TIOCSDTR
+TIOCSETC
+TIOCSETD
+TIOCSETN
+TIOCSETP
+TIOCSLTC
+TIOCSPGRP
+TIOCSTART
+TIOCSTI
+TIOCSTOP
+TS
+TU
+Tchars
+Terminet
+UCB
+UDA
+UDP
+UNIBUS
+UT
+Ungermann
+VAX
+VAX'en
+VAX's
+VPLOT
+VSETSTATE
+VTDELAY
+VV
+Versatec
+WAITINT
+WIRECENTER
+Wirecenter
+XTABS
+ACCTHI
+ACCTLO
+ACOMPAT
+ACORE
+ADDR
+ADM
+AFORK
+ARFMAG
+ARMAG
+ASU
+AXSIG
+BCOMM
+BIZCOMP
+BSIZE
+BSS
+BUFSIZ
+Chksum
+DARPA
+DECtape
+DEV
+DIRBLKSIZ
+DISKTAB
+DM2500,H2000
+DUMPINFMT
+DUMPOUTFMT
+Datamedia's
+Disktab
+ECOML
+ECOMM
+EE:ta
+EK:xn
+ENH
+EXT
+Ee:so
+FNAME
+FS
+FSNMLG
+FSTAB
+FSTABARG
+FSTABFMT
+FSTABNARGS
+Fs
+GSYM
+Hardcopy
+Hazeltine
+ID's
+INODE
+INOPB
+Inode
+Keypad
+Kj
+LBRAC
+LCSYM
+LENG
+LSYM
+Linkflag
+MAXBPC
+MAXBPG
+MAXBSIZE
+MAXCPG
+MAXCSBUFS
+MAXIPG
+MAXMNTLEN
+MAXNAMLEN
+MINBSIZE
+MLEN
+MSIZ
+Maxx
+Mime
+Mtime
+N.B
+NAMSIZ
+NBPI
+NIC
+NINDIR
+NRPOS
+NSPF
+NTREC
+Newline
+PRINTCAP
+PSYM
+Perkin
+Presotto
+RBRAC
+RSYM
+SARMAG
+SBSIZE
+SENDMAIL
+SLINE
+SSYM
+STSYM
+Siegler
+Stab.h
+Standout
+TBLOCK
+TVI
+Teleray
+UNDF
+UPAGES
+Uid
+Umount
+Upline
+Uudecode
+VGRINDEFS
+Versatec
+Vgrindefs
+Xl
+Zk
+ATPB
+Allman
+BR
+Backslash
+Bournes
+Bros
+ELIZA
+EOF
+Foderaro
+Fourr
+HJKL
+Heuer
+Hoyle
+Lebling
+McKusick
+Mikey
+PD
+RUBOUT
+Rogerian
+Rubout
+SEFC
+VAX
+VMS
+Weizenbaum
+Wumpus
+Yendor
+ARPANET
+Adm
+Allman
+Berkeley.ARPA
+Berknet
+Bitnet
+CSNET
+DARPA
+DASI
+DIABLO
+DTC
+EXINIT
+Ethernet
+GSI
+L.sys
+LOGFILE
+MAILADDR
+MAKEDEV
+MAKEDEV.local
+MASBUS
+MULTICS
+Nofill
+PP
+RA
+RC
+Reg
+SM
+Seigler
+ADDR
+ALLO
+APPE
+ARPANET
+BAD144
+BADSECT
+BPI
+Babaoglu
+Bad144
+Badsect
+Bcc
+BerkNet
+Berknet
+Blksize
+CADDR
+CCNT
+CHM
+CLKT
+CNT
+COMSAT
+CONFIG
+CPU
+CPU's
+CRIT
+CRMOD
+CWD
+Catchall
+Cifplot
+Comsat
+Config
+Cory
+Countdown
+Crontab
+DADDR
+DARPA
+DBA0
+DELE
+DEV
+DFUNNY
+DHAHA
+DISKPART
+DMA
+DMA0
+DRA0
+DSK
+DUMPFS
+Dept
+Dev
+Diskpart
+Dumpfs
+ECC
+EECS
+EMERG
+EMULEX
+ESSAA
+EVRAC
+FASTBOOT
+FLG
+FTPD
+FUNNY,HAHA
+Fastboot
+Formatted
+Fragsize
+Ftpd
+HKM
+HKS
+HPM
+HPS
+HTABLE
+HUP
+Hostname
+Htable
+ICMP
+ID's
+IDC
+ILES
+IMPLOGD
+INADDR
+INFO
+INIT
+INO
+IPC
+IPL
+IPTR
+Implogd
+Init's
+Inode
+Intransit
+KGMON
+KSP
+Kgmon
+Kovacs
+Kovacs,508E,7925,6428202
+LOC
+LPD
+Leffler
+Lpd
+MAKEDEV
+MAKEDEV.local
+MAPEN
+MASSBUS
+MIN
+MKLOST
+MKPROTO
+MTIOCGET
+MTIOCOP
+McKusick
+Minfree
+Mkproto
+N.B
+NCP
+NETLDISC
+NEWFS
+NI
+NIC
+NLK
+NLST
+NOHOST
+NOOP
+NOUSER
+NPR
+NTTYDISC
+Ncpg
+Newfs
+Nsect
+Ntrack
+OSERR
+OTTYDISC
+Ozalp
+PAC
+PCB
+PGRP
+PID
+POIP
+PPID
+PRI
+PRIO
+PST
+Pac
+Pprinter
+Prototocol
+RC
+RDC
+RDUMP
+RETR
+REXECD
+RFC
+RFC733
+RFC819
+RFC821
+RFC822
+RK07
+RK07's
+RLOGIND
+RM0X
+RMT
+RNFR
+RNTO
+RP0X
+RRESTOR
+RSHD
+RSS
+RWHOD
+Rc
+Rc.local
+Rdump
+Rexecd
+Rlogind
+Rmt
+Rrestor
+Rshd
+Rwhod
+SALERT
+SAVECORE
+SBI
+SEC:PACKINIT
+SENDMAIL
+SIGHUP
+SIOCADDRT
+SIOCDELRT
+SIZ
+SLP
+SMTP
+SRSS
+SSE
+STOR
+STRU
+Savecore
+Sendmail
+Sklower
+Syslog
+TCP
+TE16,TU45,TU77
+TELNET
+TELNETD
+TEMPFAIL
+TEXTP
+TFTP
+TFTPD
+TRPT
+TSTP
+TUNEFS
+Telnetd
+Tftpd
+Trpt
+Tunefs
+UCB
+UDA50
+UDP
+UID
+UNIBUS
+UPM
+Umount
+VAX
+VAX730
+VAX750
+VAX780
+VAXWELL
+VIPW
+Vax
+Vaxwell
+Vipw
+Vplot
+WCHAN
+WRC
+XCUP
+XCWD
+XMKD
+XPWD
+XRMD
+XSIS
+XTABS
diff --git a/usr/src/share/man/tools/tocrc b/usr/src/share/man/tools/tocrc
new file mode 100755 (executable)
index 0000000..1d50a05
--- /dev/null
@@ -0,0 +1,114 @@
+MANDIR=/usr/man
+TMPDIR=/usr/man/tmp
+TOOLS=$MANDIR/tools
+
+trap "rm $TMPDIR/tmp.$$ ; exit" 2 3 15
+
+P=108
+p=""
+if test "$1" = "-p"
+then
+       P=65
+       p=-p
+       shift
+fi
+
+if test $# -eq 0
+then
+       echo "tocrc: no argument"
+       exit
+fi
+
+if test $# -eq 2
+then
+       : create toc input file for one section only
+
+       > $TMPDIR/tocx$1
+       for file in $MANDIR/man$1/*.$1*
+       do
+               if test ! -s $file
+               then
+                       continue
+               fi
+               so=`line < $file | sed "s/ .*//"`
+               if test "$so" = ".so"
+               then
+                       continue
+               fi
+               ed - $file > $TMPDIR/tmp.$$ <<!
+                       H
+                       /^\.TH/p
+                       q
+!
+               loc=`cat $TMPDIR/tmp.$$ | sed "s/.*local.*/local/"`
+               if test "$loc" = "local"
+               then
+                       continue
+               fi
+               name=`basename $file`
+               name=`echo $name | sed "s/\.\(.\{1,2\}\)\$/(\1)/"`
+               ed - $file > $TMPDIR/tmp.$$ <<!
+                       /^.SH NAME/+p
+                       q
+!
+               desc=`line < $TMPDIR/tmp.$$`
+               desc=`echo $desc | sed -e "s/.s-1//g" -e "s/.s0//g"  -e "s/.s+1//g"   -e "s/ .- /: /"  -e "s/^/$name /"  -e "s/$/./"`
+               if test -n "$desc"
+               then
+                       echo $desc >> $TMPDIR/tocx$1
+               fi
+               rm -f $TMPDIR/tmp.$$
+       done
+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 $p $x $x
+               done
+               $0 $p t
+               ;;
+       t )
+               :   permuted index and toc files
+
+               if test ! -f $TMPDIR/tocx1
+               then
+                       echo "tocrc: some tocx? files missing"
+                       exit
+               fi
+               cat $TMPDIR/tocx? > $TMPDIR/cattoc
+               ed - $TMPDIR/cattoc <<!
+                       H
+                       g/(1c)/s//(1C)/
+                       g/(1m)/s//(1M)/
+                       g/(1g)/s//(1G)/
+                       g/(3c)/s//(3C)/
+                       g/(3m)/s//(3M)/
+                       g/(3s)/s//(3S)/
+                       g/(3x)/s//(3X)/
+                       g/"\."/d
+                       w
+                       q
+!
+               ptx -r -t -b $TOOLS/break -f -w $P -i $TOOLS/ignore $TMPDIR/cattoc $MANDIR/man0/ptxx
+               for x in 1 2 3 4 5 6 7 8
+               do
+                       ed - $TMPDIR/tocx$x << !
+                       H
+                               /^intro/m0
+                               1,\$s/ .*://
+                               1,\$s/.$//
+                               1,\$s/([1-8][a-z]\{0,1\}) /" "/
+                               1,\$s/.*/.xx "&"/
+                               g/""/d
+                               w $MANDIR/man0/toc$x
+                               q
+!
+               done
+               ;;
+       * )
+               $0 $p $1 $1
+               ;;
+       esac
+fi