home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 63 70 63 61 | 68 69 6c 40 76 74 69 2e |om: cpca|hil@vti.|
|00000030| 63 6f 6d 20 28 43 6f 6e | 6f 72 20 50 2e 20 43 61 |com (Con|or P. Ca|
|00000040| 68 69 6c 6c 29 0a 53 75 | 62 6a 65 63 74 3a 20 20 |hill).Su|bject: |
|00000050| 76 33 32 69 30 30 37 3a | 20 20 64 62 6d 61 6c 6c |v32i007:| dbmall|
|00000060| 6f 63 20 2d 20 44 65 62 | 75 67 20 4d 61 6c 6c 6f |oc - Deb|ug Mallo|
|00000070| 63 20 4c 69 62 72 61 72 | 79 20 50 4c 31 34 2c 20 |c Librar|y PL14, |
|00000080| 50 61 72 74 30 32 2f 31 | 30 0a 4d 65 73 73 61 67 |Part02/1|0.Messag|
|00000090| 65 2d 49 44 3a 20 3c 31 | 39 39 32 53 65 70 34 2e |e-ID: <1|992Sep4.|
|000000a0| 31 35 31 38 30 33 2e 31 | 32 34 30 39 40 73 70 61 |151803.1|2409@spa|
|000000b0| 72 6b 79 2e 69 6d 64 2e | 73 74 65 72 6c 69 6e 67 |rky.imd.|sterling|
|000000c0| 2e 63 6f 6d 3e 0a 58 2d | 4d 64 34 2d 53 69 67 6e |.com>.X-|Md4-Sign|
|000000d0| 61 74 75 72 65 3a 20 63 | 64 61 32 62 38 30 34 32 |ature: c|da2b8042|
|000000e0| 64 64 39 62 31 34 38 30 | 38 32 31 66 34 64 36 35 |dd9b1480|821f4d65|
|000000f0| 65 33 62 32 66 64 36 0a | 44 61 74 65 3a 20 46 72 |e3b2fd6.|Date: Fr|
|00000100| 69 2c 20 34 20 53 65 70 | 20 31 39 39 32 20 31 35 |i, 4 Sep| 1992 15|
|00000110| 3a 31 38 3a 30 33 20 47 | 4d 54 0a 41 70 70 72 6f |:18:03 G|MT.Appro|
|00000120| 76 65 64 3a 20 6b 65 6e | 74 40 73 70 61 72 6b 79 |ved: ken|t@sparky|
|00000130| 2e 69 6d 64 2e 73 74 65 | 72 6c 69 6e 67 2e 63 6f |.imd.ste|rling.co|
|00000140| 6d 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |m..Submi|tted-by:|
|00000150| 20 63 70 63 61 68 69 6c | 40 76 74 69 2e 63 6f 6d | cpcahil|@vti.com|
|00000160| 20 28 43 6f 6e 6f 72 20 | 50 2e 20 43 61 68 69 6c | (Conor |P. Cahil|
|00000170| 6c 29 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |l).Posti|ng-numbe|
|00000180| 72 3a 20 56 6f 6c 75 6d | 65 20 33 32 2c 20 49 73 |r: Volum|e 32, Is|
|00000190| 73 75 65 20 37 0a 41 72 | 63 68 69 76 65 2d 6e 61 |sue 7.Ar|chive-na|
|000001a0| 6d 65 3a 20 64 62 6d 61 | 6c 6c 6f 63 2f 70 61 72 |me: dbma|lloc/par|
|000001b0| 74 30 32 0a 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 3a |t02.Envi|ronment:|
|000001c0| 20 43 2c 20 55 4e 49 58 | 0a 0a 23 21 20 2f 62 69 | C, UNIX|..#! /bi|
|000001d0| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|000001e0| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2e 20 | shell a|rchive. |
|000001f0| 20 52 65 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 | Remove |anything|
|00000200| 20 62 65 66 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | before |this lin|
|00000210| 65 2c 20 74 68 65 6e 20 | 75 6e 70 61 63 6b 0a 23 |e, then |unpack.#|
|00000220| 20 69 74 20 62 79 20 73 | 61 76 69 6e 67 20 69 74 | it by s|aving it|
|00000230| 20 69 6e 74 6f 20 61 20 | 66 69 6c 65 20 61 6e 64 | into a |file and|
|00000240| 20 74 79 70 69 6e 67 20 | 22 73 68 20 66 69 6c 65 | typing |"sh file|
|00000250| 22 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |". To o|verwrite|
|00000260| 20 65 78 69 73 74 69 6e | 67 0a 23 20 66 69 6c 65 | existin|g.# file|
|00000270| 73 2c 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |s, type |"sh file|
|00000280| 20 2d 63 22 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 | -c". Y|ou can a|
|00000290| 6c 73 6f 20 66 65 65 64 | 20 74 68 69 73 20 61 73 |lso feed| this as|
|000002a0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000002b0| 76 69 61 0a 23 20 75 6e | 73 68 61 72 2c 20 6f 72 |via.# un|shar, or|
|000002c0| 20 62 79 20 74 79 70 69 | 6e 67 20 22 73 68 20 3c | by typi|ng "sh <|
|000002d0| 66 69 6c 65 22 2c 20 65 | 2e 67 2e 2e 20 20 49 66 |file", e|.g.. If|
|000002e0| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|000002f0| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 0a 23 | complet|e, you.#|
|00000300| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|00000310| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |llowing |message |
|00000320| 61 74 20 74 68 65 20 65 | 6e 64 3a 0a 23 09 09 22 |at the e|nd:.#.."|
|00000330| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 32 |End of a|rchive 2|
|00000340| 20 28 6f 66 20 31 30 29 | 2e 22 0a 23 20 43 6f 6e | (of 10)|.".# Con|
|00000350| 74 65 6e 74 73 3a 20 20 | 50 52 4f 42 4c 45 4d 53 |tents: |PROBLEMS|
|00000360| 20 42 75 69 6c 64 70 61 | 74 63 68 20 43 6f 6e 66 | Buildpa|tch Conf|
|00000370| 69 67 75 72 65 20 52 75 | 6e 74 65 73 74 73 20 74 |igure Ru|ntests t|
|00000380| 65 73 74 73 74 61 63 6b | 2e 63 0a 23 20 57 72 61 |eststack|.c.# Wra|
|00000390| 70 70 65 64 20 62 79 20 | 63 70 63 61 68 69 6c 40 |pped by |cpcahil@|
|000003a0| 76 69 72 74 65 63 68 20 | 6f 6e 20 54 68 75 20 53 |virtech |on Thu S|
|000003b0| 65 70 20 20 33 20 31 38 | 3a 33 39 3a 31 38 20 31 |ep 3 18|:39:18 1|
|000003c0| 39 39 32 0a 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |992.PATH|=/bin:/u|
|000003d0| 73 72 2f 62 69 6e 3a 2f | 75 73 72 2f 75 63 62 20 |sr/bin:/|usr/ucb |
|000003e0| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 69 66 |; export| PATH.if|
|000003f0| 20 74 65 73 74 20 2d 66 | 20 27 50 52 4f 42 4c 45 | test -f| 'PROBLE|
|00000400| 4d 53 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |MS' -a "|${1}" !=|
|00000410| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00000420| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00000430| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00000440| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 50 52 4f |ting fil|e \"'PRO|
|00000450| 42 4c 45 4d 53 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |BLEMS'\"|.else.ec|
|00000460| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000470| 69 6e 67 20 5c 22 27 50 | 52 4f 42 4c 45 4d 53 27 |ing \"'P|ROBLEMS'|
|00000480| 5c 22 20 5c 28 31 33 32 | 32 31 20 63 68 61 72 61 |\" \(132|21 chara|
|00000490| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000004a0| 58 2f 2f 22 20 3e 27 50 | 52 4f 42 4c 45 4d 53 27 |X//" >'P|ROBLEMS'|
|000004b0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000004c0| 0a 58 0a 58 54 68 69 73 | 20 66 69 6c 65 20 64 6f |.X.XThis| file do|
|000004d0| 63 75 6d 65 6e 74 73 20 | 74 68 65 20 70 72 6f 62 |cuments |the prob|
|000004e0| 6c 65 6d 73 20 74 68 61 | 74 20 68 61 76 65 20 62 |lems tha|t have b|
|000004f0| 65 65 6e 20 66 6f 75 6e | 64 20 77 68 65 6e 20 74 |een foun|d when t|
|00000500| 68 65 20 6c 69 62 72 61 | 72 79 0a 58 69 73 20 70 |he libra|ry.Xis p|
|00000510| 6f 72 74 65 64 20 74 6f | 20 64 69 66 66 65 72 65 |orted to| differe|
|00000520| 6e 74 20 6d 61 63 68 69 | 6e 65 73 2e 20 20 57 68 |nt machi|nes. Wh|
|00000530| 65 72 65 20 70 6f 73 73 | 69 62 6c 65 2c 20 61 20 |ere poss|ible, a |
|00000540| 67 65 6e 65 72 69 63 20 | 73 6f 6c 75 74 69 6f 6e |generic |solution|
|00000550| 0a 58 68 61 73 20 62 65 | 65 6e 20 61 64 64 65 64 |.Xhas be|en added|
|00000560| 20 74 6f 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 | to the |library |
|00000570| 73 6f 20 74 68 61 74 20 | 74 68 65 20 70 72 6f 62 |so that |the prob|
|00000580| 6c 65 6d 20 64 6f 65 73 | 20 6e 6f 74 20 72 65 2d |lem does| not re-|
|00000590| 6f 63 63 75 72 2e 0a 58 | 0a 58 4e 4f 54 45 53 20 |occur..X|.XNOTES |
|000005a0| 73 70 65 63 69 66 69 63 | 20 74 6f 20 61 20 70 61 |specific| to a pa|
|000005b0| 72 74 69 63 75 6c 61 72 | 20 69 6d 70 6c 65 6d 65 |rticular| impleme|
|000005c0| 6e 74 61 74 69 6f 6e 20 | 61 72 65 20 69 6e 63 6c |ntation |are incl|
|000005d0| 75 64 65 64 20 61 74 20 | 74 68 65 20 65 6e 64 0a |uded at |the end.|
|000005e0| 58 6f 66 20 74 68 69 73 | 20 66 69 6c 65 2e 20 20 |Xof this| file. |
|000005f0| 53 65 61 72 63 68 20 66 | 6f 72 20 5e 53 59 53 54 |Search f|or ^SYST|
|00000600| 45 4d 20 69 66 20 79 6f | 75 20 77 61 6e 74 20 74 |EM if yo|u want t|
|00000610| 6f 20 6a 75 6d 70 20 74 | 6f 20 74 68 65 6d 3a 0a |o jump t|o them:.|
|00000620| 58 0a 58 30 2e 20 43 6f | 6e 66 69 67 75 72 65 20 |X.X0. Co|nfigure |
|00000630| 73 63 72 69 70 74 20 68 | 61 73 20 61 20 70 72 6f |script h|as a pro|
|00000640| 62 6c 65 6d 0a 58 09 0a | 58 09 4f 6e 65 20 6e 6f |blem.X..|X.One no|
|00000650| 74 65 20 61 62 6f 75 74 | 20 70 72 6f 62 6c 65 6d |te about| problem|
|00000660| 73 20 77 69 74 68 20 63 | 6f 6e 66 69 67 75 72 65 |s with c|onfigure|
|00000670| 20 69 73 20 74 68 61 74 | 20 74 68 65 79 20 61 72 | is that| they ar|
|00000680| 65 20 66 72 65 71 75 65 | 6e 74 6c 79 0a 58 09 63 |e freque|ntly.X.c|
|00000690| 61 75 73 65 64 20 62 79 | 20 73 6f 6d 65 6f 6e 65 |aused by| someone|
|000006a0| 20 77 68 6f 20 68 61 73 | 20 69 6e 73 74 61 6c 6c | who has| install|
|000006b0| 65 64 20 61 6e 20 61 6e | 73 69 20 63 6f 6d 70 69 |ed an an|si compi|
|000006c0| 6c 65 72 20 6c 69 6b 65 | 20 67 63 63 20 61 6e 64 |ler like| gcc and|
|000006d0| 0a 58 09 68 61 73 6e 27 | 74 20 63 68 61 6e 67 65 |.X.hasn'|t change|
|000006e0| 64 20 74 68 65 20 73 79 | 73 74 65 6d 20 69 6e 63 |d the sy|stem inc|
|000006f0| 6c 75 64 65 20 66 69 6c | 65 73 20 61 63 63 6f 72 |lude fil|es accor|
|00000700| 64 69 6e 67 6c 79 2e 0a | 58 0a 58 09 43 6f 6e 66 |dingly..|X.X.Conf|
|00000710| 69 67 75 72 65 20 77 69 | 6c 6c 20 61 74 74 65 6d |igure wi|ll attem|
|00000720| 70 74 20 74 6f 20 67 75 | 65 73 73 20 61 74 20 74 |pt to gu|ess at t|
|00000730| 68 65 20 63 6f 72 72 65 | 63 74 20 73 65 74 74 69 |he corre|ct setti|
|00000740| 6e 67 73 20 65 76 65 6e | 20 69 66 20 69 74 0a 58 |ngs even| if it.X|
|00000750| 09 69 73 20 6e 6f 74 20 | 61 62 6c 65 20 74 6f 20 |.is not |able to |
|00000760| 64 65 74 65 72 6d 69 6e | 65 20 69 66 20 74 68 65 |determin|e if the|
|00000770| 79 20 61 72 65 20 63 6f | 72 72 65 63 74 2e 20 20 |y are co|rrect. |
|00000780| 54 68 65 73 65 73 20 67 | 75 65 73 73 65 64 20 61 |Theses g|uessed a|
|00000790| 74 20 0a 58 09 73 65 74 | 74 69 6e 67 73 20 77 69 |t .X.set|tings wi|
|000007a0| 6c 6c 20 62 65 20 66 6c | 61 67 65 64 20 62 79 20 |ll be fl|aged by |
|000007b0| 61 20 27 2f 2a 20 2a 47 | 55 45 53 53 2a 20 2a 2f |a '/* *G|UESS* */|
|000007c0| 27 20 74 6f 20 74 68 65 | 20 72 69 67 68 74 20 6f |' to the| right o|
|000007d0| 66 20 74 68 65 0a 58 09 | 64 65 66 69 6e 69 74 69 |f the.X.|definiti|
|000007e0| 6f 6e 20 61 6e 64 20 73 | 68 6f 75 6c 64 20 62 65 |on and s|hould be|
|000007f0| 20 72 65 76 69 65 77 65 | 64 20 74 6f 20 6d 61 6b | reviewe|d to mak|
|00000800| 65 20 73 75 72 65 20 74 | 68 65 79 20 61 72 65 20 |e sure t|hey are |
|00000810| 72 69 67 68 74 2e 0a 58 | 0a 58 09 49 66 20 74 68 |right..X|.X.If th|
|00000820| 69 73 20 68 61 70 70 65 | 6e 73 2c 20 79 6f 75 20 |is happe|ns, you |
|00000830| 73 68 6f 75 6c 64 20 64 | 65 74 65 72 6d 69 6e 65 |should d|etermine|
|00000840| 20 69 66 20 74 68 65 20 | 70 72 6f 62 6c 65 6d 20 | if the |problem |
|00000850| 69 73 20 61 20 70 72 6f | 62 6c 65 6d 0a 58 09 77 |is a pro|blem.X.w|
|00000860| 69 74 68 20 74 68 65 20 | 73 63 72 69 70 74 20 69 |ith the |script i|
|00000870| 74 73 65 6c 66 2c 20 6f | 72 20 77 69 74 68 20 74 |tself, o|r with t|
|00000880| 68 65 20 73 63 72 69 70 | 74 20 62 65 69 6e 67 20 |he scrip|t being |
|00000890| 61 62 6c 65 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |able to |determin|
|000008a0| 65 0a 58 09 74 68 65 20 | 63 6f 72 72 65 63 74 20 |e.X.the |correct |
|000008b0| 73 65 74 74 69 6e 67 73 | 20 66 6f 72 20 79 6f 75 |settings| for you|
|000008c0| 72 20 63 6f 6d 70 69 6c | 65 72 2f 6f 73 20 63 6f |r compil|er/os co|
|000008d0| 6d 62 69 6e 61 74 69 6f | 6e 2e 20 20 0a 58 0a 58 |mbinatio|n. .X.X|
|000008e0| 09 49 66 20 79 6f 75 20 | 66 69 6e 64 20 74 68 61 |.If you |find tha|
|000008f0| 74 20 69 74 20 69 73 20 | 61 20 62 75 67 20 69 6e |t it is |a bug in|
|00000900| 20 74 68 65 20 73 63 72 | 69 70 74 2c 20 70 6c 65 | the scr|ipt, ple|
|00000910| 61 73 65 20 72 65 70 6f | 72 74 20 69 74 20 74 6f |ase repo|rt it to|
|00000920| 20 0a 58 09 74 68 65 20 | 61 75 74 68 6f 72 20 73 | .X.the |author s|
|00000930| 6f 20 74 68 61 74 20 74 | 68 65 20 66 69 78 20 63 |o that t|he fix c|
|00000940| 61 6e 20 62 65 20 69 6e | 63 6f 72 70 6f 72 61 74 |an be in|corporat|
|00000950| 65 64 20 69 6e 74 6f 20 | 66 75 74 75 72 65 20 72 |ed into |future r|
|00000960| 65 6c 65 61 73 65 73 2e | 0a 58 09 54 68 69 73 20 |eleases.|.X.This |
|00000970| 69 73 20 6d 6f 73 74 20 | 6c 69 6b 65 6c 79 20 74 |is most |likely t|
|00000980| 68 65 20 63 61 75 73 65 | 20 6f 66 20 61 20 70 72 |he cause| of a pr|
|00000990| 6f 62 6c 65 6d 2e 20 20 | 59 6f 75 20 73 68 6f 75 |oblem. |You shou|
|000009a0| 6c 64 20 70 61 79 20 0a | 58 09 70 61 72 74 69 63 |ld pay .|X.partic|
|000009b0| 75 6c 61 72 20 61 74 74 | 65 6e 74 69 6f 6e 20 74 |ular att|ention t|
|000009c0| 6f 20 74 68 65 20 66 61 | 63 74 20 74 68 61 74 20 |o the fa|ct that |
|000009d0| 43 6f 6e 66 69 67 75 72 | 65 20 2a 67 75 65 73 73 |Configur|e *guess|
|000009e0| 65 73 2a 20 74 68 61 74 | 20 69 74 0a 58 09 66 6f |es* that| it.X.fo|
|000009f0| 75 6e 64 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 |und the |correct |
|00000a00| 73 65 74 74 69 6e 67 73 | 20 62 79 20 63 6f 6d 70 |settings| by comp|
|00000a10| 69 6c 69 6e 67 20 61 20 | 74 65 73 74 20 6d 6f 64 |iling a |test mod|
|00000a20| 75 6c 65 20 61 6e 64 20 | 76 65 72 69 66 79 69 6e |ule and |verifyin|
|00000a30| 67 0a 58 09 74 68 61 74 | 20 74 68 65 72 65 20 77 |g.X.that| there w|
|00000a40| 65 72 65 20 6e 6f 20 77 | 61 72 6e 69 6e 67 20 6d |ere no w|arning m|
|00000a50| 65 73 73 61 67 65 73 20 | 67 65 6e 65 72 61 74 65 |essages |generate|
|00000a60| 64 2e 20 20 49 74 20 69 | 73 20 70 6f 73 73 69 62 |d. It i|s possib|
|00000a70| 6c 65 20 74 68 61 74 0a | 58 09 79 6f 75 20 68 61 |le that.|X.you ha|
|00000a80| 76 65 20 61 20 73 74 72 | 69 63 74 20 41 4e 53 49 |ve a str|ict ANSI|
|00000a90| 20 63 6f 6d 70 69 6c 65 | 72 20 74 68 61 74 20 69 | compile|r that i|
|00000aa0| 73 20 77 61 72 6e 69 6e | 67 20 61 62 6f 75 74 20 |s warnin|g about |
|00000ab0| 73 6f 6d 65 74 68 69 6e | 67 20 69 6e 0a 58 09 74 |somethin|g in.X.t|
|00000ac0| 68 65 20 74 65 73 74 20 | 66 69 6c 65 20 63 63 74 |he test |file cct|
|00000ad0| 65 73 74 2e 63 20 77 68 | 69 63 68 20 72 65 61 6c |est.c wh|ich real|
|00000ae0| 6c 79 20 68 61 73 20 6e | 6f 74 68 69 6e 67 20 74 |ly has n|othing t|
|00000af0| 6f 20 64 6f 20 77 69 74 | 68 20 74 68 65 20 0a 58 |o do wit|h the .X|
|00000b00| 09 43 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 2e 0a |.Configu|ration..|
|00000b10| 58 09 0a 58 09 49 66 2c | 20 68 6f 77 65 76 65 72 |X..X.If,| however|
|00000b20| 2c 20 74 68 65 20 73 63 | 72 69 70 74 20 61 70 70 |, the sc|ript app|
|00000b30| 65 61 72 73 20 74 6f 20 | 62 65 20 70 72 6f 63 65 |ears to |be proce|
|00000b40| 73 73 69 6e 67 20 74 68 | 65 20 64 61 74 61 20 63 |ssing th|e data c|
|00000b50| 6f 72 72 65 63 74 6c 79 | 2c 0a 58 09 62 75 74 20 |orrectly|,.X.but |
|00000b60| 69 73 20 73 74 69 6c 6c | 20 75 6e 61 62 6c 65 20 |is still| unable |
|00000b70| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the|
|00000b80| 20 63 6f 72 72 65 63 74 | 20 73 65 74 74 69 6e 67 | correct| setting|
|00000b90| 73 20 66 6f 72 20 79 6f | 75 72 20 73 79 73 74 65 |s for yo|ur syste|
|00000ba0| 6d 0a 58 09 79 6f 75 20 | 77 69 6c 6c 20 68 61 76 |m.X.you |will hav|
|00000bb0| 65 20 74 6f 20 63 6f 6e | 66 69 67 75 72 65 20 74 |e to con|figure t|
|00000bc0| 68 65 20 66 69 6c 65 20 | 62 79 20 68 61 6e 64 2e |he file |by hand.|
|00000bd0| 20 20 54 68 69 73 20 69 | 6e 76 6f 6c 76 65 73 20 | This i|nvolves |
|00000be0| 74 68 65 0a 58 09 66 6f | 6c 6c 6f 77 69 6e 67 20 |the.X.fo|llowing |
|00000bf0| 73 74 65 70 73 3a 0a 58 | 0a 58 09 41 29 20 63 72 |steps:.X|.X.A) cr|
|00000c00| 65 61 74 65 20 2e 63 6f | 6e 66 69 67 75 72 65 20 |eate .co|nfigure |
|00000c10| 66 69 6c 65 20 74 68 61 | 74 20 63 6f 6e 74 61 69 |file tha|t contai|
|00000c20| 6e 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ns the f|ollowing|
|00000c30| 20 6c 69 6e 65 73 0a 58 | 0a 58 09 09 23 64 65 66 | lines.X|.X..#def|
|00000c40| 69 6e 65 20 56 4f 49 44 | 54 59 50 45 20 09 3c 76 |ine VOID|TYPE .<v|
|00000c50| 6f 69 64 74 79 70 65 3e | 0a 58 09 09 23 64 65 66 |oidtype>|.X..#def|
|00000c60| 69 6e 65 20 43 4f 4e 53 | 54 09 09 3c 63 6f 6e 73 |ine CONS|T..<cons|
|00000c70| 74 3e 0a 58 09 09 23 64 | 65 66 69 6e 65 20 44 41 |t>.X..#d|efine DA|
|00000c80| 54 41 54 59 50 45 09 3c | 6d 61 6c 6c 6f 63 5f 64 |TATYPE.<|malloc_d|
|00000c90| 61 74 61 74 79 70 65 3e | 0a 58 09 09 23 64 65 66 |atatype>|.X..#def|
|00000ca0| 69 6e 65 20 53 49 5a 45 | 54 59 50 45 09 3c 6d 61 |ine SIZE|TYPE.<ma|
|00000cb0| 6c 6c 6f 63 5f 73 69 7a | 65 74 79 70 65 3e 0a 58 |lloc_siz|etype>.X|
|00000cc0| 09 09 23 64 65 66 69 6e | 65 20 4d 45 4d 44 41 54 |..#defin|e MEMDAT|
|00000cd0| 41 09 09 3c 6d 65 6d 5f | 64 61 74 61 74 79 70 65 |A..<mem_|datatype|
|00000ce0| 3e 0a 58 09 09 23 64 65 | 66 69 6e 65 20 4d 45 4d |>.X..#de|fine MEM|
|00000cf0| 53 49 5a 45 09 09 3c 6d | 65 6d 5f 73 69 7a 65 74 |SIZE..<m|em_sizet|
|00000d00| 79 70 65 3e 0a 58 09 09 | 23 64 65 66 69 6e 65 20 |ype>.X..|#define |
|00000d10| 4d 45 4d 43 4d 50 54 59 | 50 45 09 3c 6d 65 6d 5f |MEMCMPTY|PE.<mem_|
|00000d20| 63 6f 6d 70 74 79 70 65 | 3e 0a 58 09 09 23 64 65 |comptype|>.X..#de|
|00000d30| 66 69 6e 65 20 53 54 52 | 53 49 5a 45 09 09 3c 73 |fine STR|SIZE..<s|
|00000d40| 74 72 5f 73 69 7a 65 74 | 79 70 65 3e 0a 58 09 09 |tr_sizet|ype>.X..|
|00000d50| 23 64 65 66 69 6e 65 20 | 53 54 52 43 4d 50 54 59 |#define |STRCMPTY|
|00000d60| 50 45 09 3c 73 74 72 5f | 63 6f 6d 70 74 79 70 65 |PE.<str_|comptype|
|00000d70| 3e 0a 58 0a 58 09 77 68 | 65 72 65 0a 58 0a 58 09 |>.X.X.wh|ere.X.X.|
|00000d80| 20 20 20 20 76 6f 69 64 | 74 79 70 65 09 09 69 73 | void|type..is|
|00000d90| 20 76 6f 69 64 20 69 66 | 20 79 6f 75 72 20 63 6f | void if| your co|
|00000da0| 6d 70 69 6c 65 72 20 75 | 6e 64 65 72 73 74 61 6e |mpiler u|nderstan|
|00000db0| 64 73 0a 58 09 09 09 09 | 76 6f 69 64 20 64 61 74 |ds.X....|void dat|
|00000dc0| 61 20 74 79 70 65 73 2c | 20 69 6e 74 20 6f 74 68 |a types,| int oth|
|00000dd0| 65 72 77 69 73 65 0a 58 | 09 20 20 20 20 63 6f 6e |erwise.X|. con|
|00000de0| 73 74 09 09 69 73 20 63 | 6f 6e 73 74 20 69 66 20 |st..is c|onst if |
|00000df0| 79 6f 75 72 20 63 6f 6d | 70 69 6c 65 72 20 75 6e |your com|piler un|
|00000e00| 64 65 72 73 74 61 6e 64 | 73 0a 58 09 09 09 09 63 |derstand|s.X....c|
|00000e10| 6f 6e 73 74 61 6e 74 20 | 76 61 72 69 61 62 6c 65 |onstant |variable|
|00000e20| 73 0a 58 09 20 20 20 20 | 6d 61 6c 6c 6f 63 5f 64 |s.X. |malloc_d|
|00000e30| 61 74 61 74 79 70 65 09 | 69 73 20 74 68 65 20 62 |atatype.|is the b|
|00000e40| 61 73 65 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |ase type| of the |
|00000e50| 70 6f 69 6e 74 65 72 20 | 72 65 74 75 72 6e 65 64 |pointer |returned|
|00000e60| 20 62 79 0a 58 09 09 09 | 09 6d 61 6c 6c 6f 63 20 | by.X...|.malloc |
|00000e70| 28 75 73 75 61 6c 6c 79 | 20 63 68 61 72 20 6f 72 |(usually| char or|
|00000e80| 20 76 6f 69 64 29 0a 58 | 09 20 20 20 20 6d 61 6c | void).X|. mal|
|00000e90| 6c 6f 63 5f 73 69 7a 65 | 74 79 70 65 09 69 73 20 |loc_size|type.is |
|00000ea0| 74 68 65 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |the type| of the |
|00000eb0| 73 69 7a 65 20 61 72 67 | 75 6d 65 6e 74 20 75 73 |size arg|ument us|
|00000ec0| 65 64 20 62 79 0a 58 09 | 09 09 09 6d 61 6c 6c 6f |ed by.X.|...mallo|
|00000ed0| 63 20 61 6e 64 20 69 74 | 73 20 61 73 73 6f 63 69 |c and it|s associ|
|00000ee0| 61 74 65 73 20 28 75 73 | 75 61 6c 6c 79 20 73 69 |ates (us|ually si|
|00000ef0| 7a 65 5f 74 2c 0a 58 09 | 09 09 09 69 6e 74 2c 20 |ze_t,.X.|...int, |
|00000f00| 6f 72 20 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 29 |or unsig|ned int)|
|00000f10| 0a 58 09 20 20 20 20 6d | 65 6d 5f 64 61 74 61 74 |.X. m|em_datat|
|00000f20| 79 70 65 09 69 73 20 74 | 68 65 20 62 61 73 65 20 |ype.is t|he base |
|00000f30| 74 79 70 65 20 6f 66 20 | 74 68 65 20 70 6f 69 6e |type of |the poin|
|00000f40| 74 65 72 20 72 65 74 75 | 72 6e 65 64 20 62 79 0a |ter retu|rned by.|
|00000f50| 58 09 09 09 09 74 68 65 | 20 6d 65 6d 2a 20 66 75 |X....the| mem* fu|
|00000f60| 6e 63 74 69 6f 6e 73 20 | 28 6c 69 6b 65 20 6d 65 |nctions |(like me|
|00000f70| 6d 63 70 79 28 29 29 2e | 20 54 68 69 73 20 69 73 |mcpy()).| This is|
|00000f80| 0a 58 09 09 09 09 75 73 | 75 61 6c 6c 79 20 63 68 |.X....us|ually ch|
|00000f90| 61 72 20 6f 72 20 76 6f | 69 64 2e 0a 58 09 20 20 |ar or vo|id..X. |
|00000fa0| 20 20 6d 65 6d 5f 73 69 | 7a 65 74 79 70 65 09 69 | mem_si|zetype.i|
|00000fb0| 73 20 74 68 65 20 74 79 | 70 65 20 6f 66 20 74 68 |s the ty|pe of th|
|00000fc0| 65 20 6c 65 6e 20 61 72 | 67 75 6d 65 6e 74 20 75 |e len ar|gument u|
|00000fd0| 73 65 64 20 62 79 0a 58 | 09 09 09 09 74 68 65 20 |sed by.X|....the |
|00000fe0| 6d 65 6d 2a 20 66 75 6e | 63 74 69 6f 6e 73 20 28 |mem* fun|ctions (|
|00000ff0| 75 73 75 61 6c 6c 79 20 | 73 69 7a 65 5f 74 2c 0a |usually |size_t,.|
|00001000| 58 09 09 09 09 69 6e 74 | 2c 20 6f 72 20 75 6e 73 |X....int|, or uns|
|00001010| 69 67 6e 65 64 20 69 6e | 74 29 2e 0a 58 09 20 20 |igned in|t)..X. |
|00001020| 20 20 6d 65 6d 5f 63 6f | 6d 70 74 79 70 65 09 74 | mem_co|mptype.t|
|00001030| 79 70 65 20 74 6f 20 62 | 65 20 75 73 65 64 20 66 |ype to b|e used f|
|00001040| 6f 72 20 63 6f 6d 70 61 | 72 69 73 6f 6e 73 20 6f |or compa|risons o|
|00001050| 66 20 74 68 65 20 64 69 | 66 66 65 72 69 6e 67 0a |f the di|ffering.|
|00001060| 58 09 09 09 09 63 68 61 | 72 61 63 74 65 72 73 20 |X....cha|racters |
|00001070| 69 6e 20 74 68 65 20 6d | 65 6d 6f 72 79 20 63 6f |in the m|emory co|
|00001080| 6d 70 61 72 69 73 6f 6e | 20 66 75 6e 63 74 69 6f |mparison| functio|
|00001090| 6e 73 2e 0a 58 09 09 09 | 09 54 68 69 73 20 77 69 |ns..X...|.This wi|
|000010a0| 6c 6c 20 75 73 75 61 6c | 6c 79 20 62 65 20 63 68 |ll usual|ly be ch|
|000010b0| 61 72 20 6f 72 20 75 6e | 73 69 67 6e 65 64 20 63 |ar or un|signed c|
|000010c0| 68 61 72 2e 20 41 4e 53 | 49 0a 58 09 09 09 09 43 |har. ANS|I.X....C|
|000010d0| 20 73 61 79 73 20 69 74 | 20 77 69 6c 6c 20 62 65 | says it| will be|
|000010e0| 20 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 2e 0a | unsigne|d char..|
|000010f0| 58 09 20 20 20 20 73 74 | 72 5f 73 69 7a 65 74 79 |X. st|r_sizety|
|00001100| 70 65 09 69 73 20 74 68 | 65 20 74 79 70 65 20 6f |pe.is th|e type o|
|00001110| 66 20 74 68 65 20 6c 65 | 6e 20 61 72 67 75 6d 65 |f the le|n argume|
|00001120| 6e 74 20 75 73 65 64 20 | 62 79 0a 58 09 09 09 09 |nt used |by.X....|
|00001130| 74 68 65 20 73 74 72 2a | 20 66 75 6e 63 74 69 6f |the str*| functio|
|00001140| 6e 73 20 28 6c 69 6b 65 | 20 73 74 72 6e 63 70 79 |ns (like| strncpy|
|00001150| 28 29 29 2e 20 20 54 68 | 69 73 20 69 73 0a 58 09 |()). Th|is is.X.|
|00001160| 09 09 09 75 73 75 61 6c | 6c 79 20 73 69 7a 65 5f |...usual|ly size_|
|00001170| 74 2c 20 69 6e 74 2c 20 | 6f 72 20 75 6e 73 69 67 |t, int, |or unsig|
|00001180| 6e 65 64 20 69 6e 74 2e | 0a 58 09 20 20 20 20 73 |ned int.|.X. s|
|00001190| 74 72 5f 63 6f 6d 70 74 | 79 70 65 09 74 79 70 65 |tr_compt|ype.type|
|000011a0| 20 74 6f 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 | to be u|sed for |
|000011b0| 63 6f 6d 70 61 72 69 73 | 6f 6e 73 20 6f 66 20 74 |comparis|ons of t|
|000011c0| 68 65 20 64 69 66 66 65 | 72 69 6e 67 0a 58 09 09 |he diffe|ring.X..|
|000011d0| 09 09 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |..charac|ters in |
|000011e0| 74 68 65 20 73 74 72 69 | 6e 67 20 63 6f 6d 70 61 |the stri|ng compa|
|000011f0| 72 69 73 6f 6e 20 66 75 | 6e 63 74 69 6f 6e 73 2e |rison fu|nctions.|
|00001200| 0a 58 09 09 09 09 54 68 | 69 73 20 77 69 6c 6c 20 |.X....Th|is will |
|00001210| 75 73 75 61 6c 6c 79 20 | 62 65 20 63 68 61 72 20 |usually |be char |
|00001220| 6f 72 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |or unsig|ned char|
|00001230| 2e 20 41 4e 53 49 0a 58 | 09 09 09 09 43 20 73 61 |. ANSI.X|....C sa|
|00001240| 79 73 20 69 74 20 77 69 | 6c 6c 20 62 65 20 75 6e |ys it wi|ll be un|
|00001250| 73 69 67 6e 65 64 20 63 | 68 61 72 2e 0a 58 0a 58 |signed c|har..X.X|
|00001260| 09 42 29 20 63 72 65 61 | 74 65 20 2e 63 6f 6e 66 |.B) crea|te .conf|
|00001270| 69 67 75 72 65 2e 73 20 | 66 69 6c 65 20 74 68 61 |igure.s |file tha|
|00001280| 74 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 66 |t contai|ns the f|
|00001290| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 69 6e 65 73 3a 0a |ollowing| lines:.|
|000012a0| 58 0a 58 09 09 23 64 65 | 66 69 6e 65 20 41 42 4f |X.X..#de|fine ABO|
|000012b0| 52 54 5f 53 49 47 4e 41 | 4c 09 3c 61 62 6f 72 74 |RT_SIGNA|L.<abort|
|000012c0| 73 69 67 6e 75 6d 3e 0a | 58 09 09 23 64 65 66 69 |signum>.|X..#defi|
|000012d0| 6e 65 20 57 52 54 53 49 | 5a 45 09 09 3c 77 72 69 |ne WRTSI|ZE..<wri|
|000012e0| 74 65 5f 73 69 7a 65 74 | 79 70 65 3e 0a 58 0a 58 |te_sizet|ype>.X.X|
|000012f0| 09 77 68 65 72 65 0a 58 | 09 0a 58 09 20 20 20 20 |.where.X|..X. |
|00001300| 61 62 6f 72 74 73 69 67 | 6e 75 6d 09 09 69 73 20 |abortsig|num..is |
|00001310| 74 68 65 20 73 69 67 6e | 61 6c 20 6e 75 6d 62 65 |the sign|al numbe|
|00001320| 72 20 75 73 65 64 20 74 | 6f 20 61 62 6f 72 74 20 |r used t|o abort |
|00001330| 61 20 70 72 6f 67 72 61 | 6d 2e 0a 58 09 09 09 09 |a progra|m..X....|
|00001340| 54 68 69 73 20 69 73 20 | 75 73 75 61 6c 6c 79 20 |This is |usually |
|00001350| 53 49 47 41 42 52 54 20 | 6f 72 20 53 49 47 49 4f |SIGABRT |or SIGIO|
|00001360| 54 2e 0a 58 09 20 20 20 | 20 77 72 69 74 65 5f 73 |T..X. | write_s|
|00001370| 69 7a 65 74 79 70 65 09 | 69 73 20 74 68 65 20 74 |izetype.|is the t|
|00001380| 79 70 65 20 6f 66 20 74 | 68 65 20 73 69 7a 65 20 |ype of t|he size |
|00001390| 28 6f 72 20 6c 65 6e 67 | 74 68 29 20 70 61 72 61 |(or leng|th) para|
|000013a0| 6d 65 74 65 72 0a 58 09 | 09 09 09 74 6f 20 74 68 |meter.X.|...to th|
|000013b0| 65 20 77 72 69 74 65 20 | 73 79 73 74 65 6d 20 63 |e write |system c|
|000013c0| 61 6c 6c 2e 20 20 54 68 | 69 73 20 77 69 6c 6c 20 |all. Th|is will |
|000013d0| 75 73 75 61 6c 6c 79 0a | 58 09 09 09 09 62 65 20 |usually.|X....be |
|000013e0| 73 69 7a 65 5f 74 2c 20 | 75 6e 73 69 67 6e 65 64 |size_t, |unsigned|
|000013f0| 20 69 6e 74 2c 20 6f 72 | 20 69 6e 74 0a 58 0a 58 | int, or| int.X.X|
|00001400| 09 49 6e 20 61 64 64 69 | 74 69 6f 6e 0a 58 0a 58 |.In addi|tion.X.X|
|00001410| 09 09 69 66 20 79 6f 75 | 72 20 63 6f 6d 70 69 6c |..if you|r compil|
|00001420| 65 72 2f 6c 69 62 72 61 | 72 69 65 73 20 64 6f 20 |er/libra|ries do |
|00001430| 6e 6f 74 20 73 75 70 70 | 6f 72 74 20 74 68 65 20 |not supp|ort the |
|00001440| 70 75 74 65 6e 76 28 29 | 20 0a 58 09 09 63 61 6c |putenv()| .X..cal|
|00001450| 6c 2c 20 62 75 74 20 69 | 6e 73 74 65 61 64 20 73 |l, but i|nstead s|
|00001460| 75 70 70 6f 72 74 20 73 | 65 74 65 6e 76 28 29 2c |upport s|etenv(),|
|00001470| 20 61 64 64 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | add the| followi|
|00001480| 6e 67 20 6c 69 6e 65 3a | 0a 58 0a 58 09 09 09 23 |ng line:|.X.X...#|
|00001490| 64 65 66 69 6e 65 20 55 | 53 45 5f 53 45 54 45 4e |define U|SE_SETEN|
|000014a0| 56 20 31 0a 58 0a 58 09 | 09 49 66 20 79 6f 75 72 |V 1.X.X.|.If your|
|000014b0| 20 73 79 73 74 65 6d 20 | 68 61 73 20 61 6e 20 49 | system |has an I|
|000014c0| 6e 74 72 69 6e 73 69 63 | 2e 68 20 66 69 6c 65 20 |ntrinsic|.h file |
|000014d0| 69 6e 20 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |in /usr/|include/|
|000014e0| 58 31 31 2c 0a 58 09 09 | 61 64 64 20 74 68 65 20 |X11,.X..|add the |
|000014f0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 65 3a 0a |followin|g line:.|
|00001500| 58 0a 58 09 09 09 23 64 | 65 66 69 6e 65 20 46 4f |X.X...#d|efine FO|
|00001510| 55 4e 44 5f 58 5f 49 4e | 54 52 49 4e 53 49 43 20 |UND_X_IN|TRINSIC |
|00001520| 31 0a 58 0a 58 09 09 49 | 66 20 77 61 69 74 2e 68 |1.X.X..I|f wait.h|
|00001530| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f | is avai|lable fo|
|00001540| 72 20 77 61 69 74 28 29 | 20 73 79 73 74 65 6d 20 |r wait()| system |
|00001550| 63 61 6c 6c 20 70 61 72 | 61 6d 65 74 65 72 20 0a |call par|ameter .|
|00001560| 58 09 09 64 65 66 69 6e | 69 74 69 6f 6e 73 2c 20 |X..defin|itions, |
|00001570| 61 64 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |add the |followin|
|00001580| 67 20 6c 69 6e 65 3a 0a | 58 09 0a 58 09 09 09 23 |g line:.|X..X...#|
|00001590| 64 65 66 69 6e 65 20 4e | 45 45 44 5f 57 41 49 54 |define N|EED_WAIT|
|000015a0| 20 31 0a 58 09 0a 58 09 | 09 49 66 20 79 6f 75 20 | 1.X..X.|.If you |
|000015b0| 61 72 65 20 72 75 6e 6e | 69 6e 67 20 58 31 31 52 |are runn|ing X11R|
|000015c0| 34 20 6f 72 20 62 65 66 | 6f 72 65 20 61 6e 64 20 |4 or bef|ore and |
|000015d0| 79 6f 75 20 69 6e 74 65 | 6e 64 20 74 6f 20 75 73 |you inte|nd to us|
|000015e0| 65 20 74 68 65 0a 58 09 | 09 6c 69 62 72 61 72 79 |e the.X.|.library|
|000015f0| 20 74 6f 20 6c 69 6e 6b | 20 77 69 74 68 20 58 20 | to link| with X |
|00001600| 70 72 6f 67 72 61 6d 73 | 2c 20 61 64 64 20 74 68 |programs|, add th|
|00001610| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6c 69 6e 65 |e follow|ing line|
|00001620| 3a 0a 58 0a 58 09 09 09 | 23 64 65 66 69 6e 65 20 |:.X.X...|#define |
|00001630| 44 4f 4e 54 5f 46 4f 52 | 43 45 5f 48 45 41 50 53 |DONT_FOR|CE_HEAPS|
|00001640| 54 55 46 46 20 31 0a 58 | 0a 58 09 43 29 20 49 66 |TUFF 1.X|.X.C) If|
|00001650| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 70 72 65 | you wan|t to pre|
|00001660| 63 6c 75 64 65 20 74 68 | 65 20 75 73 65 20 6f 66 |clude th|e use of|
|00001670| 20 74 68 65 20 73 79 73 | 74 65 6d 20 6d 65 6d 73 | the sys|tem mems|
|00001680| 65 74 20 61 6e 64 20 6d | 65 6d 63 70 79 0a 58 09 |et and m|emcpy.X.|
|00001690| 6d 6f 64 75 6c 65 73 20 | 28 77 68 69 63 68 20 69 |modules |(which i|
|000016a0| 66 20 74 68 65 79 20 63 | 61 6e 20 62 65 20 75 73 |f they c|an be us|
|000016b0| 65 64 20 77 69 6c 6c 20 | 75 73 75 61 6c 6c 79 20 |ed will |usually |
|000016c0| 72 65 73 75 6c 74 20 69 | 6e 20 61 20 0a 58 09 73 |result i|n a .X.s|
|000016d0| 69 67 6e 69 66 69 63 61 | 6e 74 20 70 65 72 66 6f |ignifica|nt perfo|
|000016e0| 72 6d 61 6e 63 65 20 67 | 61 69 6e 29 2c 20 63 72 |rmance g|ain), cr|
|000016f0| 65 61 74 65 20 61 20 2e | 63 6f 6e 66 69 67 75 72 |eate a .|configur|
|00001700| 65 2e 4f 20 28 63 61 70 | 69 74 61 6c 20 6c 65 74 |e.O (cap|ital let|
|00001710| 74 65 72 20 6f 29 0a 58 | 09 66 69 6c 65 20 77 69 |ter o).X|.file wi|
|00001720| 74 68 20 73 6f 6d 65 74 | 68 69 6e 67 20 69 6e 20 |th somet|hing in |
|00001730| 69 74 20 28 69 2e 65 2e | 20 64 61 74 65 20 3e 20 |it (i.e.| date > |
|00001740| 2e 63 6f 6e 66 69 67 75 | 72 65 2e 4f 29 2e 0a 58 |.configu|re.O)..X|
|00001750| 0a 58 09 44 29 20 72 75 | 6e 20 43 6f 6e 66 69 67 |.X.D) ru|n Config|
|00001760| 75 72 65 20 74 6f 20 67 | 65 6e 65 72 61 74 65 20 |ure to g|enerate |
|00001770| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00001780| 2e 68 20 66 69 6c 65 73 | 20 28 61 6e 64 20 69 66 |.h files| (and if|
|00001790| 20 79 6f 75 0a 58 09 64 | 69 64 6e 27 74 20 63 72 | you.X.d|idn't cr|
|000017a0| 65 61 74 65 20 74 68 65 | 20 2e 63 6f 6e 66 69 67 |eate the| .config|
|000017b0| 75 72 65 2e 4f 20 66 69 | 6c 65 20 69 6e 20 73 74 |ure.O fi|le in st|
|000017c0| 65 70 20 43 2c 20 74 68 | 65 20 63 6f 6e 76 65 72 |ep C, th|e conver|
|000017d0| 74 65 64 20 73 79 73 74 | 65 6d 0a 58 09 6d 65 6d |ted syst|em.X.mem|
|000017e0| 73 65 74 20 61 6e 64 20 | 6d 65 6d 63 70 79 20 72 |set and |memcpy r|
|000017f0| 6f 75 74 69 6e 65 73 2c | 20 69 66 20 74 68 65 79 |outines,| if they|
|00001800| 20 61 72 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 | are com|patible |
|00001810| 61 6e 64 20 75 73 65 66 | 75 6c 29 0a 58 0a 58 09 |and usef|ul).X.X.|
|00001820| 4e 4f 54 45 3a 20 43 6f | 6e 66 69 67 75 72 65 20 |NOTE: Co|nfigure |
|00001830| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 67 72 61 62 |attempts| to grab|
|00001840| 20 74 68 65 20 6d 65 6d | 73 65 74 2e 6f 20 61 6e | the mem|set.o an|
|00001850| 64 20 6d 65 6d 6d 6f 76 | 65 28 6f 72 20 6d 65 6d |d memmov|e(or mem|
|00001860| 63 70 79 29 0a 58 09 72 | 6f 75 74 69 6e 65 73 20 |cpy).X.r|outines |
|00001870| 66 72 6f 6d 20 6c 69 62 | 63 2e 61 2c 20 69 66 20 |from lib|c.a, if |
|00001880| 69 74 20 63 61 6e 20 66 | 69 6e 64 20 74 68 65 6d |it can f|ind them|
|00001890| 2c 20 61 6e 64 20 63 6f | 6e 76 65 72 74 20 74 68 |, and co|nvert th|
|000018a0| 65 6d 20 66 6f 72 0a 58 | 09 75 73 65 20 62 79 20 |em for.X|.use by |
|000018b0| 74 68 65 20 6c 69 62 72 | 61 72 79 20 73 69 6e 63 |the libr|ary sinc|
|000018c0| 65 20 74 68 65 73 65 20 | 6d 6f 64 75 6c 65 73 20 |e these |modules |
|000018d0| 61 72 65 20 75 73 75 61 | 6c 6c 79 20 6d 6f 64 69 |are usua|lly modi|
|000018e0| 66 69 65 64 20 62 79 20 | 74 68 65 0a 58 09 76 65 |fied by |the.X.ve|
|000018f0| 6e 64 6f 72 20 73 6f 20 | 74 68 61 74 20 74 68 65 |ndor so |that the|
|00001900| 79 20 74 61 6b 65 20 61 | 64 76 61 6e 74 61 67 65 |y take a|dvantage|
|00001910| 20 6f 66 20 61 73 73 65 | 6d 62 6c 79 20 6c 61 6e | of asse|mbly lan|
|00001920| 67 75 61 67 65 20 66 65 | 61 74 75 72 65 73 0a 58 |guage fe|atures.X|
|00001930| 09 74 6f 20 69 6d 70 72 | 6f 76 65 20 70 65 72 66 |.to impr|ove perf|
|00001940| 6f 72 6d 61 6e 63 65 2e | 20 0a 58 0a 58 09 49 66 |ormance.| .X.X.If|
|00001950| 20 6c 69 62 63 2e 61 20 | 63 61 6e 6e 6f 74 20 62 | libc.a |cannot b|
|00001960| 65 20 66 6f 75 6e 64 2c | 20 6f 72 20 69 66 20 74 |e found,| or if t|
|00001970| 68 65 20 73 79 73 74 65 | 6d 20 6d 6f 64 75 6c 65 |he syste|m module|
|00001980| 73 20 61 72 65 20 6e 6f | 74 20 63 6f 6d 70 61 74 |s are no|t compat|
|00001990| 69 62 6c 65 0a 58 09 77 | 69 74 68 20 74 68 65 20 |ible.X.w|ith the |
|000019a0| 6d 61 6c 6c 6f 63 6c 69 | 62 20 76 65 72 73 69 6f |mallocli|b versio|
|000019b0| 6e 73 20 28 74 68 69 73 | 20 66 72 65 71 75 65 6e |ns (this| frequen|
|000019c0| 74 6c 79 20 68 61 70 70 | 65 6e 73 20 77 69 74 68 |tly happ|ens with|
|000019d0| 20 6d 65 6d 63 70 79 20 | 73 69 6e 63 65 0a 58 09 | memcpy |since.X.|
|000019e0| 74 68 65 20 6d 61 6c 6c | 6f 63 6c 69 62 20 76 65 |the mall|oclib ve|
|000019f0| 72 73 69 6f 6e 20 63 6f | 72 72 65 63 74 6c 79 20 |rsion co|rrectly |
|00001a00| 68 61 6e 64 6c 65 73 20 | 6d 6f 76 69 6e 67 20 64 |handles |moving d|
|00001a10| 61 74 61 20 61 72 6f 75 | 6e 64 20 69 6e 0a 58 09 |ata arou|nd in.X.|
|00001a20| 6f 76 65 72 6c 61 70 70 | 65 64 20 72 65 67 69 6f |overlapp|ed regio|
|00001a30| 6e 73 29 2c 20 74 68 65 | 6e 20 43 6f 6e 66 69 67 |ns), the|n Config|
|00001a40| 75 72 65 20 77 69 6c 6c | 20 6e 6f 74 20 69 6e 63 |ure will| not inc|
|00001a50| 6c 75 64 65 20 74 68 65 | 6d 20 61 6e 64 20 74 68 |lude the|m and th|
|00001a60| 65 0a 58 09 6c 69 62 72 | 61 72 79 20 77 69 6c 6c |e.X.libr|ary will|
|00001a70| 20 69 6e 63 6c 75 64 65 | 20 69 74 73 20 6f 77 6e | include| its own|
|00001a80| 20 76 65 72 73 69 6f 6e | 20 28 77 68 69 63 68 20 | version| (which |
|00001a90| 68 61 73 20 62 65 65 6e | 20 6f 70 74 69 6d 69 7a |has been| optimiz|
|00001aa0| 65 64 20 69 6e 20 61 0a | 58 09 70 6f 72 74 61 62 |ed in a.|X.portab|
|00001ab0| 6c 65 20 66 61 73 68 69 | 6f 6e 29 2e 0a 58 0a 58 |le fashi|on)..X.X|
|00001ac0| 09 49 66 20 74 68 65 20 | 66 69 6c 65 73 20 64 61 |.If the |files da|
|00001ad0| 74 61 6d 63 2e 4f 20 61 | 6e 64 20 64 61 74 61 6d |tamc.O a|nd datam|
|00001ae0| 73 2e 4f 20 64 6f 20 6e | 6f 74 20 67 65 74 20 63 |s.O do n|ot get c|
|00001af0| 72 65 61 74 65 64 2c 20 | 74 68 65 6e 20 74 68 69 |reated, |then thi|
|00001b00| 73 20 77 61 73 0a 58 09 | 74 68 65 20 63 61 73 65 |s was.X.|the case|
|00001b10| 2e 20 20 59 6f 75 20 63 | 61 6e 20 69 6d 70 72 6f |. You c|an impro|
|00001b20| 76 65 20 74 68 65 20 70 | 65 72 66 6f 72 6d 61 6e |ve the p|erforman|
|00001b30| 63 65 20 6f 66 20 74 68 | 65 20 6c 69 62 72 61 72 |ce of th|e librar|
|00001b40| 79 20 73 69 67 6e 69 66 | 69 63 61 6e 74 6c 79 0a |y signif|icantly.|
|00001b50| 58 09 62 79 20 63 6f 64 | 69 6e 67 20 63 6f 6d 70 |X.by cod|ing comp|
|00001b60| 61 74 69 62 6c 65 20 6c | 69 62 72 61 72 69 65 73 |atible l|ibraries|
|00001b70| 20 69 6e 20 61 73 73 65 | 6d 62 6c 79 20 6c 61 6e | in asse|mbly lan|
|00001b80| 67 75 61 67 65 20 69 66 | 20 79 6f 75 72 20 63 70 |guage if| your cp|
|00001b90| 75 0a 58 09 68 61 73 20 | 73 70 65 63 69 61 6c 69 |u.X.has |speciali|
|00001ba0| 7a 65 64 20 64 61 74 61 | 20 6d 6f 76 65 6d 65 6e |zed data| movemen|
|00001bb0| 74 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 2e 20 |t instru|ctions. |
|00001bc0| 20 53 65 65 20 74 68 65 | 20 64 61 74 61 6d 63 2e | See the| datamc.|
|00001bd0| 63 20 72 6f 75 74 69 6e | 65 0a 58 09 66 6f 72 20 |c routin|e.X.for |
|00001be0| 61 20 73 61 6d 70 6c 65 | 20 6f 66 20 73 75 63 68 |a sample| of such|
|00001bf0| 20 61 20 6d 65 63 68 61 | 6e 69 73 6d 20 75 73 65 | a mecha|nism use|
|00001c00| 64 20 74 6f 20 6f 70 74 | 69 6d 69 7a 65 20 6d 65 |d to opt|imize me|
|00001c10| 6d 63 70 79 28 29 20 6f | 70 65 72 61 74 69 6f 6e |mcpy() o|peration|
|00001c20| 73 0a 58 09 6f 6e 20 61 | 20 33 38 36 2e 0a 58 0a |s.X.on a| 386..X.|
|00001c30| 58 09 49 66 20 79 6f 75 | 20 64 6f 20 74 68 69 73 |X.If you| do this|
|00001c40| 2c 20 61 6e 64 20 69 74 | 20 70 61 73 73 65 73 20 |, and it| passes |
|00001c50| 61 6c 6c 20 6f 66 20 74 | 68 65 20 74 65 73 74 73 |all of t|he tests|
|00001c60| 20 28 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 20 | (includ|ing the |
|00001c70| 31 2c 30 30 30 2c 30 30 | 30 0a 58 09 61 6c 6c 6f |1,000,00|0.X.allo|
|00001c80| 63 61 74 69 6f 6e 20 74 | 65 73 74 20 66 6f 72 20 |cation t|est for |
|00001c90| 74 65 73 74 6d 61 6c 6c | 6f 63 29 2c 20 70 6c 65 |testmall|oc), ple|
|00001ca0| 61 73 65 20 73 65 6e 64 | 20 69 74 20 69 6e 20 61 |ase send| it in a|
|00001cb0| 6e 64 20 49 20 77 69 6c | 6c 20 69 6e 63 6c 75 64 |nd I wil|l includ|
|00001cc0| 65 0a 58 09 69 74 20 69 | 6e 20 74 68 65 20 6e 65 |e.X.it i|n the ne|
|00001cd0| 78 74 20 72 65 6c 65 61 | 73 65 2e 0a 58 0a 58 0a |xt relea|se..X.X.|
|00001ce0| 58 31 2e 20 43 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |X1. Comp|ilation |
|00001cf0| 70 72 6f 62 6c 65 6d 73 | 20 77 69 74 68 20 74 68 |problems| with th|
|00001d00| 65 20 6c 69 62 72 61 72 | 79 20 69 74 73 65 6c 66 |e librar|y itself|
|00001d10| 2e 0a 58 0a 58 09 54 68 | 69 73 20 69 73 20 61 20 |..X.X.Th|is is a |
|00001d20| 66 61 69 72 6c 79 20 63 | 6f 6d 6d 6f 6e 20 70 72 |fairly c|ommon pr|
|00001d30| 6f 62 6c 65 6d 20 61 6e | 64 20 69 73 20 6d 6f 73 |oblem an|d is mos|
|00001d40| 74 20 6f 66 74 65 6e 20 | 61 73 73 6f 63 69 61 74 |t often |associat|
|00001d50| 65 64 20 77 69 74 68 0a | 58 09 74 68 65 20 73 65 |ed with.|X.the se|
|00001d60| 74 74 69 6e 67 73 20 66 | 6f 72 20 74 68 65 20 2e |ttings f|or the .|
|00001d70| 63 6f 6e 66 69 67 75 72 | 65 20 23 64 65 66 69 6e |configur|e #defin|
|00001d80| 65 73 2e 20 20 49 66 20 | 79 6f 75 20 67 65 74 20 |es. If |you get |
|00001d90| 61 6e 79 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 0a |any comp|ilation.|
|00001da0| 58 09 65 72 72 6f 72 73 | 20 66 6f 72 20 6d 6f 64 |X.errors| for mod|
|00001db0| 75 6c 65 73 20 77 69 74 | 68 69 6e 20 74 68 69 73 |ules wit|hin this|
|00001dc0| 20 6c 69 62 72 61 72 79 | 2c 20 74 68 65 20 66 69 | library|, the fi|
|00001dd0| 72 73 74 20 74 68 69 6e | 67 20 79 6f 75 20 73 68 |rst thin|g you sh|
|00001de0| 6f 75 6c 64 0a 58 09 64 | 6f 20 69 73 20 76 65 72 |ould.X.d|o is ver|
|00001df0| 69 66 79 20 74 68 61 74 | 20 79 6f 75 20 61 72 65 |ify that| you are|
|00001e00| 20 75 73 69 6e 67 20 74 | 68 65 20 63 6f 72 72 65 | using t|he corre|
|00001e10| 63 74 20 73 65 74 74 69 | 6e 67 73 20 66 6f 72 20 |ct setti|ngs for |
|00001e20| 74 68 65 73 65 0a 58 09 | 74 79 70 65 64 65 66 73 |these.X.|typedefs|
|00001e30| 2e 20 20 52 65 76 69 65 | 77 20 74 68 65 20 64 65 |. Revie|w the de|
|00001e40| 73 63 72 69 70 74 69 6f | 6e 20 6f 6e 20 77 68 61 |scriptio|n on wha|
|00001e50| 74 20 74 68 65 79 20 73 | 68 6f 75 6c 64 20 62 65 |t they s|hould be|
|00001e60| 20 73 65 74 20 74 6f 20 | 61 6e 64 20 0a 58 09 72 | set to |and .X.r|
|00001e70| 65 76 69 65 77 20 74 68 | 65 20 6f 72 69 67 69 6e |eview th|e origin|
|00001e80| 61 6c 20 73 65 74 74 69 | 6e 67 73 2e 0a 58 0a 58 |al setti|ngs..X.X|
|00001e90| 09 41 6e 6f 74 68 65 72 | 20 63 6f 6d 6d 6f 6e 20 |.Another| common |
|00001ea0| 70 72 6f 62 6c 65 6d 20 | 69 73 20 61 74 74 65 6d |problem |is attem|
|00001eb0| 70 74 69 6e 67 20 74 6f | 20 63 6f 6d 70 69 6c 65 |pting to| compile|
|00001ec0| 20 74 68 65 20 6c 69 62 | 72 61 72 79 20 61 6e 64 | the lib|rary and|
|00001ed0| 2f 6f 72 0a 58 09 74 65 | 73 74 20 77 69 74 68 20 |/or.X.te|st with |
|00001ee0| 61 20 73 74 72 69 63 74 | 20 41 4e 53 49 2d 43 20 |a strict| ANSI-C |
|00001ef0| 63 6f 6d 70 69 6c 65 72 | 2e 20 20 53 69 6e 63 65 |compiler|. Since|
|00001f00| 20 41 4e 53 49 20 72 65 | 73 65 72 76 65 73 20 73 | ANSI re|serves s|
|00001f10| 79 6d 62 6f 6c 73 0a 58 | 09 6c 69 6b 65 20 6d 61 |ymbols.X|.like ma|
|00001f20| 6c 6c 6f 63 2c 20 6d 65 | 6d 63 70 79 2c 20 73 74 |lloc, me|mcpy, st|
|00001f30| 72 63 70 79 2c 20 65 74 | 63 20 79 6f 75 20 63 61 |rcpy, et|c you ca|
|00001f40| 6e 20 65 78 70 65 63 74 | 20 74 6f 20 68 61 76 65 |n expect| to have|
|00001f50| 20 61 20 6c 6f 74 20 6f | 66 0a 58 09 70 72 6f 62 | a lot o|f.X.prob|
|00001f60| 6c 65 6d 73 2e 20 20 54 | 68 69 73 20 69 73 20 65 |lems. T|his is e|
|00001f70| 73 70 65 63 69 61 6c 6c | 79 20 73 6f 20 69 66 20 |speciall|y so if |
|00001f80| 74 68 65 20 41 4e 53 49 | 20 69 73 20 76 65 72 79 |the ANSI| is very|
|00001f90| 20 73 74 72 69 63 74 20 | 0a 58 09 62 65 63 61 75 | strict |.X.becau|
|00001fa0| 73 65 20 74 68 65 20 6c | 69 62 72 61 72 79 20 64 |se the l|ibrary d|
|00001fb0| 6f 65 73 20 6d 61 6b 65 | 20 75 73 65 20 6f 66 20 |oes make| use of |
|00001fc0| 55 4e 49 58 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 |UNIX fun|ctionali|
|00001fd0| 74 79 20 6c 69 6b 65 20 | 66 6f 72 6b 2c 0a 58 09 |ty like |fork,.X.|
|00001fe0| 77 61 69 74 2c 20 6f 70 | 65 6e 2c 20 77 72 69 74 |wait, op|en, writ|
|00001ff0| 65 2c 20 65 74 63 2e 0a | 58 0a 58 09 49 66 20 79 |e, etc..|X.X.If y|
|00002000| 6f 75 20 68 61 76 65 20 | 61 63 63 65 73 73 20 74 |ou have |access t|
|00002010| 6f 20 61 6e 20 73 74 61 | 6e 64 61 72 64 20 4b 26 |o an sta|ndard K&|
|00002020| 52 20 63 6f 6d 70 69 6c | 65 72 20 28 6f 72 20 61 |R compil|er (or a|
|00002030| 20 6d 6f 72 65 20 72 65 | 6c 61 78 65 64 20 0a 58 | more re|laxed .X|
|00002040| 09 41 4e 53 49 20 63 6f | 6d 70 69 6c 65 72 2c 20 |.ANSI co|mpiler, |
|00002050| 65 73 70 65 63 69 61 6c | 6c 79 20 6f 6e 65 20 74 |especial|ly one t|
|00002060| 68 61 74 20 75 73 65 73 | 20 74 68 65 20 73 79 73 |hat uses| the sys|
|00002070| 74 65 6d 20 4b 26 52 20 | 73 74 79 6c 65 20 68 65 |tem K&R |style he|
|00002080| 61 64 65 72 0a 58 09 66 | 69 6c 65 73 20 28 69 2e |ader.X.f|iles (i.|
|00002090| 65 2e 20 67 63 63 20 77 | 69 74 68 6f 75 74 20 2d |e. gcc w|ithout -|
|000020a0| 70 65 64 61 6e 74 69 63 | 20 6f 6e 20 61 20 73 79 |pedantic| on a sy|
|000020b0| 73 74 65 6d 20 77 69 74 | 68 20 61 20 6e 6f 6e 2d |stem wit|h a non-|
|000020c0| 41 4e 53 49 20 63 63 29 | 0a 58 09 79 6f 75 20 73 |ANSI cc)|.X.you s|
|000020d0| 68 6f 75 6c 64 20 75 73 | 65 20 69 74 20 74 6f 20 |hould us|e it to |
|000020e0| 63 6f 6d 70 69 6c 65 20 | 74 68 65 20 6c 69 62 72 |compile |the libr|
|000020f0| 61 72 79 2e 20 20 4f 6e | 63 65 20 74 68 65 20 6c |ary. On|ce the l|
|00002100| 69 62 72 61 72 79 20 69 | 73 0a 58 09 63 6f 6d 70 |ibrary i|s.X.comp|
|00002110| 69 6c 65 64 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |iled, yo|u should|
|00002120| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 75 73 65 20 | be able| to use |
|00002130| 69 74 20 77 69 74 68 20 | 63 6f 64 65 20 63 6f 6d |it with |code com|
|00002140| 70 69 6c 65 64 20 75 6e | 64 65 72 0a 58 09 6f 74 |piled un|der.X.ot|
|00002150| 68 65 72 20 63 6f 6d 70 | 69 6c 65 72 73 20 28 61 |her comp|ilers (a|
|00002160| 73 73 75 6d 69 6e 67 2c | 20 6f 66 20 63 6f 75 72 |ssuming,| of cour|
|00002170| 73 65 2c 20 74 68 61 74 | 20 74 68 65 79 20 61 72 |se, that| they ar|
|00002180| 65 20 63 6f 6d 70 61 74 | 69 62 6c 65 29 2e 0a 58 |e compat|ible)..X|
|00002190| 09 0a 58 0a 58 32 2e 20 | 43 6f 6e 66 6c 69 63 74 |..X.X2. |Conflict|
|000021a0| 73 20 77 69 74 68 20 73 | 79 73 74 65 6d 20 70 72 |s with s|ystem pr|
|000021b0| 6f 76 69 64 65 64 20 73 | 74 72 69 6e 67 2e 68 2f |ovided s|tring.h/|
|000021c0| 6d 65 6d 6f 72 79 2e 68 | 20 69 6e 63 6c 75 64 65 |memory.h| include|
|000021d0| 73 0a 58 0a 58 09 54 68 | 65 20 6c 69 62 72 61 72 |s.X.X.Th|e librar|
|000021e0| 79 20 70 72 6f 76 69 64 | 65 73 20 69 74 73 20 6f |y provid|es its o|
|000021f0| 77 6e 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 74 |wn versi|ons of t|
|00002200| 68 65 73 65 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |hese fun|ctions, |
|00002210| 62 75 74 20 69 6e 63 6c | 75 64 65 73 0a 58 09 74 |but incl|udes.X.t|
|00002220| 68 65 20 73 79 73 74 65 | 6d 20 68 65 61 64 65 72 |he syste|m header|
|00002230| 20 66 69 6c 65 73 20 73 | 6f 20 74 68 61 74 20 69 | files s|o that i|
|00002240| 66 20 69 74 20 63 6f 6d | 70 69 6c 65 73 20 77 69 |f it com|piles wi|
|00002250| 74 68 20 6e 6f 20 65 72 | 72 6f 72 73 2c 20 79 6f |th no er|rors, yo|
|00002260| 75 0a 58 09 77 69 6c 6c | 20 6b 6e 6f 77 20 74 68 |u.X.will| know th|
|00002270| 61 74 20 74 68 65 20 74 | 77 6f 20 61 67 72 65 65 |at the t|wo agree|
|00002280| 20 65 78 61 63 74 6c 79 | 2e 20 20 20 54 68 65 20 | exactly|. The |
|00002290| 43 6f 6e 66 69 67 75 72 | 65 20 73 63 72 69 70 74 |Configur|e script|
|000022a0| 20 73 68 6f 75 6c 64 0a | 58 09 68 61 76 65 20 65 | should.|X.have e|
|000022b0| 6e 73 75 72 65 64 20 74 | 68 61 74 20 74 68 65 79 |nsured t|hat they|
|000022c0| 20 61 67 72 65 65 64 2c | 20 62 75 74 20 69 73 20 | agreed,| but is |
|000022d0| 69 74 20 70 6f 73 73 69 | 62 6c 65 20 74 68 61 74 |it possi|ble that|
|000022e0| 20 69 74 20 67 6f 74 20 | 74 68 65 6d 0a 58 09 77 | it got |them.X.w|
|000022f0| 72 6f 6e 67 2e 20 20 43 | 68 65 63 6b 20 74 68 65 |rong. C|heck the|
|00002300| 20 2e 63 6f 6e 66 69 67 | 75 72 65 20 66 69 6c 65 | .config|ure file|
|00002310| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 69 66 | to dete|rmine if|
|00002320| 20 74 68 65 20 23 64 65 | 66 69 6e 65 73 20 61 72 | the #de|fines ar|
|00002330| 65 0a 58 09 73 65 74 20 | 63 6f 72 72 65 63 74 6c |e.X.set |correctl|
|00002340| 79 20 28 61 73 20 64 65 | 73 63 72 69 62 65 64 20 |y (as de|scribed |
|00002350| 69 6e 20 73 74 65 70 20 | 30 29 0a 58 0a 58 33 2e |in step |0).X.X3.|
|00002360| 20 44 75 70 6c 69 63 61 | 74 65 20 73 79 6d 62 6f | Duplica|te symbo|
|00002370| 6c 73 20 66 72 6f 6d 20 | 6c 69 62 63 2e 61 20 28 |ls from |libc.a (|
|00002380| 6f 72 20 69 74 73 20 65 | 71 75 69 76 61 6c 65 6e |or its e|quivalen|
|00002390| 74 20 73 68 61 72 65 64 | 20 6c 69 62 72 61 72 79 |t shared| library|
|000023a0| 29 0a 58 0a 58 09 54 68 | 69 73 20 69 73 20 6d 6f |).X.X.Th|is is mo|
|000023b0| 73 74 20 6f 66 74 65 6e | 20 63 61 75 73 65 64 20 |st often| caused |
|000023c0| 62 79 20 6f 6e 65 20 6f | 66 20 74 68 65 20 73 79 |by one o|f the sy|
|000023d0| 73 74 65 6d 20 6c 69 62 | 72 61 72 79 20 66 75 6e |stem lib|rary fun|
|000023e0| 63 74 69 6f 6e 73 0a 58 | 09 69 6e 63 6c 75 64 69 |ctions.X|.includi|
|000023f0| 6e 67 20 61 6e 20 61 64 | 64 69 74 69 6f 6e 61 6c |ng an ad|ditional|
|00002400| 20 66 75 6e 63 74 69 6f | 6e 2f 76 61 72 69 61 62 | functio|n/variab|
|00002410| 6c 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 6e |le defin|ition in|
|00002420| 20 6f 6e 65 20 6f 66 20 | 74 68 65 0a 58 09 6d 65 | one of |the.X.me|
|00002430| 6d 6f 72 79 2f 73 74 72 | 69 6e 67 20 6c 69 62 72 |mory/str|ing libr|
|00002440| 61 72 79 20 6d 6f 64 75 | 6c 65 73 2e 20 28 69 2e |ary modu|les. (i.|
|00002450| 65 2e 20 73 6f 6d 65 20 | 73 79 73 74 65 6d 73 20 |e. some |systems |
|00002460| 68 61 76 65 20 61 20 63 | 66 72 65 65 28 29 0a 58 |have a c|free().X|
|00002470| 09 63 61 6c 6c 20 74 68 | 61 74 20 69 73 20 69 6e |.call th|at is in|
|00002480| 20 74 68 65 20 63 61 6c | 6c 6f 63 2e 6f 20 6c 69 | the cal|loc.o li|
|00002490| 62 72 61 72 79 20 6d 6f | 64 75 6c 65 29 2e 0a 58 |brary mo|dule)..X|
|000024a0| 0a 58 09 54 68 65 72 65 | 20 61 72 65 20 73 65 76 |.X.There| are sev|
|000024b0| 65 72 61 6c 20 77 61 79 | 73 20 74 6f 20 67 65 74 |eral way|s to get|
|000024c0| 20 61 72 6f 75 6e 64 20 | 74 68 69 73 20 70 72 6f | around |this pro|
|000024d0| 62 6c 65 6d 2e 20 20 54 | 68 65 20 62 65 73 74 20 |blem. T|he best |
|000024e0| 77 61 79 0a 58 09 77 6f | 75 6c 64 20 62 65 20 74 |way.X.wo|uld be t|
|000024f0| 6f 20 64 75 70 6c 69 63 | 61 74 65 20 74 68 65 20 |o duplic|ate the |
|00002500| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 20 6f 66 |function|ality of|
|00002510| 20 74 68 65 20 65 78 74 | 72 61 20 72 65 66 65 72 | the ext|ra refer|
|00002520| 65 6e 63 65 20 0a 58 09 | 77 68 65 72 65 20 65 76 |ence .X.|where ev|
|00002530| 65 72 20 69 74 20 69 73 | 20 61 70 70 72 6f 70 72 |er it is| appropr|
|00002540| 69 61 74 65 20 69 6e 20 | 74 68 65 20 6d 61 6c 6c |iate in |the mall|
|00002550| 6f 63 20 6c 69 62 72 61 | 72 79 20 28 73 69 6d 69 |oc libra|ry (simi|
|00002560| 6c 61 72 6c 79 20 74 6f | 0a 58 09 74 68 65 20 61 |larly to|.X.the a|
|00002570| 64 64 69 74 69 6f 6e 20 | 6f 66 20 63 66 72 65 65 |ddition |of cfree|
|00002580| 20 69 6e 20 74 68 65 20 | 63 61 6c 6c 6f 63 2e 63 | in the |calloc.c|
|00002590| 20 6d 6f 64 75 6c 65 29 | 2e 20 20 20 49 66 20 79 | module)|. If y|
|000025a0| 6f 75 20 64 6f 20 74 68 | 69 73 2c 0a 58 09 70 6c |ou do th|is,.X.pl|
|000025b0| 65 61 73 65 20 73 65 6e | 64 20 6d 65 20 74 68 65 |ease sen|d me the|
|000025c0| 20 6e 65 77 20 66 75 6e | 63 74 69 6f 6e 20 61 6e | new fun|ction an|
|000025d0| 64 20 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |d a desc|ription |
|000025e0| 6f 66 20 74 68 65 20 73 | 79 73 74 65 6d 20 61 6e |of the s|ystem an|
|000025f0| 64 2f 6f 72 0a 58 09 63 | 6f 6d 70 69 6c 65 72 20 |d/or.X.c|ompiler |
|00002600| 73 6f 20 74 68 61 74 20 | 49 20 63 61 6e 20 64 65 |so that |I can de|
|00002610| 74 65 72 6d 69 6e 65 20 | 69 66 20 69 74 20 73 68 |termine |if it sh|
|00002620| 6f 75 6c 64 20 67 6f 20 | 69 6e 74 6f 20 74 68 65 |ould go |into the|
|00002630| 20 73 74 61 6e 64 61 72 | 64 0a 58 09 64 69 73 74 | standar|d.X.dist|
|00002640| 72 69 62 75 74 69 6f 6e | 2e 0a 58 0a 58 09 41 6e |ribution|..X.X.An|
|00002650| 6f 74 68 65 72 20 6d 65 | 63 68 61 6e 69 73 6d 20 |other me|chanism |
|00002660| 74 68 61 74 20 68 61 73 | 20 62 65 65 6e 20 72 65 |that has| been re|
|00002670| 70 6f 72 74 65 64 6c 79 | 20 75 73 65 64 20 69 6e |portedly| used in|
|00002680| 20 73 6f 6d 65 20 61 72 | 63 68 69 74 65 63 74 75 | some ar|chitectu|
|00002690| 72 65 73 0a 58 09 69 73 | 20 74 6f 20 69 67 6e 6f |res.X.is| to igno|
|000026a0| 72 65 20 74 68 65 20 64 | 75 70 6c 69 63 61 74 65 |re the d|uplicate|
|000026b0| 20 73 79 6d 62 6f 6c 20 | 65 72 72 6f 72 73 20 61 | symbol |errors a|
|000026c0| 6e 64 20 6a 75 73 74 20 | 63 68 6d 6f 64 20 74 68 |nd just |chmod th|
|000026d0| 65 20 65 78 65 63 75 74 | 61 62 6c 65 0a 58 09 73 |e execut|able.X.s|
|000026e0| 6f 20 74 68 61 74 20 69 | 74 20 69 73 20 65 78 65 |o that i|t is exe|
|000026f0| 63 75 74 61 62 6c 65 20 | 28 69 2e 65 2e 20 63 68 |cutable |(i.e. ch|
|00002700| 6d 6f 64 20 2b 78 29 2e | 20 20 49 20 64 6f 6e 27 |mod +x).| I don'|
|00002710| 74 20 6b 6e 6f 77 20 69 | 66 20 74 68 69 73 20 69 |t know i|f this i|
|00002720| 73 20 0a 58 09 61 6c 6c | 20 74 68 61 74 20 73 61 |s .X.all| that sa|
|00002730| 66 65 2c 20 6f 72 20 69 | 66 20 69 74 20 77 69 6c |fe, or i|f it wil|
|00002740| 6c 20 77 6f 72 6b 20 6f | 6e 20 79 6f 75 72 20 73 |l work o|n your s|
|00002750| 79 73 74 65 6d 2c 20 62 | 75 74 20 69 74 20 68 61 |ystem, b|ut it ha|
|00002760| 73 20 62 65 65 6e 20 0a | 58 09 72 65 70 6f 72 74 |s been .|X.report|
|00002770| 65 64 20 74 6f 20 73 75 | 63 63 65 73 73 66 75 6c |ed to su|ccessful|
|00002780| 6c 79 20 77 6f 72 6b 20 | 69 6e 20 74 68 69 73 20 |ly work |in this |
|00002790| 66 61 73 68 69 6f 6e 2e | 0a 58 09 0a 58 09 41 6e |fashion.|.X..X.An|
|000027a0| 6f 74 68 65 72 2c 20 6c | 65 73 73 20 64 65 73 69 |other, l|ess desi|
|000027b0| 72 61 62 6c 65 20 77 61 | 79 20 77 6f 75 6c 64 20 |rable wa|y would |
|000027c0| 62 65 20 74 6f 20 64 69 | 73 61 62 6c 65 20 74 68 |be to di|sable th|
|000027d0| 65 20 6f 66 66 65 6e 64 | 69 6e 67 20 66 75 6e 63 |e offend|ing func|
|000027e0| 74 69 6f 6e 0a 58 09 69 | 6e 20 74 68 69 73 20 6c |tion.X.i|n this l|
|000027f0| 69 62 72 61 72 79 2e 20 | 20 54 68 69 73 20 6f 70 |ibrary. | This op|
|00002800| 74 69 6f 6e 20 69 73 20 | 6c 65 73 73 20 64 65 73 |tion is |less des|
|00002810| 69 72 61 62 6c 65 20 62 | 65 63 61 75 73 65 20 74 |irable b|ecause t|
|00002820| 68 65 20 64 69 73 61 62 | 6c 65 64 0a 58 09 66 75 |he disab|led.X.fu|
|00002830| 6e 63 74 69 6f 6e 20 77 | 6f 75 6c 64 20 6e 6f 20 |nction w|ould no |
|00002840| 6c 6f 6e 67 65 72 20 70 | 72 6f 76 69 64 65 20 61 |longer p|rovide a|
|00002850| 6e 79 20 65 72 72 6f 72 | 20 63 68 65 63 6b 69 6e |ny error| checkin|
|00002860| 67 20 28 77 68 69 63 68 | 20 69 73 20 0a 58 09 73 |g (which| is .X.s|
|00002870| 75 70 70 6f 73 65 64 20 | 74 6f 20 62 65 20 74 68 |upposed |to be th|
|00002880| 65 20 70 75 72 70 6f 73 | 65 20 6f 66 20 74 68 69 |e purpos|e of thi|
|00002890| 73 20 6c 69 62 72 61 72 | 79 29 2e 0a 58 0a 58 09 |s librar|y)..X.X.|
|000028a0| 57 69 74 68 20 73 68 61 | 72 65 64 20 6c 69 62 72 |With sha|red libr|
|000028b0| 61 72 69 65 73 2c 20 74 | 68 65 72 65 20 61 72 65 |aries, t|here are|
|000028c0| 20 73 6f 6d 65 20 66 6f | 72 6d 61 74 73 20 28 70 | some fo|rmats (p|
|000028d0| 65 72 68 61 70 73 20 61 | 6c 6c 29 20 74 68 61 74 |erhaps a|ll) that|
|000028e0| 0a 58 09 68 61 76 65 20 | 65 78 70 6c 69 63 69 74 |.X.have |explicit|
|000028f0| 20 72 65 66 65 72 65 6e | 63 65 73 20 74 6f 20 66 | referen|ces to f|
|00002900| 75 6e 63 74 69 6f 6e 73 | 20 69 6e 20 74 68 65 20 |unctions| in the |
|00002910| 73 68 61 72 65 64 20 6c | 69 62 72 61 72 79 20 74 |shared l|ibrary t|
|00002920| 68 61 74 0a 58 09 61 72 | 65 20 64 75 70 6c 69 63 |hat.X.ar|e duplic|
|00002930| 61 74 65 64 20 69 6e 20 | 74 68 65 20 64 65 62 75 |ated in |the debu|
|00002940| 67 20 6c 69 62 72 61 72 | 79 2e 20 20 4f 6e 20 74 |g librar|y. On t|
|00002950| 68 65 73 65 20 73 79 73 | 74 65 6d 73 2c 20 74 68 |hese sys|tems, th|
|00002960| 65 0a 58 09 6f 6e 6c 79 | 20 77 61 79 20 61 72 6f |e.X.only| way aro|
|00002970| 75 6e 64 20 74 68 65 20 | 70 72 6f 62 6c 65 6d 20 |und the |problem |
|00002980| 69 73 20 74 6f 20 6e 6f | 74 20 75 73 65 20 74 68 |is to no|t use th|
|00002990| 65 20 73 68 61 72 65 64 | 20 6c 69 62 72 61 72 79 |e shared| library|
|000029a0| 20 0a 58 09 77 68 65 6e | 20 6c 69 6e 6b 69 6e 67 | .X.when| linking|
|000029b0| 20 74 68 65 20 74 65 73 | 74 20 76 65 72 73 69 6f | the tes|t versio|
|000029c0| 6e 20 6f 66 20 74 68 65 | 20 73 6f 66 74 77 61 72 |n of the| softwar|
|000029d0| 65 2e 0a 58 0a 58 34 2e | 20 43 6f 6d 70 69 6c 61 |e..X.X4.| Compila|
|000029e0| 74 69 6f 6e 20 65 72 72 | 6f 72 73 20 69 6e 20 73 |tion err|ors in s|
|000029f0| 74 72 69 6e 67 2e 63 20 | 61 6e 64 2f 6f 72 20 6d |tring.c |and/or m|
|00002a00| 65 6d 6f 72 79 2e 63 0a | 58 0a 58 09 54 68 65 72 |emory.c.|X.X.Ther|
|00002a10| 65 20 61 72 65 20 73 65 | 76 65 72 61 6c 20 63 6f |e are se|veral co|
|00002a20| 6d 70 69 6c 65 72 73 20 | 74 68 61 74 20 70 72 6f |mpilers |that pro|
|00002a30| 76 69 64 65 20 69 6e 2d | 6c 69 6e 65 20 65 78 70 |vide in-|line exp|
|00002a40| 61 6e 73 69 6f 6e 20 6f | 66 0a 58 09 72 6f 75 74 |ansion o|f.X.rout|
|00002a50| 69 6e 65 73 20 6c 69 6b | 65 20 73 74 72 63 70 79 |ines lik|e strcpy|
|00002a60| 2e 20 20 54 68 69 73 20 | 63 61 6e 20 63 61 75 73 |. This |can caus|
|00002a70| 65 20 72 65 61 6c 20 70 | 72 6f 62 6c 65 6d 73 20 |e real p|roblems |
|00002a80| 77 68 65 6e 20 77 65 20 | 0a 58 09 74 72 79 20 74 |when we |.X.try t|
|00002a90| 6f 20 63 6f 6d 70 69 6c | 65 20 6f 75 72 20 6f 77 |o compil|e our ow|
|00002aa0| 6e 20 76 65 72 73 69 6f | 6e 2e 20 20 49 66 20 79 |n versio|n. If y|
|00002ab0| 6f 75 20 63 61 6e 20 64 | 69 73 61 62 6c 65 20 74 |ou can d|isable t|
|00002ac0| 68 65 20 69 6e 2d 6c 69 | 6e 65 0a 58 09 65 78 70 |he in-li|ne.X.exp|
|00002ad0| 61 6e 73 69 6f 6e 2c 20 | 74 68 61 74 20 69 73 20 |ansion, |that is |
|00002ae0| 74 68 65 20 62 65 73 74 | 20 77 61 79 20 74 6f 20 |the best| way to |
|00002af0| 67 6f 2e 20 20 54 68 69 | 73 20 73 68 6f 75 6c 64 |go. Thi|s should|
|00002b00| 20 6f 6e 6c 79 20 62 65 | 0a 58 09 6e 65 65 64 65 | only be|.X.neede|
|00002b10| 64 20 66 6f 72 20 74 68 | 65 20 6d 61 6c 6c 6f 63 |d for th|e malloc|
|00002b20| 20 6c 69 62 72 61 72 79 | 20 69 74 73 65 6c 66 2e | library| itself.|
|00002b30| 20 20 54 68 65 20 73 6f | 75 72 63 65 20 79 6f 75 | The so|urce you|
|00002b40| 20 61 72 65 20 64 65 62 | 75 67 67 69 6e 67 0a 58 | are deb|ugging.X|
|00002b50| 09 73 68 6f 75 6c 64 20 | 69 6e 63 6c 75 64 65 20 |.should |include |
|00002b60| 74 68 65 20 6d 61 6c 6c | 6f 63 2e 68 20 66 69 6c |the mall|oc.h fil|
|00002b70| 65 20 61 6e 64 20 74 68 | 65 72 65 66 6f 72 65 20 |e and th|erefore |
|00002b80| 77 6f 6e 27 74 20 62 65 | 20 63 61 6c 6c 69 6e 67 |won't be| calling|
|00002b90| 0a 58 09 73 74 72 63 70 | 79 2c 20 62 75 74 20 69 |.X.strcp|y, but i|
|00002ba0| 6e 73 74 65 61 64 20 77 | 69 6c 6c 20 62 65 20 63 |nstead w|ill be c|
|00002bb0| 61 6c 6c 69 6e 67 20 44 | 42 73 74 72 63 70 79 20 |alling D|Bstrcpy |
|00002bc0| 28 62 65 63 61 75 73 65 | 20 6f 66 20 61 20 6d 61 |(because| of a ma|
|00002bd0| 63 72 6f 0a 58 09 69 6e | 20 6d 61 6c 6c 6f 63 2e |cro.X.in| malloc.|
|00002be0| 68 29 2e 0a 58 0a 58 09 | 44 69 73 61 62 6c 69 6e |h)..X.X.|Disablin|
|00002bf0| 67 20 74 68 65 20 69 6e | 2d 6c 69 6e 69 6e 67 20 |g the in|-lining |
|00002c00| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 73 20 69 73 20 |of funct|ions is |
|00002c10| 75 73 75 61 6c 6c 79 20 | 61 63 63 6f 6d 70 6c 69 |usually |accompli|
|00002c20| 73 68 65 64 20 62 79 0a | 58 09 73 65 74 74 69 6e |shed by.|X.settin|
|00002c30| 67 20 61 20 63 6f 6d 70 | 69 6c 65 72 20 66 6c 61 |g a comp|iler fla|
|00002c40| 67 2c 20 6f 72 20 73 6f | 6d 65 74 69 6d 65 73 20 |g, or so|metimes |
|00002c50| 62 79 20 70 72 65 64 65 | 66 69 6e 69 6e 67 20 73 |by prede|fining s|
|00002c60| 6f 6d 65 20 23 64 65 66 | 0a 58 09 74 68 61 74 20 |ome #def|.X.that |
|00002c70| 69 73 20 75 73 65 64 20 | 62 79 20 73 79 73 74 65 |is used |by syste|
|00002c80| 6d 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 2e |m includ|e files.|
|00002c90| 0a 58 0a 58 09 49 66 20 | 79 6f 75 20 63 61 6e 27 |.X.X.If |you can'|
|00002ca0| 74 20 64 69 73 61 62 6c | 65 20 74 68 65 20 69 6e |t disabl|e the in|
|00002cb0| 2d 6c 69 6e 65 20 65 78 | 70 61 6e 73 69 6f 6e 2c |-line ex|pansion,|
|00002cc0| 20 79 6f 75 20 77 69 6c | 6c 20 68 61 76 65 20 74 | you wil|l have t|
|00002cd0| 6f 20 0a 58 09 64 69 73 | 61 62 6c 65 20 74 68 65 |o .X.dis|able the|
|00002ce0| 20 64 65 62 75 67 20 76 | 65 72 73 69 6f 6e 73 20 | debug v|ersions |
|00002cf0| 6f 66 20 74 68 65 20 6f | 66 66 65 6e 64 69 6e 67 |of the o|ffending|
|00002d00| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 6e 20 74 68 | functio|ns in th|
|00002d10| 65 0a 58 09 6d 61 6c 6c | 6f 63 20 6c 69 62 72 61 |e.X.mall|oc libra|
|00002d20| 72 79 20 62 79 20 61 64 | 64 69 6e 67 20 61 20 23 |ry by ad|ding a #|
|00002d30| 69 66 64 65 66 20 61 72 | 6f 75 6e 64 20 74 68 65 |ifdef ar|ound the|
|00002d40| 20 63 6f 64 65 2e 20 20 | 42 65 20 73 75 72 65 20 | code. |Be sure |
|00002d50| 74 6f 0a 58 09 6a 75 73 | 74 20 64 69 73 61 62 6c |to.X.jus|t disabl|
|00002d60| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |e the fu|nctions |
|00002d70| 74 68 61 74 20 61 72 65 | 20 67 69 76 69 6e 67 20 |that are| giving |
|00002d80| 79 6f 75 20 70 72 6f 62 | 6c 65 6d 73 20 28 69 2e |you prob|lems (i.|
|00002d90| 65 2e 20 64 6f 6e 27 74 | 0a 58 09 64 69 73 61 62 |e. don't|.X.disab|
|00002da0| 6c 65 20 61 6c 6c 20 6f | 66 20 73 74 72 69 6e 67 |le all o|f string|
|00002db0| 2e 63 20 61 6e 64 20 64 | 6f 6e 27 74 20 64 69 73 |.c and d|on't dis|
|00002dc0| 61 62 6c 65 20 74 68 65 | 20 44 42 20 66 75 6e 63 |able the| DB func|
|00002dd0| 74 69 6f 6e 73 2c 20 62 | 65 63 61 75 73 65 0a 58 |tions, b|ecause.X|
|00002de0| 09 61 6e 79 20 63 6f 64 | 65 20 74 68 61 74 20 69 |.any cod|e that i|
|00002df0| 6e 63 6c 75 64 65 73 20 | 6d 61 6c 6c 6f 63 2e 68 |ncludes |malloc.h|
|00002e00| 20 77 69 6c 6c 20 61 74 | 74 65 6d 70 74 20 74 6f | will at|tempt to|
|00002e10| 20 75 73 65 20 74 68 65 | 6d 29 2e 0a 58 0a 58 35 | use the|m)..X.X5|
|00002e20| 2e 20 43 6f 6e 66 6c 69 | 63 74 73 2f 70 72 6f 62 |. Confli|cts/prob|
|00002e30| 6c 65 6d 73 20 77 69 74 | 68 20 70 72 6f 74 6f 74 |lems wit|h protot|
|00002e40| 79 70 65 73 2e 68 0a 58 | 0a 58 09 50 72 6f 74 6f |ypes.h.X|.X.Proto|
|00002e50| 74 79 70 65 73 2e 68 20 | 69 73 20 61 20 67 65 6e |types.h |is a gen|
|00002e60| 65 72 61 74 65 64 20 66 | 69 6c 65 20 74 68 61 74 |erated f|ile that|
|00002e70| 20 68 61 73 20 7a 69 6c | 6c 69 6f 6e 73 20 6f 66 | has zil|lions of|
|00002e80| 20 66 75 6e 63 74 69 6f | 6e 0a 58 09 70 72 6f 74 | functio|n.X.prot|
|00002e90| 6f 74 79 70 65 73 20 66 | 6f 72 20 74 68 65 20 6d |otypes f|or the m|
|00002ea0| 61 6c 6c 6f 63 20 6c 69 | 62 72 61 72 79 2e 20 20 |alloc li|brary. |
|00002eb0| 59 6f 75 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 6e |You shou|ld not n|
|00002ec0| 65 65 64 20 74 6f 20 72 | 65 6d 61 6b 65 0a 58 09 |eed to r|emake.X.|
|00002ed0| 74 68 69 73 20 6d 6f 64 | 75 6c 65 2e 20 20 49 66 |this mod|ule. If|
|00002ee0| 2c 20 68 6f 77 65 76 65 | 72 2c 20 79 6f 75 20 68 |, howeve|r, you h|
|00002ef0| 61 76 65 20 6d 61 64 65 | 20 63 68 61 6e 67 65 73 |ave made| changes|
|00002f00| 20 74 6f 20 74 68 65 20 | 63 61 6c 6c 69 6e 67 0a | to the |calling.|
|00002f10| 58 09 61 72 67 75 6d 65 | 6e 74 73 20 66 6f 72 20 |X.argume|nts for |
|00002f20| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 66 75 6e 63 |some of |the func|
|00002f30| 74 69 6f 6e 73 20 64 75 | 65 20 74 6f 20 63 6f 6e |tions du|e to con|
|00002f40| 66 6c 69 63 74 73 20 77 | 69 74 68 20 73 79 73 74 |flicts w|ith syst|
|00002f50| 65 6d 0a 58 09 68 65 61 | 64 65 72 73 2c 20 79 6f |em.X.hea|ders, yo|
|00002f60| 75 20 6d 61 79 20 68 61 | 76 65 20 74 6f 20 6d 6f |u may ha|ve to mo|
|00002f70| 64 69 66 79 20 6f 72 20 | 72 65 62 75 69 6c 64 20 |dify or |rebuild |
|00002f80| 74 68 69 73 20 66 69 6c | 65 2e 0a 58 0a 58 09 54 |this fil|e..X.X.T|
|00002f90| 6f 20 72 65 62 75 69 6c | 64 20 74 68 65 20 66 69 |o rebuil|d the fi|
|00002fa0| 6c 65 20 75 73 69 6e 67 | 20 74 68 65 20 6d 61 6b |le using| the mak|
|00002fb0| 65 66 69 6c 65 20 74 61 | 72 67 65 74 73 20 79 6f |efile ta|rgets yo|
|00002fc0| 75 20 6d 75 73 74 20 68 | 61 76 65 20 74 68 65 0a |u must h|ave the.|
|00002fd0| 58 09 63 70 72 6f 74 6f | 20 70 72 6f 74 6f 74 79 |X.cproto| prototy|
|00002fe0| 70 65 20 67 65 6e 65 72 | 61 74 6f 72 20 28 61 76 |pe gener|ator (av|
|00002ff0| 61 69 6c 61 62 6c 65 20 | 69 6e 20 63 6f 6d 70 2e |ailable |in comp.|
|00003000| 73 6f 75 72 63 65 73 2e | 6d 69 73 63 2c 20 76 6f |sources.|misc, vo|
|00003010| 6c 73 20 31 37 0a 58 09 | 61 6e 64 20 31 38 29 2e |ls 17.X.|and 18).|
|00003020| 0a 58 0a 58 36 2e 20 41 | 72 67 75 6d 65 6e 74 20 |.X.X6. A|rgument |
|00003030| 6d 69 73 2d 6d 61 74 63 | 68 65 73 20 61 6e 64 20 |mis-matc|hes and |
|00003040| 73 79 6e 74 61 78 20 65 | 72 72 6f 72 73 20 77 68 |syntax e|rrors wh|
|00003050| 65 6e 20 69 6e 63 6c 75 | 64 69 6e 67 20 6d 61 6c |en inclu|ding mal|
|00003060| 6c 6f 63 2e 68 0a 58 0a | 58 09 54 68 69 73 20 69 |loc.h.X.|X.This i|
|00003070| 73 20 75 73 75 61 6c 6c | 79 20 74 68 65 20 72 65 |s usuall|y the re|
|00003080| 73 75 6c 74 20 6f 66 20 | 69 6e 63 6c 75 64 69 6e |sult of |includin|
|00003090| 67 20 6d 61 6c 6c 6f 63 | 2e 68 20 62 65 66 6f 72 |g malloc|.h befor|
|000030a0| 65 20 73 74 72 69 6e 67 | 2e 68 0a 58 09 61 6e 64 |e string|.h.X.and|
|000030b0| 2f 6f 72 20 6d 65 6d 6f | 72 79 2e 68 20 77 68 69 |/or memo|ry.h whi|
|000030c0| 63 68 20 63 61 75 73 65 | 73 20 6c 6f 74 73 20 6f |ch cause|s lots o|
|000030d0| 66 20 70 72 6f 62 6c 65 | 6d 73 2e 20 20 6d 61 6c |f proble|ms. mal|
|000030e0| 6c 6f 63 2e 68 20 61 74 | 74 65 6d 70 74 73 0a 58 |loc.h at|tempts.X|
|000030f0| 09 74 6f 20 61 76 6f 69 | 64 20 74 68 69 73 20 70 |.to avoi|d this p|
|00003100| 72 6f 62 6c 65 6d 20 62 | 79 20 23 64 65 66 69 6e |roblem b|y #defin|
|00003110| 69 6e 67 20 61 20 62 75 | 6e 63 68 20 6f 66 20 74 |ing a bu|nch of t|
|00003120| 79 70 69 63 61 6c 20 73 | 79 6d 62 6f 6c 73 20 75 |ypical s|ymbols u|
|00003130| 73 65 64 0a 58 09 74 6f | 20 70 72 65 63 6c 75 64 |sed.X.to| preclud|
|00003140| 65 20 6d 75 6c 74 69 70 | 6c 65 20 69 6e 63 6c 75 |e multip|le inclu|
|00003150| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 73 65 20 66 |sions of| these f|
|00003160| 69 6c 65 73 2c 20 62 75 | 74 20 73 6f 6d 65 20 73 |iles, bu|t some s|
|00003170| 79 73 74 65 6d 73 20 64 | 6f 0a 58 09 6e 6f 74 20 |ystems d|o.X.not |
|00003180| 68 61 76 65 20 74 68 69 | 73 20 6d 75 6c 74 69 70 |have thi|s multip|
|00003190| 6c 65 20 69 6e 63 6c 75 | 73 69 6f 6e 20 70 72 6f |le inclu|sion pro|
|000031a0| 74 65 63 74 69 6f 6e 2c | 20 6f 72 20 75 73 65 20 |tection,| or use |
|000031b0| 61 20 73 6c 69 67 68 74 | 6c 79 20 0a 58 09 64 69 |a slight|ly .X.di|
|000031c0| 66 66 65 72 65 6e 74 20 | 73 79 6d 62 6f 6c 20 66 |fferent |symbol f|
|000031d0| 6f 72 20 74 68 65 20 70 | 72 6f 74 65 63 74 69 6f |or the p|rotectio|
|000031e0| 6e 2e 0a 58 0a 58 09 54 | 6f 20 67 65 74 20 61 72 |n..X.X.T|o get ar|
|000031f0| 6f 75 6e 64 20 74 68 69 | 73 20 70 72 6f 62 6c 65 |ound thi|s proble|
|00003200| 6d 20 79 6f 75 20 63 6f | 75 6c 64 20 64 6f 20 6f |m you co|uld do o|
|00003210| 6e 65 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ne of th|e follow|
|00003220| 69 6e 67 3a 0a 58 0a 58 | 09 09 31 2e 20 63 68 61 |ing:.X.X|..1. cha|
|00003230| 6e 67 65 20 74 68 65 20 | 63 6f 64 65 20 73 6f 20 |nge the |code so |
|00003240| 74 68 61 74 20 69 74 20 | 69 6e 63 6c 75 64 65 73 |that it |includes|
|00003250| 20 6d 61 6c 6c 6f 63 2e | 68 20 6c 61 73 74 2e 0a | malloc.|h last..|
|00003260| 58 09 09 32 2e 20 61 64 | 64 20 6d 75 6c 74 69 70 |X..2. ad|d multip|
|00003270| 6c 65 20 69 6e 63 6c 75 | 73 69 6f 6e 20 70 72 6f |le inclu|sion pro|
|00003280| 74 65 63 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 73 |tection |to the s|
|00003290| 79 73 74 65 6d 20 69 6e | 63 6c 75 64 65 0a 58 09 |ystem in|clude.X.|
|000032a0| 09 20 20 20 66 69 6c 65 | 73 2e 0a 58 09 09 33 2e |. file|s..X..3.|
|000032b0| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 23 64 65 66 | remove |the #def|
|000032c0| 69 6e 65 73 20 66 72 6f | 6d 20 6d 61 6c 6c 6f 63 |ines fro|m malloc|
|000032d0| 2e 68 20 28 77 68 69 63 | 68 20 64 65 63 72 65 61 |.h (whic|h decrea|
|000032e0| 73 65 73 20 74 68 65 0a | 58 09 09 20 20 20 61 62 |ses the.|X.. ab|
|000032f0| 69 6c 69 74 79 20 66 6f | 72 20 74 68 65 20 64 65 |ility fo|r the de|
|00003300| 62 75 67 20 6c 69 62 72 | 61 72 79 20 74 6f 20 69 |bug libr|ary to i|
|00003310| 64 65 6e 74 69 66 79 20 | 74 68 65 20 73 6f 75 72 |dentify |the sour|
|00003320| 63 65 20 6f 66 0a 58 09 | 09 20 20 20 74 68 65 20 |ce of.X.|. the |
|00003330| 70 72 6f 62 6c 65 6d 73 | 29 2e 0a 58 0a 58 09 41 |problems|)..X.X.A|
|00003340| 6e 6f 74 68 65 72 20 70 | 72 6f 62 6c 65 6d 20 77 |nother p|roblem w|
|00003350| 69 74 68 20 69 6e 63 6c | 75 64 69 6e 67 20 6d 61 |ith incl|uding ma|
|00003360| 6c 6c 6f 63 2e 68 20 77 | 69 6c 6c 20 6f 63 63 75 |lloc.h w|ill occu|
|00003370| 72 20 69 66 20 79 6f 75 | 20 68 61 76 65 20 6c 6f |r if you| have lo|
|00003380| 63 61 6c 0a 58 09 64 65 | 66 69 6e 69 74 69 6f 6e |cal.X.de|finition|
|00003390| 73 20 6f 66 20 74 68 69 | 6e 67 73 20 6c 69 6b 65 |s of thi|ngs like|
|000033a0| 3a 0a 58 0a 58 09 09 09 | 63 68 61 72 20 2a 20 73 |:.X.X...|char * s|
|000033b0| 74 72 63 70 79 28 29 3b | 0a 58 09 0a 58 09 77 68 |trcpy();|.X..X.wh|
|000033c0| 69 63 68 20 77 69 6c 6c | 20 72 65 73 75 6c 74 20 |ich will| result |
|000033d0| 69 6e 20 61 20 70 72 65 | 70 72 6f 63 65 73 73 6f |in a pre|processo|
|000033e0| 72 20 6f 72 20 63 6f 6d | 70 69 6c 65 72 20 65 72 |r or com|piler er|
|000033f0| 72 6f 72 20 62 65 63 61 | 75 73 65 20 6f 66 20 74 |ror beca|use of t|
|00003400| 68 65 0a 58 09 23 64 65 | 66 69 6e 65 73 20 69 6e |he.X.#de|fines in|
|00003410| 20 6d 61 6c 6c 6f 63 2e | 68 2e 20 20 54 68 65 20 | malloc.|h. The |
|00003420| 72 65 63 6f 6d 6d 65 6e | 64 65 64 20 73 6f 6c 75 |recommen|ded solu|
|00003430| 74 69 6f 6e 20 74 6f 20 | 74 68 69 73 20 70 72 6f |tion to |this pro|
|00003440| 62 6c 65 6d 20 69 73 0a | 58 09 74 6f 20 72 65 6d |blem is.|X.to rem|
|00003450| 6f 76 65 20 74 68 65 20 | 6c 6f 63 61 6c 20 64 65 |ove the |local de|
|00003460| 66 69 6e 69 74 69 6f 6e | 73 20 61 6e 64 20 69 6e |finition|s and in|
|00003470| 63 6c 75 64 65 20 74 68 | 65 20 73 79 73 74 65 6d |clude th|e system|
|00003480| 20 68 65 61 64 65 72 20 | 66 69 6c 65 73 0a 58 09 | header |files.X.|
|00003490| 74 68 61 74 20 68 61 76 | 65 20 74 68 65 20 64 65 |that hav|e the de|
|000034a0| 66 69 6e 69 74 69 6f 6e | 73 20 28 73 74 72 69 6e |finition|s (strin|
|000034b0| 67 2e 68 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |g.h in t|his case|
|000034c0| 29 2e 20 20 49 66 20 79 | 6f 75 20 63 61 6e 27 74 |). If y|ou can't|
|000034d0| 20 6f 72 0a 58 09 64 6f | 6e 27 74 20 77 61 6e 74 | or.X.do|n't want|
|000034e0| 20 74 6f 20 64 6f 20 74 | 68 69 73 2c 20 79 6f 75 | to do t|his, you|
|000034f0| 20 63 61 6e 20 61 64 64 | 20 23 69 66 6e 64 65 66 | can add| #ifndef|
|00003500| 20 5f 44 45 42 55 47 5f | 4d 41 4c 4c 4f 43 5f 49 | _DEBUG_|MALLOC_I|
|00003510| 4e 43 20 61 6e 64 20 0a | 58 09 23 65 6e 64 69 66 |NC and .|X.#endif|
|00003520| 20 61 72 6f 75 6e 64 20 | 74 68 65 20 6c 6f 63 61 | around |the loca|
|00003530| 6c 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 73 6f |l defini|tions so|
|00003540| 20 74 68 61 74 20 74 68 | 65 79 20 61 72 65 20 6e | that th|ey are n|
|00003550| 6f 74 20 69 6e 63 6c 75 | 64 65 64 20 69 66 0a 58 |ot inclu|ded if.X|
|00003560| 09 74 68 65 20 64 65 62 | 75 67 67 69 6e 67 20 76 |.the deb|ugging v|
|00003570| 65 72 73 69 6f 6e 20 6f | 66 20 6d 61 6c 6c 6f 63 |ersion o|f malloc|
|00003580| 2e 68 20 69 73 20 69 6e | 63 6c 75 64 65 64 2e 0a |.h is in|cluded..|
|00003590| 58 0a 58 09 59 65 74 20 | 61 6e 6f 74 68 65 72 20 |X.X.Yet |another |
|000035a0| 73 69 6d 69 6c 61 72 20 | 70 72 6f 62 6c 65 6d 20 |similar |problem |
|000035b0| 69 73 20 74 68 65 20 75 | 73 65 20 6f 66 20 73 74 |is the u|se of st|
|000035c0| 61 6e 64 61 72 64 20 73 | 79 6d 62 6f 6c 73 20 66 |andard s|ymbols f|
|000035d0| 6f 72 20 76 61 72 69 61 | 62 6c 65 0a 58 09 61 6e |or varia|ble.X.an|
|000035e0| 64 2f 6f 72 20 73 74 72 | 75 63 74 75 72 65 20 65 |d/or str|ucture e|
|000035f0| 6c 65 6d 65 6e 74 20 6e | 61 6d 65 73 2e 20 20 54 |lement n|ames. T|
|00003600| 68 69 73 20 68 61 70 70 | 65 6e 73 20 6d 6f 73 74 |his happ|ens most|
|00003610| 20 6f 66 74 65 6e 20 77 | 69 74 68 20 74 68 65 0a | often w|ith the.|
|00003620| 58 09 76 61 72 69 61 62 | 6c 65 20 69 6e 64 65 78 |X.variab|le index|
|00003630| 2e 20 0a 58 0a 58 09 54 | 6f 20 66 69 78 20 74 68 |. .X.X.T|o fix th|
|00003640| 69 73 2c 20 79 6f 75 20 | 63 61 6e 20 63 68 61 6e |is, you |can chan|
|00003650| 67 65 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ge the n|ame of t|
|00003660| 68 65 20 76 61 72 69 61 | 62 6c 65 2c 20 23 75 6e |he varia|ble, #un|
|00003670| 64 65 66 20 69 6e 64 65 | 78 0a 58 09 61 66 74 65 |def inde|x.X.afte|
|00003680| 72 20 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 20 |r includ|ing the |
|00003690| 6d 61 6c 6c 6f 63 20 6c | 69 62 72 61 72 79 2c 20 |malloc l|ibrary, |
|000036a0| 6f 72 20 72 65 6d 6f 76 | 65 20 74 68 65 20 23 64 |or remov|e the #d|
|000036b0| 65 66 69 6e 65 20 69 6e | 64 65 78 0a 58 09 6c 69 |efine in|dex.X.li|
|000036c0| 6e 65 20 66 72 6f 6d 20 | 6d 61 6c 6c 6f 63 2e 68 |ne from |malloc.h|
|000036d0| 0a 58 0a 58 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.X.X****|********|
|000036e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000036f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 58 |********|******.X|
|00003720| 53 59 53 54 45 4d 20 53 | 50 45 43 49 46 49 43 20 |SYSTEM S|PECIFIC |
|00003730| 50 52 4f 42 4c 45 4d 53 | 0a 58 0a 58 0a 58 53 75 |PROBLEMS|.X.X.XSu|
|00003740| 6e 20 53 70 61 72 63 20 | 77 2f 20 53 75 6e 4f 53 |n Sparc |w/ SunOS|
|00003750| 20 34 2e 78 20 61 6e 64 | 20 47 43 43 20 32 2e 31 | 4.x and| GCC 2.1|
|00003760| 0a 58 0a 58 09 54 68 65 | 20 68 65 61 64 65 72 20 |.X.X.The| header |
|00003770| 66 69 6c 65 73 20 70 72 | 6f 76 69 64 65 64 20 62 |files pr|ovided b|
|00003780| 79 20 73 75 6e 20 64 6f | 20 6e 6f 74 20 63 6f 6e |y sun do| not con|
|00003790| 74 61 69 6e 20 61 6e 73 | 69 20 73 74 61 6e 64 61 |tain ans|i standa|
|000037a0| 72 64 20 0a 58 09 64 65 | 66 69 6e 69 74 69 6f 6e |rd .X.de|finition|
|000037b0| 73 20 66 6f 72 20 6d 61 | 6e 79 20 6f 66 20 74 68 |s for ma|ny of th|
|000037c0| 65 20 6d 6f 64 75 6c 65 | 73 20 75 73 65 64 20 62 |e module|s used b|
|000037d0| 79 20 74 68 65 20 6c 69 | 62 72 61 72 79 20 61 6e |y the li|brary an|
|000037e0| 64 20 63 61 75 73 65 0a | 58 09 70 72 6f 62 6c 65 |d cause.|X.proble|
|000037f0| 6d 73 20 77 68 65 6e 20 | 69 6e 63 6c 75 64 65 64 |ms when |included|
|00003800| 20 62 79 20 63 6f 64 65 | 20 63 6f 6d 70 69 6c 65 | by code| compile|
|00003810| 64 20 62 79 20 47 43 43 | 2e 20 20 54 68 69 73 20 |d by GCC|. This |
|00003820| 69 6e 63 6c 75 64 65 73 | 0a 58 09 74 68 69 6e 67 |includes|.X.thing|
|00003830| 73 20 6c 69 6b 65 20 3c | 6d 65 6d 6f 72 79 2e 68 |s like <|memory.h|
|00003840| 3e 20 77 68 69 63 68 20 | 68 61 73 20 61 20 70 72 |> which |has a pr|
|00003850| 6f 74 6f 74 79 70 65 20 | 66 6f 72 20 6d 65 6d 63 |ototype |for memc|
|00003860| 70 79 20 77 68 69 63 68 | 0a 58 09 69 73 20 73 6f |py which|.X.is so|
|00003870| 6d 65 74 68 69 6e 67 20 | 6c 69 6b 65 20 76 6f 69 |mething |like voi|
|00003880| 64 20 2a 20 6d 65 6d 63 | 70 79 28 29 3b 20 61 6e |d * memc|py(); an|
|00003890| 64 20 64 6f 65 73 6e 27 | 74 20 61 67 72 65 65 20 |d doesn'|t agree |
|000038a0| 77 69 74 68 20 74 68 65 | 0a 58 09 62 75 69 6c 74 |with the|.X.built|
|000038b0| 69 6e 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 6e |in defin|ition in|
|000038c0| 20 67 63 63 20 28 76 6f | 69 64 20 2a 20 6d 65 6d | gcc (vo|id * mem|
|000038d0| 63 70 79 28 76 6f 69 64 | 20 2a 2c 20 63 6f 6e 73 |cpy(void| *, cons|
|000038e0| 74 20 76 6f 69 64 2a 2c | 20 69 6e 74 29 29 2e 0a |t void*,| int))..|
|000038f0| 58 0a 58 09 54 68 65 20 | 73 6f 6c 75 74 69 6f 6e |X.X.The |solution|
|00003900| 20 74 6f 20 74 68 69 73 | 20 70 72 6f 62 6c 65 6d | to this| problem|
|00003910| 20 77 6f 75 6c 64 20 62 | 65 20 74 6f 20 64 65 66 | would b|e to def|
|00003920| 69 6e 65 20 74 68 65 20 | 63 6f 72 72 65 63 74 0a |ine the |correct.|
|00003930| 58 09 70 72 6f 74 6f 74 | 79 70 65 73 20 66 6f 72 |X.protot|ypes for|
|00003940| 20 6d 65 6d 6f 72 79 2e | 68 20 69 6e 20 74 68 65 | memory.|h in the|
|00003950| 20 73 79 73 74 65 6d 20 | 69 6e 63 6c 75 64 65 20 | system |include |
|00003960| 66 69 6c 65 20 6f 72 20 | 69 6e 20 74 68 65 0a 58 |file or |in the.X|
|00003970| 09 67 63 63 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |.gcc ver|sion of |
|00003980| 74 68 65 20 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |the incl|ude file|
|00003990| 2e 20 0a 58 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |. .X.END|_OF_FILE|
|000039a0| 0a 69 66 20 74 65 73 74 | 20 31 33 32 32 31 20 2d |.if test| 13221 -|
|000039b0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 50 52 4f 42 |ne `wc -|c <'PROB|
|000039c0| 4c 45 4d 53 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |LEMS'`; |then. |
|000039d0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 50 | echo sh|ar: \"'P|
|000039e0| 52 4f 42 4c 45 4d 53 27 | 5c 22 20 75 6e 70 61 63 |ROBLEMS'|\" unpac|
|000039f0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00003a00| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00003a10| 20 27 50 52 4f 42 4c 45 | 4d 53 27 0a 66 69 0a 69 | 'PROBLE|MS'.fi.i|
|00003a20| 66 20 74 65 73 74 20 2d | 66 20 27 42 75 69 6c 64 |f test -|f 'Build|
|00003a30| 70 61 74 63 68 27 20 2d | 61 20 22 24 7b 31 7d 22 |patch' -|a "${1}"|
|00003a40| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00003a50| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00003a60| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00003a70| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00003a80| 42 75 69 6c 64 70 61 74 | 63 68 27 5c 22 0a 65 6c |Buildpat|ch'\".el|
|00003a90| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00003aa0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 42 75 69 6c |tracting| \"'Buil|
|00003ab0| 64 70 61 74 63 68 27 5c | 22 20 5c 28 34 34 33 39 |dpatch'\|" \(4439|
|00003ac0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00003ad0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 42 75 69 |d "s/^X/|/" >'Bui|
|00003ae0| 6c 64 70 61 74 63 68 27 | 20 3c 3c 27 45 4e 44 5f |ldpatch'| <<'END_|
|00003af0| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 0a 58 23 20 42 |OF_FILE'|.X#.X# B|
|00003b00| 75 69 6c 64 70 61 74 63 | 68 20 2d 20 73 68 65 6c |uildpatc|h - shel|
|00003b10| 6c 20 73 63 72 69 70 74 | 20 66 6f 72 20 61 75 74 |l script| for aut|
|00003b20| 6f 6d 61 74 69 63 61 6c | 6c 79 20 62 75 69 6c 64 |omatical|ly build|
|00003b30| 69 6e 67 20 70 61 74 63 | 68 20 66 69 6c 65 73 0a |ing patc|h files.|
|00003b40| 58 23 0a 58 23 20 24 49 | 64 3a 20 42 75 69 6c 64 |X#.X# $I|d: Build|
|00003b50| 70 61 74 63 68 2c 76 20 | 31 2e 31 32 20 31 39 39 |patch,v |1.12 199|
|00003b60| 32 2f 30 34 2f 32 39 20 | 31 38 3a 32 34 3a 30 36 |2/04/29 |18:24:06|
|00003b70| 20 63 70 63 61 68 69 6c | 20 45 78 70 20 24 0a 58 | cpcahil| Exp $.X|
|00003b80| 23 0a 58 69 66 20 5b 20 | 24 23 20 3d 20 30 20 5d |#.Xif [ |$# = 0 ]|
|00003b90| 3b 20 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 22 75 |; then.X|.echo "u|
|00003ba0| 73 61 67 65 3a 20 42 75 | 69 6c 64 70 61 74 63 68 |sage: Bu|ildpatch|
|00003bb0| 20 73 72 63 66 69 6c 65 | 73 2e 2e 2e 22 0a 58 09 | srcfile|s...".X.|
|00003bc0| 65 78 69 74 20 31 0a 58 | 66 69 0a 58 0a 58 23 0a |exit 1.X|fi.X.X#.|
|00003bd0| 58 23 20 73 65 65 20 69 | 66 20 61 6e 79 20 66 69 |X# see i|f any fi|
|00003be0| 6c 65 73 20 61 72 65 20 | 73 74 69 6c 6c 20 6c 6f |les are |still lo|
|00003bf0| 63 6b 65 64 2e 20 20 49 | 66 20 73 6f 2c 20 77 65 |cked. I|f so, we|
|00003c00| 20 63 61 6e 6e 6f 74 20 | 70 72 6f 63 65 65 64 20 | cannot |proceed |
|00003c10| 28 74 68 65 79 20 6d 75 | 73 74 20 62 65 0a 58 23 |(they mu|st be.X#|
|00003c20| 20 75 6e 6c 6f 63 6b 65 | 64 20 62 65 66 6f 72 65 | unlocke|d before|
|00003c30| 20 61 20 70 61 74 63 68 | 20 66 69 6c 65 20 63 61 | a patch| file ca|
|00003c40| 6e 20 62 65 20 62 75 69 | 6c 74 0a 58 23 0a 58 69 |n be bui|lt.X#.Xi|
|00003c50| 66 20 72 6c 6f 67 20 2d | 6c 20 24 2a 20 32 3e 72 |f rlog -|l $* 2>r|
|00003c60| 6c 6f 67 2e 65 72 72 20 | 7c 20 67 72 65 70 20 22 |log.err || grep "|
|00003c70| 6c 6f 63 6b 65 64 20 62 | 79 3a 22 20 3e 2f 64 65 |locked b|y:" >/de|
|00003c80| 76 2f 6e 75 6c 6c 3b 20 | 74 68 65 6e 0a 58 09 65 |v/null; |then.X.e|
|00003c90| 63 68 6f 20 22 61 6c 6c | 20 66 69 6c 65 73 20 6d |cho "all| files m|
|00003ca0| 75 73 74 20 62 65 20 63 | 68 65 63 6b 65 64 20 69 |ust be c|hecked i|
|00003cb0| 6e 20 62 65 66 6f 72 65 | 20 61 20 70 61 74 63 68 |n before| a patch|
|00003cc0| 20 66 69 6c 65 20 63 61 | 6e 20 62 65 20 62 75 69 | file ca|n be bui|
|00003cd0| 6c 74 22 0a 58 09 65 78 | 69 74 20 31 0a 58 66 69 |lt".X.ex|it 1.Xfi|
|00003ce0| 0a 58 0a 58 69 66 20 5b | 20 2d 73 20 72 6c 6f 67 |.X.Xif [| -s rlog|
|00003cf0| 2e 65 72 72 20 5d 3b 20 | 74 68 65 6e 0a 58 09 65 |.err ]; |then.X.e|
|00003d00| 63 68 6f 20 22 61 6c 6c | 20 66 69 6c 65 73 20 6d |cho "all| files m|
|00003d10| 75 73 74 20 62 65 20 63 | 68 65 63 6b 65 64 20 69 |ust be c|hecked i|
|00003d20| 6e 20 62 65 66 6f 72 65 | 20 61 20 70 61 74 63 68 |n before| a patch|
|00003d30| 20 66 69 6c 65 20 63 61 | 6e 20 62 65 20 62 75 69 | file ca|n be bui|
|00003d40| 6c 74 22 0a 58 09 65 78 | 69 74 20 31 0a 58 66 69 |lt".X.ex|it 1.Xfi|
|00003d50| 0a 58 0a 58 72 6d 20 2d | 66 20 72 6c 6f 67 2e 65 |.X.Xrm -|f rlog.e|
|00003d60| 72 72 0a 58 0a 58 23 0a | 58 23 20 64 65 74 65 72 |rr.X.X#.|X# deter|
|00003d70| 6d 69 6e 65 20 74 68 65 | 20 6f 6c 64 20 61 6e 64 |mine the| old and|
|00003d80| 20 6e 65 77 20 70 61 74 | 63 68 20 6c 65 76 65 6c | new pat|ch level|
|00003d90| 73 20 61 6e 64 20 6e 61 | 6d 65 20 74 68 65 20 70 |s and na|me the p|
|00003da0| 61 74 63 68 66 69 6c 65 | 0a 58 23 0a 58 72 6d 20 |atchfile|.X#.Xrm |
|00003db0| 2d 66 20 70 61 74 63 68 | 6c 65 76 65 6c 09 32 3e |-f patch|level.2>|
|00003dc0| 20 2f 64 65 76 2f 6e 75 | 6c 6c 0a 58 63 6f 20 2d | /dev/nu|ll.Xco -|
|00003dd0| 71 20 70 61 74 63 68 6c | 65 76 65 6c 20 09 32 3e |q patchl|evel .2>|
|00003de0| 20 2f 64 65 76 2f 6e 75 | 6c 6c 0a 58 0a 58 72 65 | /dev/nu|ll.X.Xre|
|00003df0| 61 64 20 74 69 74 6c 65 | 20 6f 6c 64 6c 65 76 65 |ad title| oldleve|
|00003e00| 6c 20 3c 20 70 61 74 63 | 68 6c 65 76 65 6c 0a 58 |l < patc|hlevel.X|
|00003e10| 0a 58 69 66 20 5b 20 22 | 24 6f 6c 64 6c 65 76 65 |.Xif [ "|$oldleve|
|00003e20| 6c 22 20 2d 6c 74 20 31 | 30 20 5d 3b 20 74 68 65 |l" -lt 1|0 ]; the|
|00003e30| 6e 0a 58 09 4f 50 41 54 | 43 48 3d 70 61 74 63 68 |n.X.OPAT|CH=patch|
|00003e40| 2e 30 24 6f 6c 64 6c 65 | 76 65 6c 0a 58 09 4f 44 |.0$oldle|vel.X.OD|
|00003e50| 49 52 3d 70 61 74 63 68 | 65 73 2f 70 2e 30 24 6f |IR=patch|es/p.0$o|
|00003e60| 6c 64 6c 65 76 65 6c 0a | 58 65 6c 73 65 0a 58 09 |ldlevel.|Xelse.X.|
|00003e70| 4f 50 41 54 43 48 3d 70 | 61 74 63 68 2e 24 6f 6c |OPATCH=p|atch.$ol|
|00003e80| 64 6c 65 76 65 6c 0a 58 | 09 4f 44 49 52 3d 70 61 |dlevel.X|.ODIR=pa|
|00003e90| 74 63 68 65 73 2f 70 2e | 24 6f 6c 64 6c 65 76 65 |tches/p.|$oldleve|
|00003ea0| 6c 0a 58 66 69 0a 58 0a | 58 23 0a 58 23 20 69 66 |l.Xfi.X.|X#.X# if|
|00003eb0| 20 74 68 65 20 6f 6c 64 | 20 70 61 74 63 68 20 69 | the old| patch i|
|00003ec0| 73 20 73 74 69 6c 6c 20 | 6c 79 69 6e 67 20 61 72 |s still |lying ar|
|00003ed0| 6f 75 6e 64 2c 20 6d 6f | 76 65 20 69 74 20 74 68 |ound, mo|ve it th|
|00003ee0| 65 20 74 68 65 20 73 61 | 76 65 20 64 69 72 65 63 |e the sa|ve direc|
|00003ef0| 74 6f 72 79 0a 58 23 0a | 58 69 66 20 5b 20 2d 73 |tory.X#.|Xif [ -s|
|00003f00| 20 22 4f 50 41 54 43 48 | 22 20 5d 3b 20 74 68 65 | "OPATCH|" ]; the|
|00003f10| 6e 0a 58 0a 58 09 69 66 | 20 5b 20 21 20 2d 64 20 |n.X.X.if| [ ! -d |
|00003f20| 22 24 4f 44 49 52 22 20 | 5d 3b 20 74 68 65 6e 0a |"$ODIR" |]; then.|
|00003f30| 58 09 09 6d 6b 64 69 72 | 20 24 4f 44 49 52 0a 58 |X..mkdir| $ODIR.X|
|00003f40| 09 66 69 0a 58 0a 58 09 | 6d 76 20 24 7b 4f 50 41 |.fi.X.X.|mv ${OPA|
|00003f50| 54 43 48 7d 2a 20 24 7b | 4f 44 49 52 7d 0a 58 0a |TCH}* ${|ODIR}.X.|
|00003f60| 58 09 65 63 68 6f 20 22 | 53 61 76 65 64 20 24 7b |X.echo "|Saved ${|
|00003f70| 4f 50 41 54 43 48 7d 20 | 74 6f 20 24 7b 4f 44 49 |OPATCH} |to ${ODI|
|00003f80| 52 7d 22 0a 58 66 69 0a | 58 0a 58 6c 65 76 65 6c |R}".Xfi.|X.Xlevel|
|00003f90| 3d 60 65 78 70 72 20 22 | 24 6f 6c 64 6c 65 76 65 |=`expr "|$oldleve|
|00003fa0| 6c 22 20 2b 20 31 60 0a | 58 0a 58 69 66 20 5b 20 |l" + 1`.|X.Xif [ |
|00003fb0| 22 24 6c 65 76 65 6c 22 | 20 2d 6c 74 20 31 30 20 |"$level"| -lt 10 |
|00003fc0| 5d 3b 20 74 68 65 6e 0a | 58 09 50 41 54 43 48 3d |]; then.|X.PATCH=|
|00003fd0| 70 61 74 63 68 2e 30 24 | 6c 65 76 65 6c 0a 58 65 |patch.0$|level.Xe|
|00003fe0| 6c 73 65 0a 58 09 50 41 | 54 43 48 3d 70 61 74 63 |lse.X.PA|TCH=patc|
|00003ff0| 68 2e 24 6c 65 76 65 6c | 0a 58 66 69 0a 58 09 0a |h.$level|.Xfi.X..|
|00004000| 58 0a 58 23 0a 58 23 20 | 63 68 65 63 6b 20 6f 75 |X.X#.X# |check ou|
|00004010| 74 20 63 75 72 72 65 6e | 74 20 76 65 72 73 69 6f |t curren|t versio|
|00004020| 6e 20 6f 66 20 61 6c 6c | 20 66 69 6c 65 73 0a 58 |n of all| files.X|
|00004030| 23 0a 58 63 6f 20 2d 71 | 20 2d 75 20 24 2a 0a 58 |#.Xco -q| -u $*.X|
|00004040| 0a 58 23 0a 58 23 20 63 | 72 65 61 74 65 20 74 68 |.X#.X# c|reate th|
|00004050| 65 20 6e 65 77 20 70 61 | 74 63 68 6c 65 76 65 6c |e new pa|tchlevel|
|00004060| 20 66 69 6c 65 0a 58 23 | 0a 58 65 63 68 6f 20 22 | file.X#|.Xecho "|
|00004070| 42 75 69 6c 6c 64 69 6e | 67 20 70 61 74 63 68 20 |Builldin|g patch |
|00004080| 6e 75 6d 62 65 72 20 24 | 6c 65 76 65 6c 2e 2e 2e |number $|level...|
|00004090| 22 0a 58 63 6f 20 2d 71 | 20 2d 6c 20 70 61 74 63 |".Xco -q| -l patc|
|000040a0| 68 6c 65 76 65 6c 0a 58 | 65 63 68 6f 20 22 24 74 |hlevel.X|echo "$t|
|000040b0| 69 74 6c 65 20 24 6c 65 | 76 65 6c 22 20 3e 20 70 |itle $le|vel" > p|
|000040c0| 61 74 63 68 6c 65 76 65 | 6c 20 0a 58 63 69 20 2d |atchleve|l .Xci -|
|000040d0| 75 20 2d 71 20 2d 6d 22 | 70 61 74 63 68 20 6e 75 |u -q -m"|patch nu|
|000040e0| 6d 62 65 72 20 24 6c 65 | 76 65 6c 22 20 2d 74 2f |mber $le|vel" -t/|
|000040f0| 64 65 76 2f 6e 75 6c 6c | 20 70 61 74 63 68 6c 65 |dev/null| patchle|
|00004100| 76 65 6c 0a 58 0a 58 23 | 0a 58 23 20 63 72 65 61 |vel.X.X#|.X# crea|
|00004110| 74 65 20 61 20 6e 65 77 | 2c 20 65 6d 70 74 79 20 |te a new|, empty |
|00004120| 70 61 74 63 68 20 66 69 | 6c 65 20 61 6e 64 20 65 |patch fi|le and e|
|00004130| 6d 70 74 79 20 64 69 72 | 65 63 74 6f 72 79 20 66 |mpty dir|ectory f|
|00004140| 6f 72 20 6f 6c 64 20 76 | 65 72 73 69 6f 6e 73 20 |or old v|ersions |
|00004150| 6f 66 20 66 69 6c 65 73 | 0a 58 23 20 4e 6f 74 65 |of files|.X# Note|
|00004160| 20 74 68 61 74 20 69 66 | 20 74 68 65 20 70 61 74 | that if| the pat|
|00004170| 63 68 20 66 69 6c 65 20 | 61 6c 72 65 61 64 79 20 |ch file |already |
|00004180| 65 78 69 73 74 73 2c 20 | 77 65 20 61 73 73 75 6d |exists, |we assum|
|00004190| 65 20 69 74 20 69 73 20 | 73 70 65 63 69 61 6c 20 |e it is |special |
|000041a0| 64 69 72 65 63 74 69 6f | 6e 73 0a 58 23 20 66 6f |directio|ns.X# fo|
|000041b0| 72 20 74 68 65 20 70 61 | 74 63 68 20 61 6e 64 20 |r the pa|tch and |
|000041c0| 64 6f 6e 27 74 20 72 65 | 6d 6f 76 65 20 74 68 65 |don't re|move the|
|000041d0| 6d 2e 0a 58 23 0a 58 69 | 66 20 5b 20 2d 73 20 24 |m..X#.Xi|f [ -s $|
|000041e0| 50 41 54 43 48 2e 69 6e | 73 74 20 5d 3b 20 74 68 |PATCH.in|st ]; th|
|000041f0| 65 6e 0a 58 09 63 70 20 | 24 50 41 54 43 48 2e 69 |en.X.cp |$PATCH.i|
|00004200| 6e 73 74 20 24 50 41 54 | 43 48 0a 58 09 63 68 6d |nst $PAT|CH.X.chm|
|00004210| 6f 64 20 36 34 34 20 24 | 50 41 54 43 48 0a 58 65 |od 644 $|PATCH.Xe|
|00004220| 6c 73 65 0a 58 09 63 70 | 20 2f 64 65 76 2f 6e 75 |lse.X.cp| /dev/nu|
|00004230| 6c 6c 20 24 50 41 54 43 | 48 0a 58 09 63 68 6d 6f |ll $PATC|H.X.chmo|
|00004240| 64 20 36 34 34 20 24 50 | 41 54 43 48 0a 58 66 69 |d 644 $P|ATCH.Xfi|
|00004250| 0a 58 0a 58 69 66 20 5b | 20 2d 64 20 6f 6c 64 20 |.X.Xif [| -d old |
|00004260| 5d 3b 20 74 68 65 6e 0a | 58 09 72 6d 20 2d 72 66 |]; then.|X.rm -rf|
|00004270| 20 6f 6c 64 0a 58 66 69 | 0a 58 6d 6b 64 69 72 20 | old.Xfi|.Xmkdir |
|00004280| 6f 6c 64 0a 58 0a 58 23 | 0a 58 23 20 55 6e 70 61 |old.X.X#|.X# Unpa|
|00004290| 63 6b 20 74 68 65 20 6f | 6c 64 20 73 68 61 72 20 |ck the o|ld shar |
|000042a0| 66 69 6c 65 73 20 69 6e | 74 6f 20 74 68 65 20 6f |files in|to the o|
|000042b0| 6c 64 20 64 69 72 65 63 | 74 6f 72 79 0a 58 23 0a |ld direc|tory.X#.|
|000042c0| 58 28 0a 58 09 65 63 68 | 6f 20 22 42 75 69 6c 64 |X(.X.ech|o "Build|
|000042d0| 69 6e 67 20 6f 6c 64 20 | 64 69 72 65 63 74 6f 72 |ing old |director|
|000042e0| 79 20 66 6f 72 20 64 69 | 66 66 20 62 61 73 65 22 |y for di|ff base"|
|000042f0| 0a 58 0a 58 09 63 64 20 | 6f 6c 64 0a 58 09 69 66 |.X.X.cd |old.X.if|
|00004300| 20 5b 20 22 24 6f 6c 64 | 6c 65 76 65 6c 22 20 2d | [ "$old|level" -|
|00004310| 6c 74 20 31 30 20 5d 3b | 20 74 68 65 6e 0a 58 09 |lt 10 ];| then.X.|
|00004320| 09 6f 6c 64 6c 65 76 65 | 6c 3d 30 24 6f 6c 64 6c |.oldleve|l=0$oldl|
|00004330| 65 76 65 6c 0a 58 09 66 | 69 0a 58 0a 58 09 23 0a |evel.X.f|i.X.X.#.|
|00004340| 58 09 23 20 69 66 20 74 | 68 65 72 65 20 69 73 6e |X.# if t|here isn|
|00004350| 27 74 20 61 6e 20 6f 6c | 64 73 68 61 72 20 64 69 |'t an ol|dshar di|
|00004360| 72 65 63 74 6f 72 79 2c | 20 6d 6f 76 65 20 74 68 |rectory,| move th|
|00004370| 65 6d 20 66 72 6f 6d 20 | 74 68 65 20 73 6f 75 72 |em from |the sour|
|00004380| 63 65 0a 58 09 23 20 64 | 69 72 65 63 74 6f 72 79 |ce.X.# d|irectory|
|00004390| 20 74 6f 20 74 68 65 20 | 6f 6c 64 73 68 61 72 20 | to the |oldshar |
|000043a0| 64 69 72 65 63 74 6f 72 | 79 0a 58 09 23 0a 58 09 |director|y.X.#.X.|
|000043b0| 69 66 20 5b 20 21 20 20 | 2d 64 20 2e 2e 2f 6f 6c |if [ ! |-d ../ol|
|000043c0| 64 73 68 61 72 73 2f 24 | 6f 6c 64 6c 65 76 65 6c |dshars/$|oldlevel|
|000043d0| 20 5d 3b 20 74 68 65 6e | 0a 58 09 09 6d 6b 64 69 | ]; then|.X..mkdi|
|000043e0| 72 20 2e 2e 2f 6f 6c 64 | 73 68 61 72 73 2f 24 6f |r ../old|shars/$o|
|000043f0| 6c 64 6c 65 76 65 6c 0a | 58 09 09 6d 76 20 2e 2e |ldlevel.|X..mv ..|
|00004400| 2f 6d 61 6c 6c 6f 63 73 | 68 61 72 2e 2a 20 2e 2e |/mallocs|har.* ..|
|00004410| 2f 6f 6c 64 73 68 61 72 | 73 2f 24 6f 6c 64 6c 65 |/oldshar|s/$oldle|
|00004420| 76 65 6c 0a 58 09 66 69 | 0a 58 0a 58 09 23 0a 58 |vel.X.fi|.X.X.#.X|
|00004430| 09 23 20 75 6e 73 68 61 | 72 20 74 68 65 6d 20 69 |.# unsha|r them i|
|00004440| 6e 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |nto the |current |
|00004450| 64 69 72 65 63 74 6f 72 | 79 09 0a 58 09 23 0a 58 |director|y..X.#.X|
|00004460| 09 75 6e 73 68 61 72 20 | 2d 68 20 2f 64 65 76 2f |.unshar |-h /dev/|
|00004470| 6e 75 6c 6c 20 2e 2e 2f | 6f 6c 64 73 68 61 72 73 |null ../|oldshars|
|00004480| 2f 24 6f 6c 64 6c 65 76 | 65 6c 2f 2a 20 3e 20 2f |/$oldlev|el/* > /|
|00004490| 64 65 76 2f 6e 75 6c 6c | 20 32 3e 26 31 0a 58 0a |dev/null| 2>&1.X.|
|000044a0| 58 09 23 0a 58 09 23 20 | 69 66 20 74 68 65 72 65 |X.#.X.# |if there|
|000044b0| 20 61 72 65 20 61 6e 79 | 20 63 6f 6d 6d 61 6e 64 | are any| command|
|000044c0| 73 20 74 6f 20 72 75 6e | 20 62 65 66 6f 72 65 20 |s to run| before |
|000044d0| 74 68 65 20 70 61 74 63 | 68 20 69 73 20 61 70 70 |the patc|h is app|
|000044e0| 6c 69 65 64 0a 58 09 23 | 20 72 75 6e 20 74 68 65 |lied.X.#| run the|
|000044f0| 6d 20 6e 6f 77 20 73 6f | 20 74 68 61 74 20 74 68 |m now so| that th|
|00004500| 65 79 20 61 72 65 20 75 | 73 65 64 20 77 68 65 6e |ey are u|sed when|
|00004510| 20 74 68 65 20 70 61 74 | 63 68 20 69 73 20 67 65 | the pat|ch is ge|
|00004520| 6e 65 72 61 74 65 64 0a | 58 09 23 0a 58 09 67 72 |nerated.|X.#.X.gr|
|00004530| 65 70 20 22 5e 43 4d 44 | 3a 22 20 2e 2e 2f 24 50 |ep "^CMD|:" ../$P|
|00004540| 41 54 43 48 20 7c 20 73 | 65 64 20 2d 65 20 22 73 |ATCH | s|ed -e "s|
|00004550| 2f 5e 43 4d 44 3a 2f 2f | 22 20 3e 20 63 6f 6d 6d |/^CMD://|" > comm|
|00004560| 61 6e 64 73 0a 58 0a 58 | 09 69 66 20 5b 20 2d 73 |ands.X.X|.if [ -s|
|00004570| 20 63 6f 6d 6d 61 6e 64 | 73 20 5d 3b 20 74 68 65 | command|s ]; the|
|00004580| 6e 0a 58 09 09 73 68 20 | 2d 78 20 63 6f 6d 6d 61 |n.X..sh |-x comma|
|00004590| 6e 64 73 0a 58 09 66 69 | 0a 58 29 0a 58 0a 58 23 |nds.X.fi|.X).X.X#|
|000045a0| 0a 58 23 20 70 72 6f 63 | 65 73 73 20 65 61 63 68 |.X# proc|ess each|
|000045b0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 0a 58 23 0a | source |file.X#.|
|000045c0| 58 65 63 68 6f 20 22 47 | 65 6e 65 72 61 74 69 6e |Xecho "G|eneratin|
|000045d0| 67 20 64 69 66 66 73 22 | 0a 58 66 6f 72 20 69 20 |g diffs"|.Xfor i |
|000045e0| 69 6e 20 24 2a 0a 58 64 | 6f 0a 58 09 23 0a 58 09 |in $*.Xd|o.X.#.X.|
|000045f0| 23 20 69 66 20 74 68 65 | 20 66 69 6c 65 20 65 78 |# if the| file ex|
|00004600| 69 73 74 73 20 28 74 68 | 65 6e 20 69 74 20 68 61 |ists (th|en it ha|
|00004610| 73 20 62 65 65 6e 20 63 | 68 61 6e 67 65 64 20 61 |s been c|hanged a|
|00004620| 6e 64 20 6d 75 73 74 20 | 62 65 20 70 61 72 74 20 |nd must |be part |
|00004630| 6f 66 0a 58 09 23 20 74 | 68 65 20 70 61 74 63 68 |of.X.# t|he patch|
|00004640| 20 66 69 6c 65 0a 58 09 | 23 0a 58 09 69 66 20 5b | file.X.|#.X.if [|
|00004650| 20 2d 73 20 24 69 20 5d | 3b 20 74 68 65 6e 0a 58 | -s $i ]|; then.X|
|00004660| 0a 58 09 09 23 0a 58 09 | 09 23 20 69 66 20 74 68 |.X..#.X.|.# if th|
|00004670| 65 20 66 69 6c 65 20 68 | 61 73 6e 27 74 20 63 68 |e file h|asn't ch|
|00004680| 61 6e 67 65 64 2c 20 73 | 6b 69 70 20 69 74 0a 58 |anged, s|kip it.X|
|00004690| 09 09 23 0a 58 09 09 69 | 66 20 63 6d 70 20 2d 73 |..#.X..i|f cmp -s|
|000046a0| 20 24 69 20 6f 6c 64 2f | 24 69 20 3b 20 74 68 65 | $i old/|$i ; the|
|000046b0| 6e 0a 58 09 09 09 63 6f | 6e 74 69 6e 75 65 3b 0a |n.X...co|ntinue;.|
|000046c0| 58 09 09 66 69 0a 58 0a | 58 09 09 23 0a 58 09 09 |X..fi.X.|X..#.X..|
|000046d0| 23 20 6e 61 6d 65 20 74 | 68 65 20 66 69 6c 65 0a |# name t|he file.|
|000046e0| 58 09 09 23 0a 58 09 09 | 65 63 68 6f 20 22 5c 6e |X..#.X..|echo "\n|
|000046f0| 49 6e 64 65 78 3a 20 24 | 69 22 20 3e 3e 20 24 50 |Index: $|i" >> $P|
|00004700| 41 54 43 48 0a 58 0a 58 | 09 09 23 0a 58 09 09 23 |ATCH.X.X|..#.X..#|
|00004710| 20 69 66 20 74 68 65 72 | 65 20 69 73 20 61 6e 20 | if ther|e is an |
|00004720| 6f 6c 64 20 76 65 72 73 | 69 6f 6e 2c 20 61 64 64 |old vers|ion, add|
|00004730| 20 74 68 65 20 70 72 65 | 72 65 71 75 69 73 69 74 | the pre|requisit|
|00004740| 65 0a 58 09 09 23 0a 58 | 09 09 69 66 20 5b 20 2d |e.X..#.X|..if [ -|
|00004750| 73 20 6f 6c 64 2f 24 69 | 20 5d 3b 20 74 68 65 6e |s old/$i| ]; then|
|00004760| 0a 58 09 09 09 0a 58 09 | 09 09 23 0a 58 09 09 09 |.X....X.|..#.X...|
|00004770| 23 20 67 65 74 20 6f 6c | 64 20 72 63 73 20 69 64 |# get ol|d rcs id|
|00004780| 0a 58 09 09 09 23 0a 58 | 09 09 09 50 52 45 52 45 |.X...#.X|...PRERE|
|00004790| 51 3d 22 60 72 6c 6f 67 | 20 2d 72 70 61 74 63 68 |Q="`rlog| -rpatch|
|000047a0| 6c 65 76 65 6c 5f 24 6f | 6c 64 6c 65 76 65 6c 20 |level_$o|ldlevel |
|000047b0| 24 69 20 7c 0a 58 09 09 | 09 09 20 67 72 65 70 20 |$i |.X..|.. grep |
|000047c0| 27 5e 72 65 76 69 73 69 | 6f 6e 27 20 7c 20 63 75 |'^revisi|on' | cu|
|000047d0| 74 20 2d 66 32 20 2d 64 | 27 20 27 20 32 3e 2f 64 |t -f2 -d|' ' 2>/d|
|000047e0| 65 76 2f 6e 75 6c 6c 60 | 22 0a 58 0a 58 09 09 09 |ev/null`|".X.X...|
|000047f0| 23 0a 58 09 09 09 23 20 | 69 66 20 74 68 65 20 69 |#.X...# |if the i|
|00004800| 64 20 69 73 20 69 6e 20 | 74 68 65 20 66 69 6c 65 |d is in |the file|
|00004810| 2c 20 61 64 64 20 74 68 | 65 20 70 72 65 72 65 71 |, add th|e prereq|
|00004820| 20 6c 69 6e 65 0a 58 09 | 09 09 23 0a 58 09 09 09 | line.X.|..#.X...|
|00004830| 69 66 20 66 67 72 65 70 | 20 22 24 50 52 45 52 45 |if fgrep| "$PRERE|
|00004840| 51 22 20 6f 6c 64 2f 24 | 69 20 3e 20 2f 64 65 76 |Q" old/$|i > /dev|
|00004850| 2f 6e 75 6c 6c 20 32 3e | 26 31 3b 20 74 68 65 6e |/null 2>|&1; then|
|00004860| 0a 58 0a 58 09 09 09 09 | 65 63 68 6f 20 22 50 72 |.X.X....|echo "Pr|
|00004870| 65 72 65 71 3a 20 24 50 | 52 45 52 45 51 22 20 3e |ereq: $P|REREQ" >|
|00004880| 3e 20 24 50 41 54 43 48 | 0a 58 0a 58 09 09 09 65 |> $PATCH|.X.X...e|
|00004890| 6c 69 66 20 5b 20 22 24 | 69 22 20 3d 20 22 70 61 |lif [ "$|i" = "pa|
|000048a0| 74 63 68 6c 65 76 65 6c | 22 20 5d 3b 20 74 68 65 |tchlevel|" ]; the|
|000048b0| 6e 0a 58 0a 58 09 09 09 | 09 65 63 68 6f 20 22 50 |n.X.X...|.echo "P|
|000048c0| 72 65 72 65 71 3a 20 24 | 6f 6c 64 6c 65 76 65 6c |rereq: $|oldlevel|
|000048d0| 22 20 3e 3e 20 24 50 41 | 54 43 48 0a 58 0a 58 09 |" >> $PA|TCH.X.X.|
|000048e0| 09 09 66 69 0a 58 09 09 | 65 6c 73 65 0a 58 09 09 |..fi.X..|else.X..|
|000048f0| 09 3e 20 6f 6c 64 2f 24 | 69 0a 58 09 09 66 69 0a |.> old/$|i.X..fi.|
|00004900| 58 0a 58 09 09 23 20 0a | 58 09 09 23 20 64 69 66 |X.X..# .|X..# dif|
|00004910| 66 20 74 68 65 20 66 69 | 6c 65 20 74 6f 20 67 65 |f the fi|le to ge|
|00004920| 6e 65 72 61 74 65 20 74 | 68 65 20 70 61 74 63 68 |nerate t|he patch|
|00004930| 20 73 74 75 66 66 0a 58 | 09 09 23 0a 58 09 09 64 | stuff.X|..#.X..d|
|00004940| 69 66 66 20 2d 63 20 6f | 6c 64 2f 24 69 20 24 69 |iff -c o|ld/$i $i|
|00004950| 20 3e 3e 20 24 50 41 54 | 43 48 0a 58 0a 58 09 66 | >> $PAT|CH.X.X.f|
|00004960| 69 0a 58 0a 58 64 6f 6e | 65 0a 58 0a 58 23 0a 58 |i.X.Xdon|e.X.X#.X|
|00004970| 23 20 61 6e 64 20 6e 6f | 77 20 74 6f 20 63 68 65 |# and no|w to che|
|00004980| 63 6b 20 74 6f 20 76 65 | 72 69 66 79 20 74 68 61 |ck to ve|rify tha|
|00004990| 74 20 74 68 65 20 70 61 | 74 63 68 66 69 6c 65 20 |t the pa|tchfile |
|000049a0| 63 6f 72 72 65 63 74 6c | 79 20 75 70 64 61 74 65 |correctl|y update|
|000049b0| 73 20 74 68 65 0a 58 23 | 20 6f 6c 64 20 63 6f 64 |s the.X#| old cod|
|000049c0| 65 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e to the| current|
|000049d0| 20 76 65 72 73 69 6f 6e | 2e 20 20 46 69 72 73 74 | version|. First|
|000049e0| 20 61 70 70 6c 79 20 74 | 68 65 20 70 61 74 63 68 | apply t|he patch|
|000049f0| 20 74 6f 20 74 68 65 20 | 6f 6c 64 0a 58 23 20 63 | to the |old.X# c|
|00004a00| 6f 64 65 20 61 6e 64 20 | 74 68 65 6e 20 73 65 65 |ode and |then see|
|00004a10| 20 69 66 20 74 68 65 72 | 65 20 61 72 65 20 61 6e | if ther|e are an|
|00004a20| 79 20 64 69 66 66 65 72 | 65 6e 63 65 73 20 62 65 |y differ|ences be|
|00004a30| 74 77 65 65 6e 20 74 68 | 65 20 66 69 6c 65 73 2e |tween th|e files.|
|00004a40| 0a 58 23 0a 58 65 63 68 | 6f 20 22 56 65 72 69 66 |.X#.Xech|o "Verif|
|00004a50| 79 69 6e 67 20 70 61 74 | 63 68 2e 2e 2e 22 0a 58 |ying pat|ch...".X|
|00004a60| 28 0a 58 09 63 64 20 6f | 6c 64 0a 58 0a 58 09 70 |(.X.cd o|ld.X.X.p|
|00004a70| 61 74 63 68 20 3c 20 2e | 2e 2f 24 50 41 54 43 48 |atch < .|./$PATCH|
|00004a80| 20 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 20 32 3e 26 | > /dev/|null 2>&|
|00004a90| 31 0a 58 29 0a 58 0a 58 | 46 49 4c 45 53 3d 22 60 |1.X).X.X|FILES="`|
|00004aa0| 0a 58 66 6f 72 20 69 20 | 69 6e 20 24 2a 0a 58 64 |.Xfor i |in $*.Xd|
|00004ab0| 6f 0a 58 09 69 66 20 63 | 6d 70 20 2d 73 20 24 69 |o.X.if c|mp -s $i|
|00004ac0| 20 6f 6c 64 2f 24 69 3b | 20 74 68 65 6e 0a 58 09 | old/$i;| then.X.|
|00004ad0| 09 63 6f 6e 74 69 6e 75 | 65 3b 0a 58 09 66 69 0a |.continu|e;.X.fi.|
|00004ae0| 58 0a 58 09 65 63 68 6f | 20 66 69 6c 65 20 24 69 |X.X.echo| file $i|
|00004af0| 20 64 69 64 20 6e 6f 74 | 20 70 61 74 63 68 20 63 | did not| patch c|
|00004b00| 6f 72 72 65 63 74 6c 79 | 20 3e 20 2f 64 65 76 2f |orrectly| > /dev/|
|00004b10| 74 74 79 0a 58 09 65 63 | 68 6f 20 24 69 0a 58 64 |tty.X.ec|ho $i.Xd|
|00004b20| 6f 6e 65 20 60 22 0a 58 | 0a 58 69 66 20 5b 20 21 |one `".X|.Xif [ !|
|00004b30| 20 2d 7a 20 22 24 46 49 | 4c 45 53 22 20 5d 3b 20 | -z "$FI|LES" ]; |
|00004b40| 74 68 65 6e 0a 58 0a 58 | 09 65 63 68 6f 20 22 70 |then.X.X|.echo "p|
|00004b50| 61 74 63 68 20 66 69 6c | 65 20 64 69 64 20 6e 6f |atch fil|e did no|
|00004b60| 74 20 62 75 69 6c 64 20 | 63 6f 72 72 65 63 74 6c |t build |correctl|
|00004b70| 79 28 24 46 49 4c 45 53 | 29 2e 22 0a 58 09 65 78 |y($FILES|).".X.ex|
|00004b80| 69 74 20 31 0a 58 0a 58 | 66 69 0a 58 0a 58 72 6d |it 1.X.X|fi.X.Xrm|
|00004b90| 20 2d 72 66 20 6f 6c 64 | 0a 58 0a 58 65 63 68 6f | -rf old|.X.Xecho|
|00004ba0| 20 22 56 65 72 69 66 69 | 63 61 74 69 6f 6e 20 63 | "Verifi|cation c|
|00004bb0| 6f 6d 70 6c 65 74 65 22 | 0a 58 0a 58 23 0a 58 23 |omplete"|.X.X#.X#|
|00004bc0| 20 61 6e 64 20 6e 6f 77 | 20 66 72 65 65 7a 65 20 | and now| freeze |
|00004bd0| 61 6c 6c 20 74 68 65 20 | 66 69 6c 65 73 20 61 74 |all the |files at|
|00004be0| 20 74 68 69 73 20 70 61 | 74 63 68 6c 65 76 65 6c | this pa|tchlevel|
|00004bf0| 2c 20 61 6e 64 20 63 68 | 65 63 6b 6f 75 74 20 74 |, and ch|eckout t|
|00004c00| 68 65 20 63 75 72 72 65 | 6e 74 0a 58 23 20 76 65 |he curre|nt.X# ve|
|00004c10| 72 73 69 6f 6e 73 20 6f | 66 20 74 68 65 20 66 69 |rsions o|f the fi|
|00004c20| 6c 65 73 0a 58 23 0a 58 | 0a 58 65 63 68 6f 20 22 |les.X#.X|.Xecho "|
|00004c30| 66 72 65 65 7a 69 6e 67 | 20 73 6f 75 72 63 65 20 |freezing| source |
|00004c40| 61 74 20 70 61 74 63 68 | 20 6c 65 76 65 6c 20 24 |at patch| level $|
|00004c50| 6c 65 76 65 6c 22 0a 58 | 65 63 68 6f 20 22 2e 22 |level".X|echo "."|
|00004c60| 20 7c 20 72 63 73 66 72 | 65 65 7a 65 20 70 61 74 | | rcsfr|eeze pat|
|00004c70| 63 68 6c 65 76 65 6c 5f | 24 6c 65 76 65 6c 20 20 |chlevel_|$level |
|00004c80| 3e 20 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 |> /dev/n|ull 2>&1|
|00004c90| 20 0a 58 0a 58 65 63 68 | 6f 20 22 63 68 65 63 6b | .X.Xech|o "check|
|00004ca0| 69 6e 67 20 6f 75 74 20 | 63 75 72 72 65 6e 74 20 |ing out |current |
|00004cb0| 76 65 72 73 69 6f 6e 20 | 28 75 6e 6c 6f 63 6b 65 |version |(unlocke|
|00004cc0| 64 29 22 0a 58 63 6f 20 | 2d 71 20 2d 75 20 2d 72 |d)".Xco |-q -u -r|
|00004cd0| 70 61 74 63 68 6c 65 76 | 65 6c 5f 24 6c 65 76 65 |patchlev|el_$leve|
|00004ce0| 6c 20 24 2a 0a 58 0a 58 | 23 0a 58 23 20 62 75 69 |l $*.X.X|#.X# bui|
|00004cf0| 6c 64 20 70 61 74 63 68 | 20 73 68 61 72 20 66 69 |ld patch| shar fi|
|00004d00| 6c 65 73 20 66 72 6f 6d | 20 70 61 74 63 68 20 66 |les from| patch f|
|00004d10| 69 6c 65 0a 58 23 0a 58 | 73 68 61 72 33 20 2d 46 |ile.X#.X|shar3 -F|
|00004d20| 20 2d 63 20 2d 6f 24 50 | 41 54 43 48 20 2d 4c 36 | -c -o$P|ATCH -L6|
|00004d30| 30 20 24 50 41 54 43 48 | 0a 58 0a 58 65 78 69 74 |0 $PATCH|.X.Xexit|
|00004d40| 20 30 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 | 0.END_O|F_FILE.i|
|00004d50| 66 20 74 65 73 74 20 34 | 34 33 39 20 2d 6e 65 20 |f test 4|439 -ne |
|00004d60| 60 77 63 20 2d 63 20 3c | 27 42 75 69 6c 64 70 61 |`wc -c <|'Buildpa|
|00004d70| 74 63 68 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |tch'`; t|hen. |
|00004d80| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 42 75 |echo sha|r: \"'Bu|
|00004d90| 69 6c 64 70 61 74 63 68 | 27 5c 22 20 75 6e 70 61 |ildpatch|'\" unpa|
|00004da0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00004db0| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004dc0| 66 20 27 42 75 69 6c 64 | 70 61 74 63 68 27 0a 66 |f 'Build|patch'.f|
|00004dd0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 43 6f |i.if tes|t -f 'Co|
|00004de0| 6e 66 69 67 75 72 65 27 | 20 2d 61 20 22 24 7b 31 |nfigure'| -a "${1|
|00004df0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00004e00| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00004e10| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00004e20| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00004e30| 22 27 43 6f 6e 66 69 67 | 75 72 65 27 5c 22 0a 65 |"'Config|ure'\".e|
|00004e40| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00004e50| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 43 6f 6e |xtractin|g \"'Con|
|00004e60| 66 69 67 75 72 65 27 5c | 22 20 5c 28 32 39 37 31 |figure'\|" \(2971|
|00004e70| 32 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |2 charac|ters\).s|
|00004e80| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 43 6f |ed "s/^X|//" >'Co|
|00004e90| 6e 66 69 67 75 72 65 27 | 20 3c 3c 27 45 4e 44 5f |nfigure'| <<'END_|
|00004ea0| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 21 2f 62 69 6e |OF_FILE'|.X#!/bin|
|00004eb0| 2f 73 68 0a 58 23 0a 58 | 23 0a 58 23 20 28 63 29 |/sh.X#.X|#.X# (c)|
|00004ec0| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 39 30 2c | Copyrig|ht 1990,|
|00004ed0| 20 31 39 39 31 2c 20 31 | 39 39 32 20 43 6f 6e 6f | 1991, 1|992 Cono|
|00004ee0| 72 20 50 2e 20 43 61 68 | 69 6c 6c 20 28 63 70 63 |r P. Cah|ill (cpc|
|00004ef0| 61 68 69 6c 40 76 69 72 | 74 65 63 68 2e 76 74 69 |ahil@vir|tech.vti|
|00004f00| 2e 63 6f 6d 29 0a 58 23 | 0a 58 23 20 54 68 69 73 |.com).X#|.X# This|
|00004f10| 20 73 6f 66 74 77 61 72 | 65 20 6d 61 79 20 62 65 | softwar|e may be|
|00004f20| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 66 72 65 | distrib|uted fre|
|00004f30| 65 6c 79 20 61 73 20 6c | 6f 6e 67 20 61 73 20 74 |ely as l|ong as t|
|00004f40| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 6f 6e |he follo|wing con|
|00004f50| 64 69 74 69 6f 6e 73 0a | 58 23 20 61 72 65 20 6d |ditions.|X# are m|
|00004f60| 65 74 3a 0a 58 23 20 09 | 09 2a 20 74 68 65 20 64 |et:.X# .|.* the d|
|00004f70| 69 73 74 72 69 62 75 74 | 69 6f 6e 2c 20 6f 72 20 |istribut|ion, or |
|00004f80| 61 6e 79 20 64 65 72 69 | 76 61 74 69 76 65 20 74 |any deri|vative t|
|00004f90| 68 65 72 65 6f 66 2c 20 | 6d 61 79 20 6e 6f 74 20 |hereof, |may not |
|00004fa0| 62 65 0a 58 23 09 09 20 | 20 69 6e 63 6c 75 64 65 |be.X#.. | include|
|00004fb0| 64 20 61 73 20 70 61 72 | 74 20 6f 66 20 61 20 63 |d as par|t of a c|
|00004fc0| 6f 6d 6d 65 72 63 69 61 | 6c 20 70 72 6f 64 75 63 |ommercia|l produc|
|00004fd0| 74 0a 58 23 09 09 2a 20 | 66 75 6c 6c 20 73 6f 75 |t.X#..* |full sou|
|00004fe0| 72 63 65 20 63 6f 64 65 | 20 69 73 20 70 72 6f 76 |rce code| is prov|
|00004ff0| 69 64 65 64 20 69 6e 63 | 6c 75 64 69 6e 67 20 74 |ided inc|luding t|
|00005000| 68 69 73 20 63 6f 70 79 | 72 69 67 68 74 0a 58 23 |his copy|right.X#|
|00005010| 09 09 2a 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |..* ther|e is no |
|00005020| 63 68 61 72 67 65 20 66 | 6f 72 20 74 68 65 20 73 |charge f|or the s|
|00005030| 6f 66 74 77 61 72 65 20 | 69 74 73 65 6c 66 20 28 |oftware |itself (|
|00005040| 74 68 65 72 65 20 6d 61 | 79 20 62 65 0a 58 23 09 |there ma|y be.X#.|
|00005050| 09 20 20 61 20 6d 69 6e | 69 6d 61 6c 20 63 68 61 |. a min|imal cha|
|00005060| 72 67 65 20 66 6f 72 20 | 74 68 65 20 63 6f 70 79 |rge for |the copy|
|00005070| 69 6e 67 20 6f 72 20 64 | 69 73 74 72 69 62 75 74 |ing or d|istribut|
|00005080| 69 6f 6e 20 65 66 66 6f | 72 74 29 0a 58 23 09 09 |ion effo|rt).X#..|
|00005090| 2a 20 74 68 69 73 20 63 | 6f 70 79 72 69 67 68 74 |* this c|opyright|
|000050a0| 20 6e 6f 74 69 63 65 20 | 69 73 20 6e 6f 74 20 6d | notice |is not m|
|000050b0| 6f 64 69 66 69 65 64 20 | 6f 72 20 72 65 6d 6f 76 |odified |or remov|
|000050c0| 65 64 20 66 72 6f 6d 20 | 61 6e 79 0a 58 23 09 09 |ed from |any.X#..|
|000050d0| 20 20 73 6f 75 72 63 65 | 20 66 69 6c 65 0a 58 23 | source| file.X#|
|000050e0| 0a 58 23 20 24 49 64 3a | 20 43 6f 6e 66 69 67 75 |.X# $Id:| Configu|
|000050f0| 72 65 2c 76 20 31 2e 32 | 32 20 31 39 39 32 2f 30 |re,v 1.2|2 1992/0|
|00005100| 38 2f 32 32 20 31 36 3a | 32 37 3a 31 33 20 63 70 |8/22 16:|27:13 cp|
|00005110| 63 61 68 69 6c 20 45 78 | 70 20 24 0a 58 23 0a 58 |cahil Ex|p $.X#.X|
|00005120| 23 20 54 68 69 73 20 73 | 68 65 6c 6c 20 73 63 72 |# This s|hell scr|
|00005130| 69 70 74 20 61 74 74 65 | 6d 70 74 73 20 74 6f 20 |ipt atte|mpts to |
|00005140| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 64 65 |automati|cally de|
|00005150| 74 65 72 6d 69 6e 65 20 | 74 68 65 20 63 6f 72 72 |termine |the corr|
|00005160| 65 63 74 20 73 65 74 74 | 69 6e 67 73 0a 58 23 20 |ect sett|ings.X# |
|00005170| 66 6f 72 20 74 68 65 20 | 6d 61 6c 6c 6f 63 20 6c |for the |malloc l|
|00005180| 69 62 72 61 72 79 20 69 | 6e 63 6c 75 64 65 20 66 |ibrary i|nclude f|
|00005190| 69 6c 65 20 61 6e 64 20 | 63 6f 6d 70 69 6c 65 20 |ile and |compile |
|000051a0| 70 72 65 2d 64 65 66 69 | 6e 65 73 2e 20 20 54 68 |pre-defi|nes. Th|
|000051b0| 69 73 20 73 63 72 69 70 | 74 20 68 61 73 0a 58 23 |is scrip|t has.X#|
|000051c0| 20 62 65 65 6e 20 74 65 | 73 74 65 64 20 62 79 20 | been te|sted by |
|000051d0| 74 68 65 20 61 75 74 68 | 6f 72 20 69 6e 20 74 68 |the auth|or in th|
|000051e0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 6e 76 69 |e follow|ing envi|
|000051f0| 72 6f 6e 6d 65 6e 74 73 | 3a 0a 58 23 0a 58 23 09 |ronments|:.X#.X#.|
|00005200| 49 6e 74 65 6c 20 34 38 | 36 09 49 53 43 20 55 4e |Intel 48|6.ISC UN|
|00005210| 49 58 20 33 2e 30 09 63 | 63 20 26 20 67 63 63 20 |IX 3.0.c|c & gcc |
|00005220| 32 2e 31 0a 58 23 09 49 | 6e 74 65 6c 20 34 38 36 |2.1.X#.I|ntel 486|
|00005230| 09 44 45 4c 4c 20 53 56 | 52 34 20 09 63 63 20 26 |.DELL SV|R4 .cc &|
|00005240| 20 67 63 63 20 31 2e 34 | 30 0a 58 23 09 48 50 39 | gcc 1.4|0.X#.HP9|
|00005250| 30 30 30 09 09 48 50 2f | 55 58 20 38 2e 30 09 63 |000..HP/|UX 8.0.c|
|00005260| 63 20 26 20 63 63 20 2d | 41 61 20 2d 44 5f 50 4f |c & cc -|Aa -D_PO|
|00005270| 53 49 58 5f 53 4f 55 52 | 43 45 0a 58 23 09 41 54 |SIX_SOUR|CE.X#.AT|
|00005280| 26 54 20 33 42 32 2d 36 | 30 30 09 53 56 52 34 2e |&T 3B2-6|00.SVR4.|
|00005290| 31 45 53 09 63 63 20 28 | 72 65 6c 61 78 65 64 20 |1ES.cc (|relaxed |
|000052a0| 61 6e 73 69 20 2d 20 6e | 6f 20 63 63 20 66 6c 61 |ansi - n|o cc fla|
|000052b0| 67 73 29 0a 58 23 09 49 | 42 4d 20 52 53 36 30 30 |gs).X#.I|BM RS600|
|000052c0| 30 09 41 49 58 20 33 2e | 31 09 09 63 63 20 0a 58 |0.AIX 3.|1..cc .X|
|000052d0| 23 09 53 75 6e 20 53 70 | 61 72 63 20 32 09 53 75 |#.Sun Sp|arc 2.Su|
|000052e0| 6e 4f 53 20 34 2e 31 2e | 31 09 63 63 0a 58 23 0a |nOS 4.1.|1.cc.X#.|
|000052f0| 58 23 20 49 74 20 68 61 | 73 20 61 6c 73 6f 20 62 |X# It ha|s also b|
|00005300| 65 65 6e 20 72 65 70 6f | 72 74 65 64 20 74 6f 20 |een repo|rted to |
|00005310| 77 6f 72 6b 20 69 6e 20 | 74 68 65 20 66 6f 6c 6c |work in |the foll|
|00005320| 6f 77 69 6e 67 20 65 6e | 76 69 72 6f 6e 6d 65 6e |owing en|vironmen|
|00005330| 74 73 3a 0a 58 23 0a 58 | 23 09 44 47 20 41 56 69 |ts:.X#.X|#.DG AVi|
|00005340| 69 4f 4e 09 44 47 2f 55 | 58 09 09 67 63 63 20 32 |iON.DG/U|X..gcc 2|
|00005350| 2e 31 20 26 20 63 63 20 | 28 77 68 69 63 68 20 69 |.1 & cc |(which i|
|00005360| 73 20 67 63 63 20 2d 74 | 72 61 64 69 74 69 6f 6e |s gcc -t|radition|
|00005370| 61 6c 29 0a 58 23 09 53 | 75 6e 20 53 70 61 72 63 |al).X#.S|un Sparc|
|00005380| 20 32 09 53 75 6e 4f 53 | 20 34 2e 31 2e 31 09 63 | 2.SunOS| 4.1.1.c|
|00005390| 63 20 28 61 70 70 61 72 | 65 6e 74 6c 79 20 69 6e |c (appar|ently in|
|000053a0| 20 74 68 65 20 73 79 73 | 35 20 65 6e 76 69 72 6f | the sys|5 enviro|
|000053b0| 6e 6d 65 6e 74 29 0a 58 | 23 09 48 70 20 39 30 30 |nment).X|#.Hp 900|
|000053c0| 30 2f 34 30 30 09 48 50 | 2d 55 58 20 37 2e 30 78 |0/400.HP|-UX 7.0x|
|000053d0| 09 63 63 0a 58 23 09 48 | 70 20 39 30 30 30 2f 37 |.cc.X#.H|p 9000/7|
|000053e0| 30 30 09 48 50 2d 55 58 | 20 38 2e 30 35 09 63 63 |00.HP-UX| 8.05.cc|
|000053f0| 0a 58 23 09 53 75 6e 20 | 53 70 61 72 63 20 09 53 |.X#.Sun |Sparc .S|
|00005400| 75 6e 4f 73 20 34 2e 31 | 2e 31 09 63 63 20 28 69 |unOs 4.1|.1.cc (i|
|00005410| 6e 20 62 73 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |n bsd en|vironmen|
|00005420| 74 29 0a 58 23 09 4d 6f | 74 6f 72 6f 6c 61 20 38 |t).X#.Mo|torola 8|
|00005430| 38 4b 09 53 79 73 56 20 | 33 2e 32 0a 58 23 09 44 |8K.SysV |3.2.X#.D|
|00005440| 65 63 53 74 61 74 69 6f | 6e 20 35 31 30 30 09 55 |ecStatio|n 5100.U|
|00005450| 6c 74 72 69 78 20 34 2e | 32 09 0a 58 23 09 49 42 |ltrix 4.|2..X#.IB|
|00005460| 4d 20 72 73 2f 36 30 30 | 30 09 41 49 58 20 33 2e |M rs/600|0.AIX 3.|
|00005470| 31 2e 31 09 0a 58 23 09 | 49 42 4d 20 72 73 2f 36 |1.1..X#.|IBM rs/6|
|00005480| 30 30 30 09 41 49 58 20 | 33 2e 32 09 0a 58 23 09 |000.AIX |3.2..X#.|
|00005490| 49 6e 74 65 6c 20 34 38 | 36 09 45 53 49 58 20 53 |Intel 48|6.ESIX S|
|000054a0| 79 73 56 20 34 2e 30 0a | 58 23 0a 58 23 20 49 66 |ysV 4.0.|X#.X# If|
|000054b0| 20 79 6f 75 20 72 75 6e | 20 74 68 69 73 20 73 63 | you run| this sc|
|000054c0| 72 69 70 74 20 69 6e 20 | 61 20 64 69 66 66 65 72 |ript in |a differ|
|000054d0| 65 6e 74 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ent envi|ronment |
|000054e0| 69 74 20 6d 61 79 20 6e | 6f 74 20 77 6f 72 6b 20 |it may n|ot work |
|000054f0| 63 6f 72 72 65 63 74 6c | 79 20 6f 72 0a 58 23 20 |correctl|y or.X# |
|00005500| 69 74 20 6d 61 79 20 6d | 61 6b 65 20 61 6e 20 69 |it may m|ake an i|
|00005510| 6e 63 6f 72 72 65 63 74 | 20 64 65 74 65 72 6d 69 |ncorrect| determi|
|00005520| 6e 61 74 69 6f 6e 2c 20 | 73 6f 20 62 65 20 6d 6f |nation, |so be mo|
|00005530| 72 65 20 63 61 75 74 69 | 6f 75 73 20 61 62 6f 75 |re cauti|ous abou|
|00005540| 74 20 74 68 65 20 72 65 | 73 75 6c 74 73 2e 0a 58 |t the re|sults..X|
|00005550| 23 0a 58 53 50 3d 22 20 | 20 20 20 20 20 20 20 20 |#.XSP=" | |
|00005560| 20 20 22 0a 58 43 43 46 | 49 4c 45 3d 43 46 24 24 | ".XCCF|ILE=CF$$|
|00005570| 63 0a 58 43 43 4c 49 53 | 54 3d 22 67 63 63 32 20 |c.XCCLIS|T="gcc2 |
|00005580| 67 63 63 20 63 6f 6d 6f | 20 43 43 20 67 2b 2b 20 |gcc como| CC g++ |
|00005590| 63 38 39 20 63 63 20 70 | 63 63 22 0a 58 43 4f 4e |c89 cc p|cc".XCON|
|000055a0| 46 46 49 4c 45 3d 2e 63 | 6f 6e 66 69 67 75 72 65 |FFILE=.c|onfigure|
|000055b0| 0a 58 44 49 52 4c 49 53 | 54 3d 22 60 65 63 68 6f |.XDIRLIS|T="`echo|
|000055c0| 20 24 50 41 54 48 20 7c | 20 74 72 20 27 3a 27 20 | $PATH || tr ':' |
|000055d0| 27 20 27 60 22 0a 58 49 | 4e 43 44 49 52 3d 2f 75 |' '`".XI|NCDIR=/u|
|000055e0| 73 72 2f 69 6e 63 6c 75 | 64 65 0a 58 4c 49 42 44 |sr/inclu|de.XLIBD|
|000055f0| 49 52 53 3d 22 2f 6c 69 | 62 20 2f 75 73 72 2f 6c |IRS="/li|b /usr/l|
|00005600| 69 62 20 2f 75 73 72 2f | 75 63 62 2f 6c 69 62 22 |ib /usr/|ucb/lib"|
|00005610| 0a 58 54 4d 50 44 49 52 | 3d 2f 74 6d 70 0a 58 54 |.XTMPDIR|=/tmp.XT|
|00005620| 4d 50 42 52 45 41 4b 3d | 24 7b 54 4d 50 44 49 52 |MPBREAK=|${TMPDIR|
|00005630| 7d 2f 43 46 24 24 62 72 | 65 61 6b 0a 58 54 4d 50 |}/CF$$br|eak.XTMP|
|00005640| 43 43 3d 24 7b 54 4d 50 | 44 49 52 7d 2f 43 46 24 |CC=${TMP|DIR}/CF$|
|00005650| 24 63 63 0a 58 54 4d 50 | 43 43 46 49 4c 45 3d 24 |$cc.XTMP|CCFILE=$|
|00005660| 7b 54 4d 50 44 49 52 7d | 2f 24 7b 43 43 46 49 4c |{TMPDIR}|/${CCFIL|
|00005670| 45 7d 2e 63 0a 58 54 4d | 50 43 4f 4d 50 3d 24 7b |E}.c.XTM|PCOMP=${|
|00005680| 54 4d 50 44 49 52 7d 2f | 43 46 24 24 63 6d 70 0a |TMPDIR}/|CF$$cmp.|
|00005690| 58 54 4d 50 44 45 46 3d | 24 7b 54 4d 50 44 49 52 |XTMPDEF=|${TMPDIR|
|000056a0| 7d 2f 43 46 24 24 64 65 | 66 0a 58 54 4d 50 45 4e |}/CF$$de|f.XTMPEN|
|000056b0| 44 3d 24 7b 54 4d 50 44 | 49 52 7d 2f 43 46 24 24 |D=${TMPD|IR}/CF$$|
|000056c0| 65 6e 64 0a 58 54 4d 50 | 46 41 54 41 4c 3d 24 7b |end.XTMP|FATAL=${|
|000056d0| 54 4d 50 44 49 52 7d 2f | 43 46 24 24 66 61 74 61 |TMPDIR}/|CF$$fata|
|000056e0| 6c 0a 58 54 4d 50 46 49 | 52 53 54 3d 24 7b 54 4d |l.XTMPFI|RST=${TM|
|000056f0| 50 44 49 52 7d 2f 43 46 | 24 24 66 69 72 73 74 0a |PDIR}/CF|$$first.|
|00005700| 58 54 4d 50 46 4f 55 4e | 44 3d 24 7b 54 4d 50 44 |XTMPFOUN|D=${TMPD|
|00005710| 49 52 7d 2f 43 46 24 24 | 66 6e 64 0a 58 54 4d 50 |IR}/CF$$|fnd.XTMP|
|00005720| 50 52 45 44 45 46 3d 24 | 7b 54 4d 50 44 49 52 7d |PREDEF=$|{TMPDIR}|
|00005730| 2f 43 46 24 24 70 72 65 | 64 0a 58 54 4d 50 53 45 |/CF$$pre|d.XTMPSE|
|00005740| 54 3d 24 7b 54 4d 50 44 | 49 52 7d 2f 43 46 24 24 |T=${TMPD|IR}/CF$$|
|00005750| 73 65 74 0a 58 54 4d 50 | 53 4b 49 50 50 45 44 3d |set.XTMP|SKIPPED=|
|00005760| 24 7b 54 4d 50 44 49 52 | 7d 2f 43 46 24 24 73 6b |${TMPDIR|}/CF$$sk|
|00005770| 69 70 0a 58 57 41 52 4e | 5f 52 45 47 45 58 50 3d |ip.XWARN|_REGEXP=|
|00005780| 22 5b 57 77 5d 61 72 6e | 69 6e 67 7c 5e 77 20 22 |"[Ww]arn|ing|^w "|
|00005790| 5c 22 22 2e 2a 22 5c 22 | 22 2c 4c 5b 30 2d 39 5d |\"".*"\"|",L[0-9]|
|000057a0| 2a 2f 43 5b 30 2d 39 5d | 2a 3a 22 0a 58 0a 58 69 |*/C[0-9]|*:".X.Xi|
|000057b0| 66 20 5b 20 24 23 20 21 | 3d 20 30 20 5d 3b 20 74 |f [ $# !|= 0 ]; t|
|000057c0| 68 65 6e 0a 58 09 64 65 | 62 75 67 3d 24 31 0a 58 |hen.X.de|bug=$1.X|
|000057d0| 0a 58 09 69 66 20 5b 20 | 24 64 65 62 75 67 20 2d |.X.if [ |$debug -|
|000057e0| 67 74 20 31 30 20 5d 3b | 20 74 68 65 6e 0a 58 09 |gt 10 ];| then.X.|
|000057f0| 09 73 65 74 20 2d 78 0a | 58 09 66 69 0a 58 65 6c |.set -x.|X.fi.Xel|
|00005800| 73 65 0a 58 09 64 65 62 | 75 67 3d 30 0a 58 66 69 |se.X.deb|ug=0.Xfi|
|00005810| 0a 58 0a 58 23 0a 58 23 | 20 69 66 20 77 65 20 61 |.X.X#.X#| if we a|
|00005820| 6c 72 65 61 64 79 20 68 | 61 76 65 20 61 20 63 6f |lready h|ave a co|
|00005830| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 0a 58 23 0a |nfigurat|ion .X#.|
|00005840| 58 69 66 20 5b 20 24 23 | 20 3d 20 30 20 2d 61 20 |Xif [ $#| = 0 -a |
|00005850| 2d 73 20 22 24 7b 43 4f | 4e 46 46 49 4c 45 7d 22 |-s "${CO|NFFILE}"|
|00005860| 20 2d 61 20 2d 73 20 22 | 24 7b 43 4f 4e 46 46 49 | -a -s "|${CONFFI|
|00005870| 4c 45 7d 2e 73 22 20 5d | 3b 20 74 68 65 6e 0a 58 |LE}.s" ]|; then.X|
|00005880| 0a 58 09 65 63 68 6f 20 | 22 55 73 69 6e 67 20 65 |.X.echo |"Using e|
|00005890| 78 69 73 74 69 6e 67 20 | 63 6f 6e 66 69 67 75 72 |xisting |configur|
|000058a0| 61 74 69 6f 6e 2e 20 20 | 49 66 20 74 68 69 73 20 |ation. |If this |
|000058b0| 69 73 20 6e 6f 74 20 63 | 6f 72 72 65 63 74 2c 20 |is not c|orrect, |
|000058c0| 79 6f 75 22 0a 58 09 65 | 63 68 6f 20 22 6e 65 65 |you".X.e|cho "nee|
|000058d0| 64 20 74 6f 20 72 65 6d | 6f 76 65 20 74 68 65 20 |d to rem|ove the |
|000058e0| 24 7b 43 4f 4e 46 46 49 | 4c 45 7d 20 66 69 6c 65 |${CONFFI|LE} file|
|000058f0| 20 61 6e 64 20 72 65 2d | 72 75 6e 20 74 68 65 20 | and re-|run the |
|00005900| 6d 61 6b 65 22 0a 58 0a | 58 65 6c 73 65 0a 58 0a |make".X.|Xelse.X.|
|00005910| 58 09 65 63 68 6f 20 22 | 44 65 74 65 72 6d 69 6e |X.echo "|Determin|
|00005920| 69 6e 67 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 |ing the |correct |
|00005930| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 6f |configur|ation fo|
|00005940| 72 20 6d 61 6c 6c 6f 63 | 2e 68 20 6f 6e 20 74 68 |r malloc|.h on th|
|00005950| 69 73 22 20 5c 0a 58 09 | 09 09 22 73 79 73 74 65 |is" \.X.|.."syste|
|00005960| 6d 2e 22 0a 58 09 65 63 | 68 6f 20 22 54 68 69 73 |m.".X.ec|ho "This|
|00005970| 20 6d 61 79 20 74 61 6b | 65 20 61 20 77 68 69 6c | may tak|e a whil|
|00005980| 65 2c 20 70 6c 65 61 73 | 65 20 62 65 20 70 61 74 |e, pleas|e be pat|
|00005990| 69 65 6e 74 22 0a 58 0a | 58 09 0a 58 09 23 0a 58 |ient".X.|X..X.#.X|
|000059a0| 09 23 20 44 65 74 65 72 | 6d 69 6e 65 20 64 65 66 |.# Deter|mine def|
|000059b0| 61 75 6c 74 20 73 69 7a | 65 74 79 70 65 20 28 66 |ault siz|etype (f|
|000059c0| 6f 72 20 75 73 65 20 77 | 68 65 6e 20 77 65 20 61 |or use w|hen we a|
|000059d0| 72 65 20 67 75 65 73 73 | 69 6e 67 20 61 74 20 0a |re guess|ing at .|
|000059e0| 58 09 23 20 70 61 72 61 | 6d 65 74 65 72 20 73 65 |X.# para|meter se|
|000059f0| 74 74 69 6e 67 73 29 2e | 0a 58 09 23 0a 58 09 67 |ttings).|.X.#.X.g|
|00005a00| 72 65 70 20 73 69 7a 65 | 5f 74 20 24 7b 49 4e 43 |rep size|_t ${INC|
|00005a10| 44 49 52 7d 2f 73 79 73 | 2f 74 79 70 65 73 2e 68 |DIR}/sys|/types.h|
|00005a20| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|00005a30| 0a 58 09 69 66 20 5b 20 | 24 3f 20 3d 20 30 20 5d |.X.if [ |$? = 0 ]|
|00005a40| 3b 20 74 68 65 6e 0a 58 | 09 09 64 66 6c 74 73 69 |; then.X|..dfltsi|
|00005a50| 7a 65 3d 73 69 7a 65 5f | 74 0a 58 09 65 6c 73 65 |ze=size_|t.X.else|
|00005a60| 0a 58 09 09 64 66 6c 74 | 73 69 7a 65 3d 22 75 6e |.X..dflt|size="un|
|00005a70| 73 69 67 6e 65 64 20 69 | 6e 74 22 0a 58 09 66 69 |signed i|nt".X.fi|
|00005a80| 0a 58 0a 58 09 23 0a 58 | 09 23 20 64 65 74 65 72 |.X.X.#.X|.# deter|
|00005a90| 6d 69 6e 65 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |mine the| compile|
|00005aa0| 72 28 73 29 20 74 68 61 | 74 20 61 72 65 20 61 76 |r(s) tha|t are av|
|00005ab0| 61 69 6c 61 62 6c 65 20 | 6f 6e 20 74 68 69 73 20 |ailable |on this |
|00005ac0| 73 79 73 74 65 6d 0a 58 | 09 23 0a 58 0a 58 09 65 |system.X|.#.X.X.e|
|00005ad0| 63 68 6f 20 22 20 20 20 | 20 4c 6f 6f 6b 69 6e 67 |cho " | Looking|
|00005ae0| 20 66 6f 72 20 63 6f 6d | 70 69 6c 65 72 73 2e 2e | for com|pilers..|
|00005af0| 2e 22 0a 58 09 72 6d 20 | 2d 66 20 24 7b 54 4d 50 |.".X.rm |-f ${TMP|
|00005b00| 43 4f 4d 50 7d 0a 58 09 | 74 6f 75 63 68 20 24 7b |COMP}.X.|touch ${|
|00005b10| 54 4d 50 43 4f 4d 50 7d | 0a 58 0a 58 09 23 0a 58 |TMPCOMP}|.X.X.#.X|
|00005b20| 09 23 20 69 66 20 69 6e | 20 64 65 62 75 67 20 6d |.# if in| debug m|
|00005b30| 6f 64 65 20 61 6e 64 20 | 74 68 65 20 63 6f 6d 70 |ode and |the comp|
|00005b40| 69 6c 65 72 20 69 73 20 | 73 70 65 63 69 66 69 65 |iler is |specifie|
|00005b50| 64 20 61 73 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |d as an |argument|
|00005b60| 0a 58 09 23 0a 58 09 69 | 66 20 5b 20 24 23 20 2d |.X.#.X.i|f [ $# -|
|00005b70| 67 74 20 31 20 5d 3b 20 | 74 68 65 6e 0a 58 09 09 |gt 1 ]; |then.X..|
|00005b80| 65 63 68 6f 20 24 32 20 | 3e 20 24 7b 54 4d 50 43 |echo $2 |> ${TMPC|
|00005b90| 4f 4d 50 7d 0a 58 09 65 | 6c 73 65 0a 58 0a 58 09 |OMP}.X.e|lse.X.X.|
|00005ba0| 09 23 0a 58 09 09 23 20 | 6c 6f 6f 6b 20 66 6f 72 |.#.X..# |look for|
|00005bb0| 20 74 68 65 20 6c 69 73 | 74 65 64 20 63 6f 6d 70 | the lis|ted comp|
|00005bc0| 69 6c 65 72 73 2e 20 20 | 4e 6f 74 65 20 74 68 61 |ilers. |Note tha|
|00005bd0| 74 20 63 63 20 69 73 20 | 6c 61 73 74 2e 20 20 54 |t cc is |last. T|
|00005be0| 68 69 73 0a 58 09 09 23 | 20 69 73 20 61 73 20 69 |his.X..#| is as i|
|00005bf0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 62 65 63 61 |t should| be beca|
|00005c00| 75 73 65 20 63 63 20 69 | 73 20 70 72 6f 62 61 62 |use cc i|s probab|
|00005c10| 6c 79 20 74 68 65 20 6f | 6e 6c 79 20 63 6f 6d 70 |ly the o|nly comp|
|00005c20| 69 6c 65 72 0a 58 09 09 | 23 20 6c 69 73 74 65 64 |iler.X..|# listed|
|00005c30| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 68 61 | that do|esn't ha|
|00005c40| 76 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 70 72 |ve one o|f the pr|
|00005c50| 65 2d 64 65 66 69 6e 65 | 64 20 73 79 6d 62 6f 6c |e-define|d symbol|
|00005c60| 73 20 74 68 61 74 0a 58 | 09 09 23 20 77 65 20 6c |s that.X|..# we l|
|00005c70| 6f 6f 6b 20 66 6f 72 20 | 61 6e 64 20 74 68 65 72 |ook for |and ther|
|00005c80| 65 66 6f 72 65 20 6d 75 | 73 74 20 62 65 20 6c 61 |efore mu|st be la|
|00005c90| 73 74 20 62 65 63 61 75 | 73 65 20 74 68 65 0a 58 |st becau|se the.X|
|00005ca0| 09 09 23 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |..# conf|iguratio|
|00005cb0| 6e 20 63 68 65 63 6b 20 | 6c 6f 6f 70 20 72 65 71 |n check |loop req|
|00005cc0| 75 69 72 65 73 20 74 68 | 61 74 20 61 6c 6c 20 63 |uires th|at all c|
|00005cd0| 6f 6d 70 69 6c 65 72 73 | 20 6f 74 68 65 72 0a 58 |ompilers| other.X|
|00005ce0| 09 09 23 20 74 68 61 6e | 20 74 68 65 20 6c 61 73 |..# than| the las|
|00005cf0| 74 20 63 6f 6d 70 69 6c | 65 72 20 68 61 76 65 20 |t compil|er have |
|00005d00| 6f 6e 65 20 6f 66 20 74 | 68 65 20 70 72 65 2d 64 |one of t|he pre-d|
|00005d10| 65 66 69 6e 65 64 20 73 | 79 6d 62 6f 6c 73 2e 0a |efined s|ymbols..|
|00005d20| 58 09 09 23 0a 58 09 09 | 66 6f 72 20 63 6f 6d 70 |X..#.X..|for comp|
|00005d30| 69 6c 65 72 20 69 6e 20 | 24 7b 43 43 4c 49 53 54 |iler in |${CCLIST|
|00005d40| 7d 0a 58 09 09 64 6f 0a | 58 09 09 09 66 6f 72 20 |}.X..do.|X...for |
|00005d50| 64 69 72 20 69 6e 20 24 | 7b 44 49 52 4c 49 53 54 |dir in $|{DIRLIST|
|00005d60| 7d 0a 58 09 09 09 64 6f | 0a 58 09 09 09 09 69 66 |}.X...do|.X....if|
|00005d70| 20 5b 20 2d 73 20 24 64 | 69 72 2f 24 63 6f 6d 70 | [ -s $d|ir/$comp|
|00005d80| 69 6c 65 72 20 5d 3b 20 | 74 68 65 6e 0a 58 09 09 |iler ]; |then.X..|
|00005d90| 09 09 09 65 63 68 6f 20 | 22 20 20 20 20 20 20 20 |...echo |" |
|00005da0| 20 66 6f 75 6e 64 20 24 | 63 6f 6d 70 69 6c 65 72 | found $|compiler|
|00005db0| 20 69 6e 20 24 64 69 72 | 22 0a 58 09 09 09 09 09 | in $dir|".X.....|
|00005dc0| 65 63 68 6f 20 24 64 69 | 72 2f 24 63 6f 6d 70 69 |echo $di|r/$compi|
|00005dd0| 6c 65 72 20 3e 3e 20 24 | 7b 54 4d 50 43 4f 4d 50 |ler >> $|{TMPCOMP|
|00005de0| 7d 0a 58 09 09 09 09 09 | 23 0a 58 09 09 09 09 09 |}.X.....|#.X.....|
|00005df0| 23 20 69 66 20 74 68 69 | 73 20 69 73 20 67 63 63 |# if thi|s is gcc|
|00005e00| 2c 20 61 6c 73 6f 20 61 | 64 64 20 61 20 73 65 63 |, also a|dd a sec|
|00005e10| 6f 6e 64 20 0a 58 09 09 | 09 09 09 23 20 20 20 65 |ond .X..|...# e|
|00005e20| 6e 74 72 79 20 77 69 74 | 68 20 74 68 65 20 2d 74 |ntry wit|h the -t|
|00005e30| 72 61 64 69 74 69 6f 6e | 61 6c 20 66 6c 61 67 0a |radition|al flag.|
|00005e40| 58 09 09 09 09 09 23 0a | 58 09 09 09 09 09 69 66 |X.....#.|X.....if|
|00005e50| 20 5b 20 24 63 6f 6d 70 | 69 6c 65 72 20 3d 20 22 | [ $comp|iler = "|
|00005e60| 67 63 63 22 20 5d 3b 20 | 74 68 65 6e 0a 58 09 09 |gcc" ]; |then.X..|
|00005e70| 09 09 09 09 65 63 68 6f | 20 24 64 69 72 2f 24 63 |....echo| $dir/$c|
|00005e80| 6f 6d 70 69 6c 65 72 20 | 5c 0a 58 09 09 09 09 09 |ompiler |\.X.....|
|00005e90| 09 20 20 2d 74 72 61 64 | 69 74 69 6f 6e 61 6c 20 |. -trad|itional |
|00005ea0| 3e 3e 20 24 7b 54 4d 50 | 43 4f 4d 50 7d 0a 58 09 |>> ${TMP|COMP}.X.|
|00005eb0| 09 09 09 09 66 69 0a 58 | 09 09 09 09 09 0a 58 09 |....fi.X|......X.|
|00005ec0| 09 09 09 09 62 72 65 61 | 6b 0a 58 09 09 09 09 66 |....brea|k.X....f|
|00005ed0| 69 0a 58 09 09 09 64 6f | 6e 65 0a 58 09 09 64 6f |i.X...do|ne.X..do|
|00005ee0| 6e 65 0a 58 0a 58 09 09 | 23 0a 58 09 09 23 20 69 |ne.X.X..|#.X..# i|
|00005ef0| 66 20 77 65 20 64 69 64 | 6e 27 74 20 66 69 6e 64 |f we did|n't find|
|00005f00| 20 61 6e 79 20 63 6f 6d | 70 69 6c 65 72 73 0a 58 | any com|pilers.X|
|00005f10| 09 09 23 0a 58 09 09 69 | 66 20 5b 20 21 20 2d 73 |..#.X..i|f [ ! -s|
|00005f20| 20 24 7b 54 4d 50 43 4f | 4d 50 7d 20 5d 3b 20 74 | ${TMPCO|MP} ]; t|
|00005f30| 68 65 6e 0a 58 09 09 09 | 65 63 68 6f 20 22 49 20 |hen.X...|echo "I |
|00005f40| 63 61 6e 27 74 20 66 69 | 6e 64 20 79 6f 75 72 20 |can't fi|nd your |
|00005f50| 63 6f 6d 70 69 6c 65 72 | 22 0a 58 09 09 09 65 63 |compiler|".X...ec|
|00005f60| 68 6f 20 31 20 3e 20 24 | 7b 54 4d 50 46 41 54 41 |ho 1 > $|{TMPFATA|
|00005f70| 4c 7d 0a 58 09 09 09 65 | 78 69 74 20 31 0a 58 09 |L}.X...e|xit 1.X.|
|00005f80| 09 66 69 0a 58 0a 58 09 | 66 69 0a 58 0a 58 09 72 |.fi.X.X.|fi.X.X.r|
|00005f90| 6d 20 2d 66 20 24 7b 54 | 4d 50 53 45 54 7d 20 24 |m -f ${T|MPSET} $|
|00005fa0| 7b 54 4d 50 45 4e 44 7d | 20 24 7b 54 4d 50 53 45 |{TMPEND}| ${TMPSE|
|00005fb0| 54 7d 2e 73 20 24 7b 54 | 4d 50 45 4e 44 7d 2e 73 |T}.s ${T|MPEND}.s|
|00005fc0| 20 24 7b 54 4d 50 46 49 | 52 53 54 7d 20 24 7b 54 | ${TMPFI|RST} ${T|
|00005fd0| 4d 50 53 4b 49 50 50 45 | 44 7d 0a 58 0a 58 09 63 |MPSKIPPE|D}.X.X.c|
|00005fe0| 70 20 2f 64 65 76 2f 6e | 75 6c 6c 20 24 7b 54 4d |p /dev/n|ull ${TM|
|00005ff0| 50 53 45 54 7d 0a 58 09 | 63 70 20 2f 64 65 76 2f |PSET}.X.|cp /dev/|
|00006000| 6e 75 6c 6c 20 24 7b 54 | 4d 50 53 45 54 7d 2e 73 |null ${T|MPSET}.s|
|00006010| 0a 58 09 63 70 20 2f 64 | 65 76 2f 6e 75 6c 6c 20 |.X.cp /d|ev/null |
|00006020| 24 7b 54 4d 50 45 4e 44 | 7d 0a 58 09 63 70 20 2f |${TMPEND|}.X.cp /|
|00006030| 64 65 76 2f 6e 75 6c 6c | 20 24 7b 54 4d 50 45 4e |dev/null| ${TMPEN|
|00006040| 44 7d 2e 73 0a 58 09 66 | 69 72 73 74 3d 31 0a 58 |D}.s.X.f|irst=1.X|
|00006050| 09 65 6e 64 69 6e 67 3d | 0a 58 09 23 0a 58 09 23 |.ending=|.X.#.X.#|
|00006060| 20 66 6f 72 20 65 61 63 | 68 20 63 6f 6d 70 69 6c | for eac|h compil|
|00006070| 65 72 2e 20 0a 58 09 23 | 0a 58 09 65 63 68 6f 20 |er. .X.#|.X.echo |
|00006080| 22 20 20 20 20 63 68 65 | 63 6b 69 6e 67 20 63 6f |" che|cking co|
|00006090| 6d 70 69 6c 65 72 20 63 | 6f 6e 66 69 67 75 72 61 |mpiler c|onfigura|
|000060a0| 74 69 6f 6e 28 73 29 2e | 2e 2e 22 0a 58 09 77 68 |tion(s).|..".X.wh|
|000060b0| 69 6c 65 20 72 65 61 64 | 20 63 63 0a 58 09 64 6f |ile read| cc.X.do|
|000060c0| 0a 58 09 09 28 0a 58 09 | 09 65 63 68 6f 20 22 20 |.X..(.X.|.echo " |
|000060d0| 20 20 20 20 20 20 20 63 | 68 65 63 6b 69 6e 67 20 | c|hecking |
|000060e0| 24 63 63 2e 2e 2e 22 0a | 58 0a 58 09 09 23 0a 58 |$cc...".|X.X..#.X|
|000060f0| 09 09 23 20 69 66 20 77 | 65 20 73 68 6f 75 6c 64 |..# if w|e should|
|00006100| 20 62 65 20 75 73 69 6e | 67 20 61 6e 79 20 73 70 | be usin|g any sp|
|00006110| 65 63 69 61 6c 20 66 6c | 61 67 73 20 66 6f 72 20 |ecial fl|ags for |
|00006120| 74 68 69 73 20 63 6f 6d | 70 69 6c 65 0a 58 09 09 |this com|pile.X..|
|00006130| 23 0a 58 09 09 69 66 20 | 5b 20 2d 73 20 43 6f 6e |#.X..if |[ -s Con|
|00006140| 66 69 67 2e 66 6c 61 67 | 73 20 5d 3b 20 74 68 65 |fig.flag|s ]; the|
|00006150| 6e 0a 58 09 09 09 6e 65 | 77 63 63 3d 22 60 62 61 |n.X...ne|wcc="`ba|
|00006160| 73 65 6e 61 6d 65 20 24 | 63 63 60 22 0a 58 09 09 |sename $|cc`".X..|
|00006170| 09 6e 65 77 63 63 3d 22 | 60 65 76 61 6c 20 67 72 |.newcc="|`eval gr|
|00006180| 65 70 20 5c 22 5c 5e 24 | 6e 65 77 63 63 5c 22 20 |ep \"\^$|newcc\" |
|00006190| 43 6f 6e 66 69 67 2e 66 | 6c 61 67 73 60 22 0a 58 |Config.f|lags`".X|
|000061a0| 09 09 09 69 66 20 5b 20 | 21 20 2d 7a 20 22 24 6e |...if [ |! -z "$n|
|000061b0| 65 77 63 63 22 20 5d 3b | 20 74 68 65 6e 0a 58 09 |ewcc" ];| then.X.|
|000061c0| 09 09 09 63 63 3d 22 24 | 6e 65 77 63 63 22 0a 58 |...cc="$|newcc".X|
|000061d0| 09 09 09 66 69 0a 58 09 | 09 66 69 0a 58 0a 58 09 |...fi.X.|.fi.X.X.|
|000061e0| 09 69 66 20 5b 20 2d 73 | 20 24 7b 54 4d 50 46 49 |.if [ -s| ${TMPFI|
|000061f0| 52 53 54 7d 20 5d 3b 20 | 74 68 65 6e 0a 58 09 09 |RST} ]; |then.X..|
|00006200| 09 23 0a 58 09 09 09 23 | 20 53 65 65 20 69 66 20 |.#.X...#| See if |
|00006210| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 65 74 20 |the curr|ent set |
|00006220| 6f 66 20 64 65 66 69 6e | 65 73 20 6d 65 65 74 73 |of defin|es meets|
|00006230| 20 74 68 65 20 63 6f 6e | 64 69 74 69 6f 6e 73 0a | the con|ditions.|
|00006240| 58 09 09 09 23 20 66 6f | 72 20 74 68 69 73 20 63 |X...# fo|r this c|
|00006250| 6f 6d 70 69 6c 65 72 2e | 20 20 49 66 20 73 6f 2c |ompiler.| If so,|
|00006260| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6e 65 65 | there i|s no nee|
|00006270| 64 20 74 6f 20 76 65 72 | 69 66 79 0a 58 09 09 09 |d to ver|ify.X...|
|00006280| 23 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |# the pa|rameters|
|00006290| 20 66 75 72 74 68 65 72 | 2e 0a 58 09 09 09 23 0a | further|..X...#.|
|000062a0| 58 09 09 09 72 6d 20 2d | 66 20 24 7b 54 4d 50 43 |X...rm -|f ${TMPC|
|000062b0| 43 46 49 4c 45 7d 0a 58 | 09 09 09 63 61 74 20 24 |CFILE}.X|...cat $|
|000062c0| 7b 54 4d 50 53 45 54 7d | 20 24 7b 54 4d 50 45 4e |{TMPSET}| ${TMPEN|
|000062d0| 44 7d 20 63 63 74 65 73 | 74 2e 63 20 3e 20 24 7b |D} cctes|t.c > ${|
|000062e0| 54 4d 50 43 43 46 49 4c | 45 7d 0a 58 09 09 09 24 |TMPCCFIL|E}.X...$|
|000062f0| 63 63 20 2d 44 4d 41 4c | 4c 4f 43 5f 43 4f 4d 50 |cc -DMAL|LOC_COMP|
|00006300| 49 4c 45 54 45 53 54 20 | 2d 44 4d 45 4d 5f 43 4f |ILETEST |-DMEM_CO|
|00006310| 4d 50 49 4c 45 54 45 53 | 54 20 5c 0a 58 09 09 09 |MPILETES|T \.X...|
|00006320| 20 20 20 2d 44 53 54 52 | 5f 43 4f 4d 50 49 4c 45 | -DSTR|_COMPILE|
|00006330| 54 45 53 54 20 2d 44 46 | 52 45 45 5f 43 4f 4d 50 |TEST -DF|REE_COMP|
|00006340| 49 4c 45 54 45 53 54 20 | 2d 44 45 58 49 54 54 45 |ILETEST |-DEXITTE|
|00006350| 53 54 5c 0a 58 09 09 09 | 20 20 20 2d 63 20 24 7b |ST\.X...| -c ${|
|00006360| 54 4d 50 43 43 46 49 4c | 45 7d 20 3e 24 7b 54 4d |TMPCCFIL|E} >${TM|
|00006370| 50 43 43 7d 20 32 3e 26 | 31 0a 58 09 09 09 63 63 |PCC} 2>&|1.X...cc|
|00006380| 72 65 73 75 6c 74 3d 24 | 3f 0a 58 0a 58 09 09 09 |result=$|?.X.X...|
|00006390| 72 6d 20 2d 66 20 24 7b | 54 4d 50 43 43 46 49 4c |rm -f ${|TMPCCFIL|
|000063a0| 45 7d 0a 58 0a 58 09 09 | 09 69 66 20 5b 20 24 63 |E}.X.X..|.if [ $c|
|000063b0| 63 72 65 73 75 6c 74 20 | 3d 20 30 20 5d 3b 20 74 |cresult |= 0 ]; t|
|000063c0| 68 65 6e 0a 58 09 09 09 | 09 69 66 20 65 67 72 65 |hen.X...|.if egre|
|000063d0| 70 20 22 24 7b 57 41 52 | 4e 5f 52 45 47 45 58 50 |p "${WAR|N_REGEXP|
|000063e0| 7d 22 20 24 7b 54 4d 50 | 43 43 7d 3e 2f 64 65 76 |}" ${TMP|CC}>/dev|
|000063f0| 2f 6e 75 6c 6c 3b 20 74 | 68 65 6e 0a 58 09 09 09 |/null; t|hen.X...|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.