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
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| 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)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 74 6f | 6d 40 73 73 64 2e 63 73 |From: to|m@ssd.cs|
|00000010| 64 2e 68 61 72 72 69 73 | 2e 63 6f 6d 20 28 54 6f |d.harris|.com (To|
|00000020| 6d 20 48 6f 72 73 6c 65 | 79 29 0a 4e 65 77 73 67 |m Horsle|y).Newsg|
|00000030| 72 6f 75 70 73 3a 20 61 | 6c 74 2e 73 6f 75 72 63 |roups: a|lt.sourc|
|00000040| 65 73 0a 53 75 62 6a 65 | 63 74 3a 20 6d 6b 69 64 |es.Subje|ct: mkid|
|00000050| 20 30 38 2f 31 31 20 28 | 69 64 65 6e 74 69 66 69 | 08/11 (|identifi|
|00000060| 65 72 20 63 72 6f 73 73 | 20 72 65 66 65 72 65 6e |er cross| referen|
|00000070| 63 65 20 74 6f 6f 6c 29 | 0a 4d 65 73 73 61 67 65 |ce tool)|.Message|
|00000080| 2d 49 44 3a 20 3c 54 4f | 4d 2e 39 30 44 65 63 31 |-ID: <TO|M.90Dec1|
|00000090| 32 30 39 34 36 32 30 40 | 68 63 78 32 2e 73 73 64 |2094620@|hcx2.ssd|
|000000a0| 2e 63 73 64 2e 68 61 72 | 72 69 73 2e 63 6f 6d 3e |.csd.har|ris.com>|
|000000b0| 0a 44 61 74 65 3a 20 31 | 32 20 44 65 63 20 39 30 |.Date: 1|2 Dec 90|
|000000c0| 20 31 34 3a 34 36 3a 32 | 30 20 47 4d 54 0a 0a 23 | 14:46:2|0 GMT..#|
|000000d0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000000e0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000000f0| 69 76 65 2e 20 20 52 65 | 6d 6f 76 65 20 61 6e 79 |ive. Re|move any|
|00000100| 74 68 69 6e 67 20 62 65 | 66 6f 72 65 20 74 68 69 |thing be|fore thi|
|00000110| 73 20 6c 69 6e 65 2c 20 | 74 68 65 6e 20 75 6e 70 |s line, |then unp|
|00000120| 61 63 6b 0a 23 20 69 74 | 20 62 79 20 73 61 76 69 |ack.# it| by savi|
|00000130| 6e 67 20 69 74 20 69 6e | 74 6f 20 61 20 66 69 6c |ng it in|to a fil|
|00000140| 65 20 61 6e 64 20 74 79 | 70 69 6e 67 20 22 73 68 |e and ty|ping "sh|
|00000150| 20 66 69 6c 65 22 2e 20 | 20 54 6f 20 6f 76 65 72 | file". | To over|
|00000160| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 0a 23 |write ex|isting.#|
|00000170| 20 66 69 6c 65 73 2c 20 | 74 79 70 65 20 22 73 68 | files, |type "sh|
|00000180| 20 66 69 6c 65 20 2d 63 | 22 2e 20 20 59 6f 75 20 | file -c|". You |
|00000190| 63 61 6e 20 61 6c 73 6f | 20 66 65 65 64 20 74 68 |can also| feed th|
|000001a0| 69 73 20 61 73 20 73 74 | 61 6e 64 61 72 64 20 69 |is as st|andard i|
|000001b0| 6e 70 75 74 20 76 69 61 | 0a 23 20 75 6e 73 68 61 |nput via|.# unsha|
|000001c0| 72 2c 20 6f 72 20 62 79 | 20 74 79 70 69 6e 67 20 |r, or by| typing |
|000001d0| 22 73 68 20 3c 66 69 6c | 65 22 2c 20 65 2e 67 2e |"sh <fil|e", e.g.|
|000001e0| 2e 20 20 49 66 20 74 68 | 69 73 20 61 72 63 68 69 |. If th|is archi|
|000001f0| 76 65 20 69 73 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ve is co|mplete, |
|00000200| 79 6f 75 0a 23 20 77 69 | 6c 6c 20 73 65 65 20 74 |you.# wi|ll see t|
|00000210| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 73 |he follo|wing mes|
|00000220| 73 61 67 65 20 61 74 20 | 74 68 65 20 65 6e 64 3a |sage at |the end:|
|00000230| 0a 23 09 09 22 45 6e 64 | 20 6f 66 20 61 72 63 68 |.#.."End| of arch|
|00000240| 69 76 65 20 38 20 28 6f | 66 20 31 31 29 2e 22 0a |ive 8 (o|f 11).".|
|00000250| 23 20 43 6f 6e 74 65 6e | 74 73 3a 20 20 54 55 54 |# Conten|ts: TUT|
|00000260| 4f 52 49 41 4c 0a 23 20 | 57 72 61 70 70 65 64 20 |ORIAL.# |Wrapped |
|00000270| 62 79 20 74 6f 6d 40 68 | 63 78 32 20 6f 6e 20 57 |by tom@h|cx2 on W|
|00000280| 65 64 20 44 65 63 20 31 | 32 20 30 37 3a 32 31 3a |ed Dec 1|2 07:21:|
|00000290| 35 37 20 31 39 39 30 0a | 50 41 54 48 3d 2f 62 69 |57 1990.|PATH=/bi|
|000002a0| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 2f 75 73 72 2f |n:/usr/b|in:/usr/|
|000002b0| 75 63 62 20 3b 20 65 78 | 70 6f 72 74 20 50 41 54 |ucb ; ex|port PAT|
|000002c0| 48 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 54 55 |H.if tes|t -f 'TU|
|000002d0| 54 4f 52 49 41 4c 27 20 | 2d 61 20 22 24 7b 31 7d |TORIAL' |-a "${1}|
|000002e0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|000002f0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000300| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000310| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000320| 27 54 55 54 4f 52 49 41 | 4c 27 5c 22 0a 65 6c 73 |'TUTORIA|L'\".els|
|00000330| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00000340| 72 61 63 74 69 6e 67 20 | 5c 22 27 54 55 54 4f 52 |racting |\"'TUTOR|
|00000350| 49 41 4c 27 5c 22 20 5c | 28 31 36 30 33 37 20 63 |IAL'\" \|(16037 c|
|00000360| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000370| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 54 55 54 4f 52 |"s/^X//"| >'TUTOR|
|00000380| 49 41 4c 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |IAL' <<'|END_OF_F|
|00000390| 49 4c 45 27 0a 58 0a 58 | 54 68 69 73 20 69 73 20 |ILE'.X.X|This is |
|000003a0| 61 20 70 72 6f 67 72 61 | 6d 20 69 64 65 6e 74 69 |a progra|m identi|
|000003b0| 66 69 65 72 20 64 61 74 | 61 62 61 73 65 20 70 61 |fier dat|abase pa|
|000003c0| 63 6b 61 67 65 2e 20 20 | 54 68 65 73 65 20 74 6f |ckage. |These to|
|000003d0| 6f 6c 73 20 70 72 6f 76 | 69 64 65 20 61 0a 58 6c |ols prov|ide a.Xl|
|000003e0| 6f 67 69 63 61 6c 20 65 | 78 74 65 6e 73 69 6f 6e |ogical e|xtension|
|000003f0| 20 74 6f 20 63 74 61 67 | 73 2e 20 28 77 68 69 63 | to ctag|s. (whic|
|00000400| 68 20 69 73 20 6c 69 6d | 69 74 65 64 20 69 6e 20 |h is lim|ited in |
|00000410| 74 68 61 74 20 69 74 20 | 6f 6e 6c 79 20 73 74 6f |that it |only sto|
|00000420| 72 65 73 20 74 68 65 0a | 58 6c 6f 63 61 74 69 6f |res the.|Xlocatio|
|00000430| 6e 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 20 61 6e |n of fun|ction an|
|00000440| 64 20 74 79 70 65 20 2a | 64 65 66 69 6e 69 74 69 |d type *|definiti|
|00000450| 6f 6e 73 2a 61 29 20 20 | 54 68 65 20 49 44 20 66 |ons*a) |The ID f|
|00000460| 61 63 69 6c 69 74 79 0a | 58 73 74 6f 72 65 73 20 |acility.|Xstores |
|00000470| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 73 20 66 6f |the loca|tions fo|
|00000480| 72 20 61 6c 6c 20 75 73 | 65 73 20 6f 66 20 69 64 |r all us|es of id|
|00000490| 65 6e 74 69 66 69 65 72 | 73 2c 20 70 72 65 2d 70 |entifier|s, pre-p|
|000004a0| 72 6f 63 65 73 73 6f 72 | 0a 58 6e 61 6d 65 73 2c |rocessor|.Xnames,|
|000004b0| 20 61 6e 64 20 6e 75 6d | 62 65 72 73 2e 20 28 69 | and num|bers. (i|
|000004c0| 6e 20 64 65 63 69 6d 61 | 6c 2c 20 6f 63 74 61 6c |n decima|l, octal|
|000004d0| 20 6f 72 20 68 65 78 29 | 0a 58 0a 58 57 68 65 6e | or hex)|.X.XWhen|
|000004e0| 20 66 69 78 69 6e 67 20 | 6f 72 20 65 6e 68 61 6e | fixing |or enhan|
|000004f0| 63 69 6e 67 20 61 20 6c | 61 72 67 65 20 70 72 6f |cing a l|arge pro|
|00000500| 67 72 61 6d 20 28 70 61 | 72 74 69 63 75 6c 61 72 |gram (pa|rticular|
|00000510| 6c 79 20 6f 6e 65 20 74 | 68 61 74 20 69 73 0a 58 |ly one t|hat is.X|
|00000520| 75 6e 66 61 6d 69 6c 69 | 61 72 29 20 69 74 20 69 |unfamili|ar) it i|
|00000530| 73 20 6f 66 74 65 6e 20 | 6e 65 63 65 73 73 61 72 |s often |necessar|
|00000540| 79 20 74 6f 20 61 75 64 | 69 74 20 74 68 65 20 75 |y to aud|it the u|
|00000550| 73 65 20 6f 66 20 67 6c | 6f 62 61 6c 0a 58 64 61 |se of gl|obal.Xda|
|00000560| 74 61 2d 73 74 72 75 63 | 74 75 72 65 73 20 69 6e |ta-struc|tures in|
|00000570| 20 6f 72 64 65 72 20 74 | 6f 20 76 65 72 69 66 79 | order t|o verify|
|00000580| 20 74 68 61 74 20 74 68 | 65 20 70 72 6f 70 6f 73 | that th|e propos|
|00000590| 65 64 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |ed modif|ication |
|000005a0| 77 69 6c 6c 0a 58 6e 6f | 74 20 74 72 69 67 67 65 |will.Xno|t trigge|
|000005b0| 72 20 61 6e 79 20 68 69 | 64 64 65 6e 20 60 67 6f |r any hi|dden `go|
|000005c0| 74 63 68 61 73 27 2e 20 | 20 4f 66 74 65 6e 20 74 |tchas'. | Often t|
|000005d0| 68 69 73 20 65 6e 74 61 | 69 6c 73 20 67 72 65 70 |his enta|ils grep|
|000005e0| 70 69 6e 67 20 74 68 72 | 6f 75 67 68 0a 58 6d 61 |ping thr|ough.Xma|
|000005f0| 6e 79 20 74 68 6f 75 73 | 61 6e 64 73 20 6f 66 20 |ny thous|ands of |
|00000600| 6c 69 6e 65 73 20 6f 66 | 20 73 6f 75 72 63 65 20 |lines of| source |
|00000610| 63 6f 64 65 20 73 70 72 | 65 61 64 20 6f 76 65 72 |code spr|ead over|
|00000620| 20 64 6f 7a 65 6e 73 20 | 61 6e 64 20 73 6f 6d 65 | dozens |and some|
|00000630| 74 69 6d 65 73 0a 58 68 | 75 6e 64 72 65 64 73 20 |times.Xh|undreds |
|00000640| 6f 66 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |of sourc|e files |
|00000650| 69 6e 20 6d 75 6c 74 69 | 70 6c 65 20 73 75 62 2d |in multi|ple sub-|
|00000660| 64 69 72 65 63 74 6f 72 | 69 65 73 2e 20 20 54 68 |director|ies. Th|
|00000670| 69 73 20 70 72 6f 63 65 | 73 73 0a 58 70 6c 61 63 |is proce|ss.Xplac|
|00000680| 65 73 20 61 20 73 69 67 | 6e 69 66 69 63 61 6e 74 |es a sig|nificant|
|00000690| 20 6c 6f 61 64 20 6f 6e | 20 63 6f 6d 70 75 74 69 | load on| computi|
|000006a0| 6e 67 20 72 65 73 6f 75 | 72 63 65 73 2c 20 61 6e |ng resou|rces, an|
|000006b0| 64 20 74 61 6b 65 73 20 | 61 20 6c 6f 6e 67 0a 58 |d takes |a long.X|
|000006c0| 74 69 6d 65 2e 20 20 54 | 68 65 72 65 20 69 73 20 |time. T|here is |
|000006d0| 65 76 65 6e 20 74 68 65 | 20 64 61 6e 67 65 72 20 |even the| danger |
|000006e0| 74 68 61 74 20 61 20 70 | 72 6f 67 72 61 6d 6d 65 |that a p|rogramme|
|000006f0| 72 20 77 69 6c 6c 20 61 | 76 6f 69 64 20 64 6f 69 |r will a|void doi|
|00000700| 6e 67 20 61 0a 58 63 6f | 6d 70 6c 65 74 65 20 61 |ng a.Xco|mplete a|
|00000710| 75 64 69 74 20 64 75 65 | 20 74 6f 20 74 68 65 20 |udit due| to the |
|00000720| 70 65 72 63 65 69 76 65 | 64 20 63 6f 73 74 2d 2d |perceive|d cost--|
|00000730| 68 65 20 6f 72 20 73 68 | 65 20 77 69 6c 6c 20 72 |he or sh|e will r|
|00000740| 65 6c 79 20 6f 6e 20 6d | 65 6d 6f 72 79 0a 58 61 |ely on m|emory.Xa|
|00000750| 6e 64 20 68 6f 70 65 20 | 74 68 61 74 20 74 68 65 |nd hope |that the|
|00000760| 72 65 20 61 72 65 20 6e | 6f 20 62 6f 6f 62 79 20 |re are n|o booby |
|00000770| 74 72 61 70 73 2e 0a 58 | 0a 58 54 68 65 20 69 64 |traps..X|.XThe id|
|00000780| 2d 64 61 74 61 62 61 73 | 65 20 69 73 20 6d 6f 73 |-databas|e is mos|
|00000790| 74 20 75 73 65 66 75 6c | 20 66 6f 72 20 6d 61 69 |t useful| for mai|
|000007a0| 6e 74 61 69 6e 69 6e 67 | 20 6c 61 72 67 65 20 70 |ntaining| large p|
|000007b0| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 0a 58 63 6f |rograms |that.Xco|
|000007c0| 6e 73 69 73 74 20 6f 66 | 20 6d 61 6e 79 20 73 6f |nsist of| many so|
|000007d0| 75 72 63 65 20 66 69 6c | 65 73 2e 20 20 54 68 65 |urce fil|es. The|
|000007e0| 20 64 61 74 61 62 61 73 | 65 20 69 73 20 73 69 6d | databas|e is sim|
|000007f0| 70 6c 79 20 61 20 74 77 | 6f 20 64 69 6d 65 6e 73 |ply a tw|o dimens|
|00000800| 69 6f 6e 61 6c 0a 58 62 | 6f 6f 6c 65 61 6e 20 61 |ional.Xb|oolean a|
|00000810| 72 72 61 79 20 69 6e 64 | 65 78 65 64 20 62 79 20 |rray ind|exed by |
|00000820| 69 64 65 6e 74 69 66 69 | 65 72 2d 6e 61 6d 65 20 |identifi|er-name |
|00000830| 61 6e 64 20 73 6f 75 72 | 63 65 2d 66 69 6c 65 2d |and sour|ce-file-|
|00000840| 6e 61 6d 65 2e 20 20 46 | 6f 72 20 61 0a 58 67 69 |name. F|or a.Xgi|
|00000850| 76 65 6e 20 69 64 65 6e | 74 69 66 69 65 72 20 61 |ven iden|tifier a|
|00000860| 6e 64 20 73 6f 75 72 63 | 65 2d 66 69 6c 65 2c 20 |nd sourc|e-file, |
|00000870| 69 66 20 74 68 65 20 69 | 64 65 6e 74 69 66 69 65 |if the i|dentifie|
|00000880| 72 20 6f 63 63 75 72 73 | 20 69 6e 20 74 68 65 20 |r occurs| in the |
|00000890| 66 69 6c 65 2c 0a 58 74 | 68 65 20 62 6f 6f 6c 65 |file,.Xt|he boole|
|000008a0| 61 6e 20 76 61 6c 75 65 | 20 69 73 20 54 52 55 45 |an value| is TRUE|
|000008b0| 2e 20 20 54 68 65 20 64 | 61 74 61 62 61 73 65 20 |. The d|atabase |
|000008c0| 6d 61 79 20 62 65 20 71 | 75 65 72 69 65 64 20 65 |may be q|ueried e|
|000008d0| 69 74 68 65 72 20 62 79 | 0a 58 69 64 65 6e 74 69 |ither by|.Xidenti|
|000008e0| 66 69 65 72 2d 6e 61 6d | 65 20 6f 72 20 66 69 6c |fier-nam|e or fil|
|000008f0| 65 2d 6e 61 6d 65 2e 0a | 58 0a 58 54 68 65 20 66 |e-name..|X.XThe f|
|00000900| 6f 6c 6c 6f 77 69 6e 67 | 20 74 79 70 65 73 20 6f |ollowing| types o|
|00000910| 66 20 71 75 65 72 69 65 | 73 20 73 75 70 70 6f 72 |f querie|s suppor|
|00000920| 74 65 64 3a 0a 58 0a 58 | 2a 20 6e 61 6d 65 20 6c |ted:.X.X|* name l|
|00000930| 6f 6f 6b 75 70 0a 58 09 | 6c 69 73 74 20 61 6c 6c |ookup.X.|list all|
|00000940| 20 74 68 65 20 66 69 6c | 65 73 20 77 68 65 72 65 | the fil|es where|
|00000950| 20 61 6e 20 69 64 65 6e | 74 69 66 69 65 72 20 6f | an iden|tifier o|
|00000960| 63 63 75 72 73 2e 20 20 | 54 68 65 20 6e 61 6d 65 |ccurs. |The name|
|00000970| 0a 58 09 6d 61 79 20 62 | 65 20 61 20 72 65 67 75 |.X.may b|e a regu|
|00000980| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 2e 0a |lar expr|ession..|
|00000990| 58 0a 58 2a 20 6e 61 6d | 65 20 61 70 72 6f 70 6f |X.X* nam|e apropo|
|000009a0| 73 0a 58 09 6c 69 73 74 | 20 61 6c 6c 20 74 68 65 |s.X.list| all the|
|000009b0| 20 66 69 6c 65 73 20 66 | 6f 72 20 61 6c 6c 20 69 | files f|or all i|
|000009c0| 64 65 6e 74 69 66 69 65 | 72 73 20 74 68 61 74 20 |dentifie|rs that |
|000009d0| 68 61 76 65 20 74 68 65 | 20 73 75 62 2d 73 74 72 |have the| sub-str|
|000009e0| 69 6e 67 0a 58 09 6e 61 | 6d 65 20 69 6e 20 74 68 |ing.X.na|me in th|
|000009f0| 65 6d 2e 20 20 4d 61 74 | 63 68 65 73 20 61 72 65 |em. Mat|ches are|
|00000a00| 20 64 6f 6e 65 20 69 6e | 20 61 20 63 61 73 65 2d | done in| a case-|
|00000a10| 69 6e 73 65 6e 73 69 74 | 69 76 65 20 6d 61 6d 6d |insensit|ive mamm|
|00000a20| 65 72 2e 0a 58 0a 58 2a | 20 6e 61 6d 65 20 60 67 |er..X.X*| name `g|
|00000a30| 72 65 70 27 0a 58 09 73 | 65 61 72 63 68 20 66 6f |rep'.X.s|earch fo|
|00000a40| 72 20 61 6e 20 69 64 65 | 6e 74 69 66 69 65 72 20 |r an ide|ntifier |
|00000a50| 69 6e 20 61 6c 6c 20 74 | 68 65 20 66 69 6c 65 73 |in all t|he files|
|00000a60| 20 77 68 65 72 65 20 69 | 74 20 6f 63 63 75 72 73 | where i|t occurs|
|00000a70| 2e 0a 58 09 54 68 69 73 | 20 69 73 20 61 6e 20 6f |..X.This| is an o|
|00000a80| 70 74 69 6d 69 7a 65 64 | 20 60 67 72 65 70 27 20 |ptimized| `grep' |
|00000a90| 6f 76 65 72 20 61 6c 6c | 20 74 68 65 20 73 6f 75 |over all| the sou|
|00000aa0| 72 63 65 73 2d 2d 77 65 | 20 6f 6e 6c 79 0a 58 09 |rces--we| only.X.|
|00000ab0| 73 65 61 72 63 68 20 6f | 6e 20 66 69 6c 65 73 20 |search o|n files |
|00000ac0| 74 68 61 74 20 63 6f 6e | 74 61 69 6e 20 74 68 65 |that con|tain the|
|00000ad0| 20 69 64 65 6e 74 69 66 | 69 65 72 2e 0a 58 0a 58 | identif|ier..X.X|
|00000ae0| 2a 20 6e 61 6d 65 20 65 | 64 69 74 0a 58 09 69 6e |* name e|dit.X.in|
|00000af0| 76 6f 6b 65 20 61 6e 20 | 65 64 69 74 6f 72 20 6f |voke an |editor o|
|00000b00| 6e 20 74 68 65 20 66 69 | 6c 65 73 20 77 68 65 72 |n the fi|les wher|
|00000b10| 65 20 61 6e 20 69 64 65 | 6e 74 69 66 69 65 72 20 |e an ide|ntifier |
|00000b20| 6f 63 63 75 72 73 2c 0a | 58 09 61 6e 64 20 75 73 |occurs,.|X.and us|
|00000b30| 65 20 74 68 65 20 69 64 | 65 6e 74 69 66 69 65 72 |e the id|entifier|
|00000b40| 20 61 73 20 61 6e 20 69 | 6e 69 74 69 61 6c 20 73 | as an i|nitial s|
|00000b50| 65 61 72 63 68 20 73 74 | 72 69 6e 67 2e 0a 58 0a |earch st|ring..X.|
|00000b60| 58 2a 20 66 69 6c 65 20 | 6c 6f 6f 6b 75 70 0a 58 |X* file |lookup.X|
|00000b70| 09 6c 69 73 74 20 61 6c | 6c 20 69 64 65 6e 74 69 |.list al|l identi|
|00000b80| 66 69 65 72 73 20 74 68 | 61 74 20 6f 63 63 75 72 |fiers th|at occur|
|00000b90| 20 69 6e 20 61 20 66 69 | 6c 65 2c 20 6f 72 20 6c | in a fi|le, or l|
|00000ba0| 69 73 74 0a 58 09 74 68 | 65 20 69 64 65 6e 74 69 |ist.X.th|e identi|
|00000bb0| 66 69 65 72 73 20 74 68 | 61 74 20 61 72 65 20 63 |fiers th|at are c|
|00000bc0| 6f 6d 6d 6f 6e 20 62 65 | 74 77 65 65 6e 20 74 77 |ommon be|tween tw|
|00000bd0| 6f 20 66 69 6c 65 73 2e | 0a 58 0a 58 2a 20 6e 6f |o files.|.X.X* no|
|00000be0| 6e 2d 75 6e 69 71 75 65 | 20 6e 61 6d 65 73 0a 58 |n-unique| names.X|
|00000bf0| 09 6c 69 73 74 20 74 68 | 65 20 6e 61 6d 65 73 20 |.list th|e names |
|00000c00| 6f 66 20 61 6c 6c 20 69 | 6e 64 65 6e 74 69 66 69 |of all i|ndentifi|
|00000c10| 65 72 73 20 77 68 6f 73 | 65 20 6e 61 6d 65 73 20 |ers whos|e names |
|00000c20| 61 72 65 20 6e 6f 6e 2d | 75 6e 69 71 75 65 0a 58 |are non-|unique.X|
|00000c30| 09 77 69 74 68 69 6e 20 | 73 6f 6d 65 20 6e 75 6d |.within |some num|
|00000c40| 62 65 72 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ber of c|haracter|
|00000c50| 73 2e 20 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |s. This| is usef|
|00000c60| 75 6c 20 77 68 65 6e 20 | 70 6f 72 74 69 6e 67 0a |ul when |porting.|
|00000c70| 58 09 61 20 70 72 6f 67 | 72 61 6d 20 66 72 6f 6d |X.a prog|ram from|
|00000c80| 20 61 20 60 66 6c 65 78 | 6e 61 6d 65 73 27 20 73 | a `flex|names' s|
|00000c90| 79 73 74 65 6d 20 74 6f | 20 6f 6e 65 20 6d 6f 72 |ystem to| one mor|
|00000ca0| 65 20 6c 69 6d 69 74 65 | 64 20 6e 61 6d 65 73 2e |e limite|d names.|
|00000cb0| 0a 58 0a 58 2a 20 73 6f | 6c 6f 0a 58 09 6c 69 73 |.X.X* so|lo.X.lis|
|00000cc0| 74 20 61 6c 6c 20 69 64 | 65 6e 74 69 66 69 65 72 |t all id|entifier|
|00000cd0| 73 20 74 68 61 74 20 6f | 63 63 75 72 20 65 78 61 |s that o|ccur exa|
|00000ce0| 63 74 6c 79 20 6f 6e 63 | 65 20 69 6e 20 61 20 73 |ctly onc|e in a s|
|00000cf0| 6f 66 74 77 61 72 65 0a | 58 09 73 79 73 74 65 6d |oftware.|X.system|
|00000d00| 2e 20 20 54 68 69 73 20 | 6d 61 79 20 62 65 20 75 |. This |may be u|
|00000d10| 73 65 66 75 6c 20 66 6f | 72 20 6c 6f 63 61 74 69 |seful fo|r locati|
|00000d20| 6e 67 20 69 64 65 6e 74 | 69 66 69 65 72 73 20 74 |ng ident|ifiers t|
|00000d30| 68 61 74 20 61 72 65 0a | 58 09 64 65 63 6c 61 72 |hat are.|X.declar|
|00000d40| 65 64 20 62 75 74 20 6e | 65 76 65 72 20 75 73 65 |ed but n|ever use|
|00000d50| 64 2c 20 6f 72 20 6c 69 | 62 72 61 72 79 20 66 75 |d, or li|brary fu|
|00000d60| 6e 63 74 69 6f 6e 73 20 | 74 68 61 74 20 61 72 65 |nctions |that are|
|00000d70| 20 75 73 65 64 0a 58 09 | 62 75 74 20 6e 65 76 65 | used.X.|but neve|
|00000d80| 72 20 64 65 63 6c 61 72 | 65 64 2e 0a 58 09 0a 58 |r declar|ed..X..X|
|00000d90| 0a 58 54 68 65 20 66 69 | 72 73 74 20 66 6f 75 72 |.XThe fi|rst four|
|00000da0| 20 71 75 65 72 69 65 73 | 20 61 72 65 20 68 61 6e | queries| are han|
|00000db0| 64 6c 65 64 20 62 79 20 | 6f 6e 65 20 70 72 6f 67 |dled by |one prog|
|00000dc0| 72 61 6d 2e 20 20 54 68 | 65 20 74 79 70 65 20 6f |ram. Th|e type o|
|00000dd0| 66 20 71 75 65 72 79 0a | 58 69 73 20 64 65 74 65 |f query.|Xis dete|
|00000de0| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 20 6e 61 |rmined b|y the na|
|00000df0| 6d 65 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |me the p|rogram w|
|00000e00| 61 73 20 69 6e 76 6f 6b | 65 64 20 77 69 74 68 2e |as invok|ed with.|
|00000e10| 20 20 54 68 65 20 66 6f | 75 72 20 6c 69 6e 6b 73 | The fo|ur links|
|00000e20| 0a 58 61 72 65 20 6c 69 | 64 28 31 29 20 66 6f 72 |.Xare li|d(1) for|
|00000e30| 20 60 6c 6f 6f 6b 75 70 | 20 69 64 27 2c 20 61 69 | `lookup| id', ai|
|00000e40| 64 28 31 29 20 66 6f 72 | 20 60 61 70 72 6f 70 6f |d(1) for| `apropo|
|00000e50| 73 20 69 64 27 2c 20 67 | 69 64 28 31 29 20 66 6f |s id', g|id(1) fo|
|00000e60| 72 20 60 67 72 65 70 0a | 58 69 64 27 20 61 6e 64 |r `grep.|Xid' and|
|00000e70| 20 65 69 64 28 31 29 20 | 66 6f 72 20 60 65 64 69 | eid(1) |for `edi|
|00000e80| 74 20 69 64 27 2e 20 20 | 4f 6e 65 20 6f 72 20 6d |t id'. |One or m|
|00000e90| 6f 72 65 20 69 64 65 6e | 74 69 66 69 65 72 73 20 |ore iden|tifiers |
|00000ea0| 6d 61 79 20 62 65 20 70 | 61 73 73 65 64 20 6f 6e |may be p|assed on|
|00000eb0| 0a 58 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |.Xthe co|mmand li|
|00000ec0| 6e 65 2e 20 20 54 68 65 | 20 69 64 65 6e 74 69 66 |ne. The| identif|
|00000ed0| 69 65 72 73 20 6d 61 79 | 20 62 65 20 6c 69 74 65 |iers may| be lite|
|00000ee0| 72 61 6c 20 73 74 72 69 | 6e 67 73 20 6f 72 20 72 |ral stri|ngs or r|
|00000ef0| 65 67 75 6c 61 72 0a 58 | 65 78 70 72 65 73 73 69 |egular.X|expressi|
|00000f00| 6f 6e 73 2e 20 20 48 65 | 72 65 20 61 72 65 20 73 |ons. He|re are s|
|00000f10| 6f 6d 65 20 65 78 61 6d | 70 6c 65 73 3a 0a 58 0a |ome exam|ples:.X.|
|00000f20| 58 24 20 6c 69 64 20 46 | 49 4c 45 0a 58 46 49 4c |X$ lid F|ILE.XFIL|
|00000f30| 45 20 20 20 20 20 20 20 | 20 20 20 20 65 78 74 65 |E | exte|
|00000f40| 72 6e 2e 68 20 7b 66 69 | 64 2c 67 65 74 73 30 2c |rn.h {fi|d,gets0,|
|00000f50| 67 65 74 73 46 46 2c 69 | 64 78 2c 69 6e 69 74 2c |getsFF,i|dx,init,|
|00000f60| 6c 69 64 2c 6d 6b 69 64 | 2c 6f 70 65 6e 73 72 63 |lid,mkid|,opensrc|
|00000f70| 2c 73 63 61 6e 2d 61 73 | 6d 2c 73 63 61 6e 2d 63 |,scan-as|m,scan-c|
|00000f80| 7d 2e 63 0a 58 0a 58 24 | 20 6c 69 64 20 46 49 4c |}.c.X.X$| lid FIL|
|00000f90| 45 24 0a 58 41 46 5f 46 | 49 4c 45 20 20 20 20 20 |E$.XAF_F|ILE |
|00000fa0| 20 20 20 6d 6b 69 64 2e | 63 0a 58 41 46 5f 49 44 | mkid.|c.XAF_ID|
|00000fb0| 46 49 4c 45 20 20 20 20 | 20 20 6d 6b 69 64 2e 63 |FILE | mkid.c|
|00000fc0| 0a 58 46 49 4c 45 20 20 | 20 20 20 20 20 20 20 20 |.XFILE | |
|00000fd0| 20 65 78 74 65 72 6e 2e | 68 20 7b 66 69 64 2c 67 | extern.|h {fid,g|
|00000fe0| 65 74 73 30 2c 67 65 74 | 73 46 46 2c 69 64 78 2c |ets0,get|sFF,idx,|
|00000ff0| 69 6e 69 74 2c 6c 69 64 | 2c 6d 6b 69 64 2c 6f 70 |init,lid|,mkid,op|
|00001000| 65 6e 73 72 63 2c 73 63 | 61 6e 2d 61 73 6d 2c 73 |ensrc,sc|an-asm,s|
|00001010| 63 61 6e 2d 63 7d 2e 63 | 0a 58 49 44 46 49 4c 45 |can-c}.c|.XIDFILE|
|00001020| 20 20 20 20 20 20 20 20 | 20 69 64 2e 68 20 7b 66 | | id.h {f|
|00001030| 69 64 2c 6c 69 64 2c 6d | 6b 69 64 7d 2e 63 0a 58 |id,lid,m|kid}.c.X|
|00001040| 49 64 46 49 4c 45 20 20 | 20 20 20 20 20 20 20 7b |IdFILE | {|
|00001050| 66 69 64 2c 6c 69 64 7d | 2e 63 0a 58 61 72 67 46 |fid,lid}|.c.XargF|
|00001060| 49 4c 45 20 20 20 20 20 | 20 20 20 6d 6b 69 64 2e |ILE | mkid.|
|00001070| 63 0a 58 67 69 64 46 49 | 4c 45 20 20 20 20 20 20 |c.XgidFI|LE |
|00001080| 20 20 6c 69 64 2e 63 0a | 58 69 64 46 49 4c 45 20 | lid.c.|XidFILE |
|00001090| 20 20 20 20 20 20 20 20 | 7b 69 6e 69 74 2c 6d 6b | |{init,mk|
|000010a0| 69 64 7d 2e 63 0a 58 69 | 6e 46 49 4c 45 20 20 20 |id}.c.Xi|nFILE |
|000010b0| 20 20 20 20 20 20 7b 67 | 65 74 73 30 2c 67 65 74 | {g|ets0,get|
|000010c0| 73 46 46 2c 73 63 61 6e | 2d 61 73 6d 2c 73 63 61 |sFF,scan|-asm,sca|
|000010d0| 6e 2d 63 7d 2e 63 0a 58 | 6f 70 65 6e 53 72 63 46 |n-c}.c.X|openSrcF|
|000010e0| 49 4c 45 20 20 20 20 65 | 78 74 65 72 6e 2e 68 20 |ILE e|xtern.h |
|000010f0| 7b 69 64 78 2c 6d 6b 69 | 64 2c 6f 70 65 6e 73 72 |{idx,mki|d,opensr|
|00001100| 63 7d 2e 63 0a 58 73 72 | 63 46 49 4c 45 20 20 20 |c}.c.Xsr|cFILE |
|00001110| 20 20 20 20 20 7b 69 64 | 78 2c 6d 6b 69 64 2c 6f | {id|x,mkid,o|
|00001120| 70 65 6e 73 72 63 7d 2e | 63 0a 58 0a 58 24 20 6c |pensrc}.|c.X.X$ l|
|00001130| 69 64 20 5e 67 65 74 0a | 58 67 65 74 20 20 20 20 |id ^get.|Xget |
|00001140| 20 20 20 20 20 20 20 20 | 6f 70 65 6e 73 72 63 2e | |opensrc.|
|00001150| 63 0a 58 67 65 74 41 64 | 61 49 64 20 20 20 20 20 |c.XgetAd|aId |
|00001160| 20 20 67 65 74 73 63 61 | 6e 2e 63 0a 58 67 65 74 | getsca|n.c.Xget|
|00001170| 41 73 6d 49 64 20 20 20 | 20 20 20 20 65 78 74 65 |AsmId | exte|
|00001180| 72 6e 2e 68 20 7b 67 65 | 74 73 63 61 6e 2c 73 63 |rn.h {ge|tscan,sc|
|00001190| 61 6e 2d 61 73 6d 7d 2e | 63 0a 58 67 65 74 43 49 |an-asm}.|c.XgetCI|
|000011a0| 64 20 20 20 20 20 20 20 | 20 20 65 78 74 65 72 6e |d | extern|
|000011b0| 2e 68 20 7b 67 65 74 73 | 63 61 6e 2c 73 63 61 6e |.h {gets|can,scan|
|000011c0| 2d 63 7d 2e 63 0a 58 67 | 65 74 44 69 72 54 6f 4e |-c}.c.Xg|etDirToN|
|000011d0| 61 6d 65 20 20 20 65 78 | 74 65 72 6e 2e 68 20 7b |ame ex|tern.h {|
|000011e0| 66 69 64 2c 6c 69 64 2c | 70 61 74 68 73 7d 2e 63 |fid,lid,|paths}.c|
|000011f0| 0a 58 67 65 74 49 64 20 | 20 20 20 20 20 20 20 20 |.XgetId | |
|00001200| 20 7b 69 64 78 2c 6d 6b | 69 64 7d 2e 63 0a 58 67 | {idx,mk|id}.c.Xg|
|00001210| 65 74 4c 61 6e 67 75 61 | 67 65 20 20 20 20 65 78 |etLangua|ge ex|
|00001220| 74 65 72 6e 2e 68 20 7b | 67 65 74 73 63 61 6e 2c |tern.h {|getscan,|
|00001230| 69 64 78 2c 6d 6b 69 64 | 7d 2e 63 0a 58 67 65 74 |idx,mkid|}.c.Xget|
|00001240| 4c 69 73 70 49 64 20 20 | 20 20 20 20 67 65 74 73 |LispId | gets|
|00001250| 63 61 6e 2e 63 0a 58 67 | 65 74 50 61 73 63 61 6c |can.c.Xg|etPascal|
|00001260| 49 64 20 20 20 20 67 65 | 74 73 63 61 6e 2e 63 0a |Id ge|tscan.c.|
|00001270| 58 67 65 74 52 6f 66 66 | 49 64 20 20 20 20 20 20 |XgetRoff|Id |
|00001280| 67 65 74 73 63 61 6e 2e | 63 0a 58 67 65 74 53 43 |getscan.|c.XgetSC|
|00001290| 43 53 20 20 20 20 20 20 | 20 20 65 78 74 65 72 6e |CS | extern|
|000012a0| 2e 68 20 6f 70 65 6e 73 | 72 63 2e 63 0a 58 67 65 |.h opens|rc.c.Xge|
|000012b0| 74 53 63 61 6e 6e 65 72 | 20 20 20 20 20 65 78 74 |tScanner| ext|
|000012c0| 65 72 6e 2e 68 20 7b 67 | 65 74 73 63 61 6e 2c 69 |ern.h {g|etscan,i|
|000012d0| 64 78 2c 6d 6b 69 64 7d | 2e 63 0a 58 67 65 74 54 |dx,mkid}|.c.XgetT|
|000012e0| 65 58 49 64 20 20 20 20 | 20 20 20 67 65 74 73 63 |eXId | getsc|
|000012f0| 61 6e 2e 63 0a 58 67 65 | 74 54 65 78 74 49 64 20 |an.c.Xge|tTextId |
|00001300| 20 20 20 20 20 67 65 74 | 73 63 61 6e 2e 63 0a 58 | get|scan.c.X|
|00001310| 67 65 74 63 20 20 20 20 | 20 20 20 20 20 20 20 7b |getc | {|
|00001320| 67 65 74 73 30 2c 67 65 | 74 73 46 46 2c 6c 69 64 |gets0,ge|tsFF,lid|
|00001330| 2c 73 63 61 6e 2d 61 73 | 6d 2c 73 63 61 6e 2d 63 |,scan-as|m,scan-c|
|00001340| 7d 2e 63 0a 58 67 65 74 | 63 68 61 72 20 20 20 20 |}.c.Xget|char |
|00001350| 20 20 20 20 6c 69 64 2e | 63 0a 58 67 65 74 65 6e | lid.|c.Xgeten|
|00001360| 76 20 20 20 20 20 20 20 | 20 20 65 78 74 65 72 6e |v | extern|
|00001370| 2e 68 20 6c 69 64 2e 63 | 0a 58 67 65 74 73 20 20 |.h lid.c|.Xgets |
|00001380| 20 20 20 20 20 20 20 20 | 20 6c 69 64 2e 63 0a 58 | | lid.c.X|
|00001390| 67 65 74 73 46 46 20 20 | 20 20 20 20 20 20 20 65 |getsFF | e|
|000013a0| 78 74 65 72 6e 2e 68 20 | 7b 62 69 74 73 76 65 63 |xtern.h |{bitsvec|
|000013b0| 2c 66 69 64 2c 67 65 74 | 73 46 46 2c 6c 69 64 2c |,fid,get|sFF,lid,|
|000013c0| 6d 6b 69 64 7d 2e 63 0a | 58 0a 58 41 73 20 79 6f |mkid}.c.|X.XAs yo|
|000013d0| 75 20 63 61 6e 20 73 65 | 65 2c 20 77 68 65 6e 20 |u can se|e, when |
|000013e0| 61 20 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |a regula|r expres|
|000013f0| 73 69 6f 6e 20 69 73 20 | 75 73 65 64 2c 20 69 74 |sion is |used, it|
|00001400| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 0a | is poss|ible to.|
|00001410| 58 67 65 74 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f |Xget mor|e than o|
|00001420| 6e 65 20 6c 69 6e 65 20 | 6f 66 20 6f 75 74 70 75 |ne line |of outpu|
|00001430| 74 2e 20 20 49 66 20 79 | 6f 75 20 77 69 73 68 20 |t. If y|ou wish |
|00001440| 6d 75 6c 74 69 70 6c 65 | 20 6c 69 6e 65 73 20 74 |multiple| lines t|
|00001450| 6f 20 62 65 0a 58 6d 65 | 72 67 65 64 20 69 6e 74 |o be.Xme|rged int|
|00001460| 6f 20 6f 6e 65 2c 20 73 | 75 70 70 6c 79 20 74 68 |o one, s|upply th|
|00001470| 65 20 60 2d 6d 27 20 6f | 70 74 69 6f 6e 3a 0a 58 |e `-m' o|ption:.X|
|00001480| 0a 58 24 20 6c 69 64 20 | 2d 6d 20 5e 67 65 74 0a |.X$ lid |-m ^get.|
|00001490| 58 5e 67 65 74 20 20 20 | 20 20 20 20 20 20 20 20 |X^get | |
|000014a0| 65 78 74 65 72 6e 2e 68 | 20 7b 62 69 74 73 76 65 |extern.h| {bitsve|
|000014b0| 63 2c 66 69 64 2c 67 65 | 74 73 30 2c 67 65 74 73 |c,fid,ge|ts0,gets|
|000014c0| 46 46 2c 67 65 74 73 63 | 61 6e 2c 69 64 78 2c 6c |FF,getsc|an,idx,l|
|000014d0| 69 64 2c 6d 6b 69 64 2c | 6f 70 65 6e 73 72 63 2c |id,mkid,|opensrc,|
|000014e0| 70 61 74 68 73 2c 73 63 | 61 6e 2d 61 73 6d 2c 73 |paths,sc|an-asm,s|
|000014f0| 63 61 6e 2d 63 7d 2e 63 | 0a 58 0a 58 54 68 65 20 |can-c}.c|.X.XThe |
|00001500| 71 75 65 72 79 20 70 72 | 6f 67 72 61 6d 20 73 65 |query pr|ogram se|
|00001510| 61 72 63 68 65 73 20 66 | 6f 72 20 6e 75 6d 62 65 |arches f|or numbe|
|00001520| 72 73 20 6e 75 6d 65 72 | 69 63 61 6c 6c 79 20 72 |rs numer|ically r|
|00001530| 61 74 68 65 72 20 74 68 | 61 6e 0a 58 74 65 78 74 |ather th|an.Xtext|
|00001540| 75 61 6c 6c 79 2e 20 20 | 54 68 65 72 65 66 6f 72 |ually. |Therefor|
|00001550| 65 20 79 6f 75 20 6d 61 | 79 20 73 65 61 72 63 68 |e you ma|y search|
|00001560| 20 66 6f 72 20 6d 75 6c | 74 69 70 6c 65 20 72 65 | for mul|tiple re|
|00001570| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 73 20 6f 66 |presenta|tions of|
|00001580| 20 61 0a 58 6e 75 6d 62 | 65 72 2e 20 20 49 74 20 | a.Xnumb|er. It |
|00001590| 69 73 20 62 65 73 74 20 | 74 6f 20 69 6c 6c 75 73 |is best |to illus|
|000015a0| 74 72 61 74 65 20 74 68 | 69 73 20 77 69 74 68 20 |trate th|is with |
|000015b0| 65 78 61 6d 70 6c 65 73 | 3a 0a 58 0a 58 24 20 6c |examples|:.X.X$ l|
|000015c0| 69 64 20 2d 61 20 30 78 | 31 30 0a 58 30 32 30 20 |id -a 0x|10.X020 |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 6e 75 6d 74 73 | | numts|
|000015e0| 74 2e 63 0a 58 30 78 30 | 30 30 31 30 20 20 20 20 |t.c.X0x0|0010 |
|000015f0| 20 20 20 20 6e 75 6d 74 | 73 74 2e 63 0a 58 30 78 | numt|st.c.X0x|
|00001600| 30 30 31 30 20 20 20 20 | 20 20 20 20 20 73 63 61 |0010 | sca|
|00001610| 6e 2d 63 2e 63 0a 58 30 | 78 31 30 20 20 20 20 20 |n-c.c.X0|x10 |
|00001620| 20 20 20 20 20 20 7b 69 | 64 2c 72 61 64 69 78 7d | {i|d,radix}|
|00001630| 2e 68 20 7b 73 63 61 6e | 2d 61 73 6d 2c 73 74 6f |.h {scan|-asm,sto|
|00001640| 69 7d 2e 63 0a 58 31 36 | 20 20 20 20 20 20 20 20 |i}.c.X16| |
|00001650| 20 20 20 20 20 6e 75 6d | 74 73 74 2e 63 0a 58 0a | num|tst.c.X.|
|00001660| 58 54 68 65 20 60 2d 61 | 27 20 61 72 67 75 6d 65 |XThe `-a|' argume|
|00001670| 6e 74 20 74 65 6c 6c 73 | 20 6c 69 64 28 31 29 20 |nt tells| lid(1) |
|00001680| 74 6f 20 6c 6f 6f 6b 20 | 66 6f 72 20 30 78 31 30 |to look |for 0x10|
|00001690| 20 69 6e 20 61 6c 6c 20 | 72 61 64 69 78 65 73 2e | in all |radixes.|
|000016a0| 20 20 28 46 6f 72 0a 58 | 6e 75 6d 62 65 72 73 20 | (For.X|numbers |
|000016b0| 30 20 74 68 72 6f 75 67 | 68 20 37 2c 20 6c 69 64 |0 throug|h 7, lid|
|000016c0| 28 31 29 20 6c 6f 6f 6b | 73 20 66 6f 72 20 61 6c |(1) look|s for al|
|000016d0| 6c 20 72 61 64 69 78 65 | 73 20 62 79 20 64 65 66 |l radixe|s by def|
|000016e0| 61 75 6c 74 2e 20 20 46 | 6f 72 20 6e 75 6d 62 65 |ault. F|or numbe|
|000016f0| 72 73 0a 58 67 72 65 61 | 74 65 72 20 74 68 61 6e |rs.Xgrea|ter than|
|00001700| 20 37 2c 20 6c 69 64 28 | 31 29 20 6f 6e 6c 79 20 | 7, lid(|1) only |
|00001710| 6c 6f 6f 6b 73 20 66 6f | 72 20 74 68 65 20 72 61 |looks fo|r the ra|
|00001720| 64 69 78 20 74 68 61 74 | 20 74 68 65 20 61 72 67 |dix that| the arg|
|00001730| 75 6d 65 6e 74 20 69 73 | 0a 58 73 75 70 70 6c 69 |ument is|.Xsuppli|
|00001740| 65 64 20 69 6e 2e 29 20 | 49 74 20 69 73 20 61 6c |ed in.) |It is al|
|00001750| 73 6f 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 72 |so possi|ble to r|
|00001760| 65 73 74 72 69 63 74 20 | 74 68 65 20 73 65 61 72 |estrict |the sear|
|00001770| 63 68 20 74 6f 20 73 65 | 6c 65 63 74 65 64 0a 58 |ch to se|lected.X|
|00001780| 72 61 64 69 78 65 73 20 | 62 79 20 73 75 70 70 6c |radixes |by suppl|
|00001790| 79 69 6e 67 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |ying an |argument|
|000017a0| 20 63 6f 6e 73 69 73 74 | 69 6e 67 20 6f 66 20 6f | consist|ing of o|
|000017b0| 6e 65 20 6f 72 20 6d 6f | 72 65 20 6f 66 20 74 68 |ne or mo|re of th|
|000017c0| 65 0a 58 6b 65 79 2d 6c | 65 74 74 65 72 73 20 60 |e.Xkey-l|etters `|
|000017d0| 6f 27 2c 20 60 64 27 2c | 20 61 6e 64 20 60 78 27 |o', `d',| and `x'|
|000017e0| 20 66 6f 72 20 6f 63 74 | 61 6c 20 64 65 63 69 6d | for oct|al decim|
|000017f0| 61 6c 20 61 6e 64 20 68 | 65 78 61 64 65 63 69 6d |al and h|exadecim|
|00001800| 61 6c 0a 58 72 65 73 70 | 65 63 74 69 76 65 6c 79 |al.Xresp|ectively|
|00001810| 3a 0a 58 0a 58 24 20 6c | 69 64 20 2d 6f 20 30 78 |:.X.X$ l|id -o 0x|
|00001820| 31 30 0a 58 30 32 30 20 | 20 20 20 20 20 20 20 20 |10.X020 | |
|00001830| 20 20 20 6e 75 6d 74 73 | 74 2e 63 0a 58 0a 58 24 | numts|t.c.X.X$|
|00001840| 20 6c 69 64 20 2d 78 20 | 31 36 0a 58 30 78 30 30 | lid -x |16.X0x00|
|00001850| 30 31 30 20 20 20 20 20 | 20 20 20 6e 75 6d 74 73 |010 | numts|
|00001860| 74 2e 63 0a 58 30 78 30 | 30 31 30 20 20 20 20 20 |t.c.X0x0|010 |
|00001870| 20 20 20 20 73 63 61 6e | 2d 63 2e 63 0a 58 30 78 | scan|-c.c.X0x|
|00001880| 31 30 20 20 20 20 20 20 | 20 20 20 20 20 7b 69 64 |10 | {id|
|00001890| 2c 72 61 64 69 78 7d 2e | 68 20 20 7b 73 63 61 6e |,radix}.|h {scan|
|000018a0| 2d 61 73 6d 2c 73 74 6f | 69 7d 2e 63 0a 58 0a 58 |-asm,sto|i}.c.X.X|
|000018b0| 24 20 6c 69 64 20 2d 64 | 20 30 32 30 0a 58 31 36 |$ lid -d| 020.X16|
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 75 6d | | num|
|000018d0| 74 73 74 2e 63 0a 58 0a | 58 0a 58 54 68 65 20 67 |tst.c.X.|X.XThe g|
|000018e0| 72 65 70 20 69 6e 74 65 | 72 66 61 63 65 20 62 65 |rep inte|rface be|
|000018f0| 68 61 76 65 73 20 73 6f | 6d 65 77 68 61 74 20 6c |haves so|mewhat l|
|00001900| 69 6b 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ike the |followin|
|00001910| 67 20 63 6f 6d 6d 61 6e | 64 3a 0a 58 0a 58 24 20 |g comman|d:.X.X$ |
|00001920| 67 72 65 70 20 2d 77 20 | 2d 6e 20 60 6c 69 64 20 |grep -w |-n `lid |
|00001930| 54 52 55 45 60 0a 58 0a | 58 48 65 72 65 73 20 73 |TRUE`.X.|XHeres s|
|00001940| 6f 6d 65 20 73 61 6d 70 | 6c 65 20 6f 75 74 70 75 |ome samp|le outpu|
|00001950| 74 20 66 6f 72 20 74 68 | 65 20 65 71 75 69 76 61 |t for th|e equiva|
|00001960| 6c 65 6e 74 20 67 69 64 | 20 63 6f 6d 6d 61 6e 64 |lent gid| command|
|00001970| 3a 0a 58 0a 58 24 20 67 | 69 64 20 54 52 55 45 0a |:.X.X$ g|id TRUE.|
|00001980| 58 62 6f 6f 6c 2e 68 3a | 35 3a 20 23 64 65 66 69 |Xbool.h:|5: #defi|
|00001990| 6e 65 09 54 52 55 45 09 | 28 30 3d 3d 30 29 0a 58 |ne.TRUE.|(0==0).X|
|000019a0| 6c 69 64 2e 63 3a 31 30 | 32 3a 20 09 09 63 61 73 |lid.c:10|2: ..cas|
|000019b0| 65 20 27 6d 27 3a 20 66 | 6f 72 63 65 4d 65 72 67 |e 'm': f|orceMerg|
|000019c0| 65 20 3d 20 54 52 55 45 | 3b 20 62 72 65 61 6b 3b |e = TRUE|; break;|
|000019d0| 0a 58 6c 69 64 2e 63 3a | 31 37 30 3a 20 09 09 09 |.Xlid.c:|170: ...|
|000019e0| 4d 65 72 67 69 6e 67 20 | 3d 20 54 52 55 45 3b 0a |Merging |= TRUE;.|
|000019f0| 58 6c 69 64 2e 63 3a 32 | 30 34 3a 20 09 09 09 63 |Xlid.c:2|04: ...c|
|00001a00| 72 75 6e 63 68 69 6e 67 | 20 3d 20 54 52 55 45 3b |runching| = TRUE;|
|00001a10| 0a 58 6c 69 64 2e 63 3a | 35 35 33 3a 20 09 09 09 |.Xlid.c:|553: ...|
|00001a20| 68 69 74 44 69 67 69 74 | 73 20 3d 20 54 52 55 45 |hitDigit|s = TRUE|
|00001a30| 3b 0a 58 6c 69 64 2e 63 | 3a 37 38 37 3a 20 09 09 |;.Xlid.c|:787: ..|
|00001a40| 09 72 65 74 75 72 6e 20 | 54 52 55 45 3b 0a 58 6d |.return |TRUE;.Xm|
|00001a50| 6b 69 64 2e 63 3a 31 31 | 37 3a 20 09 09 09 56 65 |kid.c:11|7: ...Ve|
|00001a60| 72 62 6f 73 65 20 3d 20 | 54 52 55 45 3b 0a 58 6d |rbose = |TRUE;.Xm|
|00001a70| 6b 69 64 2e 63 3a 31 39 | 31 3a 20 09 09 09 09 09 |kid.c:19|1: .....|
|00001a80| 6b 65 65 70 4c 61 6e 67 | 20 3d 20 54 52 55 45 3b |keepLang| = TRUE;|
|00001a90| 0a 58 73 63 61 6e 2d 61 | 73 6d 2e 63 3a 37 39 3a |.Xscan-a|sm.c:79:|
|00001aa0| 20 73 74 61 74 69 63 20 | 62 6f 6f 6c 20 65 61 74 | static |bool eat|
|00001ab0| 55 6e 64 65 72 20 3d 20 | 54 52 55 45 3b 0a 58 73 |Under = |TRUE;.Xs|
|00001ac0| 63 61 6e 2d 61 73 6d 2e | 63 3a 38 30 3a 20 73 74 |can-asm.|c:80: st|
|00001ad0| 61 74 69 63 20 62 6f 6f | 6c 20 70 72 65 50 72 6f |atic boo|l prePro|
|00001ae0| 63 65 73 73 20 3d 20 54 | 52 55 45 3b 0a 58 73 63 |cess = T|RUE;.Xsc|
|00001af0| 61 6e 2d 61 73 6d 2e 63 | 3a 39 36 3a 20 09 73 74 |an-asm.c|:96: .st|
|00001b00| 61 74 69 63 20 62 6f 6f | 6c 09 6e 65 77 4c 69 6e |atic boo|l.newLin|
|00001b10| 65 20 3d 20 54 52 55 45 | 3b 0a 58 73 63 61 6e 2d |e = TRUE|;.Xscan-|
|00001b20| 61 73 6d 2e 63 3a 31 33 | 30 3a 20 09 09 6e 65 77 |asm.c:13|0: ..new|
|00001b30| 4c 69 6e 65 20 3d 20 54 | 52 55 45 3b 0a 58 73 63 |Line = T|RUE;.Xsc|
|00001b40| 61 6e 2d 61 73 6d 2e 63 | 3a 31 34 31 3a 20 09 09 |an-asm.c|:141: ..|
|00001b50| 6e 65 77 4c 69 6e 65 20 | 3d 20 54 52 55 45 3b 0a |newLine |= TRUE;.|
|00001b60| 58 73 63 61 6e 2d 61 73 | 6d 2e 63 3a 31 34 35 3a |Xscan-as|m.c:145:|
|00001b70| 20 09 09 6e 65 77 4c 69 | 6e 65 20 3d 20 54 52 55 | ..newLi|ne = TRU|
|00001b80| 45 3b 0a 58 73 63 61 6e | 2d 61 73 6d 2e 63 3a 31 |E;.Xscan|-asm.c:1|
|00001b90| 35 30 3a 20 09 09 6e 65 | 77 4c 69 6e 65 20 3d 20 |50: ..ne|wLine = |
|00001ba0| 54 52 55 45 3b 0a 58 73 | 63 61 6e 2d 61 73 6d 2e |TRUE;.Xs|can-asm.|
|00001bb0| 63 3a 31 36 35 3a 20 09 | 09 09 09 6e 65 77 4c 69 |c:165: .|...newLi|
|00001bc0| 6e 65 20 3d 20 54 52 55 | 45 3b 0a 58 73 63 61 6e |ne = TRU|E;.Xscan|
|00001bd0| 2d 63 2e 63 3a 38 38 3a | 20 73 74 61 74 69 63 20 |-c.c:88:| static |
|00001be0| 62 6f 6f 6c 20 65 61 74 | 55 6e 64 65 72 20 3d 20 |bool eat|Under = |
|00001bf0| 54 52 55 45 3b 0a 58 73 | 63 61 6e 2d 63 2e 63 3a |TRUE;.Xs|can-c.c:|
|00001c00| 31 30 31 3a 20 09 73 74 | 61 74 69 63 20 62 6f 6f |101: .st|atic boo|
|00001c10| 6c 09 6e 65 77 4c 69 6e | 65 20 3d 20 54 52 55 45 |l.newLin|e = TRUE|
|00001c20| 3b 0a 58 73 63 61 6e 2d | 63 2e 63 3a 31 33 38 3a |;.Xscan-|c.c:138:|
|00001c30| 20 09 09 6e 65 77 4c 69 | 6e 65 20 3d 20 54 52 55 | ..newLi|ne = TRU|
|00001c40| 45 3b 0a 58 73 63 61 6e | 2d 63 2e 63 3a 31 39 39 |E;.Xscan|-c.c:199|
|00001c50| 3a 20 09 09 09 09 6e 65 | 77 4c 69 6e 65 20 3d 20 |: ....ne|wLine = |
|00001c60| 54 52 55 45 3b 0a 58 73 | 63 61 6e 2d 63 2e 63 3a |TRUE;.Xs|can-c.c:|
|00001c70| 32 30 35 3a 20 09 09 6e | 65 77 4c 69 6e 65 20 3d |205: ..n|ewLine =|
|00001c80| 20 54 52 55 45 3b 0a 58 | 73 63 61 6e 2d 63 2e 63 | TRUE;.X|scan-c.c|
|00001c90| 3a 32 31 30 3a 20 09 09 | 09 6e 65 77 4c 69 6e 65 |:210: ..|.newLine|
|00001ca0| 20 3d 20 54 52 55 45 3b | 0a 58 77 6d 61 74 63 68 | = TRUE;|.Xwmatch|
|00001cb0| 2e 63 3a 33 37 3a 20 09 | 09 09 72 65 74 75 72 6e |.c:37: .|..return|
|00001cc0| 20 54 52 55 45 3b 0a 58 | 0a 58 4e 6f 74 69 63 65 | TRUE;.X|.XNotice|
|00001cd0| 20 74 68 61 74 20 65 61 | 63 68 20 6c 69 6e 65 20 | that ea|ch line |
|00001ce0| 69 73 20 72 65 70 6f 72 | 74 65 64 20 69 6e 20 74 |is repor|ted in t|
|00001cf0| 68 65 20 73 61 6d 65 20 | 66 6f 72 6d 61 74 20 61 |he same |format a|
|00001d00| 73 20 61 0a 58 43 2d 70 | 72 65 70 72 6f 63 65 73 |s a.XC-p|reproces|
|00001d10| 73 6f 72 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |sor erro|r messag|
|00001d20| 65 2e 20 20 54 68 69 73 | 20 66 65 61 74 75 72 65 |e. This| feature|
|00001d30| 20 61 6c 6c 6f 77 73 20 | 67 69 64 28 31 29 20 6c | allows |gid(1) l|
|00001d40| 69 6e 65 73 20 74 6f 20 | 62 65 0a 58 64 69 67 65 |ines to |be.Xdige|
|00001d50| 73 74 65 64 20 62 79 20 | 61 6e 79 20 70 72 6f 67 |sted by |any prog|
|00001d60| 72 61 6d 20 74 68 61 74 | 20 70 61 72 73 65 73 20 |ram that| parses |
|00001d70| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 73 2c 20 |error me|ssages, |
|00001d80| 73 75 63 68 20 61 73 20 | 65 72 72 6f 72 28 31 29 |such as |error(1)|
|00001d90| 0a 58 61 6e 64 20 67 6e | 75 2d 65 6d 61 63 73 2e |.Xand gn|u-emacs.|
|00001da0| 0a 58 0a 58 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |.X.XIf y|ou want |
|00001db0| 74 6f 20 65 64 69 74 20 | 61 6c 6c 20 66 69 6c 65 |to edit |all file|
|00001dc0| 73 20 74 68 61 74 20 68 | 61 76 65 20 61 6e 20 69 |s that h|ave an i|
|00001dd0| 64 65 6e 74 69 66 69 65 | 72 2c 20 79 6f 75 20 6d |dentifie|r, you m|
|00001de0| 61 79 0a 58 63 6f 6e 76 | 65 6e 69 65 6e 74 6c 79 |ay.Xconv|eniently|
|00001df0| 20 64 6f 20 73 6f 20 77 | 69 74 68 20 65 69 64 28 | do so w|ith eid(|
|00001e00| 31 29 3a 0a 58 0a 58 24 | 20 65 69 64 20 54 52 55 |1):.X.X$| eid TRU|
|00001e10| 45 0a 58 54 52 55 45 20 | 20 20 20 20 20 20 20 20 |E.XTRUE | |
|00001e20| 20 20 62 6f 6f 6c 2e 68 | 20 7b 6c 69 64 2c 6d 6b | bool.h| {lid,mk|
|00001e30| 69 64 2c 73 63 61 6e 2d | 61 73 6d 2c 73 63 61 6e |id,scan-|asm,scan|
|00001e40| 2d 63 2c 77 6d 61 74 63 | 68 7d 2e 63 0a 58 45 64 |-c,wmatc|h}.c.XEd|
|00001e50| 69 74 3f 20 5b 79 31 2d | 39 5e 53 2f 6e 71 5d 20 |it? [y1-|9^S/nq] |
|00001e60| 0a 58 0a 58 42 65 66 6f | 72 65 20 74 68 65 20 65 |.X.XBefo|re the e|
|00001e70| 64 69 74 6f 72 20 69 73 | 20 69 6e 76 6f 6b 65 64 |ditor is| invoked|
|00001e80| 2c 20 79 6f 75 20 61 72 | 65 20 67 69 76 65 6e 20 |, you ar|e given |
|00001e90| 74 68 65 20 6c 69 64 28 | 31 29 20 6f 75 74 70 75 |the lid(|1) outpu|
|00001ea0| 74 20 74 6f 20 72 65 76 | 69 65 77 0a 58 61 6e 64 |t to rev|iew.Xand|
|00001eb0| 20 63 6f 6d 66 69 72 6d | 2e 20 20 49 66 20 79 6f | comfirm|. If yo|
|00001ec0| 75 20 77 61 6e 74 20 74 | 6f 20 65 64 69 74 20 61 |u want t|o edit a|
|00001ed0| 6c 6c 20 66 69 6c 65 73 | 20 6c 69 73 74 65 64 2c |ll files| listed,|
|00001ee0| 20 72 65 73 70 6f 6e 64 | 20 77 69 74 68 20 61 0a | respond| with a.|
|00001ef0| 58 6e 65 77 6c 69 6e 65 | 20 6f 72 20 77 69 74 68 |Xnewline| or with|
|00001f00| 20 60 79 27 2e 20 20 49 | 66 20 79 6f 75 20 77 61 | `y'. I|f you wa|
|00001f10| 6e 74 20 74 6f 20 73 6b | 69 70 20 73 6f 6d 65 20 |nt to sk|ip some |
|00001f20| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 6c 65 73 20 |number o|f files |
|00001f30| 69 6e 74 6f 20 74 68 65 | 0a 58 61 72 67 75 6d 65 |into the|.Xargume|
|00001f40| 6e 74 20 6c 69 73 74 2c | 20 72 65 73 70 6f 6e 64 |nt list,| respond|
|00001f50| 20 77 69 74 68 20 61 20 | 73 69 6e 67 6c 65 20 64 | with a |single d|
|00001f60| 69 67 69 74 20 60 31 27 | 20 74 68 72 6f 75 67 68 |igit `1'| through|
|00001f70| 20 60 39 27 20 74 6f 20 | 73 6b 69 70 20 74 68 61 | `9' to |skip tha|
|00001f80| 74 0a 58 6d 61 6e 79 20 | 66 69 6c 65 73 2c 20 6f |t.Xmany |files, o|
|00001f90| 72 20 64 6f 20 61 20 73 | 74 72 69 6e 67 2d 73 65 |r do a s|tring-se|
|00001fa0| 61 72 63 68 20 74 6f 20 | 74 68 65 20 66 69 72 73 |arch to |the firs|
|00001fb0| 74 20 66 69 6c 65 20 79 | 6f 75 20 77 61 6e 74 20 |t file y|ou want |
|00001fc0| 77 69 74 68 0a 58 60 5e | 53 3c 73 74 72 69 6e 67 |with.X`^|S<string|
|00001fd0| 3e 27 20 6f 72 20 60 2f | 3c 73 74 72 69 6e 67 3e |>' or `/|<string>|
|00001fe0| 27 2e 20 20 49 66 20 79 | 6f 75 20 64 6f 6e 27 74 |'. If y|ou don't|
|00001ff0| 20 77 61 6e 74 20 74 6f | 20 65 64 69 74 20 61 6e | want to| edit an|
|00002000| 79 74 68 69 6e 67 2c 20 | 74 79 70 65 0a 58 60 6e |ything, |type.X`n|
|00002010| 27 20 74 6f 20 67 6f 20 | 6f 6e 20 74 6f 20 74 68 |' to go |on to th|
|00002020| 65 20 6e 65 78 74 20 61 | 72 67 75 6d 65 6e 74 20 |e next a|rgument |
|00002030| 79 6f 75 20 67 61 76 65 | 20 74 6f 20 65 69 64 28 |you gave| to eid(|
|00002040| 31 29 20 6f 72 20 74 79 | 70 65 20 60 71 27 20 74 |1) or ty|pe `q' t|
|00002050| 6f 0a 58 71 75 69 74 20 | 61 6c 74 6f 67 65 74 68 |o.Xquit |altogeth|
|00002060| 65 72 2e 0a 58 0a 58 54 | 68 65 20 62 65 68 61 76 |er..X.XT|he behav|
|00002070| 69 6f 72 20 6f 66 20 74 | 68 65 20 65 64 69 74 69 |ior of t|he editi|
|00002080| 6e 67 20 69 6e 74 65 72 | 66 61 63 65 20 69 73 20 |ng inter|face is |
|00002090| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 74 68 |controll|ed by th|
|000020a0| 72 65 65 0a 58 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ree.Xenv|ironment|
|000020b0| 20 76 61 72 69 61 62 6c | 65 73 20 63 61 6c 6c 65 | variabl|es calle|
|000020c0| 64 20 45 49 44 41 52 47 | 2c 20 45 49 44 4c 44 45 |d EIDARG|, EIDLDE|
|000020d0| 4c 2c 20 61 6e 64 20 45 | 49 44 52 44 45 4c 2e 20 |L, and E|IDRDEL. |
|000020e0| 20 54 68 65 20 62 65 73 | 74 0a 58 77 61 79 20 74 | The bes|t.Xway t|
|000020f0| 6f 20 69 6c 6c 75 73 74 | 72 61 74 65 20 74 68 65 |o illust|rate the|
|00002100| 69 72 20 75 73 65 20 62 | 79 20 61 6e 20 65 78 61 |ir use b|y an exa|
|00002110| 6d 70 6c 65 2e 20 20 48 | 65 72 65 20 69 73 20 68 |mple. H|ere is h|
|00002120| 6f 77 20 74 6f 20 64 65 | 66 69 6e 65 20 74 68 65 |ow to de|fine the|
|00002130| 6d 0a 58 66 6f 72 20 76 | 69 28 31 29 20 28 75 73 |m.Xfor v|i(1) (us|
|00002140| 69 6e 67 20 2f 62 69 6e | 2f 73 68 20 73 79 6e 74 |ing /bin|/sh synt|
|00002150| 61 78 29 0a 58 0a 58 45 | 49 44 41 52 47 3d 27 2b |ax).X.XE|IDARG='+|
|00002160| 2f 25 73 2f 27 09 23 20 | 70 72 69 6e 74 66 28 33 |/%s/'.# |printf(3|
|00002170| 29 20 73 74 72 69 6e 67 | 20 66 6f 72 20 69 6e 69 |) string| for ini|
|00002180| 74 69 61 6c 20 73 65 61 | 72 63 68 2d 73 74 72 69 |tial sea|rch-stri|
|00002190| 6e 67 20 61 72 67 75 6d | 65 6e 74 0a 58 45 49 44 |ng argum|ent.XEID|
|000021a0| 4c 44 45 4c 3d 27 5c 3c | 27 09 23 20 6c 65 66 74 |LDEL='\<|'.# left|
|000021b0| 20 77 6f 72 64 2d 64 65 | 6c 69 6d 69 74 65 72 0a | word-de|limiter.|
|000021c0| 58 45 49 44 52 44 45 4c | 3d 27 5c 3e 27 09 23 20 |XEIDRDEL|='\>'.# |
|000021d0| 72 69 67 68 74 20 77 6f | 72 64 2d 64 65 6c 69 6d |right wo|rd-delim|
|000021e0| 69 74 65 72 0a 58 0a 58 | 60 45 49 44 5b 4c 52 5d |iter.X.X|`EID[LR]|
|000021f0| 44 45 4c 27 20 61 72 65 | 20 70 6f 73 69 74 69 6f |DEL' are| positio|
|00002200| 6e 65 64 20 61 72 6f 75 | 6e 64 20 74 68 65 20 69 |ned arou|nd the i|
|00002210| 64 65 6e 74 69 66 69 65 | 72 20 61 73 20 6c 65 66 |dentifie|r as lef|
|00002220| 74 20 61 6e 64 20 72 69 | 67 68 74 0a 58 77 6f 72 |t and ri|ght.Xwor|
|00002230| 64 2d 64 65 6c 69 6d 69 | 74 65 72 73 20 69 66 20 |d-delimi|ters if |
|00002240| 79 6f 75 72 20 65 64 69 | 74 6f 72 20 73 75 70 70 |your edi|tor supp|
|00002250| 6f 72 74 73 20 74 68 61 | 74 20 6e 6f 74 69 6f 6e |orts tha|t notion|
|00002260| 2e 20 20 54 68 65 6e 20 | 74 68 65 20 77 68 6f 6c |. Then |the whol|
|00002270| 65 0a 58 6e 61 6d 65 2d | 73 74 72 69 6e 67 20 69 |e.Xname-|string i|
|00002280| 73 20 73 70 72 69 6e 74 | 66 28 33 29 27 65 64 20 |s sprint|f(3)'ed |
|00002290| 69 6e 74 6f 20 60 45 49 | 44 41 52 47 27 20 74 6f |into `EI|DARG' to|
|000022a0| 20 63 6f 6e 73 74 72 75 | 63 74 20 74 68 65 20 69 | constru|ct the i|
|000022b0| 6e 69 74 69 61 6c 0a 58 | 73 65 61 72 63 68 2d 73 |nitial.X|search-s|
|000022c0| 74 72 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 20 74 |tring ar|gument t|
|000022d0| 6f 20 74 68 65 20 65 64 | 69 74 6f 72 2e 20 20 49 |o the ed|itor. I|
|000022e0| 66 20 79 6f 75 72 20 65 | 64 69 74 6f 72 20 63 61 |f your e|ditor ca|
|000022f0| 6e 27 74 20 64 69 67 65 | 73 74 20 73 75 63 68 0a |n't dige|st such.|
|00002300| 58 61 6e 20 61 72 67 75 | 6d 65 6e 74 2c 20 73 69 |Xan argu|ment, si|
|00002310| 6d 70 6c 79 20 6c 65 61 | 76 65 20 74 68 65 73 65 |mply lea|ve these|
|00002320| 20 76 61 72 69 61 62 6c | 65 73 20 75 6e 64 65 66 | variabl|es undef|
|00002330| 69 6e 65 64 20 69 6e 20 | 74 68 65 0a 58 65 6e 76 |ined in |the.Xenv|
|00002340| 69 72 6f 6e 6d 65 6e 74 | 2e 0a 58 0a 58 53 6f 6d |ironment|..X.XSom|
|00002350| 65 20 65 6d 61 63 73 20 | 75 73 65 72 73 20 61 72 |e emacs |users ar|
|00002360| 65 20 61 70 70 61 6c 6c | 65 64 20 61 74 20 74 68 |e appall|ed at th|
|00002370| 65 20 6e 6f 74 69 6f 6e | 20 6f 66 20 73 74 61 72 |e notion| of star|
|00002380| 74 69 6e 67 20 75 70 20 | 61 20 66 72 65 73 68 20 |ting up |a fresh |
|00002390| 65 64 69 74 6f 72 0a 58 | 73 69 6d 70 6c 79 20 74 |editor.X|simply t|
|000023a0| 6f 20 66 6f 6c 6c 6f 77 | 20 61 6e 20 69 64 65 6e |o follow| an iden|
|000023b0| 74 69 66 69 65 72 2e 20 | 20 46 6f 72 20 74 68 6f |tifier. | For tho|
|000023c0| 73 65 20 77 68 6f 20 61 | 72 65 20 66 6f 72 74 75 |se who a|re fortu|
|000023d0| 6e 61 74 65 20 65 6e 6f | 75 67 68 20 74 6f 20 68 |nate eno|ugh to h|
|000023e0| 61 76 65 0a 58 61 20 70 | 72 6f 67 72 61 6d 6d 61 |ave.Xa p|rogramma|
|000023f0| 62 6c 65 20 65 6d 61 63 | 73 20 73 75 63 68 20 61 |ble emac|s such a|
|00002400| 73 20 67 6e 75 2d 65 6d | 61 63 73 2c 20 69 74 20 |s gnu-em|acs, it |
|00002410| 69 73 20 66 61 69 72 6c | 79 20 73 69 6d 70 6c 65 |is fairl|y simple|
|00002420| 20 74 6f 20 64 65 76 69 | 73 65 0a 58 61 20 63 6f | to devi|se.Xa co|
|00002430| 6d 6d 61 6e 64 20 74 68 | 61 74 20 69 6e 76 6f 6b |mmand th|at invok|
|00002440| 65 73 20 67 69 64 28 31 | 29 20 61 6e 64 20 64 69 |es gid(1|) and di|
|00002450| 67 65 73 74 73 20 69 74 | 73 20 6f 75 74 70 75 74 |gests it|s output|
|00002460| 20 61 73 20 74 68 6f 75 | 67 68 20 69 74 20 77 65 | as thou|gh it we|
|00002470| 72 65 0a 58 2f 6c 69 62 | 2f 63 70 70 20 65 72 72 |re.X/lib|/cpp err|
|00002480| 6f 72 20 73 74 72 69 6e | 67 73 20 74 6f 20 62 65 |or strin|gs to be|
|00002490| 20 65 78 61 6d 69 6e 65 | 64 2e 20 20 28 53 6f 72 | examine|d. (Sor|
|000024a0| 72 79 2c 20 6e 6f 20 73 | 75 63 68 20 63 6f 64 65 |ry, no s|uch code|
|000024b0| 20 69 73 20 70 72 6f 76 | 69 64 65 64 0a 58 61 74 | is prov|ided.Xat|
|000024c0| 20 74 68 69 73 20 70 6f | 73 74 69 6e 67 2e 2e 2e | this po|sting...|
|000024d0| 29 0a 58 0a 58 41 6e 6f | 74 68 65 72 20 74 79 70 |).X.XAno|ther typ|
|000024e0| 65 20 6f 66 20 71 75 65 | 72 79 20 69 73 20 74 6f |e of que|ry is to|
|000024f0| 20 66 69 6e 64 20 61 6c | 6c 20 69 64 65 6e 74 69 | find al|l identi|
|00002500| 66 69 65 72 73 20 74 68 | 61 74 20 61 72 65 20 6e |fiers th|at are n|
|00002510| 6f 6e 2d 75 6e 69 71 75 | 65 0a 58 77 69 74 68 69 |on-uniqu|e.Xwithi|
|00002520| 6e 20 73 6f 6d 65 20 6e | 75 6d 62 65 72 20 6f 66 |n some n|umber of|
|00002530| 20 63 68 61 72 61 63 74 | 65 72 73 2e 20 20 54 68 | charact|ers. Th|
|00002540| 69 73 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |is is us|eful for|
|00002550| 20 66 69 6e 64 69 6e 67 | 20 70 6f 74 65 6e 74 69 | finding| potenti|
|00002560| 61 6c 0a 58 70 6f 72 74 | 61 62 69 6c 69 74 79 20 |al.Xport|ability |
|00002570| 70 72 6f 62 6c 65 6d 73 | 20 77 68 65 6e 20 6d 6f |problems| when mo|
|00002580| 76 69 6e 67 20 74 6f 20 | 61 20 73 79 73 74 65 6d |ving to |a system|
|00002590| 20 77 68 6f 73 65 20 63 | 6f 6d 70 69 6c 65 72 20 | whose c|ompiler |
|000025a0| 6f 72 20 6c 69 6e 6b 65 | 72 0a 58 6c 69 6d 69 74 |or linke|r.Xlimit|
|000025b0| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|000025c0| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 63 68 61 72 |signific|ant char|
|000025d0| 61 63 74 65 72 73 20 69 | 6e 20 61 20 6e 61 6d 65 |acters i|n a name|
|000025e0| 2e 20 20 54 68 65 20 60 | 2d 75 3c 6e 3e 27 0a 58 |. The `|-u<n>'.X|
|000025f0| 61 72 67 75 6d 65 6e 74 | 20 64 6f 65 73 20 74 68 |argument| does th|
|00002600| 65 20 74 72 69 63 6b 2e | 20 20 48 65 72 65 27 73 |e trick.| Here's|
|00002610| 20 61 20 6c 69 73 74 20 | 6f 66 20 69 64 65 6e 74 | a list |of ident|
|00002620| 69 66 69 65 72 73 20 74 | 68 61 74 20 6d 61 79 20 |ifiers t|hat may |
|00002630| 79 69 65 6c 64 0a 58 6d | 75 6c 74 69 70 6c 79 2d |yield.Xm|ultiply-|
|00002640| 64 65 66 69 6e 65 64 20 | 65 72 72 6f 72 73 20 69 |defined |errors i|
|00002650| 6e 20 61 20 73 79 6d 62 | 6f 6c 20 74 61 62 6c 65 |n a symb|ol table|
|00002660| 20 74 68 61 74 20 6f 6e | 6c 79 20 6b 6e 6f 77 73 | that on|ly knows|
|00002670| 20 61 62 6f 75 74 20 74 | 68 65 0a 58 66 69 72 73 | about t|he.Xfirs|
|00002680| 74 20 37 20 63 68 61 72 | 61 63 74 65 72 73 3a 0a |t 7 char|acters:.|
|00002690| 58 0a 58 24 20 6c 69 64 | 20 2d 75 37 0a 58 53 43 |X.X$ lid| -u7.XSC|
|000026a0| 41 4e 5f 54 45 58 20 20 | 20 20 20 20 20 67 65 74 |AN_TEX | get|
|000026b0| 73 63 61 6e 2e 63 0a 58 | 53 43 41 4e 5f 54 45 58 |scan.c.X|SCAN_TEX|
|000026c0| 54 20 20 20 20 20 20 67 | 65 74 73 63 61 6e 2e 63 |T g|etscan.c|
|000026d0| 0a 58 69 64 68 5f 61 72 | 67 63 20 20 20 20 20 20 |.Xidh_ar|gc |
|000026e0| 20 69 64 2e 68 20 7b 69 | 6e 69 74 2c 6d 6b 69 64 | id.h {i|nit,mkid|
|000026f0| 7d 2e 63 0a 58 69 64 68 | 5f 61 72 67 6f 20 20 20 |}.c.Xidh|_argo |
|00002700| 20 20 20 20 69 64 2e 68 | 20 7b 69 6e 69 74 2c 6d | id.h| {init,m|
|00002710| 6b 69 64 7d 2e 63 0a 58 | 69 64 68 5f 6e 61 6d 63 |kid}.c.X|idh_namc|
|00002720| 20 20 20 20 20 20 20 69 | 64 2e 68 20 7b 66 69 64 | i|d.h {fid|
|00002730| 2c 6d 6b 69 64 7d 2e 63 | 0a 58 69 64 68 5f 6e 61 |,mkid}.c|.Xidh_na|
|00002740| 6d 6f 20 20 20 20 20 20 | 20 69 64 2e 68 20 7b 66 |mo | id.h {f|
|00002750| 69 64 2c 69 6e 69 74 2c | 6c 69 64 2c 6d 6b 69 64 |id,init,|lid,mkid|
|00002760| 7d 2e 63 0a 58 6f 6c 64 | 48 61 73 68 53 69 7a 65 |}.c.Xold|HashSize|
|00002770| 20 20 20 20 6d 6b 69 64 | 2e 63 0a 58 6f 6c 64 48 | mkid|.c.XoldH|
|00002780| 61 73 68 54 61 62 6c 65 | 20 20 20 6d 6b 69 64 2e |ashTable| mkid.|
|00002790| 63 0a 58 0a 58 42 65 74 | 74 65 72 20 79 65 74 2c |c.X.XBet|ter yet,|
|000027a0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|000027b0| 65 64 69 74 20 74 68 65 | 73 65 2c 20 74 72 79 0a |edit the|se, try.|
|000027c0| 58 0a 58 24 20 65 69 64 | 20 2d 75 37 0a 58 5e 53 |X.X$ eid| -u7.X^S|
|000027d0| 43 41 4e 5f 54 45 20 20 | 20 20 20 20 20 67 65 74 |CAN_TE | get|
|000027e0| 73 63 61 6e 2e 63 0a 58 | 45 64 69 74 3f 20 5b 79 |scan.c.X|Edit? [y|
|000027f0| 31 2d 39 5e 53 2f 6e 71 | 5d 20 6e 0a 58 5e 69 64 |1-9^S/nq|] n.X^id|
|00002800| 68 5f 61 72 67 20 20 20 | 20 20 20 20 67 65 74 73 |h_arg | gets|
|00002810| 63 61 6e 2e 63 20 69 64 | 2e 68 20 7b 69 6e 69 74 |can.c id|.h {init|
|00002820| 2c 6d 6b 69 64 7d 2e 63 | 0a 58 45 64 69 74 3f 20 |,mkid}.c|.XEdit? |
|00002830| 5b 79 31 2d 39 5e 53 2f | 6e 71 5d 20 6e 0a 58 5e |[y1-9^S/|nq] n.X^|
|00002840| 69 64 68 5f 6e 61 6d 20 | 20 20 20 20 20 20 7b 66 |idh_nam | {f|
|00002850| 69 64 2c 67 65 74 73 63 | 61 6e 7d 2e 63 20 69 64 |id,getsc|an}.c id|
|00002860| 2e 68 20 7b 69 6e 69 74 | 2c 6c 69 64 2c 6d 6b 69 |.h {init|,lid,mki|
|00002870| 64 7d 2e 63 0a 58 45 64 | 69 74 3f 20 5b 79 31 2d |d}.c.XEd|it? [y1-|
|00002880| 39 5e 53 2f 6e 71 5d 20 | 6e 0a 58 5e 6f 6c 64 48 |9^S/nq] |n.X^oldH|
|00002890| 61 73 68 20 20 20 20 20 | 20 20 7b 66 69 64 2c 67 |ash | {fid,g|
|000028a0| 65 74 73 63 61 6e 7d 2e | 63 20 69 64 2e 68 20 7b |etscan}.|c id.h {|
|000028b0| 69 6e 69 74 2c 6c 69 64 | 2c 6d 6b 69 64 7d 2e 63 |init,lid|,mkid}.c|
|000028c0| 0a 58 45 64 69 74 3f 20 | 5b 79 31 2d 39 5e 53 2f |.XEdit? |[y1-9^S/|
|000028d0| 6e 71 5d 20 6e 0a 58 0a | 58 0a 58 41 6e 20 61 64 |nq] n.X.|X.XAn ad|
|000028e0| 64 69 74 69 6f 6e 61 6c | 20 66 65 61 74 75 72 65 |ditional| feature|
|000028f0| 20 6f 66 20 6c 69 64 28 | 31 29 20 69 73 20 74 68 | of lid(|1) is th|
|00002900| 61 74 20 70 61 74 68 6e | 61 6d 65 73 20 61 72 65 |at pathn|ames are|
|00002910| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 0a 58 | automat|ically.X|
|00002920| 61 64 6a 75 73 74 65 64 | 20 66 6f 72 20 74 68 65 |adjusted| for the|
|00002930| 20 63 75 72 72 65 6e 74 | 20 77 6f 72 6b 69 6e 67 | current| working|
|00002940| 20 64 69 72 65 63 74 6f | 72 79 2e 20 20 4c 61 72 | directo|ry. Lar|
|00002950| 67 65 20 70 72 6f 67 72 | 61 6d 73 20 73 75 63 68 |ge progr|ams such|
|00002960| 20 61 73 20 74 68 65 0a | 58 55 4e 49 58 20 6b 65 | as the.|XUNIX ke|
|00002970| 72 6e 65 6c 20 61 72 65 | 20 6f 66 74 65 6e 20 70 |rnel are| often p|
|00002980| 61 72 74 69 74 69 6f 6e | 65 64 20 69 6e 74 6f 20 |artition|ed into |
|00002990| 73 75 62 73 79 73 74 65 | 6d 73 20 77 68 6f 73 65 |subsyste|ms whose|
|000029a0| 20 73 6f 75 72 63 65 73 | 20 6c 69 76 65 20 69 6e | sources| live in|
|000029b0| 0a 58 64 69 66 66 65 72 | 65 6e 74 20 64 69 72 65 |.Xdiffer|ent dire|
|000029c0| 63 74 6f 72 69 65 73 2e | 20 20 57 68 61 74 20 66 |ctories.| What f|
|000029d0| 6f 6c 6c 6f 77 73 20 61 | 72 65 20 73 65 76 65 72 |ollows a|re sever|
|000029e0| 61 6c 20 65 78 61 6d 70 | 6c 65 73 20 6f 66 20 74 |al examp|les of t|
|000029f0| 68 65 20 73 61 6d 65 0a | 58 73 65 61 72 63 68 20 |he same.|Xsearch |
|00002a00| 63 6f 6e 64 75 63 74 65 | 64 20 66 72 6f 6d 20 64 |conducte|d from d|
|00002a10| 69 66 66 65 72 65 6e 74 | 20 70 6f 69 6e 74 73 20 |ifferent| points |
|00002a20| 69 6e 20 74 68 65 20 55 | 4e 49 58 20 6b 65 72 6e |in the U|NIX kern|
|00002a30| 65 6c 20 73 6f 75 72 63 | 65 0a 58 68 69 65 72 61 |el sourc|e.Xhiera|
|00002a40| 72 63 68 79 3a 0a 58 0a | 58 24 20 63 64 20 2f 73 |rchy:.X.|X$ cd /s|
|00002a50| 72 63 2f 75 74 73 2f 6d | 36 38 6b 0a 58 24 20 6c |rc/uts/m|68k.X$ l|
|00002a60| 69 64 20 62 64 65 76 73 | 77 0a 58 62 64 65 76 73 |id bdevs|w.Xbdevs|
|00002a70| 77 20 20 20 20 20 20 20 | 20 20 73 79 73 2f 63 6f |w | sys/co|
|00002a80| 6e 66 2e 68 20 20 63 66 | 2f 63 6f 6e 66 2e 63 20 |nf.h cf|/conf.c |
|00002a90| 20 69 6f 2f 62 69 6f 2e | 63 20 20 6f 73 2f 7b 66 | io/bio.|c os/{f|
|00002aa0| 69 6f 2c 6d 61 69 6e 2c | 70 72 66 2c 73 79 73 33 |io,main,|prf,sys3|
|00002ab0| 7d 2e 63 0a 58 0a 58 24 | 20 63 64 20 69 6f 0a 58 |}.c.X.X$| cd io.X|
|00002ac0| 24 20 6c 69 64 20 62 64 | 65 76 73 77 0a 58 62 64 |$ lid bd|evsw.Xbd|
|00002ad0| 65 76 73 77 20 20 20 20 | 20 20 20 20 20 2e 2e 2f |evsw | ../|
|00002ae0| 73 79 73 2f 63 6f 6e 66 | 2e 68 20 20 2e 2e 2f 63 |sys/conf|.h ../c|
|00002af0| 66 2f 63 6f 6e 66 2e 63 | 20 20 62 69 6f 2e 63 20 |f/conf.c| bio.c |
|00002b00| 20 2e 2e 2f 6f 73 2f 7b | 66 69 6f 2c 6d 61 69 6e | ../os/{|fio,main|
|00002b10| 2c 70 72 66 2c 73 79 73 | 33 7d 2e 63 0a 58 0a 58 |,prf,sys|3}.c.X.X|
|00002b20| 24 20 63 64 20 2e 2e 2f | 6f 73 0a 58 62 64 65 76 |$ cd ../|os.Xbdev|
|00002b30| 73 77 20 20 20 20 20 20 | 20 20 20 2e 2e 2f 73 79 |sw | ../sy|
|00002b40| 73 2f 63 6f 6e 66 2e 68 | 20 20 2e 2e 2f 63 66 2f |s/conf.h| ../cf/|
|00002b50| 63 6f 6e 66 2e 63 20 20 | 2e 2e 2f 69 6f 2f 62 69 |conf.c |../io/bi|
|00002b60| 6f 2e 63 20 20 7b 66 69 | 6f 2c 6d 61 69 6e 2c 70 |o.c {fi|o,main,p|
|00002b70| 72 66 2c 73 79 73 33 7d | 2e 63 0a 58 0a 58 54 68 |rf,sys3}|.c.X.XTh|
|00002b80| 65 20 64 61 74 61 62 61 | 73 65 20 69 73 20 62 75 |e databa|se is bu|
|00002b90| 69 6c 74 20 77 69 74 68 | 20 6d 6b 69 64 28 31 29 |ilt with| mkid(1)|
|00002ba0| 2e 20 20 54 68 65 20 75 | 73 65 72 20 73 75 70 70 |. The u|ser supp|
|00002bb0| 6c 69 65 73 20 70 61 74 | 68 6e 61 6d 65 73 0a 58 |lies pat|hnames.X|
|00002bc0| 65 69 74 68 65 72 20 6f | 6e 20 74 68 65 20 63 6f |either o|n the co|
|00002bd0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 6f 72 20 6f 6e |mmand li|ne or on|
|00002be0| 20 73 74 64 69 6e 2e 20 | 20 48 65 72 65 27 73 20 | stdin. | Here's |
|00002bf0| 74 68 65 20 6f 75 74 70 | 75 74 20 6f 66 20 74 68 |the outp|ut of th|
|00002c00| 65 0a 58 60 76 65 72 62 | 6f 73 65 27 20 6f 70 74 |e.X`verb|ose' opt|
|00002c10| 69 6f 6e 20 74 6f 20 6d | 6b 69 64 28 31 29 3a 0a |ion to m|kid(1):.|
|00002c20| 58 0a 58 24 20 6d 6b 69 | 64 20 2d 76 20 2a 2e 68 |X.X$ mki|d -v *.h|
|00002c30| 20 2a 2e 63 0a 58 63 3a | 20 62 69 74 6f 70 73 2e | *.c.Xc:| bitops.|
|00002c40| 68 0a 58 63 3a 20 62 6f | 6f 6c 2e 68 0a 58 63 3a |h.Xc: bo|ol.h.Xc:|
|00002c50| 20 65 78 74 65 72 6e 2e | 68 0a 58 63 3a 20 69 64 | extern.|h.Xc: id|
|00002c60| 2e 68 0a 58 63 3a 20 70 | 61 74 63 68 6c 65 76 65 |.h.Xc: p|atchleve|
|00002c70| 6c 2e 68 0a 58 63 3a 20 | 72 61 64 69 78 2e 68 0a |l.h.Xc: |radix.h.|
|00002c80| 58 63 3a 20 73 74 72 69 | 6e 67 2e 68 0a 58 63 3a |Xc: stri|ng.h.Xc:|
|00002c90| 20 62 61 73 65 6e 61 6d | 65 2e 63 0a 58 63 3a 20 | basenam|e.c.Xc: |
|00002ca0| 62 69 74 63 6f 75 6e 74 | 2e 63 0a 58 63 3a 20 62 |bitcount|.c.Xc: b|
|00002cb0| 69 74 6f 70 73 2e 63 0a | 58 63 3a 20 62 69 74 73 |itops.c.|Xc: bits|
|00002cc0| 76 65 63 2e 63 0a 58 63 | 3a 20 62 73 65 61 72 63 |vec.c.Xc|: bsearc|
|00002cd0| 68 2e 63 0a 58 63 3a 20 | 62 7a 65 72 6f 2e 63 0a |h.c.Xc: |bzero.c.|
|00002ce0| 58 63 3a 20 64 6f 63 75 | 6d 65 6e 74 2e 63 0a 58 |Xc: docu|ment.c.X|
|00002cf0| 63 3a 20 66 69 64 2e 63 | 0a 58 63 3a 20 67 65 74 |c: fid.c|.Xc: get|
|00002d00| 73 30 2e 63 0a 58 63 3a | 20 67 65 74 73 46 46 2e |s0.c.Xc:| getsFF.|
|00002d10| 63 0a 58 63 3a 20 67 65 | 74 73 63 61 6e 2e 63 0a |c.Xc: ge|tscan.c.|
|00002d20| 58 63 3a 20 68 61 73 68 | 2e 63 0a 58 63 3a 20 69 |Xc: hash|.c.Xc: i|
|00002d30| 64 78 2e 63 0a 58 63 3a | 20 69 6e 69 74 2e 63 0a |dx.c.Xc:| init.c.|
|00002d40| 58 63 3a 20 6c 69 64 2e | 63 0a 58 63 3a 20 6d 6b |Xc: lid.|c.Xc: mk|
|00002d50| 69 64 2e 63 0a 58 63 3a | 20 6e 75 6d 74 73 74 2e |id.c.Xc:| numtst.|
|00002d60| 63 0a 58 63 3a 20 6f 70 | 65 6e 73 72 63 2e 63 0a |c.Xc: op|ensrc.c.|
|00002d70| 58 63 3a 20 70 61 74 68 | 73 2e 63 0a 58 63 3a 20 |Xc: path|s.c.Xc: |
|00002d80| 73 63 61 6e 2d 61 73 6d | 2e 63 0a 58 63 3a 20 73 |scan-asm|.c.Xc: s|
|00002d90| 63 61 6e 2d 63 2e 63 0a | 58 63 3a 20 73 74 6f 69 |can-c.c.|Xc: stoi|
|00002da0| 2e 63 0a 58 63 3a 20 74 | 74 79 2e 63 0a 58 63 3a |.c.Xc: t|ty.c.Xc:|
|00002db0| 20 75 65 72 72 6f 72 2e | 63 0a 58 63 3a 20 77 6d | uerror.|c.Xc: wm|
|00002dc0| 61 74 63 68 2e 63 0a 58 | 43 6f 6d 70 72 65 73 73 |atch.c.X|Compress|
|00002dd0| 69 6e 67 20 48 61 73 68 | 20 54 61 62 6c 65 2e 2e |ing Hash| Table..|
|00002de0| 2e 0a 58 53 6f 72 74 69 | 6e 67 20 48 61 73 68 20 |..XSorti|ng Hash |
|00002df0| 54 61 62 6c 65 2e 2e 2e | 0a 58 57 72 69 74 69 6e |Table...|.XWritin|
|00002e00| 67 20 60 49 44 27 2e 2e | 2e 0a 58 4e 61 6d 65 73 |g `ID'..|..XNames|
|00002e10| 3a 20 35 39 33 2c 20 4e | 75 6d 62 65 72 73 3a 20 |: 593, N|umbers: |
|00002e20| 36 34 2c 20 53 74 72 69 | 6e 67 73 3a 20 34 33 2c |64, Stri|ngs: 43,|
|00002e30| 20 53 6f 6c 6f 3a 20 31 | 31 39 2c 20 54 6f 74 61 | Solo: 1|19, Tota|
|00002e40| 6c 3a 20 36 39 37 0a 58 | 4f 63 63 75 72 72 61 6e |l: 697.X|Occurran|
|00002e50| 63 65 73 3a 20 31 31 2e | 36 37 2c 20 4c 6f 61 64 |ces: 11.|67, Load|
|00002e60| 3a 20 30 2e 31 37 2c 20 | 50 72 6f 62 65 73 3a 20 |: 0.17, |Probes: |
|00002e70| 31 2e 30 37 0a 58 0a 58 | 4d 6b 69 64 28 31 29 20 |1.07.X.X|Mkid(1) |
|00002e80| 65 63 68 6f 65 73 20 74 | 68 65 20 6e 61 6d 65 20 |echoes t|he name |
|00002e90| 6f 66 20 65 61 63 68 20 | 66 69 6c 65 20 61 73 20 |of each |file as |
|00002ea0| 69 74 20 69 73 20 73 63 | 61 6e 6e 65 64 2c 20 70 |it is sc|anned, p|
|00002eb0| 72 65 66 69 78 65 64 20 | 62 79 20 74 68 65 0a 58 |refixed |by the.X|
|00002ec0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 6c 61 6e 67 |name of |the lang|
|00002ed0| 75 61 67 65 20 69 74 20 | 74 68 69 6e 6b 73 20 74 |uage it |thinks t|
|00002ee0| 68 65 20 66 69 6c 65 20 | 69 73 20 77 72 69 74 74 |he file |is writt|
|00002ef0| 65 6e 20 69 6e 2e 20 20 | 4d 6b 69 64 28 31 29 20 |en in. |Mkid(1) |
|00002f00| 72 65 70 6f 72 74 73 0a | 58 68 6f 77 20 6d 61 6e |reports.|Xhow man|
|00002f10| 79 20 75 6e 69 71 75 65 | 20 6e 61 6d 65 73 20 61 |y unique| names a|
|00002f20| 6e 64 20 6e 75 6d 62 65 | 72 73 20 77 65 72 65 20 |nd numbe|rs were |
|00002f30| 66 6f 75 6e 64 2c 20 68 | 6f 77 20 6d 61 6e 79 20 |found, h|ow many |
|00002f40| 6e 61 6d 65 73 20 6f 63 | 63 75 72 72 65 64 0a 58 |names oc|curred.X|
|00002f50| 6f 6e 6c 79 20 6f 6e 63 | 65 2c 20 61 6e 64 20 74 |only onc|e, and t|
|00002f60| 68 65 20 74 6f 74 61 6c | 20 66 6f 72 20 6e 61 6d |he total| for nam|
|00002f70| 65 73 20 61 6e 64 20 6e | 75 6d 62 65 72 73 2e 20 |es and n|umbers. |
|00002f80| 20 49 74 20 61 6c 73 6f | 20 72 65 70 6f 72 74 73 | It also| reports|
|00002f90| 20 74 68 65 0a 58 61 76 | 65 72 61 67 65 20 6e 75 | the.Xav|erage nu|
|00002fa0| 6d 62 65 72 20 6f 66 20 | 6f 63 63 75 72 72 61 6e |mber of |occurran|
|00002fb0| 63 65 73 20 66 6f 72 20 | 61 6c 6c 20 6e 61 6d 65 |ces for |all name|
|00002fc0| 73 20 61 6e 64 20 6e 75 | 6d 62 65 72 73 2e 20 20 |s and nu|mbers. |
|00002fd0| 4e 65 78 74 2c 20 74 68 | 65 72 65 0a 58 61 72 65 |Next, th|ere.Xare|
|00002fe0| 20 73 6f 6d 65 20 68 61 | 73 68 2d 74 61 62 6c 65 | some ha|sh-table|
|00002ff0| 20 73 74 61 74 69 73 74 | 69 63 73 20 6f 6e 20 74 | statist|ics on t|
|00003000| 68 65 20 6c 6f 61 64 2d | 66 61 63 74 6f 72 20 61 |he load-|factor a|
|00003010| 6e 64 20 74 68 65 20 61 | 76 65 72 61 67 65 0a 58 |nd the a|verage.X|
|00003020| 6e 75 6d 62 65 72 20 6f | 66 20 6f 70 65 6e 2d 61 |number o|f open-a|
|00003030| 64 64 72 65 73 73 65 64 | 20 70 72 6f 62 65 73 2e |ddressed| probes.|
|00003040| 0a 58 0a 58 4d 6b 69 64 | 28 31 29 20 63 61 6e 20 |.X.XMkid|(1) can |
|00003050| 74 61 6b 65 20 61 72 67 | 75 6d 65 6e 74 73 20 66 |take arg|uments f|
|00003060| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |rom the |command |
|00003070| 6c 69 6e 65 2c 20 66 72 | 6f 6d 20 73 74 64 69 6e |line, fr|om stdin|
|00003080| 2c 20 6f 72 20 66 72 6f | 6d 0a 58 61 20 66 69 6c |, or fro|m.Xa fil|
|00003090| 65 2e 20 20 41 20 66 69 | 6c 65 20 66 75 6c 6c 20 |e. A fi|le full |
|000030a0| 6f 66 20 66 69 6c 65 6e | 61 6d 65 73 20 6d 61 79 |of filen|ames may|
|000030b0| 20 61 6c 73 6f 20 63 6f | 6e 74 61 69 6e 20 6d 6b | also co|ntain mk|
|000030c0| 69 64 20 6f 70 74 69 6f | 6e 73 20 6f 66 20 74 68 |id optio|ns of th|
|000030d0| 65 20 66 6f 72 6d 0a 58 | 2d 3c 6f 70 74 69 6f 6e |e form.X|-<option|
|000030e0| 3e 2e 20 20 46 69 6c 65 | 6e 61 6d 65 73 20 61 6e |>. File|names an|
|000030f0| 64 20 6f 70 74 69 6f 6e | 73 20 61 70 70 65 61 72 |d option|s appear|
|00003100| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 6f 6e 65 | in the |file one|
|00003110| 2d 70 65 72 2d 6c 69 6e | 65 2e 20 20 54 79 70 69 |-per-lin|e. Typi|
|00003120| 63 61 6c 0a 58 75 73 61 | 67 65 20 66 6f 72 20 74 |cal.Xusa|ge for t|
|00003130| 68 69 73 20 66 65 61 74 | 75 72 65 20 69 73 20 61 |his feat|ure is a|
|00003140| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0a 58 0a 58 24 20 |s follow|s:.X.X$ |
|00003150| 66 69 6e 64 20 2e 20 2d | 6e 61 6d 65 20 27 2a 2e |find . -|name '*.|
|00003160| 5b 63 68 79 73 5d 27 20 | 2d 70 72 69 6e 74 20 3e |[chys]' |-print >|
|00003170| 49 44 46 49 4c 45 53 0a | 58 24 20 6d 6b 69 64 20 |IDFILES.|X$ mkid |
|00003180| 2d 61 49 44 46 49 4c 45 | 53 0a 58 0a 58 2d 2d 20 |-aIDFILE|S.X.X-- |
|00003190| 6f 72 20 2d 2d 0a 58 0a | 58 24 20 66 69 6e 64 20 |or --.X.|X$ find |
|000031a0| 2e 20 2d 6e 61 6d 65 20 | 27 2a 2e 5b 63 68 79 73 |. -name |'*.[chys|
|000031b0| 5d 27 20 2d 70 72 69 6e | 74 20 7c 6d 6b 69 64 20 |]' -prin|t |mkid |
|000031c0| 2d 0a 58 0a 58 4d 6b 69 | 64 28 31 29 20 73 74 61 |-.X.XMki|d(1) sta|
|000031d0| 73 68 65 73 20 74 68 65 | 20 66 69 6c 65 6e 61 6d |shes the| filenam|
|000031e0| 65 73 20 61 6e 64 20 72 | 65 6c 65 76 61 6e 74 20 |es and r|elevant |
|000031f0| 61 72 67 75 6d 65 6e 74 | 73 20 69 6e 20 74 68 65 |argument|s in the|
|00003200| 20 64 61 74 61 62 61 73 | 65 0a 58 69 74 73 65 6c | databas|e.Xitsel|
|00003210| 66 2e 20 20 49 74 20 75 | 73 65 73 20 74 68 65 73 |f. It u|ses thes|
|00003220| 65 20 74 6f 20 73 75 70 | 70 6f 72 74 20 74 68 65 |e to sup|port the|
|00003230| 20 60 60 69 6e 63 72 65 | 6d 65 6e 74 61 6c 2d 75 | ``incre|mental-u|
|00003240| 70 64 61 74 65 27 20 6f | 70 74 69 6f 6e 2e 0a 58 |pdate' o|ption..X|
|00003250| 49 66 20 69 6e 76 6f 6b | 65 64 20 77 69 74 68 20 |If invok|ed with |
|00003260| 60 2d 75 27 2c 20 6d 6b | 69 64 28 31 29 20 63 68 |`-u', mk|id(1) ch|
|00003270| 65 63 6b 73 20 74 68 65 | 20 6d 6f 64 69 66 69 63 |ecks the| modific|
|00003280| 61 74 69 6f 6e 20 74 69 | 6d 65 73 20 6f 66 20 61 |ation ti|mes of a|
|00003290| 6c 6c 0a 58 63 6f 6e 73 | 74 69 74 75 65 6e 74 20 |ll.Xcons|tituent |
|000032a0| 66 69 6c 65 73 2c 20 61 | 6e 64 20 6f 6e 6c 79 20 |files, a|nd only |
|000032b0| 72 65 2d 73 63 61 6e 73 | 20 74 68 6f 73 65 20 74 |re-scans| those t|
|000032c0| 68 61 74 20 61 72 65 20 | 6e 65 77 65 72 20 74 68 |hat are |newer th|
|000032d0| 61 6e 20 74 68 65 0a 58 | 64 61 74 61 62 61 73 65 |an the.X|database|
|000032e0| 20 69 74 73 65 6c 66 2e | 20 20 49 74 20 69 73 20 | itself.| It is |
|000032f0| 69 6e 76 6f 6b 65 64 20 | 6c 69 6b 65 20 73 6f 3a |invoked |like so:|
|00003300| 0a 58 0a 58 24 20 6d 6b | 69 64 20 2d 75 0a 58 0a |.X.X$ mk|id -u.X.|
|00003310| 58 49 6e 20 73 75 6d 6d | 61 74 69 6f 6e 2c 20 6d |XIn summ|ation, m|
|00003320| 6b 69 64 28 31 29 20 63 | 61 6e 20 67 65 74 20 61 |kid(1) c|an get a|
|00003330| 72 67 75 6d 65 6e 74 73 | 20 66 72 6f 6d 20 6f 6e |rguments| from on|
|00003340| 65 20 6f 66 20 66 6f 75 | 72 20 70 6c 61 63 65 73 |e of fou|r places|
|00003350| 3a 0a 58 31 29 20 74 68 | 65 20 63 6f 6d 6d 61 6e |:.X1) th|e comman|
|00003360| 64 20 6c 69 6e 65 2c 20 | 32 29 20 61 20 66 69 6c |d line, |2) a fil|
|00003370| 65 2c 20 33 29 20 73 74 | 64 69 6e 2c 20 34 29 20 |e, 3) st|din, 4) |
|00003380| 74 68 65 20 64 61 74 61 | 62 61 73 65 20 69 74 73 |the data|base its|
|00003390| 65 6c 66 2e 0a 58 0a 58 | 4d 6b 69 64 28 31 29 20 |elf..X.X|Mkid(1) |
|000033a0| 61 63 63 65 70 74 73 20 | 61 20 6e 75 6d 62 65 72 |accepts |a number|
|000033b0| 20 6f 66 20 73 63 61 6e | 6e 65 72 2d 73 70 65 63 | of scan|ner-spec|
|000033c0| 69 66 69 63 20 61 72 67 | 75 6d 65 6e 74 73 2e 20 |ific arg|uments. |
|000033d0| 20 47 65 6e 65 72 61 6c | 6c 79 2c 0a 58 74 68 65 | General|ly,.Xthe|
|000033e0| 73 65 20 61 72 65 20 69 | 6e 74 72 6f 64 75 63 65 |se are i|ntroduce|
|000033f0| 64 20 77 69 74 68 20 60 | 2d 53 3c 6c 61 6e 67 3e |d with `|-S<lang>|
|00003400| 27 20 77 68 65 72 65 20 | 3c 6c 61 6e 67 3e 20 69 |' where |<lang> i|
|00003410| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 0a 58 61 |s the na|me of.Xa|
|00003420| 20 6c 61 6e 67 75 61 67 | 65 2c 20 73 75 63 68 20 | languag|e, such |
|00003430| 61 73 20 60 63 27 20 6f | 72 20 60 61 73 6d 27 2e |as `c' o|r `asm'.|
|00003440| 20 20 59 6f 75 20 63 61 | 6e 20 67 65 74 20 61 20 | You ca|n get a |
|00003450| 73 63 61 6e 6e 65 72 2d | 73 70 65 63 69 66 69 63 |scanner-|specific|
|00003460| 0a 58 75 73 61 67 65 2d | 72 65 70 6f 72 74 20 77 |.Xusage-|report w|
|00003470| 69 74 68 20 60 2d 53 3c | 6c 61 6e 67 3e 3f 27 20 |ith `-S<|lang>?' |
|00003480| 20 28 4f 66 20 63 6f 75 | 72 73 65 2c 20 74 68 65 | (Of cou|rse, the|
|00003490| 20 60 3f 27 20 6d 75 73 | 74 20 62 65 20 65 73 63 | `?' mus|t be esc|
|000034a0| 61 70 65 64 0a 58 74 6f | 20 67 65 74 20 69 74 20 |aped.Xto| get it |
|000034b0| 70 61 73 74 20 74 68 65 | 20 73 68 65 6c 6c 29 0a |past the| shell).|
|000034c0| 58 0a 58 48 65 72 65 27 | 73 20 73 63 61 6e 6e 65 |X.XHere'|s scanne|
|000034d0| 72 2d 75 73 61 67 65 20 | 66 6f 72 20 74 68 65 20 |r-usage |for the |
|000034e0| 61 73 73 65 6d 62 6c 79 | 20 6c 61 6e 67 75 61 67 |assembly| languag|
|000034f0| 65 20 73 63 61 6e 6e 65 | 72 3a 0a 58 0a 58 24 20 |e scanne|r:.X.X$ |
|00003500| 6d 6b 69 64 20 2d 53 61 | 73 6d 5c 3f 0a 58 54 68 |mkid -Sa|sm\?.XTh|
|00003510| 65 20 41 73 73 65 6d 62 | 6c 65 72 20 73 63 61 6e |e Assemb|ler scan|
|00003520| 6e 65 72 20 61 72 67 75 | 6d 65 6e 74 73 20 74 61 |ner argu|ments ta|
|00003530| 6b 65 20 74 68 65 20 66 | 6f 72 6d 20 2d 53 61 73 |ke the f|orm -Sas|
|00003540| 6d 3c 61 72 67 3e 2c 20 | 77 68 65 72 65 0a 58 3c |m<arg>, |where.X<|
|00003550| 61 72 67 3e 20 69 73 20 | 6f 6e 65 20 6f 66 20 74 |arg> is |one of t|
|00003560| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 20 28 3c |he follo|wing: (<|
|00003570| 63 63 3e 20 64 65 6e 6f | 74 65 73 20 6f 6e 65 20 |cc> deno|tes one |
|00003580| 6f 72 20 6d 6f 72 65 20 | 63 68 61 72 61 63 74 65 |or more |characte|
|00003590| 72 73 29 0a 58 20 20 2d | 63 3c 63 63 3e 20 2e 20 |rs).X -|c<cc> . |
|000035a0| 2e 20 2e 20 2e 20 3c 63 | 63 3e 20 69 6e 74 72 6f |. . . <c|c> intro|
|000035b0| 64 75 63 65 28 73 29 20 | 61 20 63 6f 6d 6d 65 6e |duce(s) |a commen|
|000035c0| 74 20 75 6e 74 69 6c 20 | 65 6e 64 2d 6f 66 2d 6c |t until |end-of-l|
|000035d0| 69 6e 65 2e 0a 58 20 20 | 28 2b 7c 2d 29 75 20 2e |ine..X |(+|-)u .|
|000035e0| 20 2e 20 2e 20 2e 20 28 | 44 6f 7c 44 6f 6e 27 74 | . . . (|Do|Don't|
|000035f0| 29 20 73 74 72 69 70 20 | 61 20 6c 65 61 64 69 6e |) strip |a leadin|
|00003600| 67 20 60 5f 27 20 66 72 | 6f 6d 20 69 64 73 2e 0a |g `_' fr|om ids..|
|00003610| 58 20 20 28 2b 7c 2d 29 | 61 3c 63 63 3e 20 2e 20 |X (+|-)|a<cc> . |
|00003620| 2e 20 41 6c 6c 6f 77 20 | 3c 63 63 3e 20 69 6e 20 |. Allow |<cc> in |
|00003630| 69 64 73 2c 20 61 6e 64 | 20 28 6b 65 65 70 7c 69 |ids, and| (keep|i|
|00003640| 67 6e 6f 72 65 29 20 74 | 68 6f 73 65 20 69 64 73 |gnore) t|hose ids|
|00003650| 2e 0a 58 20 20 28 2b 7c | 2d 29 70 20 2e 20 2e 20 |..X (+||-)p . . |
|00003660| 2e 20 2e 20 28 44 6f 7c | 44 6f 6e 27 74 29 20 68 |. . (Do||Don't) h|
|00003670| 61 6e 64 6c 65 20 43 2d | 70 72 65 70 72 6f 63 65 |andle C-|preproce|
|00003680| 73 73 6f 72 20 64 69 72 | 65 63 74 69 76 65 73 2e |ssor dir|ectives.|
|00003690| 0a 58 20 20 28 2b 7c 2d | 29 43 20 2e 20 2e 20 2e |.X (+|-|)C . . .|
|000036a0| 20 2e 20 28 44 6f 7c 44 | 6f 6e 27 74 29 20 68 61 | . (Do|D|on't) ha|
|000036b0| 6e 64 6c 65 20 43 2d 73 | 74 79 6c 65 20 63 6f 6d |ndle C-s|tyle com|
|000036c0| 6d 65 6e 74 73 2e 20 28 | 2f 2a 20 2a 2f 29 0a 58 |ments. (|/* */).X|
|000036d0| 0a 58 60 2d 53 61 73 6d | 2d 63 3c 63 63 3e 27 20 |.X`-Sasm|-c<cc>' |
|000036e0| 74 65 6c 6c 73 20 74 68 | 65 20 73 63 61 6e 6e 65 |tells th|e scanne|
|000036f0| 72 20 77 68 61 74 20 63 | 68 61 72 61 63 74 65 72 |r what c|haracter|
|00003700| 73 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 69 6e |s are us|ed to in|
|00003710| 74 72 6f 64 75 63 65 20 | 63 6f 6d 6d 65 6e 74 73 |troduce |comments|
|00003720| 0a 58 74 68 61 74 20 65 | 78 74 65 6e 64 20 74 6f |.Xthat e|xtend to|
|00003730| 20 65 6e 64 2d 6f 66 2d | 6c 69 6e 65 2e 0a 58 0a | end-of-|line..X.|
|00003740| 58 55 73 65 20 60 2d 53 | 61 73 6d 2b 75 27 20 69 |XUse `-S|asm+u' i|
|00003750| 66 20 79 6f 75 72 20 43 | 20 63 6f 6d 70 69 6c 65 |f your C| compile|
|00003760| 72 20 70 72 65 70 65 6e | 64 73 20 6c 65 61 64 69 |r prepen|ds leadi|
|00003770| 6e 67 20 75 6e 64 65 72 | 73 63 6f 72 65 73 20 74 |ng under|scores t|
|00003780| 6f 20 65 78 74 65 72 6e | 61 6c 0a 58 6e 61 6d 65 |o extern|al.Xname|
|00003790| 73 2e 20 20 54 68 69 73 | 20 77 61 79 2c 20 6d 6b |s. This| way, mk|
|000037a0| 69 64 28 31 29 20 77 69 | 6c 6c 20 73 74 72 69 70 |id(1) wi|ll strip|
|000037b0| 20 6c 65 61 64 69 6e 67 | 20 75 6e 64 65 72 73 63 | leading| undersc|
|000037c0| 6f 72 65 73 2c 20 61 6e | 64 20 74 68 65 20 6e 61 |ores, an|d the na|
|000037d0| 6d 65 0a 58 60 66 6f 6f | 27 20 69 6e 20 61 20 43 |me.X`foo|' in a C|
|000037e0| 20 73 6f 75 72 63 65 20 | 77 69 6c 6c 20 62 65 20 | source |will be |
|000037f0| 63 6f 72 72 65 63 74 6c | 79 20 61 73 73 6f 63 69 |correctl|y associ|
|00003800| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 6e 61 |ated wit|h the na|
|00003810| 6d 65 20 60 5f 66 6f 6f | 27 0a 58 69 6e 20 61 6e |me `_foo|'.Xin an|
|00003820| 20 61 73 73 65 6d 62 6c | 65 72 20 73 6f 75 72 63 | assembl|er sourc|
|00003830| 65 2e 20 20 49 66 20 79 | 6f 75 72 20 63 6f 6d 70 |e. If y|our comp|
|00003840| 69 6c 65 72 20 64 6f 65 | 73 6e 27 74 20 70 72 65 |iler doe|sn't pre|
|00003850| 70 65 6e 64 20 6c 65 61 | 64 69 6e 67 0a 58 75 6e |pend lea|ding.Xun|
|00003860| 64 65 72 73 63 6f 72 65 | 73 2c 20 75 73 65 20 60 |derscore|s, use `|
|00003870| 2d 53 61 73 6d 2d 75 27 | 2e 0a 58 0a 58 4d 61 6e |-Sasm-u'|..X.XMan|
|00003880| 79 20 61 73 73 65 6d 62 | 6c 65 72 73 20 61 6c 6c |y assemb|lers all|
|00003890| 6f 77 20 73 70 65 63 69 | 61 6c 20 63 68 61 72 61 |ow speci|al chara|
|000038a0| 63 74 65 72 73 20 74 6f | 20 62 65 20 6d 69 78 65 |cters to| be mixe|
|000038b0| 64 20 77 69 74 68 0a 58 | 61 6c 70 68 61 2d 6e 75 |d with.X|alpha-nu|
|000038c0| 6d 65 72 69 63 73 20 69 | 6e 20 6c 61 62 65 6c 2c |merics i|n label,|
|000038d0| 20 63 6f 6e 73 74 61 6e | 74 20 61 6e 64 20 72 65 | constan|t and re|
|000038e0| 67 69 73 74 65 72 20 6e | 61 6d 65 73 2e 20 20 43 |gister n|ames. C|
|000038f0| 6f 6d 6d 6f 6e 20 63 68 | 6f 69 63 65 73 0a 58 61 |ommon ch|oices.Xa|
|00003900| 72 65 20 60 2e 27 2c 20 | 60 25 27 2c 20 61 6e 64 |re `.', |`%', and|
|00003910| 20 60 24 27 2e 20 20 54 | 68 75 73 2c 20 61 20 6c | `$'. T|hus, a l|
|00003920| 61 62 65 6c 20 73 75 63 | 68 20 61 73 20 60 4c 25 |abel suc|h as `L%|
|00003930| 31 32 33 27 20 73 68 6f | 75 6c 64 20 62 65 20 73 |123' sho|uld be s|
|00003940| 63 61 6e 6e 65 64 0a 58 | 61 73 20 6f 6e 65 20 74 |canned.X|as one t|
|00003950| 6f 6b 65 6e 2c 20 6e 6f | 74 20 62 72 6f 6b 65 6e |oken, no|t broken|
|00003960| 20 75 70 20 69 6e 74 6f | 20 74 68 65 20 6e 61 6d | up into| the nam|
|00003970| 65 20 60 4c 27 20 61 6e | 64 20 74 68 65 20 6e 75 |e `L' an|d the nu|
|00003980| 6d 62 65 72 20 31 32 33 | 2e 0a 58 60 2d 53 61 73 |mber 123|..X`-Sas|
|00003990| 6d 2d 61 25 2e 27 20 74 | 65 6c 6c 73 20 74 68 65 |m-a%.' t|ells the|
|000039a0| 20 73 63 61 6e 6e 65 72 | 20 74 6f 20 61 6c 6c 6f | scanner| to allo|
|000039b0| 77 20 60 25 27 20 61 6e | 64 20 60 2e 27 20 69 6e |w `%' an|d `.' in|
|000039c0| 20 74 6f 6b 65 6e 73 2c | 20 62 75 74 20 74 6f 20 | tokens,| but to |
|000039d0| 74 68 72 6f 77 0a 58 61 | 77 61 79 20 74 6f 6b 65 |throw.Xa|way toke|
|000039e0| 6e 73 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 60 25 |ns conta|ining `%|
|000039f0| 27 20 6f 72 20 60 2e 27 | 20 60 2d 53 61 73 6d 2b |' or `.'| `-Sasm+|
|00003a00| 61 25 2e 27 20 74 65 6c | 6c 73 20 74 68 65 20 73 |a%.' tel|ls the s|
|00003a10| 63 61 6e 6e 65 72 20 74 | 6f 20 6b 65 65 70 20 73 |canner t|o keep s|
|00003a20| 75 63 68 0a 58 74 6f 6b | 65 6e 73 20 61 6e 64 20 |uch.Xtok|ens and |
|00003a30| 70 75 74 20 74 68 65 6d | 20 69 6e 74 6f 20 74 68 |put them| into th|
|00003a40| 65 20 64 61 74 61 62 61 | 73 65 2e 0a 58 0a 58 0a |e databa|se..X.X.|
|00003a50| 58 60 2d 53 61 73 6d 2b | 70 27 20 74 65 6c 6c 73 |X`-Sasm+|p' tells|
|00003a60| 20 74 68 65 20 73 63 61 | 6e 6e 65 72 20 74 6f 20 | the sca|nner to |
|00003a70| 68 61 6e 64 6c 65 20 60 | 23 69 6e 63 6c 75 64 65 |handle `|#include|
|00003a80| 27 20 61 6e 64 20 60 23 | 64 65 66 69 6e 65 27 20 |' and `#|define' |
|00003a90| 6c 69 6e 65 73 20 61 73 | 0a 58 69 6e 20 43 20 73 |lines as|.Xin C s|
|00003aa0| 6f 75 72 63 65 2c 20 61 | 6e 64 20 60 2d 53 61 73 |ource, a|nd `-Sas|
|00003ab0| 6d 2b 43 27 20 74 65 6c | 6c 73 20 69 74 20 74 6f |m+C' tel|ls it to|
|00003ac0| 20 69 67 6e 6f 72 65 20 | 43 2d 73 74 79 6c 65 20 | ignore |C-style |
|00003ad0| 63 6f 6d 6d 65 6e 74 73 | 2e 0a 58 0a 58 48 65 72 |comments|..X.XHer|
|00003ae0| 65 27 73 20 74 68 65 20 | 73 63 61 6e 6e 65 72 2d |e's the |scanner-|
|00003af0| 75 73 61 67 65 20 66 6f | 72 20 43 3a 0a 58 0a 58 |usage fo|r C:.X.X|
|00003b00| 24 20 6d 6b 69 64 20 2d | 53 63 5c 3f 0a 58 54 68 |$ mkid -|Sc\?.XTh|
|00003b10| 65 20 43 20 73 63 61 6e | 6e 65 72 20 61 72 67 75 |e C scan|ner argu|
|00003b20| 6d 65 6e 74 73 20 74 61 | 6b 65 20 74 68 65 20 66 |ments ta|ke the f|
|00003b30| 6f 72 6d 20 2d 53 63 3c | 61 72 67 3e 2c 20 77 68 |orm -Sc<|arg>, wh|
|00003b40| 65 72 65 20 3c 61 72 67 | 3e 0a 58 69 73 20 6f 6e |ere <arg|>.Xis on|
|00003b50| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|00003b60| 6e 67 3a 20 28 3c 63 63 | 3e 20 64 65 6e 6f 74 65 |ng: (<cc|> denote|
|00003b70| 73 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 63 68 |s one or| more ch|
|00003b80| 61 72 61 63 74 65 72 73 | 29 0a 58 20 20 28 2b 7c |aracters|).X (+||
|00003b90| 2d 29 75 20 2e 20 2e 20 | 2e 20 2e 20 28 44 6f 7c |-)u . . |. . (Do||
|00003ba0| 44 6f 6e 27 74 29 20 73 | 74 72 69 70 20 61 20 6c |Don't) s|trip a l|
|00003bb0| 65 61 64 69 6e 67 20 60 | 5f 27 20 66 72 6f 6d 20 |eading `|_' from |
|00003bc0| 69 64 73 20 69 6e 20 73 | 74 72 69 6e 67 73 2e 0a |ids in s|trings..|
|00003bd0| 58 20 20 2d 73 3c 63 63 | 3e 20 2e 20 2e 20 2e 20 |X -s<cc|> . . . |
|00003be0| 2e 20 41 6c 6c 6f 77 20 | 3c 63 63 3e 20 69 6e 20 |. Allow |<cc> in |
|00003bf0| 73 74 72 69 6e 67 20 69 | 64 73 2e 0a 58 0a 58 54 |string i|ds..X.XT|
|00003c00| 68 65 20 60 2b 75 27 20 | 61 72 67 75 6d 65 6e 74 |he `+u' |argument|
|00003c10| 20 69 73 20 61 6b 69 6e | 20 74 6f 20 74 68 65 20 | is akin| to the |
|00003c20| 61 72 67 75 6d 65 6e 74 | 20 66 6f 72 20 74 68 65 |argument| for the|
|00003c30| 20 61 73 73 65 6d 62 6c | 79 2d 6c 61 6e 67 75 61 | assembl|y-langua|
|00003c40| 67 65 0a 58 73 63 61 6e | 6e 65 72 2e 20 20 4d 6b |ge.Xscan|ner. Mk|
|00003c50| 69 64 28 31 29 20 6b 65 | 65 70 73 20 74 68 65 20 |id(1) ke|eps the |
|00003c60| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 71 75 6f 74 |contents| of quot|
|00003c70| 65 64 2d 73 74 72 69 6e | 67 73 20 69 66 20 74 68 |ed-strin|gs if th|
|00003c80| 65 20 73 74 72 69 6e 67 | 0a 58 63 6f 6e 74 61 69 |e string|.Xcontai|
|00003c90| 6e 73 20 61 20 73 69 6e | 67 6c 65 20 76 61 6c 69 |ns a sin|gle vali|
|00003ca0| 64 20 43 20 6e 61 6d 65 | 20 61 6e 64 20 6e 6f 74 |d C name| and not|
|00003cb0| 68 69 6e 67 20 65 6c 73 | 65 2e 20 20 45 2e 67 2e |hing els|e. E.g.|
|00003cc0| 20 20 6d 6b 69 64 28 31 | 29 20 77 6f 75 6c 64 0a | mkid(1|) would.|
|00003cd0| 58 6b 65 65 70 20 74 68 | 65 20 63 6f 6e 74 65 6e |Xkeep th|e conten|
|00003ce0| 74 73 20 6f 66 20 22 5f | 70 72 6f 63 22 2e 20 20 |ts of "_|proc". |
|00003cf0| 53 75 63 68 20 73 74 72 | 69 6e 67 73 20 61 72 65 |Such str|ings are|
|00003d00| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 20 62 65 63 | interes|ting bec|
|00003d10| 61 75 73 65 0a 58 74 68 | 65 79 20 6d 61 79 20 63 |ause.Xth|ey may c|
|00003d20| 6f 6e 74 61 69 6e 20 73 | 79 6d 62 6f 6c 20 6e 61 |ontain s|ymbol na|
|00003d30| 6d 65 73 20 74 68 61 74 | 20 61 20 70 72 6f 67 72 |mes that| a progr|
|00003d40| 61 6d 20 75 73 65 73 20 | 66 6f 72 20 6e 6c 69 73 |am uses |for nlis|
|00003d50| 74 20 6c 6f 6f 6b 75 70 | 73 2e 0a 58 53 6f 2c 20 |t lookup|s..XSo, |
|00003d60| 69 66 20 79 6f 75 72 20 | 63 6f 6d 70 69 6c 65 72 |if your |compiler|
|00003d70| 20 70 72 65 70 65 6e 64 | 73 20 75 6e 64 65 72 73 | prepend|s unders|
|00003d80| 63 6f 72 65 73 20 74 6f | 20 65 78 74 65 72 6e 61 |cores to| externa|
|00003d90| 6c 20 73 79 6d 62 6f 6c | 73 2c 20 75 73 65 0a 58 |l symbol|s, use.X|
|00003da0| 60 2d 53 63 2b 75 27 20 | 73 6f 20 74 68 61 74 20 |`-Sc+u' |so that |
|00003db0| 6d 6b 69 64 28 31 29 20 | 77 69 6c 6c 20 73 74 72 |mkid(1) |will str|
|00003dc0| 69 70 20 74 68 65 6d 20 | 62 61 63 6b 20 6f 66 66 |ip them |back off|
|00003dd0| 2e 0a 58 0a 58 4d 6b 69 | 64 28 31 29 20 6e 6f 72 |..X.XMki|d(1) nor|
|00003de0| 6d 61 6c 6c 79 20 74 68 | 72 6f 77 73 20 61 77 61 |mally th|rows awa|
|00003df0| 79 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |y the co|ntents o|
|00003e00| 66 20 71 75 6f 74 65 64 | 20 73 74 72 69 6e 67 73 |f quoted| strings|
|00003e10| 20 74 68 61 74 20 68 61 | 76 65 0a 58 61 6e 79 74 | that ha|ve.Xanyt|
|00003e20| 68 69 6e 67 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |hing oth|er than |
|00003e30| 61 20 73 69 6e 67 6c 65 | 20 6e 61 6d 65 20 69 6e |a single| name in|
|00003e40| 20 74 68 65 6d 2e 20 20 | 59 6f 75 20 63 61 6e 20 | them. |You can |
|00003e50| 74 65 6c 6c 20 6d 6b 69 | 64 28 31 29 20 74 6f 0a |tell mki|d(1) to.|
|00003e60| 58 61 63 63 65 70 74 20 | 61 64 64 69 74 69 6f 6e |Xaccept |addition|
|00003e70| 61 6c 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |al chara|cters in|
|00003e80| 20 73 74 72 69 6e 67 73 | 20 77 69 74 68 20 60 2d | strings| with `-|
|00003e90| 53 63 2d 73 3c 63 63 3e | 27 20 77 68 65 72 65 20 |Sc-s<cc>|' where |
|00003ea0| 3c 63 63 3e 20 69 73 0a | 58 6f 6e 65 20 6f 72 20 |<cc> is.|Xone or |
|00003eb0| 6d 6f 72 65 20 73 70 65 | 63 69 61 6c 20 63 68 61 |more spe|cial cha|
|00003ec0| 72 61 63 74 65 72 73 2e | 20 20 45 2e 67 2e 20 60 |racters.| E.g. `|
|00003ed0| 2d 53 63 2d 73 2f 2e 2d | 3a 2c 27 20 77 69 6c 6c |-Sc-s/.-|:,' will|
|00003ee0| 20 69 6e 63 6c 75 64 65 | 20 6d 6f 73 74 20 6f 66 | include| most of|
|00003ef0| 0a 58 74 68 65 20 73 74 | 72 69 6e 67 73 20 63 6f |.Xthe st|rings co|
|00003f00| 6e 74 61 69 6e 69 6e 67 | 20 70 61 74 68 6e 61 6d |ntaining| pathnam|
|00003f10| 65 73 20 74 68 61 74 20 | 79 6f 75 20 61 72 65 20 |es that |you are |
|00003f20| 6c 69 6b 65 6c 79 20 74 | 6f 20 65 6e 63 6f 75 6e |likely t|o encoun|
|00003f30| 74 65 72 2e 0a 58 0a 58 | 41 6e 6f 74 68 65 72 20 |ter..X.X|Another |
|00003f40| 63 6c 61 73 73 20 6f 66 | 20 73 63 61 6e 6e 65 72 |class of| scanner|
|00003f50| 20 61 72 67 75 6d 65 6e | 74 20 61 6c 6c 6f 77 73 | argumen|t allows|
|00003f60| 20 79 6f 75 20 74 6f 20 | 61 73 73 6f 63 69 61 74 | you to |associat|
|00003f70| 65 20 61 20 73 75 66 66 | 69 78 0a 58 77 69 74 68 |e a suff|ix.Xwith|
|00003f80| 20 61 20 6c 61 6e 67 75 | 61 67 65 2e 20 20 45 2e | a langu|age. E.|
|00003f90| 67 2e 20 60 2d 53 2e 79 | 3d 63 27 20 74 65 6c 6c |g. `-S.y|=c' tell|
|00003fa0| 73 20 6d 6b 69 64 28 31 | 29 20 74 6f 20 75 73 65 |s mkid(1|) to use|
|00003fb0| 20 74 68 65 20 43 20 6c | 61 6e 67 75 61 67 65 0a | the C l|anguage.|
|00003fc0| 58 73 63 61 6e 6e 65 72 | 20 6f 6e 20 61 6c 6c 20 |Xscanner| on all |
|00003fd0| 66 69 6c 65 73 20 65 6e | 64 69 6e 67 20 77 69 74 |files en|ding wit|
|00003fe0| 68 20 2e 79 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 |h .y. Y|ou can a|
|00003ff0| 73 6b 20 6d 6b 69 64 28 | 31 29 20 66 6f 72 20 74 |sk mkid(|1) for t|
|00004000| 68 65 0a 58 61 76 61 69 | 6c 61 62 6c 65 20 73 63 |he.Xavai|lable sc|
|00004010| 61 6e 6e 65 72 73 20 61 | 6e 64 20 61 73 73 6f 63 |anners a|nd assoc|
|00004020| 69 61 74 65 64 20 73 75 | 66 66 69 78 65 73 20 6c |iated su|ffixes l|
|00004030| 69 6b 65 20 73 6f 3a 0a | 58 0a 58 24 20 6d 6b 69 |ike so:.|X.X$ mki|
|00004040| 64 20 2d 53 5c 3f 3d 5c | 3f 0a 58 2e 63 3d 63 2c |d -S\?=\|?.X.c=c,|
|00004050| 20 2e 68 3d 63 2c 20 2e | 79 3d 63 2c 20 2e 73 3d | .h=c, .|y=c, .s=|
|00004060| 61 73 6d 2c 20 2e 70 3d | 70 61 73 63 61 6c 2c 20 |asm, .p=|pascal, |
|00004070| 2e 70 61 73 3d 70 61 73 | 63 61 6c 0a 58 0a 58 50 |.pas=pas|cal.X.XP|
|00004080| 6c 65 61 73 65 20 6e 6f | 74 65 2c 20 6d 6b 69 64 |lease no|te, mkid|
|00004090| 28 31 29 20 69 73 20 6c | 79 69 6e 67 20 74 6f 20 |(1) is l|ying to |
|000040a0| 79 6f 75 20 61 62 6f 75 | 74 20 69 74 73 20 50 61 |you abou|t its Pa|
|000040b0| 73 63 61 6c 20 70 72 6f | 77 65 73 73 21 0a 58 41 |scal pro|wess!.XA|
|000040c0| 74 20 74 68 65 20 74 69 | 6d 65 20 6f 66 20 74 68 |t the ti|me of th|
|000040d0| 69 73 20 70 6f 73 74 69 | 6e 67 2c 20 74 68 65 72 |is posti|ng, ther|
|000040e0| 65 20 61 72 65 20 73 63 | 61 6e 6e 65 72 73 20 66 |e are sc|anners f|
|000040f0| 6f 72 20 43 20 61 6e 64 | 20 61 73 73 65 6d 62 6c |or C and| assembl|
|00004100| 79 0a 58 6c 61 6e 67 75 | 61 67 65 20 73 6f 75 72 |y.Xlangu|age sour|
|00004110| 63 65 73 2e 20 20 54 68 | 65 72 65 20 61 72 65 20 |ces. Th|ere are |
|00004120| 61 6c 73 6f 20 73 74 75 | 62 73 20 66 6f 72 20 50 |also stu|bs for P|
|00004130| 61 73 63 61 6c 2c 20 41 | 64 61 20 61 6e 64 20 4c |ascal, A|da and L|
|00004140| 49 53 50 2e 20 20 54 68 | 65 0a 58 73 63 61 6e 6e |ISP. Th|e.Xscann|
|00004150| 65 72 73 20 61 72 65 20 | 76 65 72 79 20 66 61 73 |ers are |very fas|
|00004160| 74 2e 20 20 54 68 65 20 | 61 73 73 65 6d 62 6c 79 |t. The |assembly|
|00004170| 20 6c 61 6e 67 75 61 67 | 65 20 73 63 61 6e 6e 65 | languag|e scanne|
|00004180| 72 20 6b 6e 6f 77 73 20 | 68 6f 77 0a 58 74 6f 20 |r knows |how.Xto |
|00004190| 74 68 72 6f 77 20 61 77 | 61 79 20 43 2d 73 74 79 |throw aw|ay C-sty|
|000041a0| 6c 65 20 63 6f 6d 6d 65 | 6e 74 73 20 61 73 20 77 |le comme|nts as w|
|000041b0| 65 6c 6c 20 61 73 20 74 | 68 65 20 74 72 61 64 69 |ell as t|he tradi|
|000041c0| 74 69 6f 6e 61 6c 20 60 | 63 6f 6d 6d 65 6e 74 2d |tional `|comment-|
|000041d0| 0a 58 63 68 61 72 61 63 | 74 65 72 2d 75 6e 74 69 |.Xcharac|ter-unti|
|000041e0| 6c 2d 65 6e 64 2d 6f 66 | 2d 6c 69 6e 65 27 20 73 |l-end-of|-line' s|
|000041f0| 74 79 6c 65 2e 20 20 49 | 6e 20 6f 72 64 65 72 20 |tyle. I|n order |
|00004200| 74 6f 20 74 65 73 74 20 | 6e 65 77 20 73 63 61 6e |to test |new scan|
|00004210| 6e 65 72 73 2c 0a 58 74 | 68 65 72 65 20 69 73 20 |ners,.Xt|here is |
|00004220| 61 20 73 63 61 6e 6e 65 | 72 20 64 72 69 76 65 72 |a scanne|r driver|
|00004230| 20 63 61 6c 6c 65 64 20 | 69 64 78 28 31 29 2e 20 | called |idx(1). |
|00004240| 20 49 64 78 28 31 29 20 | 73 69 6d 70 6c 79 20 63 | Idx(1) |simply c|
|00004250| 61 6c 6c 73 20 74 68 65 | 0a 58 73 63 61 6e 6e 65 |alls the|.Xscanne|
|00004260| 72 20 74 6f 20 67 65 74 | 20 69 64 65 6e 74 69 66 |r to get| identif|
|00004270| 69 65 72 73 20 6f 6e 65 | 2d 61 74 2d 61 2d 74 69 |iers one|-at-a-ti|
|00004280| 6d 65 20 70 72 69 6e 74 | 73 20 74 68 65 6d 20 6f |me print|s them o|
|00004290| 6e 20 73 74 64 6f 75 74 | 20 6f 6e 65 2d 70 65 72 |n stdout| one-per|
|000042a0| 2d 6c 69 6e 65 2e 0a 58 | 0a 58 46 6f 72 20 6d 6f |-line..X|.XFor mo|
|000042b0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |re infor|mation, |
|000042c0| 72 65 61 64 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 |read the| manual |
|000042d0| 70 61 67 65 73 21 0a 58 | 0a 58 48 61 70 70 79 20 |pages!.X|.XHappy |
|000042e0| 48 61 63 6b 69 6e 67 2c | 0a 58 2d 2d 0a 58 2d 2d |Hacking,|.X--.X--|
|000042f0| 20 47 72 65 67 20 4d 63 | 47 61 72 79 0a 58 2d 2d | Greg Mc|Gary.X--|
|00004300| 20 50 2e 4f 2e 20 42 6f | 78 20 32 38 36 0a 58 2d | P.O. Bo|x 286.X-|
|00004310| 2d 20 4c 69 6e 63 6f 6c | 6e 2c 20 4d 41 20 20 30 |- Lincol|n, MA 0|
|00004320| 31 37 37 33 0a 58 2d 2d | 0a 58 2d 2d 20 39 2f 31 |1773.X--|.X-- 9/1|
|00004330| 35 2f 38 37 0a 58 2d 2d | 0a 58 2d 2d 09 55 6e 74 |5/87.X--|.X--.Unt|
|00004340| 69 6c 20 74 68 65 20 65 | 6e 64 20 6f 66 20 31 39 |il the e|nd of 19|
|00004350| 38 37 2c 0a 58 2d 2d 09 | 43 6f 6e 73 75 6c 74 69 |87,.X--.|Consulti|
|00004360| 6e 67 20 74 6f 20 53 75 | 6e 27 73 20 45 61 73 74 |ng to Su|n's East|
|00004370| 20 43 6f 61 73 74 20 44 | 69 76 69 73 69 6f 6e 3a | Coast D|ivision:|
|00004380| 0a 58 2d 2d 09 09 67 6d | 63 67 61 72 79 40 65 63 |.X--..gm|cgary@ec|
|00004390| 64 2e 73 75 6e 2e 63 6f | 6d 0a 58 2d 2d 09 09 67 |d.sun.co|m.X--..g|
|000043a0| 6d 63 67 61 72 79 40 73 | 75 6e 65 61 73 74 2e 75 |mcgary@s|uneast.u|
|000043b0| 75 2e 6e 65 74 0a 58 2d | 2d 0a 58 2d 2d 09 41 66 |u.net.X-|-.X--.Af|
|000043c0| 74 65 72 20 74 68 61 74 | 2c 20 70 72 6f 62 61 62 |ter that|, probab|
|000043d0| 6c 79 20 63 6f 6e 73 75 | 6c 74 69 6e 67 20 69 6e |ly consu|lting in|
|000043e0| 20 45 75 72 6f 70 65 2e | 2e 2e 0a 45 4e 44 5f 4f | Europe.|...END_O|
|000043f0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|00004400| 36 30 33 37 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |6037 -ne| `wc -c |
|00004410| 3c 27 54 55 54 4f 52 49 | 41 4c 27 60 3b 20 74 68 |<'TUTORI|AL'`; th|
|00004420| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00004430| 3a 20 5c 22 27 54 55 54 | 4f 52 49 41 4c 27 5c 22 |: \"'TUT|ORIAL'\"|
|00004440| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004450| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00004460| 65 6e 64 20 6f 66 20 27 | 54 55 54 4f 52 49 41 4c |end of '|TUTORIAL|
|00004470| 27 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |'.fi.ech|o shar: |
|00004480| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 38 |End of a|rchive 8|
|00004490| 20 5c 28 6f 66 20 31 31 | 5c 29 2e 0a 63 70 20 2f | \(of 11|\)..cp /|
|000044a0| 64 65 76 2f 6e 75 6c 6c | 20 61 72 6b 38 69 73 64 |dev/null| ark8isd|
|000044b0| 6f 6e 65 0a 4d 49 53 53 | 49 4e 47 3d 22 22 0a 66 |one.MISS|ING="".f|
|000044c0| 6f 72 20 49 20 69 6e 20 | 31 20 32 20 33 20 34 20 |or I in |1 2 3 4 |
|000044d0| 35 20 36 20 37 20 38 20 | 39 20 31 30 20 31 31 20 |5 6 7 8 |9 10 11 |
|000044e0| 3b 20 64 6f 0a 20 20 20 | 20 69 66 20 74 65 73 74 |; do. | if test|
|000044f0| 20 21 20 2d 66 20 61 72 | 6b 24 7b 49 7d 69 73 64 | ! -f ar|k${I}isd|
|00004500| 6f 6e 65 20 3b 20 74 68 | 65 6e 0a 09 4d 49 53 53 |one ; th|en..MISS|
|00004510| 49 4e 47 3d 22 24 7b 4d | 49 53 53 49 4e 47 7d 20 |ING="${M|ISSING} |
|00004520| 24 7b 49 7d 22 0a 20 20 | 20 20 66 69 0a 64 6f 6e |${I}". | fi.don|
|00004530| 65 0a 69 66 20 74 65 73 | 74 20 22 24 7b 4d 49 53 |e.if tes|t "${MIS|
|00004540| 53 49 4e 47 7d 22 20 3d | 20 22 22 20 3b 20 74 68 |SING}" =| "" ; th|
|00004550| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 59 6f 75 20 |en. e|cho You |
|00004560| 68 61 76 65 20 75 6e 70 | 61 63 6b 65 64 20 61 6c |have unp|acked al|
|00004570| 6c 20 31 31 20 61 72 63 | 68 69 76 65 73 2e 0a 20 |l 11 arc|hives.. |
|00004580| 20 20 20 72 6d 20 2d 66 | 20 61 72 6b 5b 31 2d 39 | rm -f| ark[1-9|
|00004590| 5d 69 73 64 6f 6e 65 20 | 61 72 6b 5b 31 2d 39 5d |]isdone |ark[1-9]|
|000045a0| 5b 30 2d 39 5d 69 73 64 | 6f 6e 65 0a 65 6c 73 65 |[0-9]isd|one.else|
|000045b0| 0a 20 20 20 20 65 63 68 | 6f 20 59 6f 75 20 73 74 |. ech|o You st|
|000045c0| 69 6c 6c 20 6e 65 65 64 | 20 74 6f 20 75 6e 70 61 |ill need| to unpa|
|000045d0| 63 6b 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ck the f|ollowing|
|000045e0| 20 61 72 63 68 69 76 65 | 73 3a 0a 20 20 20 20 65 | archive|s:. e|
|000045f0| 63 68 6f 20 22 20 20 20 | 20 20 20 20 20 22 20 24 |cho " | " $|
|00004600| 7b 4d 49 53 53 49 4e 47 | 7d 0a 66 69 0a 23 23 20 |{MISSING|}.fi.## |
|00004610| 20 45 6e 64 20 6f 66 20 | 73 68 65 6c 6c 20 61 72 | End of |shell ar|
|00004620| 63 68 69 76 65 2e 0a 65 | 78 69 74 20 30 0a 2d 2d |chive..e|xit 0.--|
|00004630| 0a 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=======|========|
|00004640| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004650| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004660| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004670| 3d 3d 3d 3d 3d 3d 3d 0a | 64 6f 6d 61 69 6e 3a 20 |=======.|domain: |
|00004680| 74 61 68 6f 72 73 6c 65 | 79 40 63 73 64 2e 68 61 |tahorsle|y@csd.ha|
|00004690| 72 72 69 73 2e 63 6f 6d | 20 20 20 20 20 20 20 55 |rris.com| U|
|000046a0| 53 4d 61 69 6c 3a 20 54 | 6f 6d 20 48 6f 72 73 6c |SMail: T|om Horsl|
|000046b0| 65 79 0a 20 20 75 75 63 | 70 3a 20 2e 2e 2e 21 75 |ey. uuc|p: ...!u|
|000046c0| 75 6e 65 74 21 68 63 78 | 31 21 74 61 68 6f 72 73 |unet!hcx|1!tahors|
|000046d0| 6c 65 79 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ley | |
|000046e0| 20 20 35 31 31 20 4b 69 | 6e 67 62 69 72 64 20 43 | 511 Ki|ngbird C|
|000046f0| 69 72 63 6c 65 0a 20 20 | 20 20 20 20 20 20 20 20 |ircle. | |
|00004700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004720| 20 20 20 20 20 44 65 6c | 72 61 79 20 42 65 61 63 | Del|ray Beac|
|00004730| 68 2c 20 46 4c 20 20 33 | 33 34 34 34 0a 2b 3d 3d |h, FL 3|3444.+==|
|00004740| 3d 3d 20 43 65 6e 73 6f | 72 73 68 69 70 20 69 73 |== Censo|rship is|
|00004750| 20 74 68 65 20 6f 6e 6c | 79 20 66 6f 72 6d 20 6f | the onl|y form o|
|00004760| 66 20 4f 62 73 63 65 6e | 69 74 79 20 3d 3d 3d 3d |f Obscen|ity ====|
|00004770| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004780| 3d 3d 2b 0a 7c 20 20 20 | 20 20 28 57 61 69 74 2c |==+.| | (Wait,|
|00004790| 20 49 20 66 6f 72 67 6f | 74 20 67 6f 76 65 72 6e | I forgo|t govern|
|000047a0| 6d 65 6e 74 20 74 6f 62 | 61 63 63 6f 20 73 75 62 |ment tob|acco sub|
|000047b0| 73 69 64 69 65 73 2e 2e | 2e 29 20 20 20 20 20 20 |sidies..|.) |
|000047c0| 20 20 20 20 20 20 20 20 | 20 7c 0a 2b 3d 3d 3d 3d | | |.+====|
|000047d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000047e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000047f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004810| 2b 0a | |+. | |
+--------+-------------------------+-------------------------+--------+--------+