home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 6f 72 |.sources|.misc.or|
|00000020| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 49 43 55 53 |ganizati|on: ICUS|
|00000030| 20 53 6f 66 74 77 61 72 | 65 20 53 79 73 74 65 6d | Softwar|e System|
|00000040| 73 2c 20 49 73 6c 69 70 | 2c 20 4e 59 0a 73 75 62 |s, Islip|, NY.sub|
|00000050| 6a 65 63 74 3a 20 76 30 | 37 69 30 39 31 3a 20 45 |ject: v0|7i091: E|
|00000060| 6e 68 61 6e 63 65 64 20 | 6d 61 6e 28 31 29 20 75 |nhanced |man(1) u|
|00000070| 74 69 6c 69 74 79 20 2d | 20 65 73 70 65 63 69 61 |tility -| especia|
|00000080| 6c 6c 79 20 66 6f 72 20 | 74 68 6f 73 65 20 77 69 |lly for |those wi|
|00000090| 74 68 6f 75 74 20 6f 6e | 65 0a 46 72 6f 6d 3a 20 |thout on|e.From: |
|000000a0| 61 6c 6c 62 65 72 79 40 | 75 75 6e 65 74 2e 55 55 |allbery@|uunet.UU|
|000000b0| 2e 4e 45 54 20 28 42 72 | 61 6e 64 6f 6e 20 53 2e |.NET (Br|andon S.|
|000000c0| 20 41 6c 6c 62 65 72 79 | 20 2d 20 63 6f 6d 70 2e | Allbery| - comp.|
|000000d0| 73 6f 75 72 63 65 73 2e | 6d 69 73 63 29 0a 52 65 |sources.|misc).Re|
|000000e0| 70 6c 79 2d 54 6f 3a 20 | 67 69 6c 40 6c 69 6d 62 |ply-To: |gil@limb|
|000000f0| 69 63 2e 55 55 43 50 20 | 28 47 69 6c 20 4b 6c 6f |ic.UUCP |(Gil Klo|
|00000100| 65 70 66 65 72 20 4a 72 | 2e 29 0a 0a 50 6f 73 74 |epfer Jr|.)..Post|
|00000110| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|00000120| 6d 65 20 37 2c 20 49 73 | 73 75 65 20 39 31 0a 53 |me 7, Is|sue 91.S|
|00000130| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 67 69 6c |ubmitted|-by: gil|
|00000140| 40 6c 69 6d 62 69 63 2e | 55 55 43 50 20 28 47 69 |@limbic.|UUCP (Gi|
|00000150| 6c 20 4b 6c 6f 65 70 66 | 65 72 20 4a 72 2e 29 0a |l Kloepf|er Jr.).|
|00000160| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 6d 61 |Archive-|name: ma|
|00000170| 6e 2e 37 33 30 30 0a 0a | 5b 4e 6f 74 65 20 74 68 |n.7300..|[Note th|
|00000180| 61 74 20 74 68 69 73 20 | 68 61 73 20 61 6c 73 6f |at this |has also|
|00000190| 20 62 65 65 6e 20 70 6f | 73 74 65 64 20 74 6f 20 | been po|sted to |
|000001a0| 75 6e 69 78 2d 70 63 2e | 73 6f 75 72 63 65 73 5d |unix-pc.|sources]|
|000001b0| 0a 5b 5b 43 72 6f 73 73 | 70 6f 73 74 69 6e 67 20 |.[[Cross|posting |
|000001c0| 62 65 74 77 65 65 6e 20 | 75 6e 6d 6f 64 65 72 61 |between |unmodera|
|000001d0| 74 65 64 20 61 6e 64 20 | 6d 6f 64 65 72 61 74 65 |ted and |moderate|
|000001e0| 64 20 67 72 6f 75 70 73 | 20 69 73 20 64 69 73 63 |d groups| is disc|
|000001f0| 6f 75 72 61 67 65 64 0a | 20 20 69 6e 20 67 65 6e |ouraged.| in gen|
|00000200| 65 72 61 6c 2e 20 20 2b | 2b 62 73 61 5d 5d 0a 0a |eral. +|+bsa]]..|
|00000210| 48 65 72 65 20 69 73 20 | 61 20 75 74 69 6c 69 74 |Here is |a utilit|
|00000220| 79 20 74 68 61 74 20 49 | 20 68 61 63 6b 65 64 20 |y that I| hacked |
|00000230| 66 6f 72 20 6d 79 20 55 | 4e 49 58 2d 70 63 20 77 |for my U|NIX-pc w|
|00000240| 69 74 68 6f 75 74 20 61 | 20 64 65 63 65 6e 74 20 |ithout a| decent |
|00000250| 6d 61 6e 28 31 29 0a 75 | 74 69 6c 69 74 79 2e 20 |man(1).u|tility. |
|00000260| 20 49 27 76 65 20 68 65 | 61 72 64 20 74 68 61 74 | I've he|ard that|
|00000270| 20 73 6f 6d 65 20 6f 74 | 68 65 72 73 20 61 72 65 | some ot|hers are|
|00000280| 20 61 6c 73 6f 20 6d 69 | 73 73 69 6e 67 20 74 68 | also mi|ssing th|
|00000290| 69 73 20 75 74 69 6c 69 | 74 79 2c 0a 6f 72 20 68 |is utili|ty,.or h|
|000002a0| 61 76 65 20 61 20 62 72 | 61 69 6e 64 61 6d 61 67 |ave a br|aindamag|
|000002b0| 65 64 20 6f 6e 65 2e 20 | 20 49 27 6d 20 70 61 73 |ed one. | I'm pas|
|000002c0| 73 69 6e 67 20 69 74 20 | 61 6c 6f 6e 67 20 74 6f |sing it |along to|
|000002d0| 20 63 6f 6d 70 2e 73 6f | 75 72 63 65 73 2e 6d 69 | comp.so|urces.mi|
|000002e0| 73 63 0a 69 6e 20 63 61 | 73 65 20 6f 74 68 65 72 |sc.in ca|se other|
|000002f0| 73 20 68 61 76 65 20 61 | 20 75 73 65 20 66 6f 72 |s have a| use for|
|00000300| 20 69 74 2e 20 20 49 27 | 76 65 20 6f 6e 6c 79 20 | it. I'|ve only |
|00000310| 74 65 73 74 65 64 20 69 | 74 20 6f 6e 20 6d 79 20 |tested i|t on my |
|00000320| 55 4e 49 58 2d 70 63 2c | 0a 62 75 74 20 69 74 20 |UNIX-pc,|.but it |
|00000330| 73 68 6f 75 6c 64 20 77 | 6f 72 6b 20 77 69 74 68 |should w|ork with|
|00000340| 20 6c 69 74 74 6c 65 20 | 6f 72 20 6e 6f 20 63 68 | little |or no ch|
|00000350| 61 6e 67 65 73 20 6f 6e | 20 6d 6f 73 74 20 75 6e |anges on| most un|
|00000360| 69 63 65 73 20 28 70 6c | 75 72 61 6c 0a 6f 66 20 |ices (pl|ural.of |
|00000370| 75 6e 69 78 3f 29 2e 0a | 0a 4e 6f 74 65 20 74 68 |unix?)..|.Note th|
|00000380| 61 74 20 74 6f 20 6c 69 | 6e 6b 20 74 68 65 20 70 |at to li|nk the p|
|00000390| 72 6f 67 72 61 6d 2c 20 | 79 6f 75 27 6c 6c 20 6e |rogram, |you'll n|
|000003a0| 65 65 64 20 44 6f 75 67 | 20 47 77 79 6e 27 73 20 |eed Doug| Gwyn's |
|000003b0| 64 69 72 65 6e 74 20 70 | 61 63 6b 61 67 65 2c 0a |dirent p|ackage,.|
|000003c0| 70 72 65 76 69 6f 75 73 | 6c 79 20 70 6f 73 74 65 |previous|ly poste|
|000003d0| 64 20 74 6f 20 74 68 65 | 20 6e 65 74 2e 20 20 41 |d to the| net. A|
|000003e0| 6c 6c 20 6f 74 68 65 72 | 20 69 6e 66 6f 72 6d 61 |ll other| informa|
|000003f0| 74 69 6f 6e 20 69 73 20 | 69 6e 20 74 68 65 20 52 |tion is |in the R|
|00000400| 45 41 44 4d 45 0a 66 69 | 6c 65 2c 20 70 61 63 6b |EADME.fi|le, pack|
|00000410| 61 67 65 64 20 77 69 74 | 68 20 74 68 65 20 73 68 |aged wit|h the sh|
|00000420| 61 72 2e 0a 0a 3d 3d 3d | 3d 3d 3d 3d 3d 0a 7c 20 |ar...===|=====.| |
|00000430| 47 69 6c 20 4b 6c 6f 65 | 70 66 65 72 2c 20 4a 72 |Gil Kloe|pfer, Jr|
|00000440| 2e 0a 7c 20 49 43 55 53 | 20 53 6f 66 74 77 61 72 |..| ICUS| Softwar|
|00000450| 65 20 53 79 73 74 65 6d | 73 2f 42 6f 77 6e 65 20 |e System|s/Bowne |
|00000460| 4d 61 6e 61 67 65 6d 65 | 6e 74 20 53 79 73 74 65 |Manageme|nt Syste|
|00000470| 6d 73 20 28 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |ms (depe|nding on|
|00000480| 20 77 68 65 72 65 20 49 | 20 61 6d 29 0a 7c 20 2e | where I| am).| .|
|00000490| 2e 2e 69 63 75 73 21 6c | 69 6d 62 69 63 21 67 69 |..icus!l|imbic!gi|
|000004a0| 6c 20 20 20 6f 72 20 20 | 20 20 67 69 6c 40 69 63 |l or | gil@ic|
|000004b0| 75 73 2e 69 73 6c 70 2e | 6e 79 2e 75 73 0a 0a 23 |us.islp.|ny.us..#|
|000004c0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000004d0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000004e0| 69 76 65 2e 20 20 52 65 | 6d 6f 76 65 20 61 6e 79 |ive. Re|move any|
|000004f0| 74 68 69 6e 67 20 62 65 | 66 6f 72 65 20 74 68 69 |thing be|fore thi|
|00000500| 73 20 6c 69 6e 65 2c 20 | 74 68 65 6e 20 75 6e 70 |s line, |then unp|
|00000510| 61 63 6b 0a 23 20 69 74 | 20 62 79 20 73 61 76 69 |ack.# it| by savi|
|00000520| 6e 67 20 69 74 20 69 6e | 74 6f 20 61 20 66 69 6c |ng it in|to a fil|
|00000530| 65 20 61 6e 64 20 74 79 | 70 69 6e 67 20 22 73 68 |e and ty|ping "sh|
|00000540| 20 66 69 6c 65 22 2e 20 | 20 54 6f 20 6f 76 65 72 | file". | To over|
|00000550| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 0a 23 |write ex|isting.#|
|00000560| 20 66 69 6c 65 73 2c 20 | 74 79 70 65 20 22 73 68 | files, |type "sh|
|00000570| 20 66 69 6c 65 20 2d 63 | 22 2e 20 20 59 6f 75 20 | file -c|". You |
|00000580| 63 61 6e 20 61 6c 73 6f | 20 66 65 65 64 20 74 68 |can also| feed th|
|00000590| 69 73 20 61 73 20 73 74 | 61 6e 64 61 72 64 20 69 |is as st|andard i|
|000005a0| 6e 70 75 74 20 76 69 61 | 0a 23 20 75 6e 73 68 61 |nput via|.# unsha|
|000005b0| 72 2c 20 6f 72 20 62 79 | 20 74 79 70 69 6e 67 20 |r, or by| typing |
|000005c0| 22 73 68 20 3c 66 69 6c | 65 22 2c 20 65 2e 67 2e |"sh <fil|e", e.g.|
|000005d0| 2e 20 20 49 66 20 74 68 | 69 73 20 61 72 63 68 69 |. If th|is archi|
|000005e0| 76 65 20 69 73 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ve is co|mplete, |
|000005f0| 79 6f 75 0a 23 20 77 69 | 6c 6c 20 73 65 65 20 74 |you.# wi|ll see t|
|00000600| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 73 |he follo|wing mes|
|00000610| 73 61 67 65 20 61 74 20 | 74 68 65 20 65 6e 64 3a |sage at |the end:|
|00000620| 0a 23 09 09 22 45 6e 64 | 20 6f 66 20 73 68 65 6c |.#.."End| of shel|
|00000630| 6c 20 61 72 63 68 69 76 | 65 2e 22 0a 23 20 43 6f |l archiv|e.".# Co|
|00000640| 6e 74 65 6e 74 73 3a 20 | 20 52 45 41 44 4d 45 20 |ntents: | README |
|00000650| 6d 61 6e 2e 63 0a 23 20 | 57 72 61 70 70 65 64 20 |man.c.# |Wrapped |
|00000660| 62 79 20 67 69 6c 40 6c | 69 6d 62 69 63 20 6f 6e |by gil@l|imbic on|
|00000670| 20 57 65 64 20 4a 75 6c | 20 31 32 20 31 33 3a 32 | Wed Jul| 12 13:2|
|00000680| 31 3a 34 33 20 31 39 38 | 39 0a 50 41 54 48 3d 2f |1:43 198|9.PATH=/|
|00000690| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|000006a0| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|000006b0| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 52 |ATH.if t|est -f R|
|000006c0| 45 41 44 4d 45 20 2d 61 | 20 22 24 7b 31 7d 22 20 |EADME -a| "${1}" |
|000006d0| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|000006e0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|000006f0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00000700| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00000710| 22 52 45 41 44 4d 45 5c | 22 0a 65 6c 73 65 0a 65 |"README\|".else.e|
|00000720| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000730| 74 69 6e 67 20 5c 22 52 | 45 41 44 4d 45 5c 22 20 |ting \"R|EADME\" |
|00000740| 5c 28 32 32 37 33 20 63 | 68 61 72 61 63 74 65 72 |\(2273 c|haracter|
|00000750| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000760| 20 3e 52 45 41 44 4d 45 | 20 3c 3c 27 45 4e 44 5f | >README| <<'END_|
|00000770| 4f 46 5f 52 45 41 44 4d | 45 27 0a 58 52 45 41 44 |OF_READM|E'.XREAD|
|00000780| 4d 45 20 66 69 6c 65 20 | 66 6f 72 20 6d 61 6e 20 |ME file |for man |
|00000790| 76 31 2e 30 20 20 2d 2d | 20 4c 61 73 74 20 75 70 |v1.0 --| Last up|
|000007a0| 64 61 74 65 64 20 37 2f | 31 32 2f 38 39 0a 58 0a |dated 7/|12/89.X.|
|000007b0| 58 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 |XThe fol|lowing i|
|000007c0| 73 20 6d 79 20 69 6e 74 | 65 72 70 72 65 74 61 74 |s my int|erpretat|
|000007d0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 55 4e 49 58 20 |ion of t|he UNIX |
|000007e0| 22 6d 61 6e 22 20 63 6f | 6d 6d 61 6e 64 2e 20 20 |"man" co|mmand. |
|000007f0| 41 6c 74 68 6f 75 67 68 | 0a 58 69 74 20 69 73 6e |Although|.Xit isn|
|00000800| 27 74 20 76 65 72 79 20 | 72 6f 62 75 73 74 2c 20 |'t very |robust, |
|00000810| 69 74 20 64 6f 65 73 20 | 68 61 6e 64 6c 65 20 73 |it does |handle s|
|00000820| 6f 6d 65 20 76 65 72 79 | 20 75 73 65 66 75 6c 20 |ome very| useful |
|00000830| 63 61 73 65 73 20 77 68 | 69 63 68 20 6f 63 63 75 |cases wh|ich occu|
|00000840| 72 0a 58 77 68 65 6e 20 | 74 72 79 69 6e 67 20 74 |r.Xwhen |trying t|
|00000850| 6f 20 67 65 74 20 73 74 | 6f 72 65 64 20 6d 61 6e |o get st|ored man|
|00000860| 75 61 6c 20 70 61 67 65 | 73 2c 20 73 75 63 68 20 |ual page|s, such |
|00000870| 61 73 3a 0a 58 0a 58 5b | 66 72 6f 6d 20 74 68 65 |as:.X.X[|from the|
|00000880| 20 73 6f 75 72 63 65 5d | 0a 58 0a 58 09 6f 20 20 | source]|.X.X.o |
|00000890| 59 6f 75 20 63 61 6e 20 | 22 6d 61 6e 22 20 63 6f |You can |"man" co|
|000008a0| 6d 70 72 65 73 73 65 64 | 20 6d 61 6e 75 61 6c 20 |mpressed| manual |
|000008b0| 70 61 67 65 73 20 0a 58 | 09 6f 20 20 59 6f 75 20 |pages .X|.o You |
|000008c0| 64 6f 6e 27 74 20 68 61 | 76 65 20 74 6f 20 6b 6e |don't ha|ve to kn|
|000008d0| 6f 77 20 69 66 20 74 68 | 65 20 6d 61 6e 75 61 6c |ow if th|e manual|
|000008e0| 0a 58 09 20 20 20 70 61 | 67 65 73 20 61 72 65 20 |.X. pa|ges are |
|000008f0| 75 6e 66 6f 72 6d 61 74 | 74 65 64 20 28 2f 75 73 |unformat|ted (/us|
|00000900| 72 2f 6d 61 6e 2f 6d 61 | 6e 3f 29 0a 58 09 20 20 |r/man/ma|n?).X. |
|00000910| 20 6f 72 20 66 6f 72 6d | 61 74 74 65 64 20 28 2f | or form|atted (/|
|00000920| 75 73 72 2f 6d 61 6e 2f | 63 61 74 3f 29 2e 0a 58 |usr/man/|cat?)..X|
|00000930| 09 6f 20 20 59 6f 75 20 | 64 6f 6e 27 74 20 68 61 |.o You |don't ha|
|00000940| 76 65 20 74 6f 20 6b 6e | 6f 77 20 77 68 61 74 20 |ve to kn|ow what |
|00000950| 73 65 63 74 69 6f 6e 0a | 58 09 20 20 20 74 68 65 |section.|X. the|
|00000960| 20 6d 61 6e 75 61 6c 20 | 70 61 67 65 20 69 73 20 | manual |page is |
|00000970| 69 6e 20 28 61 6e 64 20 | 69 74 20 74 65 6c 6c 73 |in (and |it tells|
|00000980| 20 79 6f 75 0a 58 09 20 | 20 20 77 68 69 63 68 20 | you.X. | which |
|00000990| 6f 6e 65 29 0a 58 09 6f | 20 20 59 6f 75 20 67 65 |one).X.o| You ge|
|000009a0| 74 20 61 75 74 6f 6d 61 | 74 69 63 20 70 61 67 69 |t automa|tic pagi|
|000009b0| 6e 67 20 77 68 65 6e 20 | 79 6f 75 0a 58 09 20 20 |ng when |you.X. |
|000009c0| 20 69 6e 76 6f 6b 65 20 | 6d 61 6e 20 66 72 6f 6d | invoke |man from|
|000009d0| 20 61 20 74 74 79 0a 58 | 0a 58 0a 58 49 20 64 69 | a tty.X|.X.XI di|
|000009e0| 64 6e 27 74 20 62 6f 74 | 68 65 72 20 77 69 74 68 |dn't bot|her with|
|000009f0| 20 61 20 6d 61 6b 65 66 | 69 6c 65 20 73 69 6e 63 | a makef|ile sinc|
|00000a00| 65 20 74 68 65 72 65 20 | 69 73 20 6f 6e 6c 79 20 |e there |is only |
|00000a10| 6f 6e 65 20 73 6f 75 72 | 63 65 20 66 69 6c 65 0a |one sour|ce file.|
|00000a20| 58 68 65 72 65 2e 20 20 | 49 74 20 63 6f 6d 70 69 |Xhere. |It compi|
|00000a30| 6c 65 73 20 62 79 3a 0a | 58 0a 58 09 24 20 63 63 |les by:.|X.X.$ cc|
|00000a40| 20 2d 4f 20 2d 6f 20 6d | 61 6e 20 6d 61 6e 2e 63 | -O -o m|an man.c|
|00000a50| 20 2d 6c 64 69 72 65 6e | 74 20 2d 73 0a 58 0a 58 | -ldiren|t -s.X.X|
|00000a60| 55 73 65 20 77 68 61 74 | 65 76 65 72 20 6f 74 68 |Use what|ever oth|
|00000a70| 65 72 20 66 61 76 6f 72 | 69 74 65 20 6f 70 74 69 |er favor|ite opti|
|00000a80| 6f 6e 73 20 79 6f 75 20 | 6c 69 6b 65 2e 20 20 49 |ons you |like. I|
|00000a90| 6e 73 74 61 6c 6c 20 69 | 74 20 69 6e 20 2f 75 73 |nstall i|t in /us|
|00000aa0| 72 2f 6c 6f 63 61 6c 2f | 62 69 6e 0a 58 6f 72 20 |r/local/|bin.Xor |
|00000ab0| 2f 75 73 72 2f 6c 62 69 | 6e 20 28 77 68 69 63 68 |/usr/lbi|n (which|
|00000ac0| 65 76 65 72 20 79 6f 75 | 20 75 73 65 20 6f 6e 20 |ever you| use on |
|00000ad0| 79 6f 75 72 20 73 79 73 | 74 65 6d 29 2e 20 20 49 |your sys|tem). I|
|00000ae0| 74 20 64 6f 65 73 20 6e | 6f 74 20 72 65 71 75 69 |t does n|ot requi|
|00000af0| 72 65 20 61 6e 79 0a 58 | 73 2d 62 69 74 73 20 74 |re any.X|s-bits t|
|00000b00| 6f 20 62 65 20 73 65 74 | 2e 0a 58 0a 58 49 4d 50 |o be set|..X.XIMP|
|00000b10| 4f 52 54 41 4e 54 20 4e | 4f 54 45 3a 20 20 41 73 |ORTANT N|OTE: As|
|00000b20| 20 6e 6f 74 65 64 20 61 | 62 6f 76 65 2c 20 74 68 | noted a|bove, th|
|00000b30| 69 73 20 72 65 71 75 69 | 72 65 73 20 74 68 61 74 |is requi|res that|
|00000b40| 20 44 6f 75 67 20 47 77 | 79 6e 27 73 20 22 64 69 | Doug Gw|yn's "di|
|00000b50| 72 65 6e 74 22 0a 58 73 | 75 62 72 6f 75 74 69 6e |rent".Xs|ubroutin|
|00000b60| 65 20 6c 69 62 72 61 72 | 79 20 62 65 20 69 6e 73 |e librar|y be ins|
|00000b70| 74 61 6c 6c 65 64 2e 20 | 20 49 20 64 69 64 6e 27 |talled. | I didn'|
|00000b80| 74 20 69 6e 63 6c 75 64 | 65 20 69 74 20 77 69 74 |t includ|e it wit|
|00000b90| 68 20 74 68 69 73 20 64 | 69 73 74 72 69 62 75 74 |h this d|istribut|
|00000ba0| 69 6f 6e 21 0a 58 49 66 | 20 79 6f 75 20 72 65 71 |ion!.XIf| you req|
|00000bb0| 75 69 72 65 20 69 74 2c | 20 64 72 6f 70 20 6d 65 |uire it,| drop me|
|00000bc0| 20 61 20 6e 6f 74 65 2e | 20 20 49 66 20 49 20 67 | a note.| If I g|
|00000bd0| 65 74 20 65 6e 6f 75 67 | 68 20 6e 6f 74 65 73 2c |et enoug|h notes,|
|00000be0| 20 49 27 6c 6c 20 72 65 | 70 6f 73 74 20 74 68 65 | I'll re|post the|
|00000bf0| 0a 58 73 6f 75 72 63 65 | 2e 0a 58 0a 58 43 4f 4e |.Xsource|..X.XCON|
|00000c00| 46 49 47 55 52 41 54 49 | 4f 4e 20 48 49 4e 54 53 |FIGURATI|ON HINTS|
|00000c10| 3a 20 20 49 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |: In th|e source|
|00000c20| 20 74 68 65 72 65 20 61 | 72 65 20 33 20 22 23 64 | there a|re 3 "#d|
|00000c30| 65 66 69 6e 65 22 73 20 | 77 68 69 63 68 20 64 65 |efine"s |which de|
|00000c40| 66 69 6e 65 0a 58 74 68 | 65 20 70 61 67 65 72 2c |fine.Xth|e pager,|
|00000c50| 20 63 6f 6d 70 72 65 73 | 73 65 64 20 66 69 6c 65 | compres|sed file|
|00000c60| 20 22 63 61 74 22 20 70 | 72 6f 67 72 61 6d 2c 20 | "cat" p|rogram, |
|00000c70| 61 6e 64 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |and the |name of |
|00000c80| 79 6f 75 72 20 6e 72 6f | 66 66 0a 58 70 72 6f 67 |your nro|ff.Xprog|
|00000c90| 72 61 6d 2e 20 20 54 68 | 65 73 65 20 73 68 6f 75 |ram. Th|ese shou|
|00000ca0| 6c 64 20 62 65 20 64 65 | 66 69 6e 65 64 20 68 6f |ld be de|fined ho|
|00000cb0| 77 65 76 65 72 20 79 6f | 75 20 6c 69 6b 65 20 74 |wever yo|u like t|
|00000cc0| 68 65 6d 2c 20 6f 72 20 | 75 6e 64 65 66 69 6e 65 |hem, or |undefine|
|00000cd0| 64 20 69 66 0a 58 79 6f | 75 20 64 6f 6e 27 74 20 |d if.Xyo|u don't |
|00000ce0| 68 61 76 65 20 74 68 65 | 6d 2e 20 20 54 68 65 72 |have the|m. Ther|
|00000cf0| 65 20 61 72 65 20 74 77 | 6f 20 22 23 64 65 66 69 |e are tw|o "#defi|
|00000d00| 6e 65 22 73 20 77 68 69 | 63 68 20 64 65 66 69 6e |ne"s whi|ch defin|
|00000d10| 65 20 77 68 65 72 65 20 | 74 68 65 0a 58 6d 61 6e |e where |the.Xman|
|00000d20| 75 61 6c 20 70 61 67 65 | 73 20 61 72 65 20 6c 6f |ual page|s are lo|
|00000d30| 63 61 74 65 64 20 2d 2d | 20 69 6e 20 2f 75 73 72 |cated --| in /usr|
|00000d40| 2f 6d 61 6e 2f 6d 61 6e | 3f 20 61 6e 64 20 2f 75 |/man/man|? and /u|
|00000d50| 73 72 2f 6d 61 6e 2f 63 | 61 74 3f 20 2e 20 20 53 |sr/man/c|at? . S|
|00000d60| 65 74 0a 58 74 68 65 73 | 65 20 74 6f 20 74 68 65 |et.Xthes|e to the|
|00000d70| 20 77 61 79 20 79 6f 75 | 72 20 73 79 73 74 65 6d | way you|r system|
|00000d80| 20 69 73 20 63 6f 6e 66 | 69 67 75 72 65 64 2e 0a | is conf|igured..|
|00000d90| 58 0a 58 4f 6e 65 20 6d | 6f 72 65 20 62 69 74 20 |X.XOne m|ore bit |
|00000da0| 6f 66 20 62 61 63 6b 67 | 72 6f 75 6e 64 2d 2d 20 |of backg|round-- |
|00000db0| 61 73 20 79 6f 75 20 6d | 69 67 68 74 20 6e 6f 74 |as you m|ight not|
|00000dc0| 69 63 65 20 66 72 6f 6d | 20 73 6f 6d 65 20 6f 66 |ice from| some of|
|00000dd0| 20 74 68 65 20 63 6f 64 | 65 2c 0a 58 74 68 69 73 | the cod|e,.Xthis|
|00000de0| 20 70 72 6f 67 72 61 6d | 20 77 61 73 20 61 20 62 | program| was a b|
|00000df0| 69 74 20 6f 66 20 61 20 | 68 61 63 6b 2e 20 20 49 |it of a |hack. I|
|00000e00| 20 77 61 73 20 74 69 72 | 65 64 20 6f 66 20 6e 6f | was tir|ed of no|
|00000e10| 74 20 68 61 76 69 6e 67 | 20 22 6d 61 6e 22 20 77 |t having| "man" w|
|00000e20| 6f 72 6b 0a 58 74 68 69 | 73 20 77 61 79 2c 20 73 |ork.Xthi|s way, s|
|00000e30| 6f 20 49 20 68 61 63 6b | 65 64 20 74 68 69 73 20 |o I hack|ed this |
|00000e40| 75 70 20 71 75 69 63 6b | 6c 79 2e 20 20 54 68 65 |up quick|ly. The|
|00000e50| 72 65 20 77 65 72 65 20 | 73 65 76 65 72 61 6c 20 |re were |several |
|00000e60| 69 6e 64 69 76 69 64 75 | 61 6c 73 0a 58 69 6e 74 |individu|als.Xint|
|00000e70| 65 72 65 73 74 65 64 20 | 69 6e 20 74 68 65 20 70 |erested |in the p|
|00000e80| 72 6f 67 72 61 6d 2c 20 | 73 6f 20 49 20 64 65 63 |rogram, |so I dec|
|00000e90| 69 64 65 64 20 74 6f 20 | 70 6f 73 74 20 69 74 2e |ided to |post it.|
|00000ea0| 20 20 49 6e 20 61 6e 79 | 20 65 76 65 6e 74 2c 20 | In any| event, |
|00000eb0| 69 66 0a 58 79 6f 75 20 | 74 68 69 6e 6b 20 69 74 |if.Xyou |think it|
|00000ec0| 20 6e 65 65 64 73 20 6d | 6f 72 65 20 66 75 6e 63 | needs m|ore func|
|00000ed0| 74 69 6f 6e 61 6c 69 74 | 79 20 6f 72 20 73 68 6f |tionalit|y or sho|
|00000ee0| 75 6c 64 20 62 65 20 6d | 6f 64 69 66 69 65 64 20 |uld be m|odified |
|00000ef0| 74 6f 20 64 6f 20 61 0a | 58 70 61 72 74 69 63 75 |to do a.|Xparticu|
|00000f00| 6c 61 72 20 74 68 69 6e | 67 20 64 69 66 66 65 72 |lar thin|g differ|
|00000f10| 65 6e 74 6c 79 2c 20 64 | 6f 6e 27 74 20 63 6f 6d |ently, d|on't com|
|00000f20| 70 6c 61 69 6e 20 74 6f | 20 6d 65 20 61 62 6f 75 |plain to| me abou|
|00000f30| 74 20 69 74 2e 20 20 4d | 61 6b 65 20 74 68 65 0a |t it. M|ake the.|
|00000f40| 58 63 68 61 6e 67 65 20 | 61 6e 64 20 73 65 6e 64 |Xchange |and send|
|00000f50| 20 6d 65 20 74 68 65 20 | 64 69 66 66 73 20 73 6f | me the |diffs so|
|00000f60| 20 49 20 63 61 6e 20 67 | 65 74 20 73 6f 6d 65 20 | I can g|et some |
|00000f70| 70 61 74 63 68 65 73 20 | 6f 6e 20 74 68 65 20 6e |patches |on the n|
|00000f80| 65 74 20 61 6e 64 0a 58 | 65 76 65 72 79 6f 6e 65 |et and.X|everyone|
|00000f90| 20 63 61 6e 20 62 65 6e | 65 66 69 74 21 0a 58 0a | can ben|efit!.X.|
|00000fa0| 58 41 6c 73 6f 20 6e 6f | 74 65 20 74 68 61 74 20 |XAlso no|te that |
|00000fb0| 74 68 65 20 63 6f 64 65 | 20 68 61 73 20 6f 6e 6c |the code| has onl|
|00000fc0| 79 20 62 65 65 6e 20 74 | 65 73 74 65 64 20 61 6e |y been t|ested an|
|00000fd0| 64 20 75 73 65 64 20 6f | 6e 20 6d 79 20 55 4e 49 |d used o|n my UNI|
|00000fe0| 58 2d 70 63 2c 20 62 75 | 74 0a 58 69 74 20 73 65 |X-pc, bu|t.Xit se|
|00000ff0| 65 6d 73 20 74 68 61 74 | 20 69 74 20 73 68 6f 75 |ems that| it shou|
|00001000| 6c 64 20 72 75 6e 20 75 | 6e 64 65 72 20 61 6c 6d |ld run u|nder alm|
|00001010| 6f 73 74 20 61 6e 79 20 | 55 6e 69 78 20 65 6e 76 |ost any |Unix env|
|00001020| 69 72 6f 6e 6d 65 6e 74 | 2e 0a 58 0a 58 48 6f 70 |ironment|..X.XHop|
|00001030| 65 20 74 68 69 73 20 69 | 73 20 6f 66 20 75 73 65 |e this i|s of use|
|00001040| 20 74 6f 20 6c 6f 74 73 | 20 6f 66 20 79 6f 75 2e | to lots| of you.|
|00001050| 0a 58 0a 58 0a 58 47 69 | 6c 20 4b 6c 6f 65 70 66 |.X.X.XGi|l Kloepf|
|00001060| 65 72 2c 20 4a 72 2e 20 | 20 20 49 43 55 53 20 53 |er, Jr. | ICUS S|
|00001070| 6f 66 74 77 61 72 65 20 | 53 79 73 74 65 6d 73 0a |oftware |Systems.|
|00001080| 58 2e 2e 2e 21 69 63 75 | 73 21 6c 69 6d 62 69 63 |X...!icu|s!limbic|
|00001090| 21 67 69 6c 0a 45 4e 44 | 5f 4f 46 5f 52 45 41 44 |!gil.END|_OF_READ|
|000010a0| 4d 45 0a 69 66 20 74 65 | 73 74 20 32 32 37 33 20 |ME.if te|st 2273 |
|000010b0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 52 45 41 44 |-ne `wc |-c <READ|
|000010c0| 4d 45 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |ME`; the|n. ec|
|000010d0| 68 6f 20 73 68 61 72 3a | 20 5c 22 52 45 41 44 4d |ho shar:| \"READM|
|000010e0| 45 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |E\" unpa|cked wit|
|000010f0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00001100| 0a 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 |.# end o|f overwr|
|00001110| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 66 69 0a 69 |iting ch|eck.fi.i|
|00001120| 66 20 74 65 73 74 20 2d | 66 20 6d 61 6e 2e 63 20 |f test -|f man.c |
|00001130| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00001140| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00001150| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00001160| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00001170| 69 6e 67 20 66 69 6c 65 | 20 5c 22 6d 61 6e 2e 63 |ing file| \"man.c|
|00001180| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00001190| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000011a0| 6d 61 6e 2e 63 5c 22 20 | 5c 28 37 35 37 38 20 63 |man.c\" |\(7578 c|
|000011b0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|000011c0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 6d 61 6e 2e 63 20 |"s/^X//"| >man.c |
|000011d0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 6d 61 6e 2e 63 27 |<<'END_O|F_man.c'|
|000011e0| 0a 58 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.X/*****|********|
|000011f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 5c 0a |********|******\.|
|00001230| 58 20 2a 20 46 69 6c 65 | 20 6e 61 6d 65 3a 09 09 |X * File| name:..|
|00001240| 6d 61 6e 2e 63 09 09 09 | 09 09 20 20 20 09 20 20 |man.c...|.. . |
|00001250| 20 2a 0a 58 20 2a 09 09 | 09 09 09 09 09 09 09 20 | *.X *..|....... |
|00001260| 20 20 2a 0a 58 20 2a 20 | 50 75 72 70 6f 73 65 3a | *.X * |Purpose:|
|00001270| 09 09 50 72 6f 76 69 64 | 65 20 61 20 62 65 74 74 |..Provid|e a bett|
|00001280| 65 72 20 75 73 65 72 20 | 69 6e 74 65 72 66 61 63 |er user |interfac|
|00001290| 65 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 6d 61 |e to rea|d the ma|
|000012a0| 6e 75 61 6c 20 2a 0a 58 | 20 2a 09 09 09 70 61 67 |nual *.X| *...pag|
|000012b0| 65 73 2e 09 09 09 09 09 | 09 20 20 20 2a 0a 58 20 |es......|. *.X |
|000012c0| 2a 09 09 09 09 09 09 09 | 09 09 20 20 20 2a 0a 58 |*.......|.. *.X|
|000012d0| 20 2a 20 50 72 6f 67 72 | 61 6d 6d 65 72 3a 09 09 | * Progr|ammer:..|
|000012e0| 47 69 6c 20 4b 6c 6f 65 | 70 66 65 72 2c 20 4a 72 |Gil Kloe|pfer, Jr|
|000012f0| 2e 20 20 49 43 55 53 20 | 53 6f 66 74 77 61 72 65 |. ICUS |Software|
|00001300| 20 53 79 73 74 65 6d 73 | 09 20 20 20 2a 0a 58 20 | Systems|. *.X |
|00001310| 2a 09 09 09 09 09 09 09 | 09 09 20 20 20 2a 0a 58 |*.......|.. *.X|
|00001320| 20 2a 20 52 65 76 69 73 | 69 6f 6e 20 68 69 73 74 | * Revis|ion hist|
|00001330| 6f 72 79 3a 09 20 38 2d | 4a 75 6e 2d 38 39 20 20 |ory:. 8-|Jun-89 |
|00001340| 30 2e 31 09 20 50 72 6f | 67 72 61 6d 20 63 72 65 |0.1. Pro|gram cre|
|00001350| 61 74 65 64 20 5b 42 65 | 74 61 20 72 65 6c 65 61 |ated [Be|ta relea|
|00001360| 73 65 5d 09 20 20 20 2a | 0a 58 20 2a 20 09 09 09 |se]. *|.X * ...|
|00001370| 31 32 2d 4a 75 6c 2d 38 | 39 20 20 31 2e 30 09 20 |12-Jul-8|9 1.0. |
|00001380| 50 72 6f 67 72 61 6d 20 | 72 65 6c 65 61 73 65 64 |Program |released|
|00001390| 0a 58 20 2a 09 09 09 09 | 09 09 09 09 09 20 20 20 |.X *....|..... |
|000013a0| 2a 0a 58 20 2a 20 52 65 | 73 74 72 69 63 74 69 6f |*.X * Re|strictio|
|000013b0| 6e 73 3a 09 52 65 71 75 | 69 72 65 73 20 44 6f 75 |ns:.Requ|ires Dou|
|000013c0| 67 20 47 77 79 6e 27 73 | 20 22 64 69 72 65 6e 74 |g Gwyn's| "dirent|
|000013d0| 22 20 73 75 62 72 6f 75 | 74 69 6e 65 20 70 61 63 |" subrou|tine pac|
|000013e0| 6b 61 67 65 2e 20 20 2a | 0a 58 20 2a 09 09 09 4f |kage. *|.X *...O|
|000013f0| 70 74 69 6f 6e 61 6c 6c | 79 20 72 65 71 75 69 72 |ptionall|y requir|
|00001400| 65 73 20 22 63 6f 6d 70 | 72 65 73 73 22 20 70 61 |es "comp|ress" pa|
|00001410| 63 6b 61 67 65 2c 20 61 | 73 20 77 65 6c 6c 20 20 |ckage, a|s well |
|00001420| 20 20 2a 0a 58 20 2a 09 | 09 09 61 73 20 6c 69 6e | *.X *.|..as lin|
|00001430| 6b 73 20 74 6f 20 69 74 | 20 63 61 6c 6c 65 64 20 |ks to it| called |
|00001440| 22 7a 63 61 74 2c 22 20 | 61 6e 64 20 61 20 74 65 |"zcat," |and a te|
|00001450| 78 74 20 70 61 67 65 72 | 20 20 20 20 20 2a 0a 58 |xt pager| *.X|
|00001460| 20 2a 09 09 09 73 75 63 | 68 20 61 73 09 22 6d 6f | *...suc|h as."mo|
|00001470| 72 65 2e 22 20 20 48 61 | 76 69 6e 67 20 22 6e 72 |re." Ha|ving "nr|
|00001480| 6f 66 66 22 20 69 73 20 | 61 6c 73 6f 20 61 20 70 |off" is |also a p|
|00001490| 6c 75 73 2e 09 20 20 20 | 2a 0a 58 20 2a 09 09 09 |lus.. |*.X *...|
|000014a0| 09 09 09 09 09 09 20 20 | 20 2a 0a 58 20 2a 09 09 |...... | *.X *..|
|000014b0| 09 50 72 6f 67 72 61 6d | 20 68 61 73 20 62 65 65 |.Program| has bee|
|000014c0| 6e 20 74 65 73 74 65 64 | 20 6f 6e 20 74 68 65 20 |n tested| on the |
|000014d0| 55 4e 49 58 2d 70 63 20 | 33 42 31 2e 20 20 49 74 |UNIX-pc |3B1. It|
|000014e0| 20 20 20 20 2a 0a 58 20 | 2a 09 09 09 73 68 6f 75 | *.X |*...shou|
|000014f0| 6c 64 20 77 6f 72 6b 20 | 6f 6e 20 6f 74 68 65 72 |ld work |on other|
|00001500| 20 73 79 73 74 65 6d 73 | 2c 20 62 75 74 20 74 68 | systems|, but th|
|00001510| 69 73 20 68 61 73 6e 27 | 74 20 62 65 65 6e 20 2a |is hasn'|t been *|
|00001520| 0a 58 20 2a 09 09 09 74 | 65 73 74 65 64 2e 09 09 |.X *...t|ested...|
|00001530| 09 09 09 09 20 20 20 2a | 0a 58 20 2a 09 09 09 09 |.... *|.X *....|
|00001540| 09 09 09 09 09 20 20 20 | 2a 0a 58 20 2a 20 55 73 |..... |*.X * Us|
|00001550| 61 67 65 3a 09 09 49 6e | 76 6f 6b 65 64 20 66 72 |age:..In|voked fr|
|00001560| 6f 6d 20 74 68 65 20 73 | 68 65 6c 6c 20 6f 72 20 |om the s|hell or |
|00001570| 61 20 73 63 72 69 70 74 | 20 62 79 3a 09 09 20 20 |a script| by:.. |
|00001580| 20 2a 0a 58 20 2a 09 09 | 09 09 24 20 6d 61 6e 20 | *.X *..|..$ man |
|00001590| 5b 73 65 63 74 69 6f 6e | 5d 20 63 6f 6d 6d 61 6e |[section|] comman|
|000015a0| 64 09 09 09 20 20 20 2a | 0a 58 20 2a 09 09 09 09 |d... *|.X *....|
|000015b0| 09 09 09 09 09 20 20 20 | 2a 0a 58 20 2a 09 09 09 |..... |*.X *...|
|000015c0| 54 68 69 73 20 6d 61 6e | 75 61 6c 20 70 61 67 65 |This man|ual page|
|000015d0| 20 69 6e 74 65 72 66 61 | 63 65 20 70 72 6f 76 69 | interfa|ce provi|
|000015e0| 64 65 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |des the |followin|
|000015f0| 67 20 20 2a 0a 58 20 2a | 09 09 09 66 65 61 74 75 |g *.X *|...featu|
|00001600| 72 65 73 3a 09 09 09 09 | 09 20 20 20 2a 0a 58 20 |res:....|. *.X |
|00001610| 2a 09 09 09 20 09 6f 20 | 20 59 6f 75 20 63 61 6e |*... .o | You can|
|00001620| 20 22 6d 61 6e 22 20 63 | 6f 6d 70 72 65 73 73 65 | "man" c|ompresse|
|00001630| 64 20 6d 61 6e 75 61 6c | 20 70 61 67 65 73 20 20 |d manual| pages |
|00001640| 20 2a 0a 58 20 2a 09 09 | 09 09 6f 20 20 59 6f 75 | *.X *..|..o You|
|00001650| 20 64 6f 6e 27 74 20 68 | 61 76 65 20 74 6f 20 6b | don't h|ave to k|
|00001660| 6e 6f 77 20 69 66 20 74 | 68 65 20 6d 61 6e 75 61 |now if t|he manua|
|00001670| 6c 20 20 20 20 2a 0a 58 | 20 2a 09 09 09 09 20 20 |l *.X| *.... |
|00001680| 20 70 61 67 65 73 20 61 | 72 65 20 75 6e 66 6f 72 | pages a|re unfor|
|00001690| 6d 61 74 74 65 64 20 28 | 2f 75 73 72 2f 6d 61 6e |matted (|/usr/man|
|000016a0| 2f 6d 61 6e 3f 29 20 20 | 20 2a 0a 58 20 2a 09 09 |/man?) | *.X *..|
|000016b0| 09 09 20 20 20 6f 72 20 | 66 6f 72 6d 61 74 74 65 |.. or |formatte|
|000016c0| 64 20 28 2f 75 73 72 2f | 6d 61 6e 2f 63 61 74 3f |d (/usr/|man/cat?|
|000016d0| 29 2e 09 20 20 20 2a 0a | 58 20 2a 09 09 09 09 6f |).. *.|X *....o|
|000016e0| 20 20 59 6f 75 20 64 6f | 6e 27 74 20 68 61 76 65 | You do|n't have|
|000016f0| 20 74 6f 20 6b 6e 6f 77 | 20 77 68 61 74 20 73 65 | to know| what se|
|00001700| 63 74 69 6f 6e 20 20 20 | 20 20 2a 0a 58 20 2a 09 |ction | *.X *.|
|00001710| 09 09 09 20 20 20 74 68 | 65 20 6d 61 6e 75 61 6c |... th|e manual|
|00001720| 20 70 61 67 65 20 69 73 | 20 69 6e 20 28 61 6e 64 | page is| in (and|
|00001730| 20 69 74 20 74 65 6c 6c | 73 20 79 6f 75 20 2a 0a | it tell|s you *.|
|00001740| 58 20 2a 09 09 09 09 20 | 20 20 77 68 69 63 68 20 |X *.... | which |
|00001750| 6f 6e 65 29 09 09 09 09 | 20 20 20 2a 0a 58 20 2a |one)....| *.X *|
|00001760| 09 09 09 09 6f 20 20 59 | 6f 75 20 67 65 74 20 61 |....o Y|ou get a|
|00001770| 75 74 6f 6d 61 74 69 63 | 20 70 61 67 69 6e 67 20 |utomatic| paging |
|00001780| 77 68 65 6e 20 79 6f 75 | 20 20 20 20 20 20 20 2a |when you| *|
|00001790| 0a 58 20 2a 09 09 09 09 | 20 20 20 69 6e 76 6f 6b |.X *....| invok|
|000017a0| 65 20 6d 61 6e 20 66 72 | 6f 6d 20 61 20 74 74 79 |e man fr|om a tty|
|000017b0| 09 09 20 20 20 2a 0a 58 | 20 2a 09 09 09 09 09 09 |.. *.X| *......|
|000017c0| 09 09 09 20 20 20 2a 0a | 58 20 2a 20 43 6f 6d 70 |... *.|X * Comp|
|000017d0| 69 6c 65 64 20 62 79 3a | 09 09 24 20 63 63 20 2d |iled by:|..$ cc -|
|000017e0| 76 20 2d 4f 20 2d 6f 20 | 6d 61 6e 20 6d 61 6e 2e |v -O -o |man man.|
|000017f0| 63 20 2d 6c 64 69 72 65 | 6e 74 20 2d 73 09 09 20 |c -ldire|nt -s.. |
|00001800| 20 20 2a 0a 58 20 2a 09 | 09 09 09 09 09 09 09 09 | *.X *.|........|
|00001810| 20 20 20 2a 0a 58 20 2a | 20 43 6f 70 79 72 69 67 | *.X *| Copyrig|
|00001820| 68 74 2f 09 09 28 43 29 | 20 31 39 38 39 20 47 69 |ht/..(C)| 1989 Gi|
|00001830| 6c 20 4b 6c 6f 65 70 66 | 65 72 2c 20 4a 72 2e 2c |l Kloepf|er, Jr.,|
|00001840| 20 49 43 55 53 20 53 6f | 66 74 77 61 72 65 20 53 | ICUS So|ftware S|
|00001850| 79 73 74 65 6d 73 20 20 | 2a 0a 58 20 2a 20 44 69 |ystems |*.X * Di|
|00001860| 73 63 6c 61 69 6d 65 72 | 3a 09 09 41 6c 6c 20 52 |sclaimer|:..All R|
|00001870| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 09 09 |ights Re|served..|
|00001880| 09 09 20 20 20 2a 0a 58 | 20 2a 09 09 09 09 09 09 |.. *.X| *......|
|00001890| 09 09 09 20 20 20 2a 0a | 58 20 2a 09 09 09 50 65 |... *.|X *...Pe|
|000018a0| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|000018b0| 74 65 64 20 74 6f 20 75 | 73 65 2c 20 63 6f 70 79 |ted to u|se, copy|
|000018c0| 2c 20 6f 72 20 72 65 64 | 69 73 74 72 69 62 75 74 |, or red|istribut|
|000018d0| 65 2a 0a 58 20 2a 09 09 | 09 74 68 69 73 20 73 6f |e*.X *..|.this so|
|000018e0| 66 74 77 61 72 65 20 70 | 72 6f 76 69 64 65 64 20 |ftware p|rovided |
|000018f0| 74 68 61 74 20 74 68 69 | 73 20 68 65 61 64 65 72 |that thi|s header|
|00001900| 20 69 6e 20 69 74 73 20 | 20 20 20 20 2a 0a 58 20 | in its | *.X |
|00001910| 2a 09 09 09 65 6e 74 69 | 72 65 74 79 20 69 73 20 |*...enti|rety is |
|00001920| 6b 65 70 74 20 69 6e 20 | 74 68 65 20 73 6f 75 72 |kept in |the sour|
|00001930| 63 65 20 63 6f 64 65 2c | 20 74 68 61 74 20 61 6c |ce code,| that al|
|00001940| 6c 20 20 20 20 20 20 2a | 0a 58 20 2a 09 09 09 63 |l *|.X *...c|
|00001950| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 73 |opyright| notices|
|00001960| 20 61 72 65 20 6c 65 66 | 74 20 69 6e 74 61 63 74 | are lef|t intact|
|00001970| 2c 20 61 6e 64 20 74 68 | 61 74 20 69 74 20 69 73 |, and th|at it is|
|00001980| 20 20 2a 0a 58 20 2a 09 | 09 09 6e 6f 74 20 64 69 | *.X *.|..not di|
|00001990| 73 74 72 69 62 75 74 65 | 64 20 6f 72 20 75 73 65 |stribute|d or use|
|000019a0| 64 20 66 6f 72 20 6d 6f | 6e 65 74 61 72 79 20 67 |d for mo|netary g|
|000019b0| 61 69 6e 20 6f 66 20 61 | 6e 79 20 20 20 2a 0a 58 |ain of a|ny *.X|
|000019c0| 20 2a 09 09 09 6b 69 6e | 64 20 77 69 74 68 6f 75 | *...kin|d withou|
|000019d0| 74 20 74 68 65 20 65 78 | 70 72 65 73 73 2c 20 77 |t the ex|press, w|
|000019e0| 72 69 74 74 65 6e 20 70 | 65 72 6d 69 73 73 69 6f |ritten p|ermissio|
|000019f0| 6e 20 6f 66 20 20 20 20 | 2a 0a 58 20 2a 09 09 09 |n of |*.X *...|
|00001a00| 74 68 65 20 63 6f 70 79 | 72 69 67 68 74 20 68 6f |the copy|right ho|
|00001a10| 6c 64 65 72 28 73 29 2e | 20 20 46 75 72 74 68 65 |lder(s).| Furthe|
|00001a20| 72 6d 6f 72 65 2c 20 69 | 66 20 74 68 69 73 20 20 |rmore, i|f this |
|00001a30| 20 20 20 2a 0a 58 20 2a | 09 09 09 73 6f 66 74 77 | *.X *|...softw|
|00001a40| 61 72 65 20 69 73 20 6d | 6f 64 69 66 69 65 64 2c |are is m|odified,|
|00001a50| 20 61 6c 6c 20 63 68 61 | 6e 67 65 73 20 73 68 6f | all cha|nges sho|
|00001a60| 75 6c 64 20 62 65 20 6d | 61 69 6c 65 64 20 2a 0a |uld be m|ailed *.|
|00001a70| 58 20 2a 09 09 09 74 6f | 20 69 63 75 73 21 67 69 |X *...to| icus!gi|
|00001a80| 6c 2e 09 09 09 09 09 20 | 20 20 2a 0a 58 20 2a 09 |l...... | *.X *.|
|00001a90| 09 09 09 09 09 09 09 09 | 20 20 20 2a 0a 58 20 2a |........| *.X *|
|00001aa0| 09 09 09 54 68 65 20 75 | 73 65 72 20 6f 66 20 74 |...The u|ser of t|
|00001ab0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 61 67 72 65 |his prog|ram agre|
|00001ac0| 65 73 20 61 6e 64 20 75 | 6e 64 65 72 73 74 61 6e |es and u|nderstan|
|00001ad0| 64 73 20 20 20 20 2a 0a | 58 20 2a 09 09 09 74 68 |ds *.|X *...th|
|00001ae0| 61 74 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |at this |software|
|00001af0| 20 69 73 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | is dist|ributed |
|00001b00| 6f 6e 20 61 6e 20 22 61 | 73 2d 69 73 22 20 20 20 |on an "a|s-is" |
|00001b10| 20 2a 0a 58 20 2a 09 09 | 09 62 61 73 69 73 2c 20 | *.X *..|.basis, |
|00001b20| 61 6e 64 20 73 68 61 6c | 6c 20 6e 6f 74 20 75 73 |and shal|l not us|
|00001b30| 65 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 20 61 |e this p|rogram a|
|00001b40| 73 20 74 68 65 20 62 61 | 73 69 73 20 2a 0a 58 20 |s the ba|sis *.X |
|00001b50| 2a 09 09 09 66 6f 72 20 | 61 6e 79 20 63 6c 61 69 |*...for |any clai|
|00001b60| 6d 73 2c 20 6e 6f 77 20 | 6f 72 20 69 6e 20 74 68 |ms, now |or in th|
|00001b70| 65 20 66 75 74 75 72 65 | 2c 20 61 67 61 69 6e 73 |e future|, agains|
|00001b80| 74 20 20 20 20 20 20 2a | 0a 58 20 2a 09 09 09 61 |t *|.X *...a|
|00001b90| 6e 79 20 69 6e 64 69 76 | 69 64 75 61 6c 2c 20 6f |ny indiv|idual, o|
|00001ba0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 2c 20 6f 72 20 |rganizat|ion, or |
|00001bb0| 65 6e 74 69 74 79 2e 09 | 20 20 20 2a 0a 58 5c 2a |entity..| *.X\*|
|00001bc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0a 58 0a 58 23 |********|**/.X.X#|
|00001c10| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00001c20| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |>.X#incl|ude <sys|
|00001c30| 2f 74 79 70 65 73 2e 68 | 3e 0a 58 23 69 6e 63 6c |/types.h|>.X#incl|
|00001c40| 75 64 65 20 3c 64 69 72 | 65 6e 74 2e 68 3e 0a 58 |ude <dir|ent.h>.X|
|00001c50| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 73 74 |#include| <sys/st|
|00001c60| 61 74 2e 68 3e 0a 58 0a | 58 23 64 65 66 69 6e 65 |at.h>.X.|X#define|
|00001c70| 09 50 52 4f 43 44 09 09 | 22 2f 75 73 72 2f 6d 61 |.PROCD..|"/usr/ma|
|00001c80| 6e 2f 63 61 74 22 09 2f | 2a 20 64 69 72 20 70 72 |n/cat"./|* dir pr|
|00001c90| 65 66 69 78 20 66 6f 72 | 20 70 72 65 66 6f 72 6d |efix for| preform|
|00001ca0| 61 74 74 65 64 20 70 61 | 67 65 73 20 2a 2f 0a 58 |atted pa|ges */.X|
|00001cb0| 23 64 65 66 69 6e 65 09 | 4e 50 52 4f 43 44 09 09 |#define.|NPROCD..|
|00001cc0| 22 2f 75 73 72 2f 6d 61 | 6e 2f 6d 61 6e 22 09 2f |"/usr/ma|n/man"./|
|00001cd0| 2a 20 64 69 72 20 70 72 | 65 66 69 78 20 66 6f 72 |* dir pr|efix for|
|00001ce0| 20 6e 72 6f 66 66 20 66 | 6f 72 6d 61 74 20 70 61 | nroff f|ormat pa|
|00001cf0| 67 65 73 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 09 |ges */.X|#define.|
|00001d00| 4d 41 58 50 41 54 48 09 | 09 31 32 38 09 09 2f 2a |MAXPATH.|.128../*|
|00001d10| 20 6d 61 78 69 6d 75 6d | 20 73 69 7a 65 20 6f 66 | maximum| size of|
|00001d20| 20 70 61 74 68 20 74 6f | 20 6d 61 6e 20 70 61 67 | path to| man pag|
|00001d30| 65 20 2a 2f 0a 58 0a 58 | 2f 2a 20 75 6e 64 65 66 |e */.X.X|/* undef|
|00001d40| 69 6e 65 20 61 6e 79 20 | 6f 66 20 74 68 65 20 66 |ine any |of the f|
|00001d50| 6f 6c 6c 6f 77 69 6e 67 | 20 69 66 20 79 6f 75 72 |ollowing| if your|
|00001d60| 20 73 79 73 74 65 6d 20 | 64 6f 65 73 6e 27 74 20 | system |doesn't |
|00001d70| 68 61 76 65 20 74 68 65 | 6d 20 2a 2f 0a 58 0a 58 |have the|m */.X.X|
|00001d80| 23 64 65 66 69 6e 65 09 | 54 59 50 45 43 4f 4d 50 |#define.|TYPECOMP|
|00001d90| 09 22 2f 75 73 72 2f 62 | 69 6e 2f 7a 63 61 74 22 |."/usr/b|in/zcat"|
|00001da0| 09 2f 2a 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 64 |./* comm|and to d|
|00001db0| 69 73 70 6c 61 79 20 61 | 20 63 6f 6d 70 72 65 73 |isplay a| compres|
|00001dc0| 73 65 64 20 66 69 6c 65 | 20 2a 2f 0a 58 23 64 65 |sed file| */.X#de|
|00001dd0| 66 69 6e 65 09 46 4f 52 | 4d 41 54 09 09 22 2f 75 |fine.FOR|MAT.."/u|
|00001de0| 73 72 2f 62 69 6e 2f 6e | 72 6f 66 66 20 2d 6d 61 |sr/bin/n|roff -ma|
|00001df0| 6e 22 20 2f 2a 20 63 6f | 6d 6d 61 6e 64 20 74 6f |n" /* co|mmand to|
|00001e00| 20 66 6f 72 6d 61 74 20 | 61 20 6d 61 6e 75 61 6c | format |a manual|
|00001e10| 20 70 61 67 65 20 2a 2f | 0a 58 23 64 65 66 69 6e | page */|.X#defin|
|00001e20| 65 09 50 41 47 45 52 09 | 09 22 2f 75 73 72 2f 62 |e.PAGER.|."/usr/b|
|00001e30| 69 6e 2f 6d 6f 72 65 22 | 09 2f 2a 20 73 79 73 74 |in/more"|./* syst|
|00001e40| 65 6d 20 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 70 61 |em comma|nd to pa|
|00001e50| 67 65 20 61 20 66 69 6c | 65 20 2a 2f 0a 58 0a 58 |ge a fil|e */.X.X|
|00001e60| 2f 2a 20 44 6f 6e 27 74 | 20 70 6c 61 79 20 77 69 |/* Don't| play wi|
|00001e70| 74 68 20 74 68 65 73 65 | 20 63 6f 6e 73 74 61 6e |th these| constan|
|00001e80| 74 73 21 21 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |ts!! */.|X#define|
|00001e90| 09 43 5f 50 52 4f 43 09 | 09 31 0a 58 23 64 65 66 |.C_PROC.|.1.X#def|
|00001ea0| 69 6e 65 09 43 5f 4e 50 | 52 4f 43 09 09 32 0a 58 |ine.C_NP|ROC..2.X|
|00001eb0| 0a 58 0a 58 6d 61 69 6e | 28 61 72 67 63 2c 61 72 |.X.Xmain|(argc,ar|
|00001ec0| 67 76 29 0a 58 69 6e 74 | 20 61 72 67 63 3b 0a 58 |gv).Xint| argc;.X|
|00001ed0| 63 68 61 72 20 2a 61 72 | 67 76 5b 5d 3b 0a 58 7b |char *ar|gv[];.X{|
|00001ee0| 0a 58 09 69 6e 74 09 61 | 72 67 6e 6f 2c 20 73 65 |.X.int.a|rgno, se|
|00001ef0| 63 74 69 6f 6e 2c 20 6b | 69 6e 64 2c 20 6c 6f 6f |ction, k|ind, loo|
|00001f00| 6b 75 70 28 29 3b 0a 58 | 09 63 68 61 72 09 63 6f |kup();.X|.char.co|
|00001f10| 6d 6d 61 6e 64 5b 32 30 | 5d 2c 20 70 61 67 65 6e |mmand[20|], pagen|
|00001f20| 61 6d 65 5b 4d 41 58 50 | 41 54 48 5d 3b 0a 58 0a |ame[MAXP|ATH];.X.|
|00001f30| 58 09 2f 2a 20 50 72 6f | 63 65 73 73 20 74 68 65 |X./* Pro|cess the|
|00001f40| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 61 72 | command| line ar|
|00001f50| 67 75 6d 65 6e 74 73 20 | 2a 2f 0a 58 0a 58 09 73 |guments |*/.X.X.s|
|00001f60| 77 69 74 63 68 28 61 72 | 67 63 29 20 7b 0a 58 09 |witch(ar|gc) {.X.|
|00001f70| 63 61 73 65 20 32 3a 20 | 20 2f 2a 20 6a 75 73 74 |case 2: | /* just|
|00001f80| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6e 61 6d | the com|mand nam|
|00001f90| 65 20 2a 2f 0a 58 09 09 | 73 74 72 6e 63 70 79 28 |e */.X..|strncpy(|
|00001fa0| 63 6f 6d 6d 61 6e 64 2c | 61 72 67 76 5b 31 5d 2c |command,|argv[1],|
|00001fb0| 32 30 29 3b 0a 58 09 09 | 73 65 63 74 69 6f 6e 3d |20);.X..|section=|
|00001fc0| 30 3b 0a 58 09 09 62 72 | 65 61 6b 3b 0a 58 0a 58 |0;.X..br|eak;.X.X|
|00001fd0| 09 63 61 73 65 20 33 3a | 20 20 2f 2a 20 74 68 65 |.case 3:| /* the|
|00001fe0| 20 73 65 63 74 69 6f 6e | 20 61 6e 64 20 63 6f 6d | section| and com|
|00001ff0| 6d 61 6e 64 20 6e 61 6d | 65 20 2a 2f 0a 58 09 09 |mand nam|e */.X..|
|00002000| 73 73 63 61 6e 66 28 61 | 72 67 76 5b 31 5d 2c 20 |sscanf(a|rgv[1], |
|00002010| 22 25 64 22 2c 20 26 73 | 65 63 74 69 6f 6e 29 3b |"%d", &s|ection);|
|00002020| 0a 58 09 09 73 74 72 6e | 63 70 79 28 63 6f 6d 6d |.X..strn|cpy(comm|
|00002030| 61 6e 64 2c 61 72 67 76 | 5b 32 5d 2c 32 30 29 3b |and,argv|[2],20);|
|00002040| 0a 58 09 09 62 72 65 61 | 6b 3b 0a 58 0a 58 09 64 |.X..brea|k;.X.X.d|
|00002050| 65 66 61 75 6c 74 3a 20 | 20 2f 2a 20 69 6e 76 61 |efault: | /* inva|
|00002060| 6c 69 64 20 2e 2e 20 64 | 69 73 70 6c 61 79 20 74 |lid .. d|isplay t|
|00002070| 68 65 20 75 73 61 67 65 | 20 73 74 61 74 65 6d 65 |he usage| stateme|
|00002080| 6e 74 20 2a 2f 0a 58 09 | 09 66 70 72 69 6e 74 66 |nt */.X.|.fprintf|
|00002090| 28 73 74 64 65 72 72 2c | 22 75 73 61 67 65 3a 20 |(stderr,|"usage: |
|000020a0| 25 73 20 5b 73 65 63 74 | 69 6f 6e 5d 20 63 6f 6d |%s [sect|ion] com|
|000020b0| 6d 61 6e 64 5c 6e 22 2c | 20 61 72 67 76 5b 30 5d |mand\n",| argv[0]|
|000020c0| 29 3b 0a 58 09 09 65 78 | 69 74 28 31 29 3b 0a 58 |);.X..ex|it(1);.X|
|000020d0| 09 7d 0a 58 0a 58 09 2f | 2a 0a 58 09 20 2a 20 49 |.}.X.X./|*.X. * I|
|000020e0| 66 20 74 68 65 20 73 65 | 63 74 69 6f 6e 20 69 73 |f the se|ction is|
|000020f0| 20 6e 6f 74 20 73 70 65 | 63 69 66 69 65 64 20 65 | not spe|cified e|
|00002100| 78 70 6c 69 63 69 74 6c | 79 2c 20 74 72 79 20 74 |xplicitl|y, try t|
|00002110| 6f 20 66 69 6e 64 0a 58 | 09 20 2a 20 74 68 65 20 |o find.X|. * the |
|00002120| 6d 61 6e 75 61 6c 20 70 | 61 67 65 20 69 6e 20 74 |manual p|age in t|
|00002130| 68 65 20 66 69 72 73 74 | 20 64 69 72 65 63 74 6f |he first| directo|
|00002140| 72 79 20 77 68 65 72 65 | 20 69 74 27 73 20 65 6e |ry where| it's en|
|00002150| 63 6f 75 6e 74 65 72 65 | 64 2e 0a 58 09 20 2a 2f |countere|d..X. */|
|00002160| 0a 58 0a 58 09 69 66 20 | 28 73 65 63 74 69 6f 6e |.X.X.if |(section|
|00002170| 20 3d 3d 20 30 29 20 7b | 0a 58 09 09 66 6f 72 20 | == 0) {|.X..for |
|00002180| 28 73 65 63 74 69 6f 6e | 3d 31 3b 20 73 65 63 74 |(section|=1; sect|
|00002190| 69 6f 6e 3c 3d 38 3b 20 | 73 65 63 74 69 6f 6e 2b |ion<=8; |section+|
|000021a0| 2b 29 0a 58 09 09 09 69 | 66 20 28 6c 6f 6f 6b 75 |+).X...i|f (looku|
|000021b0| 70 28 63 6f 6d 6d 61 6e | 64 2c 73 65 63 74 69 6f |p(comman|d,sectio|
|000021c0| 6e 2c 70 61 67 65 6e 61 | 6d 65 2c 26 6b 69 6e 64 |n,pagena|me,&kind|
|000021d0| 29 29 20 7b 0a 58 09 09 | 09 09 66 70 72 69 6e 74 |)) {.X..|..fprint|
|000021e0| 66 28 73 74 64 65 72 72 | 2c 22 25 73 3a 20 61 73 |f(stderr|,"%s: as|
|000021f0| 73 75 6d 69 6e 67 20 25 | 73 20 66 72 6f 6d 20 73 |suming %|s from s|
|00002200| 65 63 74 69 6f 6e 20 25 | 64 5c 6e 22 2c 0a 58 09 |ection %|d\n",.X.|
|00002210| 09 09 09 09 61 72 67 76 | 5b 30 5d 2c 20 63 6f 6d |....argv|[0], com|
|00002220| 6d 61 6e 64 2c 20 73 65 | 63 74 69 6f 6e 29 3b 0a |mand, se|ction);.|
|00002230| 58 09 09 09 09 70 72 69 | 6e 74 70 61 67 65 28 70 |X....pri|ntpage(p|
|00002240| 61 67 65 6e 61 6d 65 2c | 6b 69 6e 64 29 3b 0a 58 |agename,|kind);.X|
|00002250| 09 09 09 09 65 78 69 74 | 28 30 29 3b 0a 58 09 09 |....exit|(0);.X..|
|00002260| 09 7d 0a 58 09 09 66 70 | 72 69 6e 74 66 28 73 74 |.}.X..fp|rintf(st|
|00002270| 64 65 72 72 2c 22 25 73 | 3a 20 63 61 6e 6e 6f 74 |derr,"%s|: cannot|
|00002280| 20 66 69 6e 64 20 25 73 | 20 69 6e 20 74 68 65 20 | find %s| in the |
|00002290| 6d 61 6e 75 61 6c 5c 6e | 22 2c 0a 58 09 09 09 09 |manual\n|",.X....|
|000022a0| 61 72 67 76 5b 30 5d 2c | 20 63 6f 6d 6d 61 6e 64 |argv[0],| command|
|000022b0| 29 3b 0a 58 09 09 65 78 | 69 74 28 32 29 3b 0a 58 |);.X..ex|it(2);.X|
|000022c0| 09 7d 0a 58 0a 58 09 2f | 2a 0a 58 09 20 2a 20 49 |.}.X.X./|*.X. * I|
|000022d0| 66 20 74 68 65 20 75 73 | 65 72 20 73 70 65 63 69 |f the us|er speci|
|000022e0| 66 69 65 64 20 61 20 73 | 65 63 74 69 6f 6e 2c 20 |fied a s|ection, |
|000022f0| 74 68 65 6e 20 73 65 65 | 20 69 66 20 77 65 20 63 |then see| if we c|
|00002300| 61 6e 20 66 69 6e 64 20 | 69 74 0a 58 09 20 2a 20 |an find |it.X. * |
|00002310| 74 68 65 72 65 20 2e 2e | 20 69 66 20 73 6f 2c 20 |there ..| if so, |
|00002320| 70 72 69 6e 74 20 74 68 | 65 20 70 61 67 65 0a 58 |print th|e page.X|
|00002330| 09 20 2a 2f 0a 58 0a 58 | 09 69 66 20 28 6c 6f 6f |. */.X.X|.if (loo|
|00002340| 6b 75 70 28 63 6f 6d 6d | 61 6e 64 2c 73 65 63 74 |kup(comm|and,sect|
|00002350| 69 6f 6e 2c 70 61 67 65 | 6e 61 6d 65 2c 26 6b 69 |ion,page|name,&ki|
|00002360| 6e 64 29 29 20 7b 0a 58 | 09 09 70 72 69 6e 74 70 |nd)) {.X|..printp|
|00002370| 61 67 65 28 70 61 67 65 | 6e 61 6d 65 2c 6b 69 6e |age(page|name,kin|
|00002380| 64 29 3b 0a 58 09 09 65 | 78 69 74 28 30 29 3b 0a |d);.X..e|xit(0);.|
|00002390| 58 09 7d 20 65 6c 73 65 | 20 7b 0a 58 09 09 66 70 |X.} else| {.X..fp|
|000023a0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 22 25 73 |rintf(st|derr,"%s|
|000023b0| 3a 20 63 61 6e 6e 6f 74 | 20 66 69 6e 64 20 25 73 |: cannot| find %s|
|000023c0| 20 69 6e 20 73 65 63 74 | 69 6f 6e 20 25 64 5c 6e | in sect|ion %d\n|
|000023d0| 22 2c 0a 58 09 09 09 61 | 72 67 76 5b 30 5d 2c 20 |",.X...a|rgv[0], |
|000023e0| 63 6f 6d 6d 61 6e 64 2c | 20 73 65 63 74 69 6f 6e |command,| section|
|000023f0| 29 3b 0a 58 09 09 65 78 | 69 74 28 32 29 3b 0a 58 |);.X..ex|it(2);.X|
|00002400| 09 7d 0a 58 7d 0a 58 0a | 58 0a 58 2f 2a 0a 58 20 |.}.X}.X.|X.X/*.X |
|00002410| 2a 20 46 75 6e 63 74 69 | 6f 6e 20 6c 6f 6f 6b 75 |* Functi|on looku|
|00002420| 70 20 72 65 74 75 72 6e | 73 20 30 20 6f 6e 20 66 |p return|s 0 on f|
|00002430| 61 69 6c 75 72 65 20 61 | 6e 64 20 31 20 6f 6e 20 |ailure a|nd 1 on |
|00002440| 73 75 63 63 65 73 73 2e | 20 20 49 74 20 77 69 6c |success.| It wil|
|00002450| 6c 20 6c 6f 6f 6b 0a 58 | 20 2a 20 74 68 72 6f 75 |l look.X| * throu|
|00002460| 67 68 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 69 |gh the d|irectori|
|00002470| 65 73 20 66 6f 72 20 73 | 65 63 74 69 6f 6e 20 61 |es for s|ection a|
|00002480| 6e 64 20 74 72 79 20 74 | 6f 20 66 69 6e 64 20 74 |nd try t|o find t|
|00002490| 68 65 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 0a 58 |he manua|l page.X|
|000024a0| 20 2a 20 66 6f 72 20 63 | 6f 6d 6d 61 6e 64 2e 20 | * for c|ommand. |
|000024b0| 20 49 66 20 69 74 20 66 | 69 6e 64 73 20 69 74 2c | If it f|inds it,|
|000024c0| 20 74 68 65 20 65 6e 74 | 69 72 65 20 66 69 6c 65 | the ent|ire file|
|000024d0| 6e 61 6d 65 20 69 73 20 | 72 65 74 75 72 6e 65 64 |name is |returned|
|000024e0| 20 61 73 0a 58 20 2a 20 | 70 61 67 65 6e 61 6d 65 | as.X * |pagename|
|000024f0| 2e 20 20 22 6b 69 6e 64 | 22 20 70 61 73 73 65 73 |. "kind|" passes|
|00002500| 20 61 6c 6f 6e 67 20 77 | 68 65 74 68 65 72 20 74 | along w|hether t|
|00002510| 68 65 20 6e 61 6d 65 20 | 77 61 73 20 66 6f 75 6e |he name |was foun|
|00002520| 64 20 69 6e 20 74 68 65 | 0a 58 20 2a 20 70 72 6f |d in the|.X * pro|
|00002530| 63 65 73 73 65 64 20 6f | 72 20 75 6e 70 72 6f 63 |cessed o|r unproc|
|00002540| 65 73 73 65 64 20 64 69 | 72 65 63 74 6f 72 79 20 |essed di|rectory |
|00002550| 70 68 61 73 65 73 0a 58 | 20 2a 2f 0a 58 0a 58 69 |phases.X| */.X.Xi|
|00002560| 6e 74 20 6c 6f 6f 6b 75 | 70 28 63 6f 6d 6d 61 6e |nt looku|p(comman|
|00002570| 64 2c 73 65 63 74 69 6f | 6e 2c 70 61 67 65 6e 61 |d,sectio|n,pagena|
|00002580| 6d 65 2c 6b 69 6e 64 29 | 0a 58 63 68 61 72 20 2a |me,kind)|.Xchar *|
|00002590| 63 6f 6d 6d 61 6e 64 2c | 20 2a 70 61 67 65 6e 61 |command,| *pagena|
|000025a0| 6d 65 3b 0a 58 69 6e 74 | 20 73 65 63 74 69 6f 6e |me;.Xint| section|
|000025b0| 2c 20 2a 6b 69 6e 64 3b | 0a 58 7b 0a 58 09 69 6e |, *kind;|.X{.X.in|
|000025c0| 74 09 70 61 73 73 6e 6f | 2c 20 63 6d 70 6d 61 6e |t.passno|, cmpman|
|000025d0| 28 29 3b 0a 58 09 63 68 | 61 72 09 66 75 6c 6c 70 |();.X.ch|ar.fullp|
|000025e0| 61 74 68 5b 4d 41 58 50 | 41 54 48 5d 3b 0a 58 09 |ath[MAXP|ATH];.X.|
|000025f0| 44 49 52 09 2a 6d 64 69 | 72 3b 0a 58 09 73 74 72 |DIR.*mdi|r;.X.str|
|00002600| 75 63 74 20 64 69 72 65 | 6e 74 20 2a 64 65 6e 74 |uct dire|nt *dent|
|00002610| 72 79 3b 0a 58 0a 58 09 | 2f 2a 0a 58 09 20 2a 20 |ry;.X.X.|/*.X. * |
|00002620| 4c 6f 6f 6b 20 74 68 72 | 6f 75 67 68 20 74 68 65 |Look thr|ough the|
|00002630| 20 66 6f 72 6d 61 74 74 | 65 64 20 64 69 72 65 63 | formatt|ed direc|
|00002640| 74 6f 72 79 20 66 69 72 | 73 74 20 74 6f 20 73 65 |tory fir|st to se|
|00002650| 65 20 69 66 20 77 65 0a | 58 09 20 2a 20 63 61 6e |e if we.|X. * can|
|00002660| 20 67 65 74 20 6f 6e 65 | 20 74 68 61 74 27 73 20 | get one| that's |
|00002670| 66 6f 72 6d 61 74 74 65 | 64 2e 20 20 54 68 65 20 |formatte|d. The |
|00002680| 73 65 63 6f 6e 64 20 70 | 61 73 73 20 67 65 74 73 |second p|ass gets|
|00002690| 0a 58 09 20 2a 20 74 68 | 65 20 66 6f 72 6d 61 74 |.X. * th|e format|
|000026a0| 74 65 64 20 64 69 72 65 | 63 74 6f 72 79 2e 20 20 |ted dire|ctory. |
|000026b0| 54 68 69 73 20 6c 6f 6f | 6b 73 20 6b 6c 75 64 67 |This loo|ks kludg|
|000026c0| 79 2c 20 62 75 74 20 69 | 74 27 73 0a 58 09 20 2a |y, but i|t's.X. *|
|000026d0| 20 70 72 65 74 74 79 20 | 6e 65 61 74 20 6e 65 76 | pretty |neat nev|
|000026e0| 65 72 74 68 65 6c 65 73 | 73 2e 0a 58 09 20 2a 2f |ertheles|s..X. */|
|000026f0| 0a 58 0a 58 09 66 6f 72 | 20 28 70 61 73 73 6e 6f |.X.X.for| (passno|
|00002700| 3d 31 3b 20 70 61 73 73 | 6e 6f 3c 3d 32 3b 20 70 |=1; pass|no<=2; p|
|00002710| 61 73 73 6e 6f 2b 2b 29 | 20 7b 0a 58 09 09 73 77 |assno++)| {.X..sw|
|00002720| 69 74 63 68 28 70 61 73 | 73 6e 6f 29 20 7b 0a 58 |itch(pas|sno) {.X|
|00002730| 09 09 63 61 73 65 20 31 | 3a 20 20 2f 2a 20 63 68 |..case 1|: /* ch|
|00002740| 65 63 6b 20 66 6f 72 6d | 61 74 74 65 64 20 64 69 |eck form|atted di|
|00002750| 72 65 63 74 6f 72 79 20 | 2a 2f 0a 58 09 09 09 73 |rectory |*/.X...s|
|00002760| 70 72 69 6e 74 66 28 66 | 75 6c 6c 70 61 74 68 2c |printf(f|ullpath,|
|00002770| 20 22 25 73 25 64 22 2c | 20 50 52 4f 43 44 2c 20 | "%s%d",| PROCD, |
|00002780| 73 65 63 74 69 6f 6e 29 | 3b 0a 58 09 09 09 2a 6b |section)|;.X...*k|
|00002790| 69 6e 64 20 3d 20 43 5f | 50 52 4f 43 3b 0a 58 09 |ind = C_|PROC;.X.|
|000027a0| 09 09 62 72 65 61 6b 3b | 0a 58 0a 58 09 09 63 61 |..break;|.X.X..ca|
|000027b0| 73 65 20 32 3a 20 20 2f | 2a 20 63 68 65 63 6b 20 |se 2: /|* check |
|000027c0| 75 6e 66 6f 72 6d 61 74 | 74 65 64 20 64 69 72 65 |unformat|ted dire|
|000027d0| 63 74 6f 72 79 20 2a 2f | 0a 58 09 09 09 73 70 72 |ctory */|.X...spr|
|000027e0| 69 6e 74 66 28 66 75 6c | 6c 70 61 74 68 2c 20 22 |intf(ful|lpath, "|
|000027f0| 25 73 25 64 22 2c 20 4e | 50 52 4f 43 44 2c 20 73 |%s%d", N|PROCD, s|
|00002800| 65 63 74 69 6f 6e 29 3b | 0a 58 09 09 09 2a 6b 69 |ection);|.X...*ki|
|00002810| 6e 64 20 3d 20 43 5f 4e | 50 52 4f 43 3b 0a 58 09 |nd = C_N|PROC;.X.|
|00002820| 09 09 62 72 65 61 6b 3b | 0a 58 09 09 7d 0a 58 0a |..break;|.X..}.X.|
|00002830| 58 09 09 69 66 20 28 28 | 6d 64 69 72 3d 6f 70 65 |X..if ((|mdir=ope|
|00002840| 6e 64 69 72 28 66 75 6c | 6c 70 61 74 68 29 29 20 |ndir(ful|lpath)) |
|00002850| 21 3d 20 4e 55 4c 4c 29 | 0a 58 09 09 09 77 68 69 |!= NULL)|.X...whi|
|00002860| 6c 65 20 28 28 64 65 6e | 74 72 79 3d 72 65 61 64 |le ((den|try=read|
|00002870| 64 69 72 28 6d 64 69 72 | 29 29 20 21 3d 20 4e 55 |dir(mdir|)) != NU|
|00002880| 4c 4c 29 0a 58 09 09 09 | 09 69 66 20 28 63 6d 70 |LL).X...|.if (cmp|
|00002890| 6d 61 6e 28 64 65 6e 74 | 72 79 2d 3e 64 5f 6e 61 |man(dent|ry->d_na|
|000028a0| 6d 65 2c 63 6f 6d 6d 61 | 6e 64 29 20 3d 3d 20 30 |me,comma|nd) == 0|
|000028b0| 29 20 7b 0a 58 09 09 09 | 09 09 63 6c 6f 73 65 64 |) {.X...|..closed|
|000028c0| 69 72 28 6d 64 69 72 29 | 3b 0a 58 09 09 09 09 09 |ir(mdir)|;.X.....|
|000028d0| 73 70 72 69 6e 74 66 28 | 70 61 67 65 6e 61 6d 65 |sprintf(|pagename|
|000028e0| 2c 20 22 25 73 2f 25 73 | 22 2c 20 66 75 6c 6c 70 |, "%s/%s|", fullp|
|000028f0| 61 74 68 2c 0a 58 09 09 | 09 09 09 09 64 65 6e 74 |ath,.X..|....dent|
|00002900| 72 79 2d 3e 64 5f 6e 61 | 6d 65 29 3b 0a 58 09 09 |ry->d_na|me);.X..|
|00002910| 09 09 09 72 65 74 75 72 | 6e 28 31 29 3b 0a 58 09 |...retur|n(1);.X.|
|00002920| 09 09 09 7d 0a 58 0a 58 | 09 09 63 6c 6f 73 65 64 |...}.X.X|..closed|
|00002930| 69 72 28 6d 64 69 72 29 | 3b 0a 58 09 7d 0a 58 09 |ir(mdir)|;.X.}.X.|
|00002940| 72 65 74 75 72 6e 28 30 | 29 3b 0a 58 7d 0a 58 0a |return(0|);.X}.X.|
|00002950| 58 0a 58 2f 2a 0a 58 20 | 2a 20 43 6f 6d 70 61 72 |X.X/*.X |* Compar|
|00002960| 65 20 6e 61 6d 65 20 77 | 69 74 68 20 63 6f 6d 6d |e name w|ith comm|
|00002970| 61 6e 64 20 61 6e 64 20 | 73 65 65 20 69 66 20 69 |and and |see if i|
|00002980| 74 20 6d 61 74 63 68 65 | 73 20 62 65 66 6f 72 65 |t matche|s before|
|00002990| 20 74 68 65 20 70 65 72 | 69 6f 64 0a 58 20 2a 20 | the per|iod.X * |
|000029a0| 73 6f 20 77 65 20 63 61 | 6e 20 63 72 6f 77 6e 20 |so we ca|n crown |
|000029b0| 69 74 20 74 68 65 20 6d | 61 74 63 68 69 6e 67 20 |it the m|atching |
|000029c0| 6d 61 6e 75 61 6c 20 70 | 61 67 65 20 66 6f 72 20 |manual p|age for |
|000029d0| 63 6f 6d 6d 61 6e 64 0a | 58 20 2a 2f 0a 58 0a 58 |command.|X */.X.X|
|000029e0| 69 6e 74 20 63 6d 70 6d | 61 6e 28 6e 61 6d 65 2c |int cmpm|an(name,|
|000029f0| 63 6f 6d 6d 61 6e 64 29 | 0a 58 63 68 61 72 20 2a |command)|.Xchar *|
|00002a00| 6e 61 6d 65 2c 20 2a 63 | 6f 6d 6d 61 6e 64 3b 0a |name, *c|ommand;.|
|00002a10| 58 7b 0a 58 09 77 68 69 | 6c 65 20 28 28 2a 6e 61 |X{.X.whi|le ((*na|
|00002a20| 6d 65 20 3d 3d 20 2a 63 | 6f 6d 6d 61 6e 64 29 20 |me == *c|ommand) |
|00002a30| 26 26 20 2a 6e 61 6d 65 | 20 21 3d 20 27 5c 30 27 |&& *name| != '\0'|
|00002a40| 20 26 26 20 2a 63 6f 6d | 6d 61 6e 64 20 21 3d 20 | && *com|mand != |
|00002a50| 27 5c 30 27 29 20 7b 0a | 58 09 09 6e 61 6d 65 2b |'\0') {.|X..name+|
|00002a60| 2b 3b 0a 58 09 09 63 6f | 6d 6d 61 6e 64 2b 2b 3b |+;.X..co|mmand++;|
|00002a70| 0a 58 09 7d 0a 58 0a 58 | 09 69 66 20 28 2a 6e 61 |.X.}.X.X|.if (*na|
|00002a80| 6d 65 20 3d 3d 20 27 2e | 27 20 26 26 20 2a 63 6f |me == '.|' && *co|
|00002a90| 6d 6d 61 6e 64 20 3d 3d | 20 27 5c 30 27 29 20 72 |mmand ==| '\0') r|
|00002aa0| 65 74 75 72 6e 28 30 29 | 3b 20 20 2f 2a 20 4f 4b |eturn(0)|; /* OK|
|00002ab0| 20 2a 2f 0a 58 09 69 66 | 20 28 2a 63 6f 6d 6d 61 | */.X.if| (*comma|
|00002ac0| 6e 64 20 3d 3d 20 2a 6e | 61 6d 65 29 20 72 65 74 |nd == *n|ame) ret|
|00002ad0| 75 72 6e 28 30 29 3b 20 | 20 2f 2a 20 61 6c 73 6f |urn(0); | /* also|
|00002ae0| 20 4f 4b 20 2a 2f 0a 58 | 0a 58 09 72 65 74 75 72 | OK */.X|.X.retur|
|00002af0| 6e 28 31 29 3b 20 20 2f | 2a 20 61 6c 6c 20 6f 74 |n(1); /|* all ot|
|00002b00| 68 65 72 20 63 61 73 65 | 73 20 66 61 69 6c 20 2a |her case|s fail *|
|00002b10| 2f 0a 58 7d 0a 58 0a 58 | 0a 58 2f 2a 0a 58 20 2a |/.X}.X.X|.X/*.X *|
|00002b20| 20 50 72 69 6e 74 70 61 | 67 65 20 70 72 69 6e 74 | Printpa|ge print|
|00002b30| 73 20 61 20 6d 61 6e 75 | 61 6c 20 70 61 67 65 2e |s a manu|al page.|
|00002b40| 20 20 49 74 20 66 6f 72 | 6d 61 74 73 20 74 68 65 | It for|mats the|
|00002b50| 20 70 61 67 65 20 64 65 | 70 65 6e 64 69 6e 67 20 | page de|pending |
|00002b60| 6f 6e 0a 58 20 2a 20 77 | 68 65 72 65 20 69 74 20 |on.X * w|here it |
|00002b70| 63 6f 6d 65 73 20 66 72 | 6f 6d 2c 20 61 6e 64 20 |comes fr|om, and |
|00002b80| 69 6e 76 6f 6b 65 73 20 | 74 68 65 20 73 79 73 74 |invokes |the syst|
|00002b90| 65 6d 20 70 61 67 65 72 | 20 64 65 70 65 6e 64 69 |em pager| dependi|
|00002ba0| 6e 67 20 6f 6e 0a 58 20 | 2a 20 77 68 65 74 68 65 |ng on.X |* whethe|
|00002bb0| 72 20 6f 75 74 70 75 74 | 20 69 73 20 74 6f 20 61 |r output| is to a|
|00002bc0| 20 74 74 79 20 6f 72 20 | 61 20 66 69 6c 65 2f 70 | tty or |a file/p|
|00002bd0| 69 70 65 0a 58 20 2a 2f | 0a 58 0a 58 70 72 69 6e |ipe.X */|.X.Xprin|
|00002be0| 74 70 61 67 65 28 70 61 | 67 65 6c 6f 63 2c 66 6f |tpage(pa|geloc,fo|
|00002bf0| 72 6d 29 0a 58 63 68 61 | 72 20 2a 70 61 67 65 6c |rm).Xcha|r *pagel|
|00002c00| 6f 63 3b 0a 58 69 6e 74 | 20 66 6f 72 6d 3b 0a 58 |oc;.Xint| form;.X|
|00002c10| 7b 0a 58 09 69 6e 74 09 | 63 6f 6d 70 72 65 73 73 |{.X.int.|compress|
|00002c20| 2c 20 65 6e 64 73 74 72 | 2c 20 74 74 79 70 61 67 |, endstr|, ttypag|
|00002c30| 65 3b 0a 58 09 63 68 61 | 72 09 63 6d 64 6c 69 6e |e;.X.cha|r.cmdlin|
|00002c40| 65 5b 35 31 32 5d 3b 0a | 58 0a 58 09 2f 2a 20 53 |e[512];.|X.X./* S|
|00002c50| 65 65 20 69 66 20 77 65 | 27 72 65 20 64 65 61 6c |ee if we|'re deal|
|00002c60| 69 6e 67 20 77 69 74 68 | 20 61 20 63 6f 6d 70 72 |ing with| a compr|
|00002c70| 65 73 73 65 64 20 66 69 | 6c 65 20 28 2e 5a 29 20 |essed fi|le (.Z) |
|00002c80| 2a 2f 0a 58 0a 58 09 65 | 6e 64 73 74 72 3d 73 74 |*/.X.X.e|ndstr=st|
|00002c90| 72 6c 65 6e 28 70 61 67 | 65 6c 6f 63 29 3b 0a 58 |rlen(pag|eloc);.X|
|00002ca0| 09 69 66 20 28 70 61 67 | 65 6c 6f 63 5b 65 6e 64 |.if (pag|eloc[end|
|00002cb0| 73 74 72 2d 32 5d 3d 3d | 27 2e 27 20 26 26 20 70 |str-2]==|'.' && p|
|00002cc0| 61 67 65 6c 6f 63 5b 65 | 6e 64 73 74 72 2d 31 5d |ageloc[e|ndstr-1]|
|00002cd0| 3d 3d 27 5a 27 29 0a 58 | 09 09 63 6f 6d 70 72 65 |=='Z').X|..compre|
|00002ce0| 73 73 3d 31 3b 0a 58 09 | 65 6c 73 65 0a 58 09 09 |ss=1;.X.|else.X..|
|00002cf0| 63 6f 6d 70 72 65 73 73 | 3d 30 3b 0a 58 0a 58 23 |compress|=0;.X.X#|
|00002d00| 69 66 6e 64 65 66 09 54 | 59 50 45 43 4f 4d 50 0a |ifndef.T|YPECOMP.|
|00002d10| 58 09 69 66 20 28 63 6f | 6d 70 72 65 73 73 29 20 |X.if (co|mpress) |
|00002d20| 7b 0a 58 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |{.X..fpr|intf(std|
|00002d30| 6f 75 74 2c 22 25 73 3a | 20 63 6f 6d 70 72 65 73 |out,"%s:| compres|
|00002d40| 73 65 64 20 66 69 6c 65 | 73 20 6e 6f 74 20 73 75 |sed file|s not su|
|00002d50| 70 70 6f 72 74 65 64 5c | 6e 22 2c 0a 58 09 09 09 |pported\|n",.X...|
|00002d60| 09 61 72 67 76 5b 30 5d | 29 3b 0a 58 09 09 65 78 |.argv[0]|);.X..ex|
|00002d70| 69 74 28 32 29 3b 0a 58 | 09 7d 0a 58 23 65 6e 64 |it(2);.X|.}.X#end|
|00002d80| 69 66 0a 58 0a 58 09 2f | 2a 20 49 66 20 77 65 27 |if.X.X./|* If we'|
|00002d90| 72 65 20 61 20 74 74 79 | 2c 20 70 61 67 65 20 74 |re a tty|, page t|
|00002da0| 68 69 73 20 75 73 69 6e | 67 20 77 68 61 74 65 76 |his usin|g whatev|
|00002db0| 65 72 20 6f 75 72 20 70 | 61 67 65 72 20 69 73 20 |er our p|ager is |
|00002dc0| 2a 2f 0a 58 0a 58 23 69 | 66 64 65 66 20 50 41 47 |*/.X.X#i|fdef PAG|
|00002dd0| 45 52 0a 58 09 69 66 20 | 28 69 73 61 74 74 79 28 |ER.X.if |(isatty(|
|00002de0| 31 29 29 0a 58 09 09 74 | 74 79 70 61 67 65 3d 31 |1)).X..t|typage=1|
|00002df0| 3b 0a 58 09 65 6c 73 65 | 0a 58 09 09 74 74 79 70 |;.X.else|.X..ttyp|
|00002e00| 61 67 65 3d 30 3b 0a 58 | 23 65 6c 73 65 0a 58 09 |age=0;.X|#else.X.|
|00002e10| 74 74 79 70 61 67 65 3d | 30 3b 0a 58 23 65 6e 64 |ttypage=|0;.X#end|
|00002e20| 69 66 0a 58 0a 58 09 2f | 2a 0a 58 09 20 2a 20 53 |if.X.X./|*.X. * S|
|00002e30| 65 74 75 70 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |etup com|mand lin|
|00002e40| 65 2e 20 20 54 68 69 73 | 20 69 73 20 73 6f 6d 65 |e. This| is some|
|00002e50| 20 72 65 61 6c 6c 79 20 | 73 69 63 6b 20 63 6f 64 | really |sick cod|
|00002e60| 65 2c 20 62 75 74 0a 58 | 09 20 2a 20 68 6f 77 20 |e, but.X|. * how |
|00002e70| 65 6c 73 65 20 61 72 65 | 20 77 65 20 74 6f 20 64 |else are| we to d|
|00002e80| 6f 20 69 74 3f 20 20 49 | 20 63 61 6e 20 74 68 69 |o it? I| can thi|
|00002e90| 6e 6b 20 6f 66 20 6f 6e | 6c 79 20 6f 6e 65 20 77 |nk of on|ly one w|
|00002ea0| 61 79 2c 20 62 75 74 0a | 58 09 20 2a 20 69 74 27 |ay, but.|X. * it'|
|00002eb0| 73 20 6b 69 6e 64 20 6f | 66 20 77 61 73 74 65 66 |s kind o|f wastef|
|00002ec0| 75 6c 20 6f 66 20 73 79 | 73 74 65 6d 20 72 65 73 |ul of sy|stem res|
|00002ed0| 6f 75 72 63 65 73 2e 2e | 2e 0a 58 09 20 2a 2f 0a |ources..|..X. */.|
|00002ee0| 58 0a 58 09 69 66 20 28 | 63 6f 6d 70 72 65 73 73 |X.X.if (|compress|
|00002ef0| 29 20 7b 0a 58 09 09 69 | 66 20 28 66 6f 72 6d 20 |) {.X..i|f (form |
|00002f00| 3d 3d 20 43 5f 4e 50 52 | 4f 43 29 0a 58 09 09 09 |== C_NPR|OC).X...|
|00002f10| 73 70 72 69 6e 74 66 28 | 63 6d 64 6c 69 6e 65 2c |sprintf(|cmdline,|
|00002f20| 20 22 25 73 20 25 73 20 | 7c 20 25 73 22 2c 20 54 | "%s %s || %s", T|
|00002f30| 59 50 45 43 4f 4d 50 2c | 20 70 61 67 65 6c 6f 63 |YPECOMP,| pageloc|
|00002f40| 2c 20 46 4f 52 4d 41 54 | 29 3b 0a 58 09 09 65 6c |, FORMAT|);.X..el|
|00002f50| 73 65 0a 58 09 09 09 73 | 70 72 69 6e 74 66 28 63 |se.X...s|printf(c|
|00002f60| 6d 64 6c 69 6e 65 2c 20 | 22 25 73 20 25 73 22 2c |mdline, |"%s %s",|
|00002f70| 20 54 59 50 45 43 4f 4d | 50 2c 20 70 61 67 65 6c | TYPECOM|P, pagel|
|00002f80| 6f 63 29 3b 0a 58 09 7d | 20 65 6c 73 65 20 7b 0a |oc);.X.}| else {.|
|00002f90| 58 09 09 69 66 20 28 66 | 6f 72 6d 20 3d 3d 20 43 |X..if (f|orm == C|
|00002fa0| 5f 4e 50 52 4f 43 29 0a | 58 09 09 09 73 70 72 69 |_NPROC).|X...spri|
|00002fb0| 6e 74 66 28 63 6d 64 6c | 69 6e 65 2c 20 22 25 73 |ntf(cmdl|ine, "%s|
|00002fc0| 20 25 73 22 2c 20 46 4f | 52 4d 41 54 2c 20 70 61 | %s", FO|RMAT, pa|
|00002fd0| 67 65 6c 6f 63 29 3b 0a | 58 09 09 65 6c 73 65 0a |geloc);.|X..else.|
|00002fe0| 58 09 09 09 73 70 72 69 | 6e 74 66 28 63 6d 64 6c |X...spri|ntf(cmdl|
|00002ff0| 69 6e 65 2c 20 22 2f 62 | 69 6e 2f 63 61 74 20 25 |ine, "/b|in/cat %|
|00003000| 73 22 2c 20 70 61 67 65 | 6c 6f 63 29 3b 0a 58 09 |s", page|loc);.X.|
|00003010| 7d 0a 58 0a 58 09 69 66 | 20 28 74 74 79 70 61 67 |}.X.X.if| (ttypag|
|00003020| 65 29 20 7b 0a 58 09 09 | 73 74 72 63 61 74 28 63 |e) {.X..|strcat(c|
|00003030| 6d 64 6c 69 6e 65 2c 22 | 20 7c 20 22 29 3b 0a 58 |mdline,"| | ");.X|
|00003040| 09 09 73 74 72 63 61 74 | 28 63 6d 64 6c 69 6e 65 |..strcat|(cmdline|
|00003050| 2c 50 41 47 45 52 29 3b | 0a 58 09 7d 0a 58 0a 58 |,PAGER);|.X.}.X.X|
|00003060| 09 2f 2a 20 49 6e 76 6f | 6b 65 20 63 6f 6d 6d 61 |./* Invo|ke comma|
|00003070| 6e 64 20 2a 2f 0a 58 0a | 58 09 73 79 73 74 65 6d |nd */.X.|X.system|
|00003080| 28 63 6d 64 6c 69 6e 65 | 29 3b 0a 58 7d 0a 45 4e |(cmdline|);.X}.EN|
|00003090| 44 5f 4f 46 5f 6d 61 6e | 2e 63 0a 69 66 20 74 65 |D_OF_man|.c.if te|
|000030a0| 73 74 20 37 35 37 38 20 | 2d 6e 65 20 60 77 63 20 |st 7578 |-ne `wc |
|000030b0| 2d 63 20 3c 6d 61 6e 2e | 63 60 3b 20 74 68 65 6e |-c <man.|c`; then|
|000030c0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000030d0| 5c 22 6d 61 6e 2e 63 5c | 22 20 75 6e 70 61 63 6b |\"man.c\|" unpack|
|000030e0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|000030f0| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00003100| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00003110| 6b 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |k.fi.ech|o shar: |
|00003120| 45 6e 64 20 6f 66 20 73 | 68 65 6c 6c 20 61 72 63 |End of s|hell arc|
|00003130| 68 69 76 65 2e 0a 65 78 | 69 74 20 30 0a 0a |hive..ex|it 0.. |
+--------+-------------------------+-------------------------+--------+--------+