home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6a 69 | 6b 40 70 69 74 2d 6d 61 |From: ji|k@pit-ma|
|00000010| 6e 61 67 65 72 2e 4d 49 | 54 2e 45 44 55 20 28 4a |nager.MI|T.EDU (J|
|00000020| 6f 6e 61 74 68 61 6e 20 | 49 2e 20 4b 61 6d 65 6e |onathan |I. Kamen|
|00000030| 73 29 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |s).Newsg|roups: c|
|00000040| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 6d 69 73 63 |omp.sour|ces.misc|
|00000050| 0a 53 75 62 6a 65 63 74 | 3a 20 76 31 37 69 30 32 |.Subject|: v17i02|
|00000060| 33 3a 20 20 64 65 6c 65 | 74 65 20 2d 20 4d 49 54 |3: dele|te - MIT|
|00000070| 20 41 74 68 65 6e 61 20 | 64 65 6c 65 74 65 2f 75 | Athena |delete/u|
|00000080| 6e 64 65 6c 65 74 65 20 | 70 72 6f 67 72 61 6d 73 |ndelete |programs|
|00000090| 2c 20 50 61 72 74 30 31 | 2f 30 34 0a 4d 65 73 73 |, Part01|/04.Mess|
|000000a0| 61 67 65 2d 49 44 3a 20 | 3c 31 39 39 31 46 65 62 |age-ID: |<1991Feb|
|000000b0| 32 35 2e 31 38 30 36 34 | 31 2e 34 32 37 34 40 73 |25.18064|1.4274@s|
|000000c0| 70 61 72 6b 79 2e 49 4d | 44 2e 53 74 65 72 6c 69 |parky.IM|D.Sterli|
|000000d0| 6e 67 2e 43 4f 4d 3e 0a | 44 61 74 65 3a 20 32 35 |ng.COM>.|Date: 25|
|000000e0| 20 46 65 62 20 39 31 20 | 31 38 3a 30 36 3a 34 31 | Feb 91 |18:06:41|
|000000f0| 20 47 4d 54 0a 41 70 70 | 72 6f 76 65 64 3a 20 6b | GMT.App|roved: k|
|00000100| 65 6e 74 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |ent@spar|ky.imd.s|
|00000110| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 0a 58 2d 43 68 |terling.|com.X-Ch|
|00000120| 65 63 6b 73 75 6d 2d 53 | 6e 65 66 72 75 3a 20 35 |ecksum-S|nefru: 5|
|00000130| 38 36 61 38 34 34 62 20 | 35 64 33 37 31 34 31 34 |86a844b |5d371414|
|00000140| 20 63 36 63 36 64 33 64 | 32 20 33 62 31 36 34 37 | c6c6d3d|2 3b1647|
|00000150| 37 37 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |77..Subm|itted-by|
|00000160| 3a 20 4a 6f 6e 61 74 68 | 61 6e 20 49 2e 20 4b 61 |: Jonath|an I. Ka|
|00000170| 6d 65 6e 73 20 3c 6a 69 | 6b 40 70 69 74 2d 6d 61 |mens <ji|k@pit-ma|
|00000180| 6e 61 67 65 72 2e 4d 49 | 54 2e 45 44 55 3e 0a 50 |nager.MI|T.EDU>.P|
|00000190| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|000001a0| 6f 6c 75 6d 65 20 31 37 | 2c 20 49 73 73 75 65 20 |olume 17|, Issue |
|000001b0| 32 33 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |23.Archi|ve-name:|
|000001c0| 20 64 65 6c 65 74 65 2f | 70 61 72 74 30 31 0a 0a | delete/|part01..|
|000001d0| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | The fo|llowing |
|000001e0| 66 6f 75 72 20 73 68 61 | 72 20 66 69 6c 65 73 20 |four sha|r files |
|000001f0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 73 |containi|ng the s|
|00000200| 6f 75 72 63 65 20 63 6f | 64 65 20 66 6f 72 0a 74 |ource co|de for.t|
|00000210| 68 65 20 4d 49 54 20 50 | 72 6f 6a 65 63 74 20 41 |he MIT P|roject A|
|00000220| 74 68 65 6e 61 20 22 64 | 65 6c 65 74 65 22 20 73 |thena "d|elete" s|
|00000230| 75 69 74 65 20 6f 66 20 | 75 74 69 6c 69 74 69 65 |uite of |utilitie|
|00000240| 73 2c 20 61 74 20 70 61 | 74 63 68 6c 65 76 65 6c |s, at pa|tchlevel|
|00000250| 20 31 32 0a 70 61 74 63 | 68 6c 65 76 65 6c 20 31 | 12.patc|hlevel 1|
|00000260| 32 2e 20 20 54 68 65 20 | 70 61 63 6b 61 67 65 20 |2. The |package |
|00000270| 61 6c 6c 6f 77 73 20 66 | 6f 72 20 74 68 65 20 72 |allows f|or the r|
|00000280| 65 63 6f 76 65 72 79 20 | 6f 66 20 64 65 6c 65 74 |ecovery |of delet|
|00000290| 65 64 20 66 69 6c 65 73 | 20 0a 62 79 20 72 65 6e |ed files| .by ren|
|000002a0| 61 6d 69 6e 67 20 74 68 | 65 6d 20 69 6e 73 74 65 |aming th|em inste|
|000002b0| 61 64 20 6f 66 20 61 63 | 74 75 61 6c 6c 79 20 72 |ad of ac|tually r|
|000002c0| 65 6d 6f 76 69 6e 67 20 | 74 68 65 6d 20 63 6f 6d |emoving |them com|
|000002d0| 70 6c 65 74 65 6c 79 2e | 20 20 53 65 65 20 0a 74 |pletely.| See .t|
|000002e0| 68 65 20 52 45 41 44 4d | 45 20 66 69 6c 65 20 66 |he READM|E file f|
|000002f0| 6f 72 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 69 6e |or addit|ional in|
|00000300| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 0a 20 20 44 69 |formatio|n... Di|
|00000310| 72 65 63 74 6c 79 20 66 | 6f 6c 6c 6f 77 69 6e 67 |rectly f|ollowing|
|00000320| 20 74 68 65 20 73 6f 75 | 72 63 65 20 63 6f 64 65 | the sou|rce code|
|00000330| 20 66 6f 72 20 64 65 6c | 65 74 65 20 77 69 6c 6c | for del|ete will|
|00000340| 20 62 65 20 74 68 72 65 | 65 20 73 68 61 72 0a 66 | be thre|e shar.f|
|00000350| 69 6c 65 73 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |iles con|taining |
|00000360| 74 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |the sour|ce code |
|00000370| 66 6f 72 20 74 68 65 20 | 22 63 6f 6d 5f 65 72 72 |for the |"com_err|
|00000380| 22 20 65 72 72 6f 72 2d | 68 61 6e 64 6c 69 6e 67 |" error-|handling|
|00000390| 0a 6c 69 62 72 61 72 79 | 20 28 61 74 20 70 61 74 |.library| (at pat|
|000003a0| 63 68 6c 65 76 65 6c 20 | 33 29 2c 20 77 68 69 63 |chlevel |3), whic|
|000003b0| 68 20 79 6f 75 27 6c 6c | 20 6e 65 65 64 20 74 6f |h you'll| need to|
|000003c0| 20 63 6f 6d 70 69 6c 65 | 20 64 65 6c 65 74 65 2e | compile| delete.|
|000003d0| 20 20 53 65 65 0a 63 6f | 6d 5f 65 72 72 27 73 20 | See.co|m_err's |
|000003e0| 52 45 41 44 4d 45 20 66 | 69 6c 65 20 66 6f 72 20 |README f|ile for |
|000003f0| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00000400| 20 61 62 6f 75 74 20 69 | 74 2e 20 20 4e 6f 74 65 | about i|t. Note|
|00000410| 20 74 68 61 74 20 74 68 | 69 73 0a 69 73 20 4e 4f | that th|is.is NO|
|00000420| 54 20 61 6e 20 6f 66 66 | 69 63 69 61 6c 20 72 65 |T an off|icial re|
|00000430| 6c 65 61 73 65 20 6f 66 | 20 74 68 65 20 63 6f 6d |lease of| the com|
|00000440| 5f 65 72 72 20 6c 69 62 | 72 61 72 79 20 62 79 20 |_err lib|rary by |
|00000450| 69 74 73 20 61 75 74 68 | 6f 72 73 20 28 49 0a 64 |its auth|ors (I.d|
|00000460| 6f 6e 27 74 20 74 68 69 | 6e 6b 20 73 75 63 68 20 |on't thi|nk such |
|00000470| 61 20 74 68 69 6e 67 20 | 65 78 69 73 74 73 29 3b |a thing |exists);|
|00000480| 20 49 20 69 6e 63 6c 75 | 64 65 20 69 74 20 68 65 | I inclu|de it he|
|00000490| 72 65 20 6f 6e 6c 79 20 | 73 6f 20 70 65 6f 70 6c |re only |so peopl|
|000004a0| 65 20 63 61 6e 0a 63 6f | 6d 70 69 6c 65 20 64 65 |e can.co|mpile de|
|000004b0| 6c 65 74 65 2e 20 20 46 | 65 65 6c 20 66 72 65 65 |lete. F|eel free|
|000004c0| 20 74 6f 20 75 73 65 20 | 74 68 65 20 63 6f 6d 5f | to use |the com_|
|000004d0| 65 72 72 20 6c 69 62 72 | 61 72 79 20 69 6e 20 79 |err libr|ary in y|
|000004e0| 6f 75 72 20 6f 77 6e 0a | 70 72 6f 67 72 61 6d 73 |our own.|programs|
|000004f0| 2c 20 62 75 74 20 62 65 | 20 61 77 61 72 65 20 74 |, but be| aware t|
|00000500| 68 61 74 20 69 74 20 69 | 73 6e 27 74 20 6e 65 63 |hat it i|sn't nec|
|00000510| 65 73 73 61 72 69 6c 79 | 20 67 6f 69 6e 67 20 74 |essarily| going t|
|00000520| 6f 20 62 65 20 73 75 70 | 70 6f 72 74 65 64 0a 69 |o be sup|ported.i|
|00000530| 6e 20 61 6e 79 20 77 61 | 79 2e 0a 0a 20 20 53 65 |n any wa|y... Se|
|00000540| 65 20 74 68 65 20 66 69 | 6c 65 73 20 6d 69 74 2d |e the fi|les mit-|
|00000550| 63 6f 70 79 72 69 67 68 | 74 2e 68 20 69 6e 20 74 |copyrigh|t.h in t|
|00000560| 68 65 20 64 65 6c 65 74 | 65 20 73 6f 75 72 63 65 |he delet|e source|
|00000570| 73 20 61 6e 64 0a 6d 69 | 74 2d 73 69 70 62 2d 63 |s and.mi|t-sipb-c|
|00000580| 6f 70 79 72 69 67 68 74 | 2e 68 20 69 6e 20 74 68 |opyright|.h in th|
|00000590| 65 20 63 6f 6d 5f 65 72 | 72 20 73 6f 75 72 63 65 |e com_er|r source|
|000005a0| 73 2c 20 66 6f 72 20 63 | 6f 70 79 72 69 67 68 74 |s, for c|opyright|
|000005b0| 0a 72 65 73 74 72 69 63 | 74 69 6f 6e 73 20 28 62 |.restric|tions (b|
|000005c0| 61 73 69 63 61 6c 6c 79 | 2c 20 66 72 65 65 6c 79 |asically|, freely|
|000005d0| 20 72 65 64 69 73 74 72 | 69 62 75 74 61 62 6c 65 | redistr|ibutable|
|000005e0| 20 61 73 20 6c 6f 6e 67 | 20 61 73 20 74 68 65 0a | as long| as the.|
|000005f0| 63 6f 70 79 72 69 67 68 | 74 20 73 74 61 79 73 2c |copyrigh|t stays,|
|00000600| 20 61 6e 64 20 74 68 65 | 72 65 20 61 72 65 20 6e | and the|re are n|
|00000610| 6f 20 67 75 61 72 61 6e | 74 65 65 73 20 66 72 6f |o guaran|tees fro|
|00000620| 6d 20 4d 49 54 2c 20 62 | 75 74 20 64 6f 6e 27 74 |m MIT, b|ut don't|
|00000630| 20 74 61 6b 65 0a 6d 79 | 20 77 6f 72 64 20 66 6f | take.my| word fo|
|00000640| 72 20 69 74 2c 20 72 65 | 61 64 20 74 68 65 20 66 |r it, re|ad the f|
|00000650| 69 6c 65 73 29 2e 0a 0a | 4a 6f 6e 61 74 68 61 6e |iles)...|Jonathan|
|00000660| 20 4b 61 6d 65 6e 73 09 | 09 09 20 20 20 20 20 20 | Kamens.|.. |
|00000670| 20 20 20 20 20 20 20 20 | 55 53 6e 61 69 6c 3a 0a | |USnail:.|
|00000680| 4d 49 54 20 50 72 6f 6a | 65 63 74 20 41 74 68 65 |MIT Proj|ect Athe|
|00000690| 6e 61 09 09 09 09 31 31 | 20 41 73 68 66 6f 72 64 |na....11| Ashford|
|000006a0| 20 54 65 72 72 61 63 65 | 0a 6a 69 6b 40 41 74 68 | Terrace|.jik@Ath|
|000006b0| 65 6e 61 2e 4d 49 54 2e | 45 44 55 09 09 09 09 41 |ena.MIT.|EDU....A|
|000006c0| 6c 6c 73 74 6f 6e 2c 20 | 4d 41 20 20 30 32 31 33 |llston, |MA 0213|
|000006d0| 34 0a 4f 66 66 69 63 65 | 3a 20 36 31 37 2d 32 35 |4.Office|: 617-25|
|000006e0| 33 2d 38 30 38 35 09 09 | 09 20 20 20 20 20 20 48 |3-8085..|. H|
|000006f0| 6f 6d 65 3a 20 36 31 37 | 2d 37 38 32 2d 30 37 31 |ome: 617|-782-071|
|00000700| 30 0a 2d 2d 2d 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |0.---.#!| /bin/sh|
|00000710| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000720| 6c 6c 20 61 72 63 68 69 | 76 65 2e 20 20 52 65 6d |ll archi|ve. Rem|
|00000730| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 62 65 66 |ove anyt|hing bef|
|00000740| 6f 72 65 20 74 68 69 73 | 20 6c 69 6e 65 2c 20 74 |ore this| line, t|
|00000750| 68 65 6e 20 75 6e 70 61 | 63 6b 0a 23 20 69 74 20 |hen unpa|ck.# it |
|00000760| 62 79 20 73 61 76 69 6e | 67 20 69 74 20 69 6e 74 |by savin|g it int|
|00000770| 6f 20 61 20 66 69 6c 65 | 20 61 6e 64 20 74 79 70 |o a file| and typ|
|00000780| 69 6e 67 20 22 73 68 20 | 66 69 6c 65 22 2e 20 20 |ing "sh |file". |
|00000790| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|000007a0| 73 74 69 6e 67 0a 23 20 | 66 69 6c 65 73 2c 20 74 |sting.# |files, t|
|000007b0| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|000007c0| 2e 20 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. You c|an also |
|000007d0| 66 65 65 64 20 74 68 69 | 73 20 61 73 20 73 74 61 |feed thi|s as sta|
|000007e0| 6e 64 61 72 64 20 69 6e | 70 75 74 20 76 69 61 0a |ndard in|put via.|
|000007f0| 23 20 75 6e 73 68 61 72 | 2c 20 6f 72 20 62 79 20 |# unshar|, or by |
|00000800| 74 79 70 69 6e 67 20 22 | 73 68 20 3c 66 69 6c 65 |typing "|sh <file|
|00000810| 22 2c 20 65 2e 67 2e 2e | 20 20 49 66 20 74 68 69 |", e.g..| If thi|
|00000820| 73 20 61 72 63 68 69 76 | 65 20 69 73 20 63 6f 6d |s archiv|e is com|
|00000830| 70 6c 65 74 65 2c 20 79 | 6f 75 0a 23 20 77 69 6c |plete, y|ou.# wil|
|00000840| 6c 20 73 65 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |l see th|e follow|
|00000850| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 61 74 20 74 |ing mess|age at t|
|00000860| 68 65 20 65 6e 64 3a 0a | 23 09 09 22 45 6e 64 20 |he end:.|#.."End |
|00000870| 6f 66 20 61 72 63 68 69 | 76 65 20 31 20 28 6f 66 |of archi|ve 1 (of|
|00000880| 20 34 29 2e 22 0a 23 20 | 43 6f 6e 74 65 6e 74 73 | 4).".# |Contents|
|00000890| 3a 20 20 4d 41 4e 49 46 | 45 53 54 20 50 41 54 43 |: MANIF|EST PATC|
|000008a0| 48 4c 45 56 45 4c 20 52 | 45 41 44 4d 45 20 63 6f |HLEVEL R|EADME co|
|000008b0| 6c 2e 63 20 63 6f 6c 2e | 68 20 64 65 6c 65 74 65 |l.c col.|h delete|
|000008c0| 2e 68 0a 23 20 20 20 64 | 65 6c 65 74 65 5f 65 72 |.h.# d|elete_er|
|000008d0| 72 73 2e 65 74 20 64 69 | 72 65 63 74 6f 72 69 65 |rs.et di|rectorie|
|000008e0| 73 2e 68 20 65 72 72 6f | 72 73 2e 63 20 65 72 72 |s.h erro|rs.c err|
|000008f0| 6f 72 73 2e 68 20 65 78 | 70 75 6e 67 65 2e 68 20 |ors.h ex|punge.h |
|00000900| 6c 73 64 65 6c 2e 68 0a | 23 20 20 20 6d 61 6e 31 |lsdel.h.|# man1|
|00000910| 20 6d 61 6e 31 2f 64 65 | 6c 65 74 65 2e 31 20 6d | man1/de|lete.1 m|
|00000920| 61 6e 31 2f 65 78 70 75 | 6e 67 65 2e 31 20 6d 61 |an1/expu|nge.1 ma|
|00000930| 6e 31 2f 6c 73 64 65 6c | 2e 31 20 6d 61 6e 31 2f |n1/lsdel|.1 man1/|
|00000940| 70 75 72 67 65 2e 31 0a | 23 20 20 20 6d 61 6e 31 |purge.1.|# man1|
|00000950| 2f 75 6e 64 65 6c 65 74 | 65 2e 31 20 6d 69 74 2d |/undelet|e.1 mit-|
|00000960| 63 6f 70 79 72 69 67 68 | 74 2e 68 20 70 61 74 74 |copyrigh|t.h patt|
|00000970| 65 72 6e 2e 68 20 73 68 | 65 6c 6c 5f 72 65 67 65 |ern.h sh|ell_rege|
|00000980| 78 70 2e 63 0a 23 20 20 | 20 73 68 65 6c 6c 5f 72 |xp.c.# | shell_r|
|00000990| 65 67 65 78 70 2e 68 20 | 73 74 61 63 6b 2e 63 20 |egexp.h |stack.c |
|000009a0| 73 74 61 63 6b 2e 68 20 | 75 6e 64 65 6c 65 74 65 |stack.h |undelete|
|000009b0| 2e 68 20 75 74 69 6c 2e | 68 0a 23 20 57 72 61 70 |.h util.|h.# Wrap|
|000009c0| 70 65 64 20 62 79 20 6a | 69 6b 40 70 69 74 2d 6d |ped by j|ik@pit-m|
|000009d0| 61 6e 61 67 65 72 20 6f | 6e 20 46 72 69 20 46 65 |anager o|n Fri Fe|
|000009e0| 62 20 32 32 20 30 38 3a | 31 34 3a 31 38 20 31 39 |b 22 08:|14:18 19|
|000009f0| 39 31 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |91.PATH=|/bin:/us|
|00000a00| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|00000a10| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|00000a20| 74 65 73 74 20 2d 66 20 | 27 4d 41 4e 49 46 45 53 |test -f |'MANIFES|
|00000a30| 54 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |T' -a "$|{1}" != |
|00000a40| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000a50| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000a60| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000a70| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 41 4e 49 |ing file| \"'MANI|
|00000a80| 46 45 53 54 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |FEST'\".|else.ech|
|00000a90| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000aa0| 6e 67 20 5c 22 27 4d 41 | 4e 49 46 45 53 54 27 5c |ng \"'MA|NIFEST'\|
|00000ab0| 22 20 5c 28 31 31 36 38 | 20 63 68 61 72 61 63 74 |" \(1168| charact|
|00000ac0| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00000ad0| 2f 22 20 3e 27 4d 41 4e | 49 46 45 53 54 27 20 3c |/" >'MAN|IFEST' <|
|00000ae0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00000af0| 20 20 20 46 69 6c 65 20 | 4e 61 6d 65 09 09 41 72 | File |Name..Ar|
|00000b00| 63 68 69 76 65 20 23 09 | 44 65 73 63 72 69 70 74 |chive #.|Descript|
|00000b10| 69 6f 6e 0a 58 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion.X---|--------|
|00000b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b50| 0a 58 20 4d 41 4e 49 46 | 45 53 54 20 20 20 20 20 |.X MANIF|EST |
|00000b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 09 | | 1.|
|00000b70| 54 68 69 73 20 73 68 69 | 70 70 69 6e 67 20 6c 69 |This shi|pping li|
|00000b80| 73 74 0a 58 20 4d 61 6b | 65 66 69 6c 65 20 20 20 |st.X Mak|efile |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ba0| 32 09 0a 58 20 50 41 54 | 43 48 4c 45 56 45 4c 20 |2..X PAT|CHLEVEL |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bc0| 31 09 0a 58 20 52 45 41 | 44 4d 45 20 20 20 20 20 |1..X REA|DME |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000be0| 31 09 0a 58 20 63 6f 6c | 2e 63 20 20 20 20 20 20 |1..X col|.c |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c00| 31 09 0a 58 20 63 6f 6c | 2e 68 20 20 20 20 20 20 |1..X col|.h |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 31 09 0a 58 20 64 65 6c | 65 74 65 2e 63 20 20 20 |1..X del|ete.c |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c40| 33 09 0a 58 20 64 65 6c | 65 74 65 2e 68 20 20 20 |3..X del|ete.h |
|00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c60| 31 09 0a 58 20 64 65 6c | 65 74 65 5f 65 72 72 73 |1..X del|ete_errs|
|00000c70| 2e 65 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.et | |
|00000c80| 31 09 0a 58 20 64 69 72 | 65 63 74 6f 72 69 65 73 |1..X dir|ectories|
|00000c90| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000ca0| 33 09 0a 58 20 64 69 72 | 65 63 74 6f 72 69 65 73 |3..X dir|ectories|
|00000cb0| 2e 68 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.h | |
|00000cc0| 31 09 0a 58 20 65 72 72 | 6f 72 73 2e 63 20 20 20 |1..X err|ors.c |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ce0| 31 09 0a 58 20 65 72 72 | 6f 72 73 2e 68 20 20 20 |1..X err|ors.h |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d00| 31 09 0a 58 20 65 78 70 | 75 6e 67 65 2e 63 20 20 |1..X exp|unge.c |
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d20| 32 09 0a 58 20 65 78 70 | 75 6e 67 65 2e 68 20 20 |2..X exp|unge.h |
|00000d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d40| 31 09 0a 58 20 6c 73 64 | 65 6c 2e 63 20 20 20 20 |1..X lsd|el.c |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d60| 32 09 0a 58 20 6c 73 64 | 65 6c 2e 68 20 20 20 20 |2..X lsd|el.h |
|00000d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d80| 31 09 0a 58 20 6d 61 6e | 31 20 20 20 20 20 20 20 |1..X man|1 |
|00000d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000da0| 31 09 0a 58 20 6d 61 6e | 31 2f 64 65 6c 65 74 65 |1..X man|1/delete|
|00000db0| 2e 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.1 | |
|00000dc0| 31 09 0a 58 20 6d 61 6e | 31 2f 65 78 70 75 6e 67 |1..X man|1/expung|
|00000dd0| 65 2e 31 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.1 | |
|00000de0| 31 09 0a 58 20 6d 61 6e | 31 2f 6c 73 64 65 6c 2e |1..X man|1/lsdel.|
|00000df0| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00000e00| 31 09 0a 58 20 6d 61 6e | 31 2f 70 75 72 67 65 2e |1..X man|1/purge.|
|00000e10| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00000e20| 31 09 0a 58 20 6d 61 6e | 31 2f 75 6e 64 65 6c 65 |1..X man|1/undele|
|00000e30| 74 65 2e 31 20 20 20 20 | 20 20 20 20 20 20 20 20 |te.1 | |
|00000e40| 31 09 0a 58 20 6d 69 74 | 2d 63 6f 70 79 72 69 67 |1..X mit|-copyrig|
|00000e50| 68 74 2e 68 20 20 20 20 | 20 20 20 20 20 20 20 20 |ht.h | |
|00000e60| 31 09 0a 58 20 70 61 74 | 74 65 72 6e 2e 63 20 20 |1..X pat|tern.c |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e80| 34 09 0a 58 20 70 61 74 | 74 65 72 6e 2e 68 20 20 |4..X pat|tern.h |
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ea0| 31 09 0a 58 20 73 68 65 | 6c 6c 5f 72 65 67 65 78 |1..X she|ll_regex|
|00000eb0| 70 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |p.c | |
|00000ec0| 31 09 0a 58 20 73 68 65 | 6c 6c 5f 72 65 67 65 78 |1..X she|ll_regex|
|00000ed0| 70 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |p.h | |
|00000ee0| 31 09 0a 58 20 73 74 61 | 63 6b 2e 63 20 20 20 20 |1..X sta|ck.c |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f00| 31 09 0a 58 20 73 74 61 | 63 6b 2e 68 20 20 20 20 |1..X sta|ck.h |
|00000f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f20| 31 09 0a 58 20 75 6e 64 | 65 6c 65 74 65 2e 63 20 |1..X und|elete.c |
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f40| 32 09 0a 58 20 75 6e 64 | 65 6c 65 74 65 2e 68 20 |2..X und|elete.h |
|00000f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f60| 31 09 0a 58 20 75 74 69 | 6c 2e 63 20 20 20 20 20 |1..X uti|l.c |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f80| 32 09 0a 58 20 75 74 69 | 6c 2e 68 20 20 20 20 20 |2..X uti|l.h |
|00000f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fa0| 31 09 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |1..END_O|F_FILE.i|
|00000fb0| 66 20 74 65 73 74 20 31 | 31 36 38 20 2d 6e 65 20 |f test 1|168 -ne |
|00000fc0| 60 77 63 20 2d 63 20 3c | 27 4d 41 4e 49 46 45 53 |`wc -c <|'MANIFES|
|00000fd0| 54 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |T'`; the|n. ec|
|00000fe0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 4d 41 4e 49 |ho shar:| \"'MANI|
|00000ff0| 46 45 53 54 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |FEST'\" |unpacked|
|00001000| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00001010| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 4d |!.fi.# e|nd of 'M|
|00001020| 41 4e 49 46 45 53 54 27 | 0a 66 69 0a 69 66 20 74 |ANIFEST'|.fi.if t|
|00001030| 65 73 74 20 2d 66 20 27 | 50 41 54 43 48 4c 45 56 |est -f '|PATCHLEV|
|00001040| 45 4c 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |EL' -a "|${1}" !=|
|00001050| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001060| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001070| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001080| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 50 41 54 |ting fil|e \"'PAT|
|00001090| 43 48 4c 45 56 45 4c 27 | 5c 22 0a 65 6c 73 65 0a |CHLEVEL'|\".else.|
|000010a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000010b0| 63 74 69 6e 67 20 5c 22 | 27 50 41 54 43 48 4c 45 |cting \"|'PATCHLE|
|000010c0| 56 45 4c 27 5c 22 20 5c | 28 33 20 63 68 61 72 61 |VEL'\" \|(3 chara|
|000010d0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000010e0| 58 2f 2f 22 20 3e 27 50 | 41 54 43 48 4c 45 56 45 |X//" >'P|ATCHLEVE|
|000010f0| 4c 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |L' <<'EN|D_OF_FIL|
|00001100| 45 27 0a 58 31 32 0a 45 | 4e 44 5f 4f 46 5f 46 49 |E'.X12.E|ND_OF_FI|
|00001110| 4c 45 0a 69 66 20 74 65 | 73 74 20 33 20 2d 6e 65 |LE.if te|st 3 -ne|
|00001120| 20 60 77 63 20 2d 63 20 | 3c 27 50 41 54 43 48 4c | `wc -c |<'PATCHL|
|00001130| 45 56 45 4c 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |EVEL'`; |then. |
|00001140| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 50 | echo sh|ar: \"'P|
|00001150| 41 54 43 48 4c 45 56 45 | 4c 27 5c 22 20 75 6e 70 |ATCHLEVE|L'\" unp|
|00001160| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00001170| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00001180| 6f 66 20 27 50 41 54 43 | 48 4c 45 56 45 4c 27 0a |of 'PATC|HLEVEL'.|
|00001190| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |fi.if te|st -f 'R|
|000011a0| 45 41 44 4d 45 27 20 2d | 61 20 22 24 7b 31 7d 22 |EADME' -|a "${1}"|
|000011b0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000011c0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000011d0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000011e0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000011f0| 52 45 41 44 4d 45 27 5c | 22 0a 65 6c 73 65 0a 65 |README'\|".else.e|
|00001200| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00001210| 74 69 6e 67 20 5c 22 27 | 52 45 41 44 4d 45 27 5c |ting \"'|README'\|
|00001220| 22 20 5c 28 33 34 33 35 | 20 63 68 61 72 61 63 74 |" \(3435| charact|
|00001230| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00001240| 2f 22 20 3e 27 52 45 41 | 44 4d 45 27 20 3c 3c 27 |/" >'REA|DME' <<'|
|00001250| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 09 09 |END_OF_F|ILE'.X..|
|00001260| 09 20 20 20 20 20 20 20 | 4f 56 45 52 56 49 45 57 |. |OVERVIEW|
|00001270| 0a 58 0a 58 54 68 69 73 | 20 61 72 63 68 69 76 65 |.X.XThis| archive|
|00001280| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 73 6f | contain|s the so|
|00001290| 75 72 63 65 73 20 66 6f | 72 20 66 69 76 65 20 70 |urces fo|r five p|
|000012a0| 72 6f 67 72 61 6d 73 20 | 28 77 65 6c 6c 2c 20 61 |rograms |(well, a|
|000012b0| 63 74 75 61 6c 6c 79 2c | 0a 58 66 6f 75 72 2c 20 |ctually,|.Xfour, |
|000012c0| 73 69 6e 63 65 20 6f 6e | 65 20 69 73 20 61 20 73 |since on|e is a s|
|000012d0| 79 6d 62 6f 6c 69 63 20 | 6c 69 6e 6b 29 3a 0a 58 |ymbolic |link):.X|
|000012e0| 0a 58 09 64 65 6c 65 74 | 65 0a 58 09 75 6e 64 65 |.X.delet|e.X.unde|
|000012f0| 6c 65 74 65 0a 58 09 65 | 78 70 75 6e 67 65 0a 58 |lete.X.e|xpunge.X|
|00001300| 09 70 75 72 67 65 0a 58 | 09 6c 73 64 65 6c 0a 58 |.purge.X|.lsdel.X|
|00001310| 0a 58 54 68 65 20 70 72 | 6f 67 72 61 6d 73 20 77 |.XThe pr|ograms w|
|00001320| 65 72 65 20 77 72 69 74 | 74 65 6e 20 61 74 20 50 |ere writ|ten at P|
|00001330| 72 6f 6a 65 63 74 20 41 | 74 68 65 6e 61 20 69 6e |roject A|thena in|
|00001340| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 74 68 65 | respons|e to the|
|00001350| 20 70 72 6f 62 6c 65 6d | 0a 58 77 68 69 63 68 20 | problem|.Xwhich |
|00001360| 6d 61 6e 79 20 6e 6f 76 | 69 63 65 20 55 6e 69 78 |many nov|ice Unix|
|00001370| 20 75 73 65 72 73 20 68 | 61 76 65 20 77 69 74 68 | users h|ave with|
|00001380| 20 61 63 63 69 64 65 6e | 74 61 6c 6c 79 20 64 65 | acciden|tally de|
|00001390| 6c 65 74 69 6e 67 20 66 | 69 6c 65 73 0a 58 74 68 |leting f|iles.Xth|
|000013a0| 65 79 20 64 69 64 6e 27 | 74 20 77 61 6e 74 20 74 |ey didn'|t want t|
|000013b0| 6f 20 64 65 6c 65 74 65 | 20 28 48 65 6c 6c 2c 20 |o delete| (Hell, |
|000013c0| 49 27 76 65 20 64 6f 6e | 65 20 69 74 20 3a 2d 29 |I've don|e it :-)|
|000013d0| 2e 0a 58 0a 58 0a 58 09 | 09 09 20 53 55 50 50 4f |..X.X.X.|.. SUPPO|
|000013e0| 52 54 45 44 20 50 4c 41 | 54 46 4f 52 4d 53 0a 58 |RTED PLA|TFORMS.X|
|000013f0| 0a 58 49 27 76 65 20 70 | 65 72 73 6f 6e 61 6c 6c |.XI've p|ersonall|
|00001400| 79 20 63 6f 6d 70 69 6c | 65 64 20 74 68 65 73 65 |y compil|ed these|
|00001410| 20 73 6f 75 72 63 65 73 | 20 75 6e 64 65 72 20 56 | sources| under V|
|00001420| 61 78 20 34 2e 33 42 53 | 44 2c 20 49 42 4d 20 41 |ax 4.3BS|D, IBM A|
|00001430| 4f 53 20 34 2e 33 2c 0a | 58 4d 61 63 68 20 6f 6e |OS 4.3,.|XMach on|
|00001440| 20 74 68 65 20 4e 65 58 | 54 20 4d 61 63 68 69 6e | the NeX|T Machin|
|00001450| 65 20 28 77 69 74 68 20 | 74 68 65 20 22 2d 62 73 |e (with |the "-bs|
|00001460| 64 22 20 66 6c 61 67 20 | 74 6f 20 74 68 65 20 63 |d" flag |to the c|
|00001470| 6f 6d 70 69 6c 65 72 29 | 2c 0a 58 55 6c 74 72 69 |ompiler)|,.XUltri|
|00001480| 78 20 33 2e 31 20 6f 6e | 20 74 68 65 20 44 45 43 |x 3.1 on| the DEC|
|00001490| 73 74 61 74 69 6f 6e 20 | 33 31 30 30 2c 20 53 75 |station |3100, Su|
|000014a0| 6e 4f 53 20 34 2e 30 2c | 20 41 2f 55 58 2c 20 61 |nOS 4.0,| A/UX, a|
|000014b0| 6e 64 20 48 50 2d 55 58 | 2c 20 61 6e 64 20 49 0a |nd HP-UX|, and I.|
|000014c0| 58 61 73 73 75 6d 65 20 | 74 68 65 79 20 73 68 6f |Xassume |they sho|
|000014d0| 75 6c 64 20 63 6f 6d 70 | 69 6c 65 20 77 69 74 68 |uld comp|ile with|
|000014e0| 20 6d 69 6e 69 6d 61 6c | 20 74 72 6f 75 62 6c 65 | minimal| trouble|
|000014f0| 20 6f 6e 20 6f 74 68 65 | 72 0a 58 61 72 63 68 69 | on othe|r.Xarchi|
|00001500| 74 65 63 74 75 72 65 73 | 2e 20 20 49 66 20 79 6f |tectures|. If yo|
|00001510| 75 20 6d 61 6b 65 20 69 | 74 20 63 6f 6d 70 69 6c |u make i|t compil|
|00001520| 65 20 6f 6e 20 61 6e 6f | 74 68 65 72 20 70 6c 61 |e on ano|ther pla|
|00001530| 74 66 6f 72 6d 20 61 6e | 64 20 79 6f 75 0a 58 68 |tform an|d you.Xh|
|00001540| 61 76 65 20 74 6f 20 6d | 61 6b 65 20 63 68 61 6e |ave to m|ake chan|
|00001550| 67 65 73 2c 20 70 6c 65 | 61 73 65 20 73 65 6e 64 |ges, ple|ase send|
|00001560| 20 6d 65 20 70 61 74 63 | 68 65 73 2e 0a 58 0a 58 | me patc|hes..X.X|
|00001570| 0a 58 09 09 09 20 57 48 | 41 54 20 59 4f 55 20 4e |.X... WH|AT YOU N|
|00001580| 45 45 44 20 54 4f 20 44 | 4f 0a 58 0a 58 31 2e 20 |EED TO D|O.X.X1. |
|00001590| 43 6f 6d 70 69 6c 65 20 | 74 68 65 20 63 6f 6d 5f |Compile |the com_|
|000015a0| 65 72 72 20 6c 69 62 72 | 61 72 79 20 28 73 65 65 |err libr|ary (see|
|000015b0| 20 62 65 6c 6f 77 20 66 | 6f 72 20 6d 6f 72 65 20 | below f|or more |
|000015c0| 64 65 74 61 69 6c 73 29 | 20 61 6e 64 0a 58 20 20 |details)| and.X |
|000015d0| 20 69 6e 73 74 61 6c 6c | 20 69 74 20 69 66 20 79 | install| it if y|
|000015e0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 28 79 6f 75 27 |ou want |to (you'|
|000015f0| 6c 6c 20 68 61 76 65 20 | 74 6f 20 6d 6f 64 69 66 |ll have |to modif|
|00001600| 79 20 74 68 65 20 64 65 | 6c 65 74 65 0a 58 20 20 |y the de|lete.X |
|00001610| 20 4d 61 6b 65 66 69 6c | 65 20 61 20 62 69 74 20 | Makefil|e a bit |
|00001620| 69 66 20 79 6f 75 20 64 | 6f 6e 27 74 29 2e 0a 58 |if you d|on't)..X|
|00001630| 0a 58 32 2e 20 45 64 69 | 74 20 74 68 65 20 4d 61 |.X2. Edi|t the Ma|
|00001640| 6b 65 66 69 6c 65 20 74 | 6f 20 66 69 74 20 79 6f |kefile t|o fit yo|
|00001650| 75 72 20 73 69 74 65 2e | 20 20 53 65 65 20 62 65 |ur site.| See be|
|00001660| 6c 6f 77 20 66 6f 72 20 | 64 65 74 61 69 6c 73 2e |low for |details.|
|00001670| 0a 58 0a 58 33 2e 20 43 | 6f 6d 70 69 6c 65 20 61 |.X.X3. C|ompile a|
|00001680| 77 61 79 21 20 20 54 79 | 70 65 20 22 6d 61 6b 65 |way! Ty|pe "make|
|00001690| 22 20 74 6f 20 6d 61 6b | 65 20 77 69 74 68 6f 75 |" to mak|e withou|
|000016a0| 74 20 69 6e 73 74 61 6c | 6c 69 6e 67 2c 20 6f 72 |t instal|ling, or|
|000016b0| 20 22 6d 61 6b 65 0a 58 | 20 20 20 69 6e 73 74 61 | "make.X| insta|
|000016c0| 6c 6c 22 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 62 |ll" to i|nstall b|
|000016d0| 69 6e 61 72 69 65 73 20 | 61 6e 64 20 6d 61 6e 20 |inaries |and man |
|000016e0| 70 61 67 65 73 20 69 6e | 20 74 68 65 20 6c 6f 63 |pages in| the loc|
|000016f0| 61 74 69 6f 6e 73 20 79 | 6f 75 0a 58 20 20 20 73 |ations y|ou.X s|
|00001700| 70 65 63 69 66 69 65 64 | 20 77 68 65 6e 20 79 6f |pecified| when yo|
|00001710| 75 20 65 64 69 74 65 64 | 20 74 68 65 20 4d 61 6b |u edited| the Mak|
|00001720| 65 66 69 6c 65 2e 0a 58 | 0a 58 0a 58 09 09 20 20 |efile..X|.X.X.. |
|00001730| 20 20 20 20 20 43 55 53 | 54 4f 4d 49 5a 49 4e 47 | CUS|TOMIZING|
|00001740| 20 54 48 45 20 4d 41 4b | 45 46 49 4c 45 0a 58 0a | THE MAK|EFILE.X.|
|00001750| 58 59 6f 75 20 61 72 65 | 20 70 72 6f 62 61 62 6c |XYou are| probabl|
|00001760| 79 20 67 6f 69 6e 67 20 | 74 6f 20 68 61 76 65 20 |y going |to have |
|00001770| 74 6f 20 64 6f 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |to do on|e or mor|
|00001780| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|00001790| 6e 67 20 74 6f 0a 58 6d | 61 6b 65 20 74 68 65 20 |ng to.Xm|ake the |
|000017a0| 4d 61 6b 65 66 69 6c 65 | 20 77 6f 72 6b 20 66 6f |Makefile| work fo|
|000017b0| 72 20 79 6f 75 2e 0a 58 | 0a 58 31 2e 20 43 68 61 |r you..X|.X1. Cha|
|000017c0| 6e 67 65 20 74 68 65 20 | 69 6e 73 74 61 6c 6c 20 |nge the |install |
|000017d0| 62 69 6e 61 72 79 20 64 | 69 72 65 63 74 6f 72 79 |binary d|irectory|
|000017e0| 20 61 6e 64 20 69 6e 73 | 74 61 6c 6c 20 6d 61 6e | and ins|tall man|
|000017f0| 20 70 61 67 65 20 64 69 | 72 65 63 74 6f 72 79 0a | page di|rectory.|
|00001800| 58 20 20 20 28 61 6e 64 | 20 70 6f 73 73 69 62 6c |X (and| possibl|
|00001810| 79 20 6d 61 6e 20 73 65 | 63 74 69 6f 6e 29 2e 0a |y man se|ction)..|
|00001820| 58 0a 58 32 2e 20 43 68 | 61 6e 67 65 20 74 68 65 |X.X2. Ch|ange the|
|00001830| 20 45 54 49 4e 43 53 20 | 61 6e 64 20 45 54 4c 44 | ETINCS |and ETLD|
|00001840| 46 4c 41 47 53 20 76 61 | 72 69 61 62 6c 65 73 20 |FLAGS va|riables |
|00001850| 74 6f 20 70 6f 69 6e 74 | 20 74 6f 20 74 68 65 20 |to point| to the |
|00001860| 72 69 67 68 74 0a 58 20 | 20 20 70 6c 61 63 65 2e |right.X | place.|
|00001870| 20 20 41 6c 73 6f 2c 20 | 63 68 61 6e 67 65 20 74 | Also, |change t|
|00001880| 68 65 20 43 4f 4d 50 49 | 4c 45 5f 45 54 20 76 61 |he COMPI|LE_ET va|
|00001890| 72 69 61 62 6c 65 20 74 | 6f 20 70 6f 69 6e 74 20 |riable t|o point |
|000018a0| 74 6f 20 61 0a 58 20 20 | 20 63 6f 6d 70 69 6c 65 |to a.X | compile|
|000018b0| 5f 65 74 20 65 78 65 63 | 75 74 61 62 6c 65 20 69 |_et exec|utable i|
|000018c0| 66 20 79 6f 75 20 68 61 | 76 65 6e 27 74 20 69 6e |f you ha|ven't in|
|000018d0| 73 74 61 6c 6c 65 64 20 | 69 74 20 73 6f 6d 65 77 |stalled |it somew|
|000018e0| 68 65 72 65 20 69 6e 20 | 79 6f 75 72 0a 58 20 20 |here in |your.X |
|000018f0| 20 73 65 61 72 63 68 20 | 70 61 74 68 2e 0a 58 0a | search |path..X.|
|00001900| 58 33 2e 20 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |X3. If y|ou want |
|00001910| 74 6f 20 62 65 20 61 62 | 6c 65 20 74 6f 20 62 75 |to be ab|le to bu|
|00001920| 69 6c 64 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |ild depe|ndencies|
|00001930| 2c 20 74 68 65 6e 20 63 | 68 61 6e 67 65 20 44 45 |, then c|hange DE|
|00001940| 50 45 4e 44 20 74 6f 0a | 58 20 20 20 74 68 65 20 |PEND to.|X the |
|00001950| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 70 72 6f 67 |name of |the prog|
|00001960| 72 61 6d 20 6f 6e 20 79 | 6f 75 72 20 73 79 73 74 |ram on y|our syst|
|00001970| 65 6d 20 74 68 61 74 20 | 6b 6e 6f 77 73 20 68 6f |em that |knows ho|
|00001980| 77 20 74 6f 20 64 6f 20 | 74 68 61 74 2e 0a 58 0a |w to do |that..X.|
|00001990| 58 34 2e 20 49 66 20 79 | 6f 75 72 20 73 79 73 74 |X4. If y|our syst|
|000019a0| 65 6d 20 69 73 20 53 59 | 53 56 2d 6c 69 6b 65 20 |em is SY|SV-like |
|000019b0| 28 65 2e 67 2e 20 69 74 | 20 75 73 65 73 20 73 74 |(e.g. it| uses st|
|000019c0| 72 63 68 72 20 61 6e 64 | 20 73 74 72 72 63 68 72 |rchr and| strrchr|
|000019d0| 0a 58 20 20 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |.X ins|tead of |
|000019e0| 69 6e 64 65 78 20 61 6e | 64 20 72 69 6e 64 65 78 |index an|d rindex|
|000019f0| 2c 20 6f 72 20 69 74 20 | 68 61 73 20 6d 65 6d 63 |, or it |has memc|
|00001a00| 70 79 20 61 6e 64 20 64 | 6f 65 73 6e 27 74 20 68 |py and d|oesn't h|
|00001a10| 61 76 65 0a 58 20 20 20 | 62 63 6f 70 79 29 2c 20 |ave.X |bcopy), |
|00001a20| 61 6e 64 20 79 6f 75 72 | 20 63 6f 6d 70 69 6c 65 |and your| compile|
|00001a30| 20 64 6f 65 73 6e 27 74 | 20 64 65 66 69 6e 65 20 | doesn't| define |
|00001a40| 74 68 65 20 73 79 6d 62 | 6f 6c 20 53 59 53 56 0a |the symb|ol SYSV.|
|00001a50| 58 20 20 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |X auto|maticall|
|00001a60| 79 2c 20 74 68 65 6e 20 | 70 75 74 20 22 2d 44 53 |y, then |put "-DS|
|00001a70| 59 53 56 22 20 69 6e 20 | 74 68 65 20 44 45 46 49 |YSV" in |the DEFI|
|00001a80| 4e 45 53 20 76 61 72 69 | 61 62 6c 65 2e 0a 58 0a |NES vari|able..X.|
|00001a90| 58 35 2e 20 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |X5. If y|ou want |
|00001aa0| 74 6f 20 73 75 70 70 6f | 72 74 20 41 6e 64 72 65 |to suppo|rt Andre|
|00001ab0| 77 20 46 69 6c 65 20 53 | 79 73 74 65 6d 20 28 41 |w File S|ystem (A|
|00001ac0| 46 53 29 20 6d 6f 75 6e | 74 70 6f 69 6e 74 0a 58 |FS) moun|tpoint.X|
|00001ad0| 20 20 20 64 65 74 65 63 | 74 69 6f 6e 2c 20 61 6e | detec|tion, an|
|00001ae0| 64 20 79 6f 75 20 68 61 | 76 65 20 41 46 53 20 69 |d you ha|ve AFS i|
|00001af0| 6e 63 6c 75 64 65 20 66 | 69 6c 65 73 20 61 6e 64 |nclude f|iles and|
|00001b00| 20 6c 69 62 72 61 72 69 | 65 73 20 61 76 61 69 6c | librari|es avail|
|00001b10| 61 62 6c 65 0a 58 20 20 | 20 74 6f 20 79 6f 75 2c |able.X | to you,|
|00001b20| 20 74 68 65 6e 20 75 6e | 63 6f 6d 6d 65 6e 74 20 | then un|comment |
|00001b30| 74 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 73 74 |the vari|ables st|
|00001b40| 61 72 74 69 6e 67 20 77 | 69 74 68 20 22 41 46 53 |arting w|ith "AFS|
|00001b50| 22 20 61 6e 64 20 73 65 | 74 0a 58 20 20 20 74 68 |" and se|t.X th|
|00001b60| 65 6d 20 61 70 70 72 6f | 70 72 69 61 74 65 6c 79 |em appro|priately|
|00001b70| 2e 0a 58 0a 58 0a 58 09 | 09 09 20 20 20 43 4f 4d |..X.X.X.|.. COM|
|00001b80| 5f 45 52 52 20 4c 49 42 | 52 41 52 59 0a 58 0a 58 |_ERR LIB|RARY.X.X|
|00001b90| 49 6e 20 6f 72 64 65 72 | 20 74 6f 20 63 6f 6d 70 |In order| to comp|
|00001ba0| 69 6c 65 20 64 65 6c 65 | 74 65 2c 20 79 6f 75 20 |ile dele|te, you |
|00001bb0| 6e 65 65 64 20 74 6f 20 | 67 65 74 20 79 6f 75 72 |need to |get your|
|00001bc0| 20 68 61 6e 64 73 20 6f | 6e 20 74 68 65 20 63 6f | hands o|n the co|
|00001bd0| 6d 5f 65 72 72 0a 58 70 | 61 63 6b 61 67 65 2c 20 |m_err.Xp|ackage, |
|00001be0| 77 68 69 63 68 20 77 61 | 73 20 77 72 69 74 74 65 |which wa|s writte|
|00001bf0| 6e 20 62 79 20 6d 65 6d | 62 65 72 73 20 6f 66 20 |n by mem|bers of |
|00001c00| 74 68 65 20 4d 49 54 20 | 53 74 75 64 65 6e 74 20 |the MIT |Student |
|00001c10| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 58 50 72 6f |Informat|ion.XPro|
|00001c20| 63 65 73 73 69 6e 67 20 | 42 6f 61 72 64 20 28 53 |cessing |Board (S|
|00001c30| 49 50 42 29 2e 20 20 49 | 66 20 63 6f 6d 5f 65 72 |IPB). I|f com_er|
|00001c40| 72 20 69 73 6e 27 74 20 | 61 76 61 69 6c 61 62 6c |r isn't |availabl|
|00001c50| 65 20 66 72 6f 6d 20 74 | 68 65 20 70 6c 61 63 65 |e from t|he place|
|00001c60| 0a 58 66 72 6f 6d 20 77 | 68 69 63 68 20 79 6f 75 |.Xfrom w|hich you|
|00001c70| 20 67 6f 74 20 74 68 65 | 20 64 65 6c 65 74 65 20 | got the| delete |
|00001c80| 73 6f 75 72 63 65 73 2c | 20 79 6f 75 20 63 61 6e |sources,| you can|
|00001c90| 20 67 65 74 20 69 74 20 | 66 72 6f 6d 20 76 6f 6c | get it |from vol|
|00001ca0| 75 6d 65 20 32 32 0a 58 | 6f 66 20 74 68 65 20 63 |ume 22.X|of the c|
|00001cb0| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 75 6e 69 78 |omp.sour|ces.unix|
|00001cc0| 20 61 72 63 68 69 76 65 | 73 2c 20 75 6e 64 65 72 | archive|s, under|
|00001cd0| 20 74 68 65 20 6e 61 6d | 65 20 22 65 74 22 2e 20 | the nam|e "et". |
|00001ce0| 20 59 6f 75 20 73 68 6f | 75 6c 64 0a 58 63 6f 6d | You sho|uld.Xcom|
|00001cf0| 70 69 6c 65 20 74 68 65 | 20 6c 69 62 72 61 72 79 |pile the| library|
|00001d00| 20 61 6e 64 20 63 6f 6d | 70 69 6c 65 5f 65 74 20 | and com|pile_et |
|00001d10| 75 74 69 6c 69 74 79 20 | 74 68 61 74 20 63 6f 6d |utility |that com|
|00001d20| 65 73 20 77 69 74 68 20 | 69 74 20 61 6e 64 20 74 |es with |it and t|
|00001d30| 68 65 6e 0a 58 65 69 74 | 68 65 72 20 69 6e 73 74 |hen.Xeit|her inst|
|00001d40| 61 6c 6c 20 74 68 65 6d | 20 69 6e 20 61 20 22 73 |all them| in a "s|
|00001d50| 74 61 6e 64 61 72 64 20 | 6c 6f 63 61 74 69 6f 6e |tandard |location|
|00001d60| 22 20 6f 6e 20 79 6f 75 | 72 20 6d 61 63 68 69 6e |" on you|r machin|
|00001d70| 65 20 6f 72 20 6d 6f 64 | 69 66 79 0a 58 74 68 65 |e or mod|ify.Xthe|
|00001d80| 20 64 65 6c 65 74 65 20 | 4d 61 6b 65 66 69 6c 65 | delete |Makefile|
|00001d90| 20 73 6f 20 74 68 61 74 | 20 69 74 20 6b 6e 6f 77 | so that| it know|
|00001da0| 73 20 77 68 65 72 65 20 | 74 68 65 79 20 61 72 65 |s where |they are|
|00001db0| 2e 20 20 54 68 65 20 64 | 65 6c 65 74 65 0a 58 4d |. The d|elete.XM|
|00001dc0| 61 6b 65 66 69 6c 65 20 | 64 6f 65 73 20 6e 6f 74 |akefile |does not|
|00001dd0| 20 63 6f 6d 70 69 6c 65 | 20 74 68 65 6d 20 62 79 | compile| them by|
|00001de0| 20 64 65 66 61 75 6c 74 | 2c 20 73 69 6e 63 65 20 | default|, since |
|00001df0| 74 68 65 79 20 61 72 65 | 20 61 6c 72 65 61 64 79 |they are| already|
|00001e00| 0a 58 63 6f 6d 70 69 6c | 65 64 20 61 6e 64 20 69 |.Xcompil|ed and i|
|00001e10| 6e 73 74 61 6c 6c 65 64 | 20 61 74 20 41 74 68 65 |nstalled| at Athe|
|00001e20| 6e 61 2c 20 73 6f 20 79 | 6f 75 20 73 68 6f 75 6c |na, so y|ou shoul|
|00001e30| 64 20 63 6f 6d 70 69 6c | 65 20 61 6e 64 20 69 6e |d compil|e and in|
|00001e40| 73 74 61 6c 6c 0a 58 74 | 68 65 6d 20 73 65 70 61 |stall.Xt|hem sepa|
|00001e50| 72 61 74 65 6c 79 20 66 | 72 6f 6d 20 64 65 6c 65 |rately f|rom dele|
|00001e60| 74 65 2e 0a 58 0a 58 0a | 58 09 09 09 20 20 20 20 |te..X.X.|X... |
|00001e70| 20 46 49 4e 41 4c 20 4e | 4f 54 45 53 0a 58 0a 58 | FINAL N|OTES.X.X|
|00001e80| 41 73 20 75 73 75 61 6c | 2c 20 73 75 67 67 65 73 |As usual|, sugges|
|00001e90| 74 69 6f 6e 73 20 61 6e | 64 20 62 75 67 20 66 69 |tions an|d bug fi|
|00001ea0| 78 65 73 20 61 72 65 20 | 61 6c 77 61 79 73 20 77 |xes are |always w|
|00001eb0| 65 6c 63 6f 6d 65 64 2e | 0a 58 0a 58 4d 79 20 61 |elcomed.|.X.XMy a|
|00001ec0| 64 64 72 65 73 73 3a 0a | 58 0a 58 4a 6f 6e 61 74 |ddress:.|X.XJonat|
|00001ed0| 68 61 6e 20 4b 61 6d 65 | 6e 73 09 09 09 20 20 20 |han Kame|ns... |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 55 53 6e 61 69 | | USnai|
|00001ef0| 6c 3a 0a 58 4d 49 54 20 | 50 72 6f 6a 65 63 74 20 |l:.XMIT |Project |
|00001f00| 41 74 68 65 6e 61 09 09 | 09 09 31 31 20 41 73 68 |Athena..|..11 Ash|
|00001f10| 66 6f 72 64 20 54 65 72 | 72 61 63 65 0a 58 6a 69 |ford Ter|race.Xji|
|00001f20| 6b 40 41 74 68 65 6e 61 | 2e 4d 49 54 2e 45 44 55 |k@Athena|.MIT.EDU|
|00001f30| 09 09 09 09 41 6c 6c 73 | 74 6f 6e 2c 20 4d 41 20 |....Alls|ton, MA |
|00001f40| 20 30 32 31 33 34 0a 58 | 4f 66 66 69 63 65 3a 20 | 02134.X|Office: |
|00001f50| 36 31 37 2d 32 35 33 2d | 38 30 38 35 09 09 09 20 |617-253-|8085... |
|00001f60| 20 20 20 20 20 48 6f 6d | 65 3a 20 36 31 37 2d 37 | Hom|e: 617-7|
|00001f70| 38 32 2d 30 37 31 30 0a | 58 0a 58 50 2e 53 2e 20 |82-0710.|X.XP.S. |
|00001f80| 50 6c 65 61 73 65 20 73 | 65 65 20 74 68 65 20 66 |Please s|ee the f|
|00001f90| 69 6c 65 20 22 6d 69 74 | 2d 63 6f 70 79 72 69 67 |ile "mit|-copyrig|
|00001fa0| 68 74 2e 68 22 20 66 6f | 72 20 63 6f 70 79 69 6e |ht.h" fo|r copyin|
|00001fb0| 67 20 61 6e 64 0a 58 72 | 65 64 69 73 74 72 69 62 |g and.Xr|edistrib|
|00001fc0| 75 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ution in|formatio|
|00001fd0| 6e 2e 20 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |n. Copy|right 19|
|00001fe0| 39 31 20 4d 61 73 73 61 | 63 68 75 73 65 74 74 73 |91 Massa|chusetts|
|00001ff0| 20 49 6e 73 74 69 74 75 | 74 65 20 6f 66 0a 58 54 | Institu|te of.XT|
|00002000| 65 63 68 6e 6f 6c 6f 67 | 79 2e 20 20 41 6c 6c 20 |echnolog|y. All |
|00002010| 52 69 67 68 74 73 20 52 | 65 73 65 72 76 65 64 2e |Rights R|eserved.|
|00002020| 20 20 45 74 63 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 | Etc..E|ND_OF_FI|
|00002030| 4c 45 0a 69 66 20 74 65 | 73 74 20 33 34 33 35 20 |LE.if te|st 3435 |
|00002040| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 45 41 |-ne `wc |-c <'REA|
|00002050| 44 4d 45 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |DME'`; t|hen. |
|00002060| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 45 |echo sha|r: \"'RE|
|00002070| 41 44 4d 45 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ADME'\" |unpacked|
|00002080| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00002090| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 52 |!.fi.# e|nd of 'R|
|000020a0| 45 41 44 4d 45 27 0a 66 | 69 0a 69 66 20 74 65 73 |EADME'.f|i.if tes|
|000020b0| 74 20 2d 66 20 27 63 6f | 6c 2e 63 27 20 2d 61 20 |t -f 'co|l.c' -a |
|000020c0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000020d0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000020e0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000020f0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00002100| 6c 65 20 5c 22 27 63 6f | 6c 2e 63 27 5c 22 0a 65 |le \"'co|l.c'\".e|
|00002110| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00002120| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 63 6f 6c |xtractin|g \"'col|
|00002130| 2e 63 27 5c 22 20 5c 28 | 35 31 35 34 20 63 68 61 |.c'\" \(|5154 cha|
|00002140| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00002150| 2f 5e 58 2f 2f 22 20 3e | 27 63 6f 6c 2e 63 27 20 |/^X//" >|'col.c' |
|00002160| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00002170| 58 2f 2a 0a 58 20 2a 20 | 24 53 6f 75 72 63 65 3a |X/*.X * |$Source:|
|00002180| 20 2f 61 66 73 2f 61 74 | 68 65 6e 61 2e 6d 69 74 | /afs/at|hena.mit|
|00002190| 2e 65 64 75 2f 75 73 65 | 72 2f 6a 2f 6a 69 6b 2f |.edu/use|r/j/jik/|
|000021a0| 64 65 6c 65 74 65 2f 73 | 72 63 2f 52 43 53 2f 63 |delete/s|rc/RCS/c|
|000021b0| 6f 6c 2e 63 2c 76 20 24 | 0a 58 20 2a 20 24 41 75 |ol.c,v $|.X * $Au|
|000021c0| 74 68 6f 72 3a 20 6a 69 | 6b 20 24 0a 58 20 2a 0a |thor: ji|k $.X *.|
|000021d0| 58 20 2a 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |X * This| program|
|000021e0| 20 69 73 20 70 61 72 74 | 20 6f 66 20 61 20 70 61 | is part| of a pa|
|000021f0| 63 6b 61 67 65 20 69 6e | 63 6c 75 64 69 6e 67 20 |ckage in|cluding |
|00002200| 64 65 6c 65 74 65 2c 20 | 75 6e 64 65 6c 65 74 65 |delete, |undelete|
|00002210| 2c 0a 58 20 2a 20 6c 73 | 64 65 6c 2c 20 65 78 70 |,.X * ls|del, exp|
|00002220| 75 6e 67 65 20 61 6e 64 | 20 70 75 72 67 65 2e 20 |unge and| purge. |
|00002230| 20 54 68 65 20 73 6f 66 | 74 77 61 72 65 20 73 75 | The sof|tware su|
|00002240| 69 74 65 20 69 73 20 6d | 65 61 6e 74 20 61 73 20 |ite is m|eant as |
|00002250| 61 0a 58 20 2a 20 72 65 | 70 6c 61 63 65 6d 65 6e |a.X * re|placemen|
|00002260| 74 20 66 6f 72 20 72 6d | 20 77 68 69 63 68 20 61 |t for rm| which a|
|00002270| 6c 6c 6f 77 73 20 66 6f | 72 20 66 69 6c 65 20 72 |llows fo|r file r|
|00002280| 65 63 6f 76 65 72 79 2e | 0a 58 20 2a 20 0a 58 20 |ecovery.|.X * .X |
|00002290| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |* Copyri|ght (c) |
|000022a0| 31 39 38 39 20 62 79 20 | 74 68 65 20 4d 61 73 73 |1989 by |the Mass|
|000022b0| 61 63 68 75 73 65 74 74 | 73 20 49 6e 73 74 69 74 |achusett|s Instit|
|000022c0| 75 74 65 20 6f 66 20 54 | 65 63 68 6e 6f 6c 6f 67 |ute of T|echnolog|
|000022d0| 79 2e 0a 58 20 2a 20 46 | 6f 72 20 63 6f 70 79 69 |y..X * F|or copyi|
|000022e0| 6e 67 20 61 6e 64 20 64 | 69 73 74 72 69 62 75 74 |ng and d|istribut|
|000022f0| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ion info|rmation,|
|00002300| 20 73 65 65 20 74 68 65 | 20 66 69 6c 65 20 22 6d | see the| file "m|
|00002310| 69 74 2d 63 6f 70 79 72 | 69 67 68 74 2e 68 2e 22 |it-copyr|ight.h."|
|00002320| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 66 20 28 21 64 |.X */.X.|X#if (!d|
|00002330| 65 66 69 6e 65 64 28 6c | 69 6e 74 29 20 26 26 20 |efined(l|int) && |
|00002340| 21 64 65 66 69 6e 65 64 | 28 53 41 42 45 52 29 29 |!defined|(SABER))|
|00002350| 0a 58 20 20 20 20 20 73 | 74 61 74 69 63 20 63 68 |.X s|tatic ch|
|00002360| 61 72 20 72 63 73 69 64 | 5f 63 6f 6c 5f 63 5b 5d |ar rcsid|_col_c[]|
|00002370| 20 3d 20 22 24 48 65 61 | 64 65 72 3a 20 2f 61 66 | = "$Hea|der: /af|
|00002380| 73 2f 61 74 68 65 6e 61 | 2e 6d 69 74 2e 65 64 75 |s/athena|.mit.edu|
|00002390| 2f 75 73 65 72 2f 6a 2f | 6a 69 6b 2f 64 65 6c 65 |/user/j/|jik/dele|
|000023a0| 74 65 2f 73 72 63 2f 52 | 43 53 2f 63 6f 6c 2e 63 |te/src/R|CS/col.c|
|000023b0| 2c 76 20 31 2e 37 20 39 | 30 2f 30 36 2f 30 36 20 |,v 1.7 9|0/06/06 |
|000023c0| 31 39 3a 30 35 3a 35 36 | 20 6a 69 6b 20 45 78 70 |19:05:56| jik Exp|
|000023d0| 20 24 22 3b 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 | $";.X#e|ndif.X.X|
|000023e0| 2f 2a 0a 58 20 2a 20 4e | 6f 74 65 20 74 68 61 74 |/*.X * N|ote that|
|000023f0| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 68 | this fu|nction h|
|00002400| 61 73 20 61 20 6c 6f 74 | 20 6f 66 20 6f 70 74 69 |as a lot| of opti|
|00002410| 6f 6e 73 20 49 27 6d 20 | 6e 6f 74 20 72 65 61 6c |ons I'm |not real|
|00002420| 6c 79 20 75 73 69 6e 67 | 0a 58 20 2a 20 62 65 63 |ly using|.X * bec|
|00002430| 61 75 73 65 20 49 20 74 | 6f 6f 6b 20 69 74 20 6f |ause I t|ook it o|
|00002440| 75 74 20 6f 66 20 6f 74 | 68 65 72 20 63 6f 64 65 |ut of ot|her code|
|00002450| 20 74 68 61 74 20 6e 65 | 65 64 65 64 20 61 20 6c | that ne|eded a l|
|00002460| 6f 74 20 6d 6f 72 65 0a | 58 20 2a 20 76 65 72 73 |ot more.|X * vers|
|00002470| 61 74 69 6c 69 74 79 2e | 0a 58 20 2a 2f 0a 58 0a |atility.|.X */.X.|
|00002480| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |X#includ|e <stdio|
|00002490| 2e 68 3e 0a 58 23 69 66 | 64 65 66 20 53 59 53 56 |.h>.X#if|def SYSV|
|000024a0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |.X#inclu|de <stri|
|000024b0| 6e 67 2e 68 3e 0a 58 23 | 64 65 66 69 6e 65 20 69 |ng.h>.X#|define i|
|000024c0| 6e 64 65 78 20 73 74 72 | 63 68 72 0a 58 23 64 65 |ndex str|chr.X#de|
|000024d0| 66 69 6e 65 20 72 69 6e | 64 65 78 20 73 74 72 72 |fine rin|dex strr|
|000024e0| 63 68 72 0a 58 23 65 6c | 73 65 0a 58 23 69 6e 63 |chr.X#el|se.X#inc|
|000024f0| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 73 2e 68 3e |lude <st|rings.h>|
|00002500| 0a 58 23 65 6e 64 69 66 | 20 2f 2a 20 53 59 53 56 |.X#endif| /* SYSV|
|00002510| 20 2a 2f 0a 58 23 69 6e | 63 6c 75 64 65 20 22 65 | */.X#in|clude "e|
|00002520| 72 72 6f 72 73 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |rrors.h"|.X#inclu|
|00002530| 64 65 20 22 64 65 6c 65 | 74 65 5f 65 72 72 73 2e |de "dele|te_errs.|
|00002540| 68 22 0a 58 23 69 6e 63 | 6c 75 64 65 20 22 63 6f |h".X#inc|lude "co|
|00002550| 6c 2e 68 22 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |l.h".X#i|nclude "|
|00002560| 6d 69 74 2d 63 6f 70 79 | 72 69 67 68 74 2e 68 22 |mit-copy|right.h"|
|00002570| 0a 58 0a 58 0a 58 73 74 | 61 74 69 63 20 69 6e 74 |.X.X.Xst|atic int|
|00002580| 20 63 61 6c 63 5f 73 74 | 72 69 6e 67 5f 77 69 64 | calc_st|ring_wid|
|00002590| 74 68 28 29 2c 20 63 61 | 6c 63 5f 77 69 64 74 68 |th(), ca|lc_width|
|000025a0| 73 28 29 2c 20 6e 75 6d | 5f 77 69 64 74 68 28 29 |s(), num|_width()|
|000025b0| 3b 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 20 74 |;.Xstati|c void t|
|000025c0| 72 69 6d 5f 73 74 72 69 | 6e 67 73 28 29 3b 0a 58 |rim_stri|ngs();.X|
|000025d0| 0a 58 69 6e 74 20 63 6f | 6c 75 6d 6e 5f 61 72 72 |.Xint co|lumn_arr|
|000025e0| 61 79 28 73 74 72 69 6e | 67 73 2c 20 6e 75 6d 5f |ay(strin|gs, num_|
|000025f0| 74 6f 5f 70 72 69 6e 74 | 2c 20 73 63 72 65 65 6e |to_print|, screen|
|00002600| 5f 77 69 64 74 68 2c 20 | 63 6f 6c 75 6d 6e 5f 77 |_width, |column_w|
|00002610| 69 64 74 68 2c 0a 58 09 | 09 20 6e 75 6d 62 65 72 |idth,.X.|. number|
|00002620| 5f 6f 66 5f 63 6f 6c 75 | 6d 6e 73 2c 20 6d 61 72 |_of_colu|mns, mar|
|00002630| 67 69 6e 2c 20 73 70 72 | 65 61 64 5f 66 6c 61 67 |gin, spr|ead_flag|
|00002640| 2c 20 0a 58 09 09 20 6e | 75 6d 62 65 72 5f 66 6c |, .X.. n|umber_fl|
|00002650| 61 67 2c 20 76 61 72 5f | 63 6f 6c 5f 66 6c 61 67 |ag, var_|col_flag|
|00002660| 2c 20 6f 75 74 66 69 6c | 65 29 0a 58 63 68 61 72 |, outfil|e).Xchar|
|00002670| 20 2a 2a 73 74 72 69 6e | 67 73 3b 0a 58 46 49 4c | **strin|gs;.XFIL|
|00002680| 45 20 2a 6f 75 74 66 69 | 6c 65 3b 0a 58 7b 0a 58 |E *outfi|le;.X{.X|
|00002690| 20 20 20 20 20 63 68 61 | 72 20 62 75 66 5b 42 55 | cha|r buf[BU|
|000026a0| 46 53 49 5a 5d 3b 0a 58 | 20 20 20 20 20 69 6e 74 |FSIZ];.X| int|
|000026b0| 20 75 70 64 6f 77 6e 2c | 20 6c 65 66 74 72 69 67 | updown,| leftrig|
|000026c0| 68 74 2c 20 68 65 69 67 | 68 74 3b 0a 58 20 20 20 |ht, heig|ht;.X |
|000026d0| 20 20 69 6e 74 20 73 74 | 72 69 6e 67 5f 77 69 64 | int st|ring_wid|
|000026e0| 74 68 3b 0a 58 20 20 20 | 20 20 69 6e 74 20 6e 75 |th;.X | int nu|
|000026f0| 6d 77 69 64 74 68 3b 0a | 58 0a 58 20 20 20 20 20 |mwidth;.|X.X |
|00002700| 6e 75 6d 77 69 64 74 68 | 20 3d 20 6e 75 6d 5f 77 |numwidth| = num_w|
|00002710| 69 64 74 68 28 6e 75 6d | 5f 74 6f 5f 70 72 69 6e |idth(num|_to_prin|
|00002720| 74 29 3b 0a 58 20 20 20 | 20 20 69 66 20 28 21 20 |t);.X | if (! |
|00002730| 76 61 72 5f 63 6f 6c 5f | 66 6c 61 67 29 20 7b 0a |var_col_|flag) {.|
|00002740| 58 09 20 20 73 74 72 69 | 6e 67 5f 77 69 64 74 68 |X. stri|ng_width|
|00002750| 20 3d 20 63 61 6c 63 5f | 73 74 72 69 6e 67 5f 77 | = calc_|string_w|
|00002760| 69 64 74 68 28 63 6f 6c | 75 6d 6e 5f 77 69 64 74 |idth(col|umn_widt|
|00002770| 68 2c 20 6d 61 72 67 69 | 6e 2c 20 6e 75 6d 62 65 |h, margi|n, numbe|
|00002780| 72 5f 66 6c 61 67 2c 0a | 58 09 09 09 09 09 20 20 |r_flag,.|X..... |
|00002790| 20 6e 75 6d 5f 74 6f 5f | 70 72 69 6e 74 29 3b 0a | num_to_|print);.|
|000027a0| 58 09 20 20 69 66 20 28 | 73 74 72 69 6e 67 5f 77 |X. if (|string_w|
|000027b0| 69 64 74 68 20 3c 3d 20 | 30 29 20 7b 0a 58 09 20 |idth <= |0) {.X. |
|000027c0| 20 20 20 20 20 20 73 65 | 74 5f 65 72 72 6f 72 28 | se|t_error(|
|000027d0| 43 4f 4c 5f 43 4f 4c 55 | 4d 4e 53 5f 54 4f 4f 5f |COL_COLU|MNS_TOO_|
|000027e0| 54 48 49 4e 29 3b 0a 58 | 09 20 20 20 20 20 20 20 |THIN);.X|. |
|000027f0| 65 72 72 6f 72 28 22 63 | 61 6c 63 5f 73 74 72 69 |error("c|alc_stri|
|00002800| 6e 67 5f 77 69 64 74 68 | 22 29 3b 0a 58 09 20 20 |ng_width|");.X. |
|00002810| 20 20 20 20 20 72 65 74 | 75 72 6e 20 65 72 72 6f | ret|urn erro|
|00002820| 72 5f 63 6f 64 65 3b 0a | 58 09 20 20 7d 0a 58 09 |r_code;.|X. }.X.|
|00002830| 20 20 74 72 69 6d 5f 73 | 74 72 69 6e 67 73 28 73 | trim_s|trings(s|
|00002840| 74 72 69 6e 67 73 2c 20 | 6e 75 6d 5f 74 6f 5f 70 |trings, |num_to_p|
|00002850| 72 69 6e 74 2c 20 73 74 | 72 69 6e 67 5f 77 69 64 |rint, st|ring_wid|
|00002860| 74 68 29 3b 0a 58 20 20 | 20 20 20 7d 20 65 6c 73 |th);.X | } els|
|00002870| 65 20 69 66 20 28 63 61 | 6c 63 5f 77 69 64 74 68 |e if (ca|lc_width|
|00002880| 73 28 73 74 72 69 6e 67 | 73 2c 20 26 73 63 72 65 |s(string|s, &scre|
|00002890| 65 6e 5f 77 69 64 74 68 | 2c 20 26 63 6f 6c 75 6d |en_width|, &colum|
|000028a0| 6e 5f 77 69 64 74 68 2c | 0a 58 09 09 09 20 20 20 |n_width,|.X... |
|000028b0| 20 26 6e 75 6d 62 65 72 | 5f 6f 66 5f 63 6f 6c 75 | &number|_of_colu|
|000028c0| 6d 6e 73 2c 20 6e 75 6d | 5f 74 6f 5f 70 72 69 6e |mns, num|_to_prin|
|000028d0| 74 2c 20 26 6d 61 72 67 | 69 6e 2c 0a 58 09 09 09 |t, &marg|in,.X...|
|000028e0| 20 20 20 20 73 70 72 65 | 61 64 5f 66 6c 61 67 2c | spre|ad_flag,|
|000028f0| 20 6e 75 6d 62 65 72 5f | 66 6c 61 67 29 29 20 7b | number_|flag)) {|
|00002900| 0a 58 09 20 20 65 72 72 | 6f 72 28 22 63 61 6c 63 |.X. err|or("calc|
|00002910| 5f 77 69 64 74 68 73 22 | 29 3b 0a 58 09 20 20 72 |_widths"|);.X. r|
|00002920| 65 74 75 72 6e 20 65 72 | 72 6f 72 5f 63 6f 64 65 |eturn er|ror_code|
|00002930| 3b 0a 58 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 |;.X |}.X |
|00002940| 68 65 69 67 68 74 20 3d | 20 6e 75 6d 5f 74 6f 5f |height =| num_to_|
|00002950| 70 72 69 6e 74 20 2f 20 | 6e 75 6d 62 65 72 5f 6f |print / |number_o|
|00002960| 66 5f 63 6f 6c 75 6d 6e | 73 3b 0a 58 20 20 20 20 |f_column|s;.X |
|00002970| 20 69 66 20 28 6e 75 6d | 5f 74 6f 5f 70 72 69 6e | if (num|_to_prin|
|00002980| 74 20 25 20 6e 75 6d 62 | 65 72 5f 6f 66 5f 63 6f |t % numb|er_of_co|
|00002990| 6c 75 6d 6e 73 29 0a 58 | 09 20 20 68 65 69 67 68 |lumns).X|. heigh|
|000029a0| 74 2b 2b 3b 0a 58 20 20 | 20 20 20 0a 58 20 20 20 |t++;.X | .X |
|000029b0| 20 20 69 66 20 28 6e 75 | 6d 62 65 72 5f 66 6c 61 | if (nu|mber_fla|
|000029c0| 67 29 20 66 6f 72 20 28 | 75 70 64 6f 77 6e 20 3d |g) for (|updown =|
|000029d0| 20 30 3b 20 75 70 64 6f | 77 6e 20 3c 20 68 65 69 | 0; updo|wn < hei|
|000029e0| 67 68 74 3b 20 75 70 64 | 6f 77 6e 2b 2b 29 20 7b |ght; upd|own++) {|
|000029f0| 0a 58 09 20 20 66 6f 72 | 20 28 6c 65 66 74 72 69 |.X. for| (leftri|
|00002a00| 67 68 74 20 3d 20 75 70 | 64 6f 77 6e 3b 20 6c 65 |ght = up|down; le|
|00002a10| 66 74 72 69 67 68 74 20 | 3c 20 6e 75 6d 5f 74 6f |ftright |< num_to|
|00002a20| 5f 70 72 69 6e 74 3b 20 | 29 20 7b 0a 58 09 20 20 |_print; |) {.X. |
|00002a30| 20 20 20 20 20 28 76 6f | 69 64 29 20 73 70 72 69 | (vo|id) spri|
|00002a40| 6e 74 66 28 62 75 66 2c | 20 22 25 2a 64 2e 20 25 |ntf(buf,| "%*d. %|
|00002a50| 73 22 2c 20 6e 75 6d 77 | 69 64 74 68 2c 20 6c 65 |s", numw|idth, le|
|00002a60| 66 74 72 69 67 68 74 2b | 31 2c 0a 58 09 09 09 20 |ftright+|1,.X... |
|00002a70| 20 20 20 20 20 73 74 72 | 69 6e 67 73 5b 6c 65 66 | str|ings[lef|
|00002a80| 74 72 69 67 68 74 5d 29 | 3b 0a 58 09 20 20 20 20 |tright])|;.X. |
|00002a90| 20 20 20 69 66 20 28 28 | 6c 65 66 74 72 69 67 68 | if ((|leftrigh|
|00002aa0| 74 20 2b 3d 20 68 65 69 | 67 68 74 29 20 3e 3d 20 |t += hei|ght) >= |
|00002ab0| 6e 75 6d 5f 74 6f 5f 70 | 72 69 6e 74 29 0a 58 09 |num_to_p|rint).X.|
|00002ac0| 09 20 20 20 20 66 70 72 | 69 6e 74 66 28 6f 75 74 |. fpr|intf(out|
|00002ad0| 66 69 6c 65 2c 20 22 25 | 73 22 2c 20 62 75 66 20 |file, "%|s", buf |
|00002ae0| 29 3b 0a 58 09 20 20 20 | 20 20 20 20 65 6c 73 65 |);.X. | else|
|00002af0| 0a 58 09 09 20 20 20 20 | 66 70 72 69 6e 74 66 28 |.X.. |fprintf(|
|00002b00| 6f 75 74 66 69 6c 65 2c | 20 22 25 2a 73 22 2c 20 |outfile,| "%*s", |
|00002b10| 2d 63 6f 6c 75 6d 6e 5f | 77 69 64 74 68 2c 20 62 |-column_|width, b|
|00002b20| 75 66 29 3b 0a 58 09 20 | 20 7d 0a 58 09 20 20 66 |uf);.X. | }.X. f|
|00002b30| 70 72 69 6e 74 66 28 6f | 75 74 66 69 6c 65 2c 20 |printf(o|utfile, |
|00002b40| 22 5c 6e 22 29 3b 0a 58 | 20 20 20 20 20 7d 20 65 |"\n");.X| } e|
|00002b50| 6c 73 65 20 66 6f 72 20 | 28 75 70 64 6f 77 6e 20 |lse for |(updown |
|00002b60| 3d 20 30 3b 20 75 70 64 | 6f 77 6e 20 3c 20 68 65 |= 0; upd|own < he|
|00002b70| 69 67 68 74 3b 20 75 70 | 64 6f 77 6e 2b 2b 29 20 |ight; up|down++) |
|00002b80| 7b 0a 58 09 20 20 66 6f | 72 20 28 6c 65 66 74 72 |{.X. fo|r (leftr|
|00002b90| 69 67 68 74 20 3d 20 75 | 70 64 6f 77 6e 3b 20 6c |ight = u|pdown; l|
|00002ba0| 65 66 74 72 69 67 68 74 | 20 3c 20 6e 75 6d 5f 74 |eftright| < num_t|
|00002bb0| 6f 5f 70 72 69 6e 74 3b | 20 29 20 7b 0a 58 09 20 |o_print;| ) {.X. |
|00002bc0| 20 20 20 20 20 20 28 76 | 6f 69 64 29 20 73 70 72 | (v|oid) spr|
|00002bd0| 69 6e 74 66 28 62 75 66 | 2c 20 22 25 73 22 2c 20 |intf(buf|, "%s", |
|00002be0| 73 74 72 69 6e 67 73 5b | 6c 65 66 74 72 69 67 68 |strings[|leftrigh|
|00002bf0| 74 5d 29 3b 0a 58 09 20 | 20 20 20 20 20 20 69 66 |t]);.X. | if|
|00002c00| 20 28 28 6c 65 66 74 72 | 69 67 68 74 20 2b 3d 20 | ((leftr|ight += |
|00002c10| 68 65 69 67 68 74 29 20 | 3e 3d 20 6e 75 6d 5f 74 |height) |>= num_t|
|00002c20| 6f 5f 70 72 69 6e 74 29 | 0a 58 09 09 20 20 20 20 |o_print)|.X.. |
|00002c30| 66 70 72 69 6e 74 66 28 | 6f 75 74 66 69 6c 65 2c |fprintf(|outfile,|
|00002c40| 20 22 25 73 22 2c 20 62 | 75 66 20 29 3b 0a 58 09 | "%s", b|uf );.X.|
|00002c50| 20 20 20 20 20 20 20 65 | 6c 73 65 0a 58 09 09 20 | e|lse.X.. |
|00002c60| 20 20 20 66 70 72 69 6e | 74 66 28 6f 75 74 66 69 | fprin|tf(outfi|
|00002c70| 6c 65 2c 20 22 25 2a 73 | 22 2c 20 2d 63 6f 6c 75 |le, "%*s|", -colu|
|00002c80| 6d 6e 5f 77 69 64 74 68 | 2c 20 62 75 66 29 3b 0a |mn_width|, buf);.|
|00002c90| 58 09 20 20 7d 0a 58 09 | 20 20 66 70 72 69 6e 74 |X. }.X.| fprint|
|00002ca0| 66 28 6f 75 74 66 69 6c | 65 2c 20 22 5c 6e 22 29 |f(outfil|e, "\n")|
|00002cb0| 3b 0a 58 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 |;.X |}.X |
|00002cc0| 72 65 74 75 72 6e 20 30 | 3b 0a 58 7d 0a 58 0a 58 |return 0|;.X}.X.X|
|00002cd0| 73 74 61 74 69 63 20 69 | 6e 74 20 63 61 6c 63 5f |static i|nt calc_|
|00002ce0| 73 74 72 69 6e 67 5f 77 | 69 64 74 68 28 63 6f 6c |string_w|idth(col|
|00002cf0| 75 6d 6e 5f 77 69 64 74 | 68 2c 20 6d 61 72 67 69 |umn_widt|h, margi|
|00002d00| 6e 2c 20 6e 75 6d 62 65 | 72 5f 66 6c 61 67 2c 20 |n, numbe|r_flag, |
|00002d10| 6d 61 78 5f 6e 75 6d 62 | 65 72 29 0a 58 7b 0a 58 |max_numb|er).X{.X|
|00002d20| 20 20 20 20 20 69 6e 74 | 20 73 74 72 69 6e 67 5f | int| string_|
|00002d30| 77 69 64 74 68 3b 0a 58 | 20 20 20 20 20 0a 58 20 |width;.X| .X |
|00002d40| 20 20 20 20 73 74 72 69 | 6e 67 5f 77 69 64 74 68 | stri|ng_width|
|00002d50| 20 3d 20 63 6f 6c 75 6d | 6e 5f 77 69 64 74 68 20 | = colum|n_width |
|00002d60| 2d 20 6d 61 72 67 69 6e | 3b 0a 58 20 20 20 20 20 |- margin|;.X |
|00002d70| 69 66 20 28 6e 75 6d 62 | 65 72 5f 66 6c 61 67 29 |if (numb|er_flag)|
|00002d80| 0a 58 09 20 20 73 74 72 | 69 6e 67 5f 77 69 64 74 |.X. str|ing_widt|
|00002d90| 68 20 3d 20 73 74 72 69 | 6e 67 5f 77 69 64 74 68 |h = stri|ng_width|
|00002da0| 20 2d 20 6e 75 6d 5f 77 | 69 64 74 68 28 6d 61 78 | - num_w|idth(max|
|00002db0| 5f 6e 75 6d 62 65 72 29 | 20 2d 20 73 74 72 6c 65 |_number)| - strle|
|00002dc0| 6e 28 22 2e 20 22 29 3b | 0a 58 20 20 20 20 20 72 |n(". ");|.X r|
|00002dd0| 65 74 75 72 6e 20 73 74 | 72 69 6e 67 5f 77 69 64 |eturn st|ring_wid|
|00002de0| 74 68 3b 0a 58 7d 0a 58 | 0a 58 0a 58 73 74 61 74 |th;.X}.X|.X.Xstat|
|00002df0| 69 63 20 76 6f 69 64 20 | 74 72 69 6d 5f 73 74 72 |ic void |trim_str|
|00002e00| 69 6e 67 73 28 73 74 72 | 69 6e 67 73 2c 20 6e 75 |ings(str|ings, nu|
|00002e10| 6d 62 65 72 2c 20 77 69 | 64 74 68 29 0a 58 63 68 |mber, wi|dth).Xch|
|00002e20| 61 72 20 2a 2a 73 74 72 | 69 6e 67 73 3b 0a 58 7b |ar **str|ings;.X{|
|00002e30| 0a 58 20 20 20 20 20 69 | 6e 74 20 6c 6f 6f 70 3b |.X i|nt loop;|
|00002e40| 0a 58 20 20 20 20 20 0a | 58 20 20 20 20 20 66 6f |.X .|X fo|
|00002e50| 72 20 28 6c 6f 6f 70 20 | 3d 20 30 3b 20 6c 6f 6f |r (loop |= 0; loo|
|00002e60| 70 20 3c 20 6e 75 6d 62 | 65 72 3b 20 6c 6f 6f 70 |p < numb|er; loop|
|00002e70| 2b 2b 29 0a 58 09 20 20 | 69 66 20 28 73 74 72 6c |++).X. |if (strl|
|00002e80| 65 6e 28 73 74 72 69 6e | 67 73 5b 6c 6f 6f 70 5d |en(strin|gs[loop]|
|00002e90| 29 20 3e 20 77 69 64 74 | 68 29 0a 58 09 20 20 20 |) > widt|h).X. |
|00002ea0| 20 20 20 20 73 74 72 69 | 6e 67 73 5b 6c 6f 6f 70 | stri|ngs[loop|
|00002eb0| 5d 5b 77 69 64 74 68 5d | 20 3d 20 27 5c 30 27 3b |][width]| = '\0';|
|00002ec0| 0a 58 7d 0a 58 0a 58 0a | 58 73 74 61 74 69 63 20 |.X}.X.X.|Xstatic |
|00002ed0| 69 6e 74 20 63 61 6c 63 | 5f 77 69 64 74 68 73 28 |int calc|_widths(|
|00002ee0| 73 74 72 69 6e 67 73 2c | 20 73 63 72 65 65 6e 5f |strings,| screen_|
|00002ef0| 77 69 64 74 68 2c 20 63 | 6f 6c 75 6d 6e 5f 77 69 |width, c|olumn_wi|
|00002f00| 64 74 68 2c 20 6e 75 6d | 62 65 72 5f 6f 66 5f 63 |dth, num|ber_of_c|
|00002f10| 6f 6c 75 6d 6e 73 2c 0a | 58 09 09 20 20 20 20 20 |olumns,.|X.. |
|00002f20| 20 20 6e 75 6d 5f 74 6f | 5f 70 72 69 6e 74 2c 20 | num_to|_print, |
|00002f30| 6d 61 72 67 69 6e 2c 20 | 73 70 72 65 61 64 5f 66 |margin, |spread_f|
|00002f40| 6c 61 67 2c 20 6e 75 6d | 62 65 72 5f 66 6c 61 67 |lag, num|ber_flag|
|00002f50| 29 0a 58 69 6e 74 20 2a | 73 63 72 65 65 6e 5f 77 |).Xint *|screen_w|
|00002f60| 69 64 74 68 2c 20 2a 63 | 6f 6c 75 6d 6e 5f 77 69 |idth, *c|olumn_wi|
|00002f70| 64 74 68 2c 20 2a 6e 75 | 6d 62 65 72 5f 6f 66 5f |dth, *nu|mber_of_|
|00002f80| 63 6f 6c 75 6d 6e 73 2c | 20 2a 6d 61 72 67 69 6e |columns,| *margin|
|00002f90| 3b 0a 58 63 68 61 72 20 | 2a 2a 73 74 72 69 6e 67 |;.Xchar |**string|
|00002fa0| 73 3b 0a 58 7b 0a 58 20 | 20 20 20 20 69 6e 74 20 |s;.X{.X | int |
|00002fb0| 6c 6f 6f 70 3b 0a 58 20 | 20 20 20 20 69 6e 74 20 |loop;.X | int |
|00002fc0| 6d 61 78 6c 65 6e 2c 20 | 74 65 6d 70 6c 65 6e 3b |maxlen, |templen;|
|00002fd0| 0a 58 20 20 20 20 20 69 | 6e 74 20 73 70 72 65 61 |.X i|nt sprea|
|00002fe0| 64 3b 0a 58 20 20 20 20 | 20 0a 58 20 20 20 20 20 |d;.X | .X |
|00002ff0| 6d 61 78 6c 65 6e 20 3d | 20 74 65 6d 70 6c 65 6e |maxlen =| templen|
|00003000| 20 3d 20 30 3b 0a 58 20 | 20 20 20 20 66 6f 72 20 | = 0;.X | for |
|00003010| 28 6c 6f 6f 70 20 3d 20 | 30 3b 20 6c 6f 6f 70 20 |(loop = |0; loop |
|00003020| 3c 20 6e 75 6d 5f 74 6f | 5f 70 72 69 6e 74 3b 20 |< num_to|_print; |
|00003030| 6c 6f 6f 70 2b 2b 29 0a | 58 09 20 20 69 66 20 28 |loop++).|X. if (|
|00003040| 6d 61 78 6c 65 6e 20 3c | 20 28 74 65 6d 70 6c 65 |maxlen <| (temple|
|00003050| 6e 20 3d 20 73 74 72 6c | 65 6e 28 73 74 72 69 6e |n = strl|en(strin|
|00003060| 67 73 5b 6c 6f 6f 70 5d | 29 29 29 0a 58 09 20 20 |gs[loop]|))).X. |
|00003070| 20 20 20 20 20 6d 61 78 | 6c 65 6e 20 3d 20 74 65 | max|len = te|
|00003080| 6d 70 6c 65 6e 3b 0a 58 | 0a 58 20 20 20 20 20 2a |mplen;.X|.X *|
|00003090| 63 6f 6c 75 6d 6e 5f 77 | 69 64 74 68 20 3d 20 6d |column_w|idth = m|
|000030a0| 61 78 6c 65 6e 3b 0a 58 | 20 20 20 20 20 0a 58 20 |axlen;.X| .X |
|000030b0| 20 20 20 20 69 66 20 28 | 6e 75 6d 62 65 72 5f 66 | if (|number_f|
|000030c0| 6c 61 67 29 0a 58 09 20 | 20 2a 63 6f 6c 75 6d 6e |lag).X. | *column|
|000030d0| 5f 77 69 64 74 68 20 3d | 20 2a 63 6f 6c 75 6d 6e |_width =| *column|
|000030e0| 5f 77 69 64 74 68 20 2b | 20 6e 75 6d 5f 77 69 64 |_width +| num_wid|
|000030f0| 74 68 28 6e 75 6d 5f 74 | 6f 5f 70 72 69 6e 74 29 |th(num_t|o_print)|
|00003100| 20 2b 0a 58 09 20 20 20 | 20 20 20 20 73 74 72 6c | +.X. | strl|
|00003110| 65 6e 28 22 2e 20 22 29 | 3b 0a 58 0a 58 20 20 20 |en(". ")|;.X.X |
|00003120| 20 20 69 66 20 28 21 20 | 73 70 72 65 61 64 5f 66 | if (! |spread_f|
|00003130| 6c 61 67 29 20 7b 0a 58 | 09 20 20 2a 63 6f 6c 75 |lag) {.X|. *colu|
|00003140| 6d 6e 5f 77 69 64 74 68 | 20 2b 3d 20 2a 6d 61 72 |mn_width| += *mar|
|00003150| 67 69 6e 3b 0a 58 09 20 | 20 69 66 20 28 21 20 2a |gin;.X. | if (! *|
|00003160| 6e 75 6d 62 65 72 5f 6f | 66 5f 63 6f 6c 75 6d 6e |number_o|f_column|
|00003170| 73 29 20 7b 0a 58 09 20 | 20 20 20 20 20 20 2a 6e |s) {.X. | *n|
|00003180| 75 6d 62 65 72 5f 6f 66 | 5f 63 6f 6c 75 6d 6e 73 |umber_of|_columns|
|00003190| 20 3d 20 2a 73 63 72 65 | 65 6e 5f 77 69 64 74 68 | = *scre|en_width|
|000031a0| 20 2f 20 2a 63 6f 6c 75 | 6d 6e 5f 77 69 64 74 68 | / *colu|mn_width|
|000031b0| 3b 0a 58 09 20 20 20 20 | 20 20 20 69 66 20 28 21 |;.X. | if (!|
|000031c0| 20 2a 6e 75 6d 62 65 72 | 5f 6f 66 5f 63 6f 6c 75 | *number|_of_colu|
|000031d0| 6d 6e 73 29 20 7b 0a 58 | 09 09 20 20 20 20 28 2a |mns) {.X|.. (*|
|000031e0| 6e 75 6d 62 65 72 5f 6f | 66 5f 63 6f 6c 75 6d 6e |number_o|f_column|
|000031f0| 73 29 2b 2b 3b 0a 58 09 | 09 20 20 20 20 2a 63 6f |s)++;.X.|. *co|
|00003200| 6c 75 6d 6e 5f 77 69 64 | 74 68 20 2d 3d 20 2a 6d |lumn_wid|th -= *m|
|00003210| 61 72 67 69 6e 3b 0a 58 | 09 09 20 20 20 20 2a 6d |argin;.X|.. *m|
|00003220| 61 72 67 69 6e 20 3d 20 | 30 3b 0a 58 09 09 20 20 |argin = |0;.X.. |
|00003230| 20 20 2a 73 63 72 65 65 | 6e 5f 77 69 64 74 68 20 | *scree|n_width |
|00003240| 3d 20 2a 63 6f 6c 75 6d | 6e 5f 77 69 64 74 68 3b |= *colum|n_width;|
|00003250| 0a 58 09 20 20 20 20 20 | 20 20 7d 0a 58 09 20 20 |.X. | }.X. |
|00003260| 7d 0a 58 09 20 20 65 6c | 73 65 0a 58 09 20 20 20 |}.X. el|se.X. |
|00003270| 20 20 20 20 2a 73 63 72 | 65 65 6e 5f 77 69 64 74 | *scr|een_widt|
|00003280| 68 20 3d 20 2a 6e 75 6d | 62 65 72 5f 6f 66 5f 63 |h = *num|ber_of_c|
|00003290| 6f 6c 75 6d 6e 73 20 2a | 20 2a 63 6f 6c 75 6d 6e |olumns *| *column|
|000032a0| 5f 77 69 64 74 68 3b 0a | 58 20 20 20 20 20 7d 20 |_width;.|X } |
|000032b0| 65 6c 73 65 20 7b 0a 58 | 09 20 20 69 66 20 28 21 |else {.X|. if (!|
|000032c0| 20 2a 6e 75 6d 62 65 72 | 5f 6f 66 5f 63 6f 6c 75 | *number|_of_colu|
|000032d0| 6d 6e 73 29 20 7b 0a 58 | 09 20 20 20 20 20 20 20 |mns) {.X|. |
|000032e0| 2a 6e 75 6d 62 65 72 5f | 6f 66 5f 63 6f 6c 75 6d |*number_|of_colum|
|000032f0| 6e 73 20 3d 20 2a 73 63 | 72 65 65 6e 5f 77 69 64 |ns = *sc|reen_wid|
|00003300| 74 68 20 2f 20 28 2a 63 | 6f 6c 75 6d 6e 5f 77 69 |th / (*c|olumn_wi|
|00003310| 64 74 68 20 2b 20 2a 6d | 61 72 67 69 6e 29 3b 0a |dth + *m|argin);.|
|00003320| 58 09 20 20 20 20 20 20 | 20 69 66 20 28 21 20 2a |X. | if (! *|
|00003330| 6e 75 6d 62 65 72 5f 6f | 66 5f 63 6f 6c 75 6d 6e |number_o|f_column|
|00003340| 73 29 20 7b 0a 58 09 09 | 20 20 20 20 28 2a 6e 75 |s) {.X..| (*nu|
|00003350| 6d 62 65 72 5f 6f 66 5f | 63 6f 6c 75 6d 6e 73 29 |mber_of_|columns)|
|00003360| 2b 2b 3b 0a 58 09 09 20 | 20 20 20 2a 73 63 72 65 |++;.X.. | *scre|
|00003370| 65 6e 5f 77 69 64 74 68 | 20 3d 20 2a 63 6f 6c 75 |en_width| = *colu|
|00003380| 6d 6e 5f 77 69 64 74 68 | 3b 0a 58 09 09 20 20 20 |mn_width|;.X.. |
|00003390| 20 2a 6d 61 72 67 69 6e | 20 3d 20 30 3b 0a 58 09 | *margin| = 0;.X.|
|000033a0| 20 20 20 20 20 20 20 7d | 0a 58 09 20 20 20 20 20 | }|.X. |
|000033b0| 20 20 73 70 72 65 61 64 | 20 3d 20 28 2a 73 63 72 | spread| = (*scr|
|000033c0| 65 65 6e 5f 77 69 64 74 | 68 20 2d 20 2a 6e 75 6d |een_widt|h - *num|
|000033d0| 62 65 72 5f 6f 66 5f 63 | 6f 6c 75 6d 6e 73 20 2a |ber_of_c|olumns *|
|000033e0| 20 2a 63 6f 6c 75 6d 6e | 5f 77 69 64 74 68 29 0a | *column|_width).|
|000033f0| 58 09 09 20 20 20 20 2f | 20 2a 6e 75 6d 62 65 72 |X.. /| *number|
|00003400| 5f 6f 66 5f 63 6f 6c 75 | 6d 6e 73 3b 0a 58 09 20 |_of_colu|mns;.X. |
|00003410| 20 20 20 20 20 20 2a 63 | 6f 6c 75 6d 6e 5f 77 69 | *c|olumn_wi|
|00003420| 64 74 68 20 2b 3d 20 73 | 70 72 65 61 64 3b 0a 58 |dth += s|pread;.X|
|00003430| 09 20 20 7d 0a 58 09 20 | 20 65 6c 73 65 20 7b 0a |. }.X. | else {.|
|00003440| 58 09 20 20 20 20 20 20 | 20 69 66 20 28 2a 6e 75 |X. | if (*nu|
|00003450| 6d 62 65 72 5f 6f 66 5f | 63 6f 6c 75 6d 6e 73 20 |mber_of_|columns |
|00003460| 2a 20 28 2a 63 6f 6c 75 | 6d 6e 5f 77 69 64 74 68 |* (*colu|mn_width|
|00003470| 20 2b 20 2a 6d 61 72 67 | 69 6e 29 20 3e 0a 58 09 | + *marg|in) >.X.|
|00003480| 09 20 20 20 2a 73 63 72 | 65 65 6e 5f 77 69 64 74 |. *scr|een_widt|
|00003490| 68 29 20 7b 0a 58 09 09 | 20 20 20 20 2a 63 6f 6c |h) {.X..| *col|
|000034a0| 75 6d 6e 5f 77 69 64 74 | 68 20 2b 3d 20 2a 6d 61 |umn_widt|h += *ma|
|000034b0| 72 67 69 6e 3b 0a 58 09 | 09 20 20 20 20 2a 73 63 |rgin;.X.|. *sc|
|000034c0| 72 65 65 6e 5f 77 69 64 | 74 68 20 3d 20 2a 63 6f |reen_wid|th = *co|
|000034d0| 6c 75 6d 6e 5f 77 69 64 | 74 68 3b 0a 58 09 20 20 |lumn_wid|th;.X. |
|000034e0| 20 20 20 20 20 7d 20 65 | 6c 73 65 20 7b 0a 58 09 | } e|lse {.X.|
|000034f0| 09 20 20 20 20 73 70 72 | 65 61 64 20 3d 20 28 2a |. spr|ead = (*|
|00003500| 73 63 72 65 65 6e 5f 77 | 69 64 74 68 20 2d 20 28 |screen_w|idth - (|
|00003510| 2a 6e 75 6d 62 65 72 5f | 6f 66 5f 63 6f 6c 75 6d |*number_|of_colum|
|00003520| 6e 73 20 2a 0a 58 09 09 | 09 09 09 20 20 20 20 20 |ns *.X..|... |
|00003530| 20 20 2a 63 6f 6c 75 6d | 6e 5f 77 69 64 74 68 29 | *colum|n_width)|
|00003540| 29 20 2f 0a 58 09 09 09 | 09 09 09 20 20 20 20 2a |) /.X...|... *|
|00003550| 6e 75 6d 62 65 72 5f 6f | 66 5f 63 6f 6c 75 6d 6e |number_o|f_column|
|00003560| 73 3b 0a 58 09 09 20 20 | 20 20 2a 63 6f 6c 75 6d |s;.X.. | *colum|
|00003570| 6e 5f 77 69 64 74 68 20 | 2b 3d 20 73 70 72 65 61 |n_width |+= sprea|
|00003580| 64 3b 0a 58 09 20 20 20 | 20 20 20 20 7d 0a 58 09 |d;.X. | }.X.|
|00003590| 20 20 7d 0a 58 20 20 20 | 20 20 7d 0a 58 20 20 20 | }.X | }.X |
|000035a0| 20 20 72 65 74 75 72 6e | 20 30 3b 0a 58 7d 0a 58 | return| 0;.X}.X|
|000035b0| 0a 58 0a 58 09 20 20 20 | 20 20 20 20 0a 58 0a 58 |.X.X. | .X.X|
|000035c0| 73 74 61 74 69 63 20 69 | 6e 74 20 6e 75 6d 5f 77 |static i|nt num_w|
|000035d0| 69 64 74 68 28 6e 75 6d | 62 65 72 29 0a 58 69 6e |idth(num|ber).Xin|
|000035e0| 74 20 6e 75 6d 62 65 72 | 3b 0a 58 7b 0a 58 20 20 |t number|;.X{.X |
|000035f0| 20 20 20 63 68 61 72 20 | 62 75 66 5b 42 55 46 53 | char |buf[BUFS|
|00003600| 49 5a 5d 3b 0a 58 0a 58 | 20 20 20 20 20 28 76 6f |IZ];.X.X| (vo|
|00003610| 69 64 29 20 73 70 72 69 | 6e 74 66 28 62 75 66 2c |id) spri|ntf(buf,|
|00003620| 20 22 25 64 22 2c 20 6e | 75 6d 62 65 72 29 3b 0a | "%d", n|umber);.|
|00003630| 58 20 20 20 20 20 72 65 | 74 75 72 6e 20 73 74 72 |X re|turn str|
|00003640| 6c 65 6e 28 62 75 66 29 | 3b 0a 58 7d 0a 45 4e 44 |len(buf)|;.X}.END|
|00003650| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00003660| 20 35 31 35 34 20 2d 6e | 65 20 60 77 63 20 2d 63 | 5154 -n|e `wc -c|
|00003670| 20 3c 27 63 6f 6c 2e 63 | 27 60 3b 20 74 68 65 6e | <'col.c|'`; then|
|00003680| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003690| 5c 22 27 63 6f 6c 2e 63 | 27 5c 22 20 75 6e 70 61 |\"'col.c|'\" unpa|
|000036a0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|000036b0| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|000036c0| 66 20 27 63 6f 6c 2e 63 | 27 0a 66 69 0a 69 66 20 |f 'col.c|'.fi.if |
|000036d0| 74 65 73 74 20 2d 66 20 | 27 63 6f 6c 2e 68 27 20 |test -f |'col.h' |
|000036e0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000036f0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00003700| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00003710| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00003720| 20 66 69 6c 65 20 5c 22 | 27 63 6f 6c 2e 68 27 5c | file \"|'col.h'\|
|00003730| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00003740| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00003750| 63 6f 6c 2e 68 27 5c 22 | 20 5c 28 31 35 30 37 20 |col.h'\"| \(1507 |
|00003760| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00003770| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 63 6f 6c 2e | "s/^X//|" >'col.|
|00003780| 68 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |h' <<'EN|D_OF_FIL|
|00003790| 45 27 0a 58 2f 2a 0a 58 | 20 2a 20 24 53 6f 75 72 |E'.X/*.X| * $Sour|
|000037a0| 63 65 3a 20 2f 61 66 73 | 2f 61 74 68 65 6e 61 2e |ce: /afs|/athena.|
|000037b0| 6d 69 74 2e 65 64 75 2f | 75 73 65 72 2f 6a 2f 6a |mit.edu/|user/j/j|
|000037c0| 69 6b 2f 64 65 6c 65 74 | 65 2f 73 72 63 2f 52 43 |ik/delet|e/src/RC|
|000037d0| 53 2f 63 6f 6c 2e 68 2c | 76 20 24 0a 58 20 2a 20 |S/col.h,|v $.X * |
|000037e0| 24 41 75 74 68 6f 72 3a | 20 6a 69 6b 20 24 0a 58 |$Author:| jik $.X|
|000037f0| 20 2a 0a 58 20 2a 20 54 | 68 69 73 20 68 65 61 64 | *.X * T|his head|
|00003800| 65 72 20 66 69 6c 65 20 | 69 73 20 70 61 72 74 20 |er file |is part |
|00003810| 6f 66 20 61 20 70 61 63 | 6b 61 67 65 20 69 6e 63 |of a pac|kage inc|
|00003820| 6c 75 64 69 6e 67 20 64 | 65 6c 65 74 65 2c 20 75 |luding d|elete, u|
|00003830| 6e 64 65 6c 65 74 65 2c | 0a 58 20 2a 20 6c 73 64 |ndelete,|.X * lsd|
|00003840| 65 6c 2c 20 65 78 70 75 | 6e 67 65 20 61 6e 64 20 |el, expu|nge and |
|00003850| 70 75 72 67 65 2e 20 20 | 54 68 65 20 73 6f 66 74 |purge. |The soft|
|00003860| 77 61 72 65 20 73 75 69 | 74 65 20 69 73 20 6d 65 |ware sui|te is me|
|00003870| 61 6e 74 20 61 73 20 61 | 0a 58 20 2a 20 72 65 70 |ant as a|.X * rep|
|00003880| 6c 61 63 65 6d 65 6e 74 | 20 66 6f 72 20 72 6d 20 |lacement| for rm |
|00003890| 77 68 69 63 68 20 61 6c | 6c 6f 77 73 20 66 6f 72 |which al|lows for|
|000038a0| 20 66 69 6c 65 20 72 65 | 63 6f 76 65 72 79 2e 0a | file re|covery..|
|000038b0| 58 20 2a 20 0a 58 20 2a | 20 43 6f 70 79 72 69 67 |X * .X *| Copyrig|
|000038c0| 68 74 20 28 63 29 20 31 | 39 38 39 20 62 79 20 74 |ht (c) 1|989 by t|
|000038d0| 68 65 20 4d 61 73 73 61 | 63 68 75 73 65 74 74 73 |he Massa|chusetts|
|000038e0| 20 49 6e 73 74 69 74 75 | 74 65 20 6f 66 20 54 65 | Institu|te of Te|
|000038f0| 63 68 6e 6f 6c 6f 67 79 | 2e 0a 58 20 2a 20 46 6f |chnology|..X * Fo|
|00003900| 72 20 63 6f 70 79 69 6e | 67 20 61 6e 64 20 64 69 |r copyin|g and di|
|00003910| 73 74 72 69 62 75 74 69 | 6f 6e 20 69 6e 66 6f 72 |stributi|on infor|
|00003920| 6d 61 74 69 6f 6e 2c 20 | 73 65 65 20 74 68 65 20 |mation, |see the |
|00003930| 66 69 6c 65 20 22 6d 69 | 74 2d 63 6f 70 79 72 69 |file "mi|t-copyri|
|00003940| 67 68 74 2e 68 2e 22 0a | 58 20 2a 2f 0a 58 23 69 |ght.h.".|X */.X#i|
|00003950| 6e 63 6c 75 64 65 20 22 | 6d 69 74 2d 63 6f 70 79 |nclude "|mit-copy|
|00003960| 72 69 67 68 74 2e 68 22 | 0a 58 0a 58 2f 2a 0a 58 |right.h"|.X.X/*.X|
|00003970| 20 2a 20 44 45 46 5f 43 | 4f 4c 5f 57 49 44 54 48 | * DEF_C|OL_WIDTH|
|00003980| 3a 20 74 68 65 20 63 6f | 6c 75 6d 6e 20 77 69 74 |: the co|lumn wit|
|00003990| 68 20 74 6f 20 74 72 79 | 20 74 6f 20 75 73 65 20 |h to try| to use |
|000039a0| 69 66 20 6e 6f 6e 65 20 | 69 73 20 73 70 65 63 69 |if none |is speci|
|000039b0| 66 69 65 64 2e 0a 58 20 | 2a 20 44 45 46 5f 57 41 |fied..X |* DEF_WA|
|000039c0| 49 54 3a 20 31 20 69 66 | 20 74 68 65 20 70 72 6f |IT: 1 if| the pro|
|000039d0| 67 72 61 6d 20 69 73 20 | 73 75 70 70 6f 73 65 64 |gram is |supposed|
|000039e0| 20 74 6f 20 77 61 69 74 | 20 66 6f 72 20 73 74 64 | to wait| for std|
|000039f0| 69 6e 20 74 6f 20 67 65 | 74 20 74 6f 0a 58 20 2a |in to ge|t to.X *|
|00003a00| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 2d 6f | | end-o|
|00003a10| 66 2d 66 69 6c 65 20 61 | 6e 64 20 74 68 65 6e 20 |f-file a|nd then |
|00003a20| 70 72 69 6e 74 20 6f 75 | 74 20 65 76 65 72 79 74 |print ou|t everyt|
|00003a30| 68 69 6e 67 20 69 6e 20 | 6f 72 64 65 72 20 69 6e |hing in |order in|
|00003a40| 0a 58 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 63 |.X * | c|
|00003a50| 6f 6c 75 6d 6e 73 20 62 | 79 20 64 65 66 61 75 6c |olumns b|y defaul|
|00003a60| 74 2e 20 20 49 66 20 74 | 68 69 73 20 69 73 20 30 |t. If t|his is 0|
|00003a70| 2c 20 74 68 65 6e 20 74 | 68 65 20 64 65 66 61 75 |, then t|he defau|
|00003a80| 6c 74 20 69 73 0a 58 20 | 2a 20 20 20 20 20 20 20 |lt is.X |* |
|00003a90| 20 20 20 20 66 6f 72 20 | 74 68 65 20 70 72 6f 67 | for |the prog|
|00003aa0| 72 61 6d 20 74 6f 20 70 | 72 69 6e 74 20 61 63 72 |ram to p|rint acr|
|00003ab0| 6f 73 73 20 69 6e 73 74 | 65 61 64 20 6f 66 20 64 |oss inst|ead of d|
|00003ac0| 6f 77 6e 20 61 6e 64 20 | 74 6f 0a 58 20 2a 20 20 |own and |to.X * |
|00003ad0| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 61 | | print a|
|00003ae0| 73 20 69 74 20 72 65 63 | 65 69 76 65 73 20 69 6e |s it rec|eives in|
|00003af0| 70 75 74 20 66 72 6f 6d | 20 73 74 64 69 6e 2e 0a |put from| stdin..|
|00003b00| 58 20 2a 20 44 45 46 5f | 56 41 52 5f 43 4f 4c 53 |X * DEF_|VAR_COLS|
|00003b10| 3a 20 69 66 20 31 2c 20 | 75 73 65 20 76 61 72 69 |: if 1, |use vari|
|00003b20| 61 62 6c 65 2d 77 69 64 | 74 68 20 63 6f 6c 75 6d |able-wid|th colum|
|00003b30| 6e 73 20 62 61 73 65 64 | 20 6f 6e 20 74 65 78 74 |ns based| on text|
|00003b40| 20 77 69 64 74 68 2e 0a | 58 20 2a 20 20 20 20 20 | width..|X * |
|00003b50| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 31 2c 20 | | if 1, |
|00003b60| 44 45 46 5f 57 41 49 54 | 20 6d 75 73 74 20 62 65 |DEF_WAIT| must be|
|00003b70| 20 74 72 75 65 2e 0a 58 | 20 2a 20 44 45 46 5f 53 | true..X| * DEF_S|
|00003b80| 43 52 5f 57 49 44 54 48 | 3a 20 64 65 66 61 75 6c |CR_WIDTH|: defaul|
|00003b90| 74 20 73 63 72 65 65 6e | 20 77 69 64 74 68 0a 58 |t screen| width.X|
|00003ba0| 20 2a 20 44 45 46 5f 4e | 55 4d 5f 49 54 45 4d 53 | * DEF_N|UM_ITEMS|
|00003bb0| 3a 20 69 66 20 31 2c 20 | 6e 75 6d 62 65 72 20 65 |: if 1, |number e|
|00003bc0| 61 63 68 20 69 74 65 6d | 0a 58 20 2a 20 44 45 46 |ach item|.X * DEF|
|00003bd0| 5f 4d 41 52 47 49 4e 3a | 20 74 68 65 20 64 65 66 |_MARGIN:| the def|
|00003be0| 61 75 6c 74 20 6d 61 72 | 67 69 6e 20 69 6e 20 62 |ault mar|gin in b|
|00003bf0| 65 74 77 65 65 6e 20 63 | 6f 6c 75 6d 6e 73 20 6f |etween c|olumns o|
|00003c00| 66 20 74 65 78 74 0a 58 | 20 2a 2f 20 0a 58 23 64 |f text.X| */ .X#d|
|00003c10| 65 66 69 6e 65 20 44 45 | 46 5f 43 4f 4c 5f 57 49 |efine DE|F_COL_WI|
|00003c20| 44 54 48 20 32 30 0a 58 | 23 64 65 66 69 6e 65 20 |DTH 20.X|#define |
|00003c30| 44 45 46 5f 57 41 49 54 | 20 31 0a 58 23 64 65 66 |DEF_WAIT| 1.X#def|
|00003c40| 69 6e 65 20 44 45 46 5f | 56 41 52 5f 43 4f 4c 53 |ine DEF_|VAR_COLS|
|00003c50| 20 31 0a 58 23 64 65 66 | 69 6e 65 20 44 45 46 5f | 1.X#def|ine DEF_|
|00003c60| 53 43 52 5f 57 49 44 54 | 48 20 38 30 0a 58 23 64 |SCR_WIDT|H 80.X#d|
|00003c70| 65 66 69 6e 65 20 44 45 | 46 5f 4e 55 4d 5f 49 54 |efine DE|F_NUM_IT|
|00003c80| 45 4d 53 20 31 0a 58 23 | 64 65 66 69 6e 65 20 44 |EMS 1.X#|define D|
|00003c90| 45 46 5f 4d 41 52 47 49 | 4e 20 32 0a 58 20 2f 2a |EF_MARGI|N 2.X /*|
|00003ca0| 20 54 68 69 73 20 69 73 | 20 75 73 65 64 20 66 6f | This is| used fo|
|00003cb0| 72 20 77 68 65 6e 20 77 | 65 20 6e 65 65 64 20 61 |r when w|e need a|
|00003cc0| 20 67 75 65 73 73 20 61 | 73 20 74 6f 20 68 6f 77 | guess a|s to how|
|00003cd0| 20 6c 6f 6e 67 20 61 20 | 6e 75 6d 62 65 72 20 77 | long a |number w|
|00003ce0| 69 6c 6c 20 2a 2f 0a 58 | 20 2f 2a 20 62 65 20 77 |ill */.X| /* be w|
|00003cf0| 68 65 6e 20 70 72 69 6e | 74 65 64 2e 20 20 41 6c |hen prin|ted. Al|
|00003d00| 73 6f 2c 20 69 66 20 77 | 65 20 61 72 65 20 73 75 |so, if w|e are su|
|00003d10| 70 70 6f 73 65 64 20 74 | 6f 20 77 6f 72 6b 20 69 |pposed t|o work i|
|00003d20| 6e 20 77 61 69 74 20 6d | 6f 64 65 20 20 20 20 2a |n wait m|ode *|
|00003d30| 2f 0a 58 20 2f 2a 20 61 | 6e 64 20 61 72 65 20 6e |/.X /* a|nd are n|
|00003d40| 6f 74 20 67 69 76 65 6e | 20 61 20 6d 61 78 69 74 |ot given| a maxit|
|00003d50| 65 6d 73 20 76 61 6c 75 | 65 2c 20 74 68 69 73 20 |ems valu|e, this |
|00003d60| 69 73 20 77 68 61 74 20 | 69 73 20 75 73 65 64 2e |is what |is used.|
|00003d70| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 58 23 64 | | */.X#d|
|00003d80| 65 66 69 6e 65 20 44 45 | 46 5f 4d 41 58 5f 49 54 |efine DE|F_MAX_IT|
|00003d90| 45 4d 53 20 31 30 30 30 | 30 0a 45 4e 44 5f 4f 46 |EMS 1000|0.END_OF|
|00003da0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 35 |_FILE.if| test 15|
|00003db0| 30 37 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |07 -ne `|wc -c <'|
|00003dc0| 63 6f 6c 2e 68 27 60 3b | 20 74 68 65 6e 0a 20 20 |col.h'`;| then. |
|00003dd0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00003de0| 63 6f 6c 2e 68 27 5c 22 | 20 75 6e 70 61 63 6b 65 |col.h'\"| unpacke|
|00003df0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00003e00| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00003e10| 63 6f 6c 2e 68 27 0a 66 | 69 0a 69 66 20 74 65 73 |col.h'.f|i.if tes|
|00003e20| 74 20 2d 66 20 27 64 65 | 6c 65 74 65 2e 68 27 20 |t -f 'de|lete.h' |
|00003e30| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00003e40| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00003e50| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00003e60| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00003e70| 20 66 69 6c 65 20 5c 22 | 27 64 65 6c 65 74 65 2e | file \"|'delete.|
|00003e80| 68 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |h'\".els|e.echo s|
|00003e90| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00003ea0| 5c 22 27 64 65 6c 65 74 | 65 2e 68 27 5c 22 20 5c |\"'delet|e.h'\" \|
|00003eb0| 28 35 35 37 20 63 68 61 | 72 61 63 74 65 72 73 5c |(557 cha|racters\|
|00003ec0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00003ed0| 27 64 65 6c 65 74 65 2e | 68 27 20 3c 3c 27 45 4e |'delete.|h' <<'EN|
|00003ee0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 0a 58 |D_OF_FIL|E'.X/*.X|
|00003ef0| 20 2a 20 24 53 6f 75 72 | 63 65 3a 20 2f 61 66 73 | * $Sour|ce: /afs|
|00003f00| 2f 61 74 68 65 6e 61 2e | 6d 69 74 2e 65 64 75 2f |/athena.|mit.edu/|
|00003f10| 75 73 65 72 2f 6a 2f 6a | 69 6b 2f 64 65 6c 65 74 |user/j/j|ik/delet|
|00003f20| 65 2f 73 72 63 2f 52 43 | 53 2f 64 65 6c 65 74 65 |e/src/RC|S/delete|
|00003f30| 2e 68 2c 76 20 24 0a 58 | 20 2a 20 24 41 75 74 68 |.h,v $.X| * $Auth|
|00003f40| 6f 72 3a 20 6a 69 6b 20 | 24 0a 58 20 2a 20 24 48 |or: jik |$.X * $H|
|00003f50| 65 61 64 65 72 3a 20 2f | 61 66 73 2f 61 74 68 65 |eader: /|afs/athe|
|00003f60| 6e 61 2e 6d 69 74 2e 65 | 64 75 2f 75 73 65 72 2f |na.mit.e|du/user/|
|00003f70| 6a 2f 6a 69 6b 2f 64 65 | 6c 65 74 65 2f 73 72 63 |j/jik/de|lete/src|
|00003f80| 2f 52 43 53 2f 64 65 6c | 65 74 65 2e 68 2c 76 20 |/RCS/del|ete.h,v |
|00003f90| 31 2e 34 20 38 39 2f 31 | 30 2f 32 33 20 31 33 3a |1.4 89/1|0/23 13:|
|00003fa0| 34 33 3a 32 32 20 6a 69 | 6b 20 45 78 70 20 24 0a |43:22 ji|k Exp $.|
|00003fb0| 58 20 2a 20 0a 58 20 2a | 20 54 68 69 73 20 66 69 |X * .X *| This fi|
|00003fc0| 6c 65 20 69 73 20 70 61 | 72 74 20 6f 66 20 61 20 |le is pa|rt of a |
|00003fd0| 70 61 63 6b 61 67 65 20 | 69 6e 63 6c 75 64 69 6e |package |includin|
|00003fe0| 67 20 64 65 6c 65 74 65 | 2c 20 75 6e 64 65 6c 65 |g delete|, undele|
|00003ff0| 74 65 2c 0a 58 20 2a 20 | 6c 73 64 65 6c 2c 20 65 |te,.X * |lsdel, e|
|00004000| 78 70 75 6e 67 65 20 61 | 6e 64 20 70 75 72 67 65 |xpunge a|nd purge|
|00004010| 2e 20 20 54 68 65 20 73 | 6f 66 74 77 61 72 65 20 |. The s|oftware |
|00004020| 73 75 69 74 65 20 69 73 | 20 6d 65 61 6e 74 20 61 |suite is| meant a|
|00004030| 73 20 61 0a 58 20 2a 20 | 72 65 70 6c 61 63 65 6d |s a.X * |replacem|
|00004040| 65 6e 74 20 66 6f 72 20 | 72 6d 20 77 68 69 63 68 |ent for |rm which|
|00004050| 20 61 6c 6c 6f 77 73 20 | 66 6f 72 20 66 69 6c 65 | allows |for file|
|00004060| 20 72 65 63 6f 76 65 72 | 79 2e 0a 58 20 2a 20 0a | recover|y..X * .|
|00004070| 58 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |X * Copy|right (c|
|00004080| 29 20 31 39 38 39 20 62 | 79 20 74 68 65 20 4d 61 |) 1989 b|y the Ma|
|00004090| 73 73 61 63 68 75 73 65 | 74 74 73 20 49 6e 73 74 |ssachuse|tts Inst|
|000040a0| 69 74 75 74 65 20 6f 66 | 20 54 65 63 68 6e 6f 6c |itute of| Technol|
|000040b0| 6f 67 79 2e 0a 58 20 2a | 20 46 6f 72 20 63 6f 70 |ogy..X *| For cop|
|000040c0| 79 69 6e 67 20 61 6e 64 | 20 64 69 73 74 72 69 62 |ying and| distrib|
|000040d0| 75 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ution in|formatio|
|000040e0| 6e 2c 20 73 65 65 20 74 | 68 65 20 66 69 6c 65 20 |n, see t|he file |
|000040f0| 22 6d 69 74 2d 63 6f 70 | 79 72 69 67 68 74 2e 68 |"mit-cop|yright.h|
|00004100| 2e 22 0a 58 20 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |.".X */.|X.X#incl|
|00004110| 75 64 65 20 22 6d 69 74 | 2d 63 6f 70 79 72 69 67 |ude "mit|-copyrig|
|00004120| 68 74 2e 68 22 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |ht.h".EN|D_OF_FIL|
|00004130| 45 0a 69 66 20 74 65 73 | 74 20 35 35 37 20 2d 6e |E.if tes|t 557 -n|
|00004140| 65 20 60 77 63 20 2d 63 | 20 3c 27 64 65 6c 65 74 |e `wc -c| <'delet|
|00004150| 65 2e 68 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |e.h'`; t|hen. |
|00004160| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 64 65 |echo sha|r: \"'de|
|00004170| 6c 65 74 65 2e 68 27 5c | 22 20 75 6e 70 61 63 6b |lete.h'\|" unpack|
|00004180| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004190| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|000041a0| 27 64 65 6c 65 74 65 2e | 68 27 0a 66 69 0a 69 66 |'delete.|h'.fi.if|
|000041b0| 20 74 65 73 74 20 2d 66 | 20 27 64 65 6c 65 74 65 | test -f| 'delete|
|000041c0| 5f 65 72 72 73 2e 65 74 | 27 20 2d 61 20 22 24 7b |_errs.et|' -a "${|
|000041d0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000041e0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000041f0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00004200| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00004210| 5c 22 27 64 65 6c 65 74 | 65 5f 65 72 72 73 2e 65 |\"'delet|e_errs.e|
|00004220| 74 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |t'\".els|e.echo s|
|00004230| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004240| 5c 22 27 64 65 6c 65 74 | 65 5f 65 72 72 73 2e 65 |\"'delet|e_errs.e|
|00004250| 74 27 5c 22 20 5c 28 31 | 35 35 31 20 63 68 61 72 |t'\" \(1|551 char|
|00004260| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00004270| 5e 58 2f 2f 22 20 3e 27 | 64 65 6c 65 74 65 5f 65 |^X//" >'|delete_e|
|00004280| 72 72 73 2e 65 74 27 20 | 3c 3c 27 45 4e 44 5f 4f |rrs.et' |<<'END_O|
|00004290| 46 5f 46 49 4c 45 27 0a | 58 23 20 20 20 20 20 43 |F_FILE'.|X# C|
|000042a0| 6f 70 79 72 69 67 68 74 | 20 31 39 38 38 20 4d 61 |opyright| 1988 Ma|
|000042b0| 73 73 61 63 68 75 73 65 | 74 74 73 20 49 6e 73 74 |ssachuse|tts Inst|
|000042c0| 69 74 75 74 65 20 6f 66 | 20 54 65 63 68 6e 6f 6c |itute of| Technol|
|000042d0| 6f 67 79 2e 0a 58 23 0a | 58 23 20 20 20 20 20 46 |ogy..X#.|X# F|
|000042e0| 6f 72 20 63 6f 70 79 69 | 6e 67 20 61 6e 64 20 64 |or copyi|ng and d|
|000042f0| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 69 6e 66 6f |istribut|ion info|
|00004300| 72 6d 61 74 69 6f 6e 2c | 20 73 65 65 20 74 68 65 |rmation,| see the|
|00004310| 20 66 69 6c 65 0a 58 23 | 20 20 20 20 20 22 6d 69 | file.X#| "mi|
|00004320| 74 2d 63 6f 70 79 72 69 | 67 68 74 2e 68 22 2e 0a |t-copyri|ght.h"..|
|00004330| 58 23 0a 58 23 20 20 20 | 20 20 24 53 6f 75 72 63 |X#.X# | $Sourc|
|00004340| 65 3a 20 2f 61 66 73 2f | 61 74 68 65 6e 61 2e 6d |e: /afs/|athena.m|
|00004350| 69 74 2e 65 64 75 2f 75 | 73 65 72 2f 6a 2f 6a 69 |it.edu/u|ser/j/ji|
|00004360| 6b 2f 64 65 6c 65 74 65 | 2f 73 72 63 2f 52 43 53 |k/delete|/src/RCS|
|00004370| 2f 64 65 6c 65 74 65 5f | 65 72 72 73 2e 65 74 2c |/delete_|errs.et,|
|00004380| 76 20 24 0a 58 23 20 20 | 20 20 20 24 41 75 74 68 |v $.X# | $Auth|
|00004390| 6f 72 3a 20 6a 69 6b 20 | 24 0a 58 23 20 20 20 20 |or: jik |$.X# |
|000043a0| 20 24 48 65 61 64 65 72 | 3a 20 2f 61 66 73 2f 61 | $Header|: /afs/a|
|000043b0| 74 68 65 6e 61 2e 6d 69 | 74 2e 65 64 75 2f 75 73 |thena.mi|t.edu/us|
|000043c0| 65 72 2f 6a 2f 6a 69 6b | 2f 64 65 6c 65 74 65 2f |er/j/jik|/delete/|
|000043d0| 73 72 63 2f 52 43 53 2f | 64 65 6c 65 74 65 5f 65 |src/RCS/|delete_e|
|000043e0| 72 72 73 2e 65 74 2c 76 | 20 31 2e 33 20 38 39 2f |rrs.et,v| 1.3 89/|
|000043f0| 31 32 2f 32 38 20 31 34 | 3a 34 34 3a 32 32 20 6a |12/28 14|:44:22 j|
|00004400| 69 6b 20 45 78 70 20 24 | 0a 58 23 0a 58 0a 58 09 |ik Exp $|.X#.X.X.|
|00004410| 65 74 09 64 65 6c 0a 58 | 0a 58 65 63 20 52 45 47 |et.del.X|.Xec REG|
|00004420| 45 58 50 5f 4d 49 53 53 | 49 4e 47 5f 51 55 4f 54 |EXP_MISS|ING_QUOT|
|00004430| 45 44 5f 43 48 41 52 2c | 0a 58 09 22 6d 69 73 73 |ED_CHAR,|.X."miss|
|00004440| 69 6e 67 20 71 75 6f 74 | 65 64 20 63 68 61 72 61 |ing quot|ed chara|
|00004450| 63 74 65 72 20 61 66 74 | 65 72 20 62 61 63 6b 73 |cter aft|er backs|
|00004460| 6c 61 73 68 22 0a 58 65 | 63 20 52 45 47 45 58 50 |lash".Xe|c REGEXP|
|00004470| 5f 4d 49 53 53 49 4e 47 | 5f 42 52 41 43 45 2c 0a |_MISSING|_BRACE,.|
|00004480| 58 09 22 6d 69 73 73 69 | 6e 67 20 5d 22 0a 58 65 |X."missi|ng ]".Xe|
|00004490| 63 20 52 45 47 45 58 50 | 5f 45 4d 50 54 59 5f 42 |c REGEXP|_EMPTY_B|
|000044a0| 52 41 43 45 53 2c 0a 58 | 09 22 69 6c 6c 65 67 61 |RACES,.X|."illega|
|000044b0| 6c 20 65 6d 70 74 79 20 | 62 72 61 63 65 73 22 0a |l empty |braces".|
|000044c0| 58 65 63 20 44 49 52 5f | 4e 4f 54 5f 44 49 52 45 |Xec DIR_|NOT_DIRE|
|000044d0| 43 54 4f 52 59 2c 0a 58 | 09 22 69 6e 74 65 72 6e |CTORY,.X|."intern|
|000044e0| 61 6c 20 65 72 72 6f 72 | 3a 20 64 69 72 65 63 74 |al error|: direct|
|000044f0| 6f 72 79 20 6f 70 65 72 | 61 74 69 6f 6e 20 6f 6e |ory oper|ation on|
|00004500| 20 6e 6f 6e 2d 64 69 72 | 65 63 74 6f 72 79 22 0a | non-dir|ectory".|
|00004510| 58 65 63 20 44 49 52 5f | 49 4d 50 4f 53 53 49 42 |Xec DIR_|IMPOSSIB|
|00004520| 4c 45 5f 45 52 52 4f 52 | 2c 0a 58 09 22 69 6e 74 |LE_ERROR|,.X."int|
|00004530| 65 72 61 6c 20 65 72 72 | 6f 72 3a 20 73 6f 6d 65 |eral err|or: some|
|00004540| 74 68 69 6e 67 20 74 68 | 61 74 20 73 68 6f 75 6c |thing th|at shoul|
|00004550| 64 6e 27 74 20 68 61 70 | 70 65 6e 20 6a 75 73 74 |dn't hap|pen just|
|00004560| 20 64 69 64 22 0a 58 65 | 63 20 43 4f 4c 5f 43 4f | did".Xe|c COL_CO|
|00004570| 4c 55 4d 4e 53 5f 54 4f | 4f 5f 54 48 49 4e 2c 0a |LUMNS_TO|O_THIN,.|
|00004580| 58 09 22 70 6f 73 73 69 | 62 6c 65 20 69 6e 74 65 |X."possi|ble inte|
|00004590| 72 6e 61 6c 20 65 72 72 | 6f 72 3a 20 6c 69 73 74 |rnal err|or: list|
|000045a0| 69 6e 67 20 63 6f 6c 75 | 6d 6e 73 20 74 6f 6f 20 |ing colu|mns too |
|000045b0| 74 68 69 6e 22 0a 58 65 | 63 20 44 45 4c 45 54 45 |thin".Xe|c DELETE|
|000045c0| 5f 49 53 5f 44 4f 54 46 | 49 4c 45 2c 0a 58 09 22 |_IS_DOTF|ILE,.X."|
|000045d0| 63 61 6e 27 74 20 64 65 | 6c 65 74 65 20 60 2e 27 |can't de|lete `.'|
|000045e0| 20 6f 72 20 60 2e 2e 27 | 22 0a 58 65 63 20 44 45 | or `..'|".Xec DE|
|000045f0| 4c 45 54 45 5f 43 41 4e | 54 5f 44 45 4c 5f 44 49 |LETE_CAN|T_DEL_DI|
|00004600| 52 2c 0a 58 09 22 63 61 | 6e 27 74 20 64 65 6c 65 |R,.X."ca|n't dele|
|00004610| 74 65 20 28 6e 6f 74 20 | 66 69 6c 65 29 22 0a 58 |te (not |file)".X|
|00004620| 65 63 20 44 45 4c 45 54 | 45 5f 44 49 52 5f 4e 4f |ec DELET|E_DIR_NO|
|00004630| 54 5f 45 4d 50 54 59 2c | 0a 58 09 22 63 61 6e 27 |T_EMPTY,|.X."can'|
|00004640| 74 20 64 65 6c 65 74 65 | 20 28 64 69 72 65 63 74 |t delete| (direct|
|00004650| 6f 72 79 20 6e 6f 74 20 | 65 6d 70 74 79 29 22 0a |ory not |empty)".|
|00004660| 58 65 63 20 44 45 4c 45 | 54 45 5f 43 41 4e 54 5f |Xec DELE|TE_CANT_|
|00004670| 44 45 4c 5f 46 49 4c 45 | 2c 0a 58 09 22 63 61 6e |DEL_FILE|,.X."can|
|00004680| 27 74 20 64 65 6c 65 74 | 65 20 28 6e 6f 74 20 64 |'t delet|e (not d|
|00004690| 69 72 65 63 74 6f 72 79 | 29 22 0a 58 65 63 20 44 |irectory|)".Xec D|
|000046a0| 45 4c 45 54 45 5f 4e 4f | 54 5f 44 45 4c 45 54 45 |ELETE_NO|T_DELETE|
|000046b0| 44 2c 0a 58 09 22 22 0a | 58 65 63 20 55 4e 44 45 |D,.X."".|Xec UNDE|
|000046c0| 4c 5f 4e 4f 54 5f 55 4e | 44 45 4c 45 54 45 44 2c |L_NOT_UN|DELETED,|
|000046d0| 0a 58 09 22 22 0a 58 65 | 63 20 4e 4f 5f 48 4f 4d |.X."".Xe|c NO_HOM|
|000046e0| 45 5f 44 49 52 2c 0a 58 | 09 22 63 61 6e 27 74 20 |E_DIR,.X|."can't |
|000046f0| 66 69 6e 64 20 68 6f 6d | 65 20 64 69 72 65 63 74 |find hom|e direct|
|00004700| 6f 72 79 22 0a 58 65 63 | 20 49 4e 54 45 52 4e 41 |ory".Xec| INTERNA|
|00004710| 4c 5f 45 52 52 4f 52 2c | 0a 58 09 22 73 74 72 61 |L_ERROR,|.X."stra|
|00004720| 6e 67 65 20 69 6e 74 65 | 72 6e 61 6c 20 65 72 72 |nge inte|rnal err|
|00004730| 6f 72 22 0a 58 65 63 20 | 45 4e 4f 4d 41 54 43 48 |or".Xec |ENOMATCH|
|00004740| 2c 0a 58 09 22 6e 6f 20 | 6d 61 74 63 68 22 0a 58 |,.X."no |match".X|
|00004750| 65 63 20 45 58 50 55 4e | 47 45 5f 4e 4f 54 5f 45 |ec EXPUN|GE_NOT_E|
|00004760| 58 50 55 4e 47 45 44 2c | 0a 58 09 22 22 0a 58 65 |XPUNGED,|.X."".Xe|
|00004770| 63 20 50 55 52 47 45 5f | 54 4f 4f 5f 4d 41 4e 59 |c PURGE_|TOO_MANY|
|00004780| 5f 41 52 47 53 2c 0a 58 | 09 22 63 6f 6d 6d 61 6e |_ARGS,.X|."comman|
|00004790| 64 20 74 61 6b 65 73 20 | 6e 6f 20 61 72 67 75 6d |d takes |no argum|
|000047a0| 65 6e 74 73 22 0a 58 65 | 63 20 50 41 54 5f 4e 4f |ents".Xe|c PAT_NO|
|000047b0| 5f 46 49 4c 45 53 5f 52 | 45 51 55 45 53 54 45 44 |_FILES_R|EQUESTED|
|000047c0| 2c 0a 58 09 22 69 6e 74 | 65 72 6e 61 6c 20 65 72 |,.X."int|ernal er|
|000047d0| 72 6f 72 3a 20 6e 6f 20 | 66 69 6c 65 73 20 72 65 |ror: no |files re|
|000047e0| 71 75 65 73 74 65 64 20 | 69 6e 20 63 61 6c 6c 20 |quested |in call |
|000047f0| 74 6f 20 66 69 6e 64 5f | 6d 61 74 63 68 65 73 20 |to find_|matches |
|00004800| 6f 72 20 64 6f 5f 6d 61 | 74 63 68 22 0a 58 65 63 |or do_ma|tch".Xec|
|00004810| 20 50 41 54 5f 49 53 5f | 4d 4f 55 4e 54 2c 0a 58 | PAT_IS_|MOUNT,.X|
|00004820| 09 22 69 67 6e 6f 72 65 | 64 20 28 69 73 20 6d 6f |."ignore|d (is mo|
|00004830| 75 6e 74 20 70 6f 69 6e | 74 29 22 0a 58 65 63 20 |unt poin|t)".Xec |
|00004840| 53 54 41 43 4b 5f 42 41 | 44 5f 4f 50 2c 0a 58 09 |STACK_BA|D_OP,.X.|
|00004850| 22 69 6e 74 65 72 6e 61 | 6c 20 65 72 72 6f 72 3a |"interna|l error:|
|00004860| 20 63 61 6c 6c 20 74 6f | 20 64 6f 73 74 61 63 6b | call to| dostack|
|00004870| 20 77 69 74 68 20 75 6e | 64 65 66 69 6e 65 64 20 | with un|defined |
|00004880| 73 74 61 63 6b 20 6f 70 | 65 72 61 74 69 6f 6e 22 |stack op|eration"|
|00004890| 0a 58 65 63 20 53 54 41 | 43 4b 5f 45 4d 50 54 59 |.Xec STA|CK_EMPTY|
|000048a0| 2c 0a 58 09 22 69 6e 74 | 65 72 6e 61 6c 20 65 72 |,.X."int|ernal er|
|000048b0| 72 6f 72 3a 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |ror: att|empt to |
|000048c0| 70 6f 70 20 66 72 6f 6d | 20 65 6d 70 74 79 20 73 |pop from| empty s|
|000048d0| 74 61 63 6b 22 0a 58 0a | 58 09 65 6e 64 0a 58 0a |tack".X.|X.end.X.|
|000048e0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000048f0| 65 73 74 20 31 35 35 31 | 20 2d 6e 65 20 60 77 63 |est 1551| -ne `wc|
|00004900| 20 2d 63 20 3c 27 64 65 | 6c 65 74 65 5f 65 72 72 | -c <'de|lete_err|
|00004910| 73 2e 65 74 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |s.et'`; |then. |
|00004920| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 64 | echo sh|ar: \"'d|
|00004930| 65 6c 65 74 65 5f 65 72 | 72 73 2e 65 74 27 5c 22 |elete_er|rs.et'\"|
|00004940| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004950| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00004960| 65 6e 64 20 6f 66 20 27 | 64 65 6c 65 74 65 5f 65 |end of '|delete_e|
|00004970| 72 72 73 2e 65 74 27 0a | 66 69 0a 69 66 20 74 65 |rrs.et'.|fi.if te|
|00004980| 73 74 20 2d 66 20 27 64 | 69 72 65 63 74 6f 72 69 |st -f 'd|irectori|
|00004990| 65 73 2e 68 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |es.h' -a| "${1}" |
|000049a0| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|000049b0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|000049c0| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|000049d0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 64 |isting f|ile \"'d|
|000049e0| 69 72 65 63 74 6f 72 69 | 65 73 2e 68 27 5c 22 0a |irectori|es.h'\".|
|000049f0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00004a00| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 64 69 |Extracti|ng \"'di|
|00004a10| 72 65 63 74 6f 72 69 65 | 73 2e 68 27 5c 22 20 5c |rectorie|s.h'\" \|
|00004a20| 28 33 33 30 36 20 63 68 | 61 72 61 63 74 65 72 73 |(3306 ch|aracters|
|00004a30| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00004a40| 3e 27 64 69 72 65 63 74 | 6f 72 69 65 73 2e 68 27 |>'direct|ories.h'|
|00004a50| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00004a60| 0a 58 2f 2a 0a 58 20 2a | 20 24 53 6f 75 72 63 65 |.X/*.X *| $Source|
|00004a70| 3a 20 2f 61 66 73 2f 61 | 74 68 65 6e 61 2e 6d 69 |: /afs/a|thena.mi|
|00004a80| 74 2e 65 64 75 2f 75 73 | 65 72 2f 6a 2f 6a 69 6b |t.edu/us|er/j/jik|
|00004a90| 2f 64 65 6c 65 74 65 2f | 73 72 63 2f 52 43 53 2f |/delete/|src/RCS/|
|00004aa0| 64 69 72 65 63 74 6f 72 | 69 65 73 2e 68 2c 76 20 |director|ies.h,v |
|00004ab0| 24 0a 58 20 2a 20 24 41 | 75 74 68 6f 72 3a 20 6a |$.X * $A|uthor: j|
|00004ac0| 69 6b 20 24 0a 58 20 2a | 20 24 48 65 61 64 65 72 |ik $.X *| $Header|
|00004ad0| 3a 20 2f 61 66 73 2f 61 | 74 68 65 6e 61 2e 6d 69 |: /afs/a|thena.mi|
|00004ae0| 74 2e 65 64 75 2f 75 73 | 65 72 2f 6a 2f 6a 69 6b |t.edu/us|er/j/jik|
|00004af0| 2f 64 65 6c 65 74 65 2f | 73 72 63 2f 52 43 53 2f |/delete/|src/RCS/|
|00004b00| 64 69 72 65 63 74 6f 72 | 69 65 73 2e 68 2c 76 20 |director|ies.h,v |
|00004b10| 31 2e 31 30 20 39 31 2f | 30 32 2f 32 32 20 30 36 |1.10 91/|02/22 06|
|00004b20| 3a 33 33 3a 33 34 20 6a | 69 6b 20 45 78 70 20 24 |:33:34 j|ik Exp $|
|00004b30| 0a 58 20 2a 20 0a 58 20 | 2a 20 54 68 69 73 20 66 |.X * .X |* This f|
|00004b40| 69 6c 65 20 69 73 20 70 | 61 72 74 20 6f 66 20 61 |ile is p|art of a|
|00004b50| 20 70 61 63 6b 61 67 65 | 20 69 6e 63 6c 75 64 69 | package| includi|
|00004b60| 6e 67 20 64 65 6c 65 74 | 65 2c 20 75 6e 64 65 6c |ng delet|e, undel|
|00004b70| 65 74 65 2c 0a 58 20 2a | 20 6c 73 64 65 6c 2c 20 |ete,.X *| lsdel, |
|00004b80| 65 78 70 75 6e 67 65 20 | 61 6e 64 20 70 75 72 67 |expunge |and purg|
|00004b90| 65 2e 20 20 54 68 65 20 | 73 6f 66 74 77 61 72 65 |e. The |software|
|00004ba0| 20 73 75 69 74 65 20 69 | 73 20 6d 65 61 6e 74 20 | suite i|s meant |
|00004bb0| 61 73 20 61 0a 58 20 2a | 20 72 65 70 6c 61 63 65 |as a.X *| replace|
|00004bc0| 6d 65 6e 74 20 66 6f 72 | 20 72 6d 20 77 68 69 63 |ment for| rm whic|
|00004bd0| 68 20 61 6c 6c 6f 77 73 | 20 66 6f 72 20 66 69 6c |h allows| for fil|
|00004be0| 65 20 72 65 63 6f 76 65 | 72 79 2e 0a 58 20 2a 20 |e recove|ry..X * |
|00004bf0| 0a 58 20 2a 20 43 6f 70 | 79 72 69 67 68 74 20 28 |.X * Cop|yright (|
|00004c00| 63 29 20 31 39 38 39 20 | 62 79 20 74 68 65 20 4d |c) 1989 |by the M|
|00004c10| 61 73 73 61 63 68 75 73 | 65 74 74 73 20 49 6e 73 |assachus|etts Ins|
|00004c20| 74 69 74 75 74 65 20 6f | 66 20 54 65 63 68 6e 6f |titute o|f Techno|
|00004c30| 6c 6f 67 79 2e 0a 58 20 | 2a 20 46 6f 72 20 63 6f |logy..X |* For co|
|00004c40| 70 79 69 6e 67 20 61 6e | 64 20 64 69 73 74 72 69 |pying an|d distri|
|00004c50| 62 75 74 69 6f 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |bution i|nformati|
|00004c60| 6f 6e 2c 20 73 65 65 20 | 74 68 65 20 66 69 6c 65 |on, see |the file|
|00004c70| 20 22 6d 69 74 2d 63 6f | 70 79 72 69 67 68 74 2e | "mit-co|pyright.|
|00004c80| 68 2e 22 0a 58 20 2a 2f | 0a 58 0a 58 23 69 6e 63 |h.".X */|.X.X#inc|
|00004c90| 6c 75 64 65 20 22 6d 69 | 74 2d 63 6f 70 79 72 69 |lude "mi|t-copyri|
|00004ca0| 67 68 74 2e 68 22 0a 58 | 0a 58 74 79 70 65 64 65 |ght.h".X|.Xtypede|
|00004cb0| 66 20 73 68 6f 72 74 20 | 42 6f 6f 6c 65 61 6e 3b |f short |Boolean;|
|00004cc0| 0a 58 23 64 65 66 69 6e | 65 20 54 72 75 65 09 09 |.X#defin|e True..|
|00004cd0| 09 28 42 6f 6f 6c 65 61 | 6e 29 20 31 0a 58 23 64 |.(Boolea|n) 1.X#d|
|00004ce0| 65 66 69 6e 65 20 46 61 | 6c 73 65 09 09 09 28 42 |efine Fa|lse...(B|
|00004cf0| 6f 6f 6c 65 61 6e 29 20 | 30 0a 58 0a 58 0a 58 23 |oolean) |0.X.X.X#|
|00004d00| 64 65 66 69 6e 65 20 73 | 69 7a 65 5f 74 6f 5f 6b |define s|ize_to_k|
|00004d10| 28 78 29 09 09 28 28 78 | 29 20 2f 20 31 30 32 34 |(x)..((x|) / 1024|
|00004d20| 20 2b 20 28 28 28 78 29 | 20 25 20 31 30 32 34 29 | + (((x)| % 1024)|
|00004d30| 20 3f 20 31 20 3a 20 30 | 29 29 0a 58 0a 58 23 64 | ? 1 : 0|)).X.X#d|
|00004d40| 65 66 69 6e 65 20 46 4f | 4c 4c 4f 57 5f 4c 49 4e |efine FO|LLOW_LIN|
|00004d50| 4b 53 09 09 31 0a 58 23 | 64 65 66 69 6e 65 20 44 |KS..1.X#|define D|
|00004d60| 4f 4e 54 5f 46 4f 4c 4c | 4f 57 5f 4c 49 4e 4b 53 |ONT_FOLL|OW_LINKS|
|00004d70| 09 30 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 44 49 |.0.X.X#d|efine DI|
|00004d80| 52 5f 4d 41 54 43 48 09 | 09 31 0a 58 23 64 65 66 |R_MATCH.|.1.X#def|
|00004d90| 69 6e 65 20 44 49 52 5f | 4e 4f 5f 4d 41 54 43 48 |ine DIR_|NO_MATCH|
|00004da0| 09 09 30 0a 58 0a 58 74 | 79 70 65 64 65 66 20 73 |..0.X.Xt|ypedef s|
|00004db0| 74 72 75 63 74 20 6d 79 | 73 74 61 74 20 7b 0a 58 |truct my|stat {.X|
|00004dc0| 20 20 20 20 20 64 65 76 | 5f 74 20 73 74 5f 64 65 | dev|_t st_de|
|00004dd0| 76 3b 0a 58 20 20 20 20 | 20 69 6e 6f 5f 74 20 73 |v;.X | ino_t s|
|00004de0| 74 5f 69 6e 6f 3b 0a 58 | 20 20 20 20 20 75 6e 73 |t_ino;.X| uns|
|00004df0| 69 67 6e 65 64 20 73 68 | 6f 72 74 20 73 74 5f 6d |igned sh|ort st_m|
|00004e00| 6f 64 65 3b 0a 58 20 20 | 20 20 20 6f 66 66 5f 74 |ode;.X | off_t|
|00004e10| 20 73 74 5f 73 69 7a 65 | 3b 0a 58 20 20 20 20 20 | st_size|;.X |
|00004e20| 74 69 6d 65 5f 74 20 73 | 74 5f 63 74 69 6d 65 3b |time_t s|t_ctime;|
|00004e30| 0a 58 23 69 66 64 65 66 | 20 6e 6f 74 64 65 66 0a |.X#ifdef| notdef.|
|00004e40| 58 20 20 20 20 20 2f 2a | 0a 58 20 20 20 20 20 20 |X /*|.X |
|00004e50| 2a 20 49 27 76 65 20 74 | 72 69 65 64 2c 20 75 6e |* I've t|ried, un|
|00004e60| 73 75 63 63 65 73 73 66 | 75 6c 6c 79 2c 20 74 6f |successf|ully, to|
|00004e70| 20 66 69 67 75 72 65 20 | 6f 75 74 20 65 78 61 63 | figure |out exac|
|00004e80| 74 6c 79 20 77 68 61 74 | 20 74 68 69 73 0a 58 20 |tly what| this.X |
|00004e90| 20 20 20 20 20 2a 20 66 | 69 65 6c 64 20 6d 65 61 | * f|ield mea|
|00004ea0| 6e 73 20 61 6e 64 20 68 | 6f 77 20 49 20 63 61 6e |ns and h|ow I can|
|00004eb0| 20 75 73 65 20 69 74 2e | 20 20 53 75 70 70 6f 73 | use it.| Suppos|
|00004ec0| 65 64 6c 79 2c 20 69 74 | 20 69 6e 64 69 63 61 74 |edly, it| indicat|
|00004ed0| 65 73 0a 58 20 20 20 20 | 20 20 2a 20 74 68 65 20 |es.X | * the |
|00004ee0| 6e 75 6d 62 65 72 20 6f | 66 20 62 6c 6f 63 6b 73 |number o|f blocks|
|00004ef0| 20 74 68 65 20 66 69 6c | 65 20 61 63 74 75 61 6c | the fil|e actual|
|00004f00| 6c 79 20 6f 63 63 75 70 | 69 65 73 2c 20 69 2e 65 |ly occup|ies, i.e|
|00004f10| 2e 20 74 68 65 20 73 69 | 7a 65 0a 58 20 20 20 20 |. the si|ze.X |
|00004f20| 20 20 2a 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 | * of t|he file |
|00004f30| 6d 69 6e 75 73 20 61 6e | 79 20 68 6f 6c 65 73 20 |minus an|y holes |
|00004f40| 69 6e 20 69 74 20 74 68 | 65 72 65 20 6d 61 79 20 |in it th|ere may |
|00004f50| 62 65 2e 20 20 54 68 65 | 20 71 75 65 73 74 69 6f |be. The| questio|
|00004f60| 6e 2c 0a 58 20 20 20 20 | 20 20 2a 20 68 6f 77 65 |n,.X | * howe|
|00004f70| 76 65 72 2c 20 69 73 20 | 74 68 69 73 3a 20 77 68 |ver, is |this: wh|
|00004f80| 61 74 27 73 20 61 20 22 | 62 6c 6f 63 6b 3f 22 0a |at's a "|block?".|
|00004f90| 58 20 20 20 20 20 20 2a | 0a 58 20 20 20 20 20 20 |X *|.X |
|00004fa0| 2a 20 41 74 20 66 69 72 | 73 74 2c 20 49 20 74 68 |* At fir|st, I th|
|00004fb0| 6f 75 67 68 74 20 74 68 | 61 74 20 61 20 62 6c 6f |ought th|at a blo|
|00004fc0| 63 6b 20 69 73 20 61 73 | 20 62 69 67 20 61 73 20 |ck is as| big as |
|00004fd0| 66 5f 62 73 69 7a 65 20 | 72 65 74 75 72 6e 65 64 |f_bsize |returned|
|00004fe0| 0a 58 20 20 20 20 20 20 | 2a 20 62 79 20 61 20 73 |.X |* by a s|
|00004ff0| 74 61 74 66 73 20 6f 6e | 20 74 68 65 20 66 69 6c |tatfs on| the fil|
|00005000| 65 2e 20 20 42 75 74 20 | 74 68 61 74 20 64 6f 65 |e. But |that doe|
|00005010| 73 6e 27 74 20 70 72 6f | 76 65 20 74 6f 20 62 65 |sn't pro|ve to be|
|00005020| 20 74 68 65 0a 58 20 20 | 20 20 20 20 2a 20 63 61 | the.X | * ca|
|00005030| 73 65 2c 20 62 65 63 61 | 75 73 65 20 6d 79 20 68 |se, beca|use my h|
|00005040| 6f 6d 65 20 64 69 72 65 | 63 74 6f 72 79 20 69 6e |ome dire|ctory in|
|00005050| 20 41 46 53 20 68 61 73 | 20 66 5f 62 73 69 7a 65 | AFS has| f_bsize|
|00005060| 20 6f 66 20 38 31 39 32 | 2c 0a 58 20 20 20 20 20 | of 8192|,.X |
|00005070| 20 2a 20 73 74 5f 73 69 | 7a 65 20 6f 66 20 38 31 | * st_si|ze of 81|
|00005080| 39 32 2c 20 61 6e 64 20 | 73 74 5f 62 6c 6f 63 6b |92, and |st_block|
|00005090| 73 20 6f 66 20 31 36 20 | 28 21 21 29 2c 20 69 6e |s of 16 |(!!), in|
|000050a0| 64 69 63 61 74 69 6e 67 | 20 74 68 61 74 20 61 0a |dicating| that a.|
|000050b0| 58 20 20 20 20 20 20 2a | 20 62 6c 6f 63 6b 20 73 |X *| block s|
|000050c0| 69 7a 65 20 6f 66 20 35 | 31 32 20 62 79 74 65 73 |ize of 5|12 bytes|
|000050d0| 20 69 73 20 62 65 69 6e | 67 20 75 73 65 64 2e 20 | is bein|g used. |
|000050e0| 20 57 68 65 72 65 20 64 | 6f 65 73 20 74 68 61 74 | Where d|oes that|
|000050f0| 20 73 69 7a 65 0a 58 20 | 20 20 20 20 20 2a 20 63 | size.X | * c|
|00005100| 6f 6d 65 20 66 72 6f 6d | 2c 20 61 6e 64 20 77 68 |ome from|, and wh|
|00005110| 79 20 69 73 6e 27 74 20 | 69 74 20 63 6f 6e 73 69 |y isn't |it consi|
|00005120| 73 74 65 6e 74 20 77 69 | 74 68 20 74 68 65 20 66 |stent wi|th the f|
|00005130| 5f 62 73 69 7a 65 0a 58 | 20 20 20 20 20 20 2a 20 |_bsize.X| * |
|00005140| 72 65 74 72 69 65 76 65 | 64 20 66 72 6f 6d 20 73 |retrieve|d from s|
|00005150| 74 61 74 66 73 3f 0a 58 | 20 20 20 20 20 20 2a 0a |tatfs?.X| *.|
|00005160| 58 20 20 20 20 20 20 2a | 20 55 6e 74 69 6c 20 73 |X *| Until s|
|00005170| 6f 6d 65 6f 6e 65 20 63 | 61 6e 20 61 6e 73 77 65 |omeone c|an answe|
|00005180| 72 20 74 68 65 73 65 20 | 71 75 65 73 74 69 6f 6e |r these |question|
|00005190| 73 20 66 6f 72 20 6d 65 | 20 65 6e 6f 75 67 68 20 |s for me| enough |
|000051a0| 74 68 61 74 0a 58 20 20 | 20 20 20 20 2a 20 49 27 |that.X | * I'|
|000051b0| 6d 20 77 69 6c 6c 69 6e | 67 20 74 6f 20 74 72 75 |m willin|g to tru|
|000051c0| 73 74 20 74 68 65 20 76 | 61 6c 75 65 20 69 6e 20 |st the v|alue in |
|000051d0| 74 68 69 73 20 66 69 65 | 6c 64 2c 20 49 20 63 61 |this fie|ld, I ca|
|000051e0| 6e 27 74 20 75 73 65 20 | 69 74 2e 0a 58 20 20 20 |n't use |it..X |
|000051f0| 20 20 20 2a 20 42 65 73 | 69 64 65 73 20 74 68 61 | * Bes|ides tha|
|00005200| 74 2c 20 69 74 20 64 6f | 65 73 6e 27 74 20 65 76 |t, it do|esn't ev|
|00005210| 65 6e 20 65 78 69 73 74 | 20 69 6e 20 74 68 65 20 |en exist| in the |
|00005220| 50 4f 53 49 58 20 73 74 | 61 74 0a 58 20 20 20 20 |POSIX st|at.X |
|00005230| 20 20 2a 20 73 74 72 75 | 63 74 75 72 65 2c 20 73 | * stru|cture, s|
|00005240| 6f 20 49 27 6d 20 6e 6f | 74 20 65 76 65 6e 20 73 |o I'm no|t even s|
|00005250| 75 72 65 20 69 74 27 73 | 20 77 6f 72 74 68 20 74 |ure it's| worth t|
|00005260| 72 79 69 6e 67 20 74 6f | 20 75 73 65 20 69 74 2e |rying to| use it.|
|00005270| 0a 58 20 20 20 20 20 20 | 2a 0a 58 20 20 20 20 20 |.X |*.X |
|00005280| 20 2a 20 48 65 72 65 27 | 73 20 61 6e 6f 74 68 65 | * Here'|s anothe|
|00005290| 72 20 64 69 6c 65 6d 6d | 61 3a 20 57 68 65 6e 20 |r dilemm|a: When |
|000052a0| 49 20 64 6f 20 61 20 73 | 74 61 74 66 73 20 6f 6e |I do a s|tatfs on|
|000052b0| 20 6d 79 20 68 6f 6d 65 | 0a 58 20 20 20 20 20 20 | my home|.X |
|000052c0| 2a 20 64 69 72 65 63 74 | 6f 72 79 20 69 6e 20 41 |* direct|ory in A|
|000052d0| 46 53 2c 20 69 74 20 74 | 65 6c 6c 73 20 6d 65 20 |FS, it t|ells me |
|000052e0| 74 68 61 74 20 74 68 65 | 20 66 5f 62 73 69 7a 65 |that the| f_bsize|
|000052f0| 20 69 73 20 38 31 39 32 | 2e 20 20 49 66 0a 58 20 | is 8192|. If.X |
|00005300| 20 20 20 20 20 2a 20 74 | 68 61 74 27 73 20 74 68 | * t|hat's th|
|00005310| 65 20 63 61 73 65 2c 20 | 74 68 65 6e 20 77 68 65 |e case, |then whe|
|00005320| 6e 20 49 20 63 72 65 61 | 74 65 20 61 20 6f 6e 65 |n I crea|te a one|
|00005330| 2d 63 68 61 72 61 63 74 | 65 72 20 66 69 6c 65 20 |-charact|er file |
|00005340| 69 6e 20 6d 79 0a 58 20 | 20 20 20 20 20 2a 20 68 |in my.X | * h|
|00005350| 6f 6d 65 20 64 69 72 65 | 63 74 6f 72 79 2c 20 6d |ome dire|ctory, m|
|00005360| 79 20 71 75 6f 74 61 20 | 75 73 61 67 65 20 73 68 |y quota |usage sh|
|00005370| 6f 75 6c 64 20 67 6f 20 | 75 70 20 62 79 20 38 6b |ould go |up by 8k|
|00005380| 2e 20 20 42 75 74 20 69 | 74 0a 58 20 20 20 20 20 |. But i|t.X |
|00005390| 20 2a 20 64 6f 65 73 6e | 27 74 2c 20 69 74 20 67 | * doesn|'t, it g|
|000053a0| 6f 65 73 20 75 70 20 62 | 79 20 6a 75 73 74 20 31 |oes up b|y just 1|
|000053b0| 6b 2e 20 20 57 68 69 63 | 68 20 6d 65 61 6e 73 20 |k. Whic|h means |
|000053c0| 74 68 61 74 20 74 68 65 | 20 66 5f 62 73 69 7a 65 |that the| f_bsize|
|000053d0| 0a 58 20 20 20 20 20 20 | 2a 20 49 27 6d 20 67 65 |.X |* I'm ge|
|000053e0| 74 74 69 6e 67 20 66 72 | 6f 6d 20 73 74 61 74 66 |tting fr|om statf|
|000053f0| 73 20 68 61 73 20 6e 6f | 74 68 69 6e 67 20 74 6f |s has no|thing to|
|00005400| 20 64 6f 20 77 69 74 68 | 20 74 68 65 20 6d 69 6e | do with| the min|
|00005410| 69 6d 75 6d 0a 58 20 20 | 20 20 20 20 2a 20 62 6c |imum.X | * bl|
|00005420| 6f 63 6b 20 73 69 7a 65 | 20 6f 66 20 74 68 65 20 |ock size| of the |
|00005430| 66 69 6c 65 73 79 73 74 | 65 6d 2e 20 20 53 6f 20 |filesyst|em. So |
|00005440| 77 68 61 74 20 2a 64 6f | 65 73 2a 20 69 74 20 68 |what *do|es* it h|
|00005450| 61 76 65 20 74 6f 20 64 | 6f 0a 58 20 20 20 20 20 |ave to d|o.X |
|00005460| 20 2a 20 77 69 74 68 3f | 0a 58 20 20 20 20 20 20 | * with?|.X |
|00005470| 2a 2f 0a 58 20 20 20 20 | 20 6c 6f 6e 67 20 73 74 |*/.X | long st|
|00005480| 5f 62 6c 6f 63 6b 73 3b | 0a 58 23 65 6e 64 69 66 |_blocks;|.X#endif|
|00005490| 0a 58 7d 20 6d 79 73 74 | 61 74 3b 0a 58 0a 58 20 |.X} myst|at;.X.X |
|000054a0| 20 20 20 20 0a 58 74 79 | 70 65 64 65 66 20 73 74 | .Xty|pedef st|
|000054b0| 72 75 63 74 20 66 69 6c | 72 65 63 20 7b 0a 58 20 |ruct fil|rec {.X |
|000054c0| 20 20 20 20 63 68 61 72 | 20 6e 61 6d 65 5b 4d 41 | char| name[MA|
|000054d0| 58 4e 41 4d 4c 45 4e 5d | 3b 0a 58 20 20 20 20 20 |XNAMLEN]|;.X |
|000054e0| 73 74 72 75 63 74 20 66 | 69 6c 72 65 63 20 2a 70 |struct f|ilrec *p|
|000054f0| 72 65 76 69 6f 75 73 3b | 0a 58 20 20 20 20 20 73 |revious;|.X s|
|00005500| 74 72 75 63 74 20 66 69 | 6c 72 65 63 20 2a 70 61 |truct fi|lrec *pa|
|00005510| 72 65 6e 74 3b 0a 58 20 | 20 20 20 20 73 74 72 75 |rent;.X | stru|
|00005520| 63 74 20 66 69 6c 72 65 | 63 20 2a 64 69 72 73 3b |ct filre|c *dirs;|
|00005530| 0a 58 20 20 20 20 20 73 | 74 72 75 63 74 20 66 69 |.X s|truct fi|
|00005540| 6c 72 65 63 20 2a 66 69 | 6c 65 73 3b 0a 58 20 20 |lrec *fi|les;.X |
|00005550| 20 20 20 73 74 72 75 63 | 74 20 66 69 6c 72 65 63 | struc|t filrec|
|00005560| 20 2a 6e 65 78 74 3b 0a | 58 20 20 20 20 20 42 6f | *next;.|X Bo|
|00005570| 6f 6c 65 61 6e 20 73 70 | 65 63 69 66 69 65 64 3b |olean sp|ecified;|
|00005580| 0a 58 20 20 20 20 20 42 | 6f 6f 6c 65 61 6e 20 66 |.X B|oolean f|
|00005590| 72 65 65 64 3b 0a 58 20 | 20 20 20 20 73 74 72 75 |reed;.X | stru|
|000055a0| 63 74 20 6d 79 73 74 61 | 74 20 73 70 65 63 73 3b |ct mysta|t specs;|
|000055b0| 0a 58 7d 20 66 69 6c 65 | 72 65 63 3b 0a 58 0a 58 |.X} file|rec;.X.X|
|000055c0| 0a 58 0a 58 69 6e 74 20 | 61 64 64 5f 64 69 72 65 |.X.Xint |add_dire|
|000055d0| 63 74 6f 72 79 5f 74 6f | 5f 70 61 72 65 6e 74 28 |ctory_to|_parent(|
|000055e0| 29 3b 0a 58 69 6e 74 20 | 61 64 64 5f 66 69 6c 65 |);.Xint |add_file|
|000055f0| 5f 74 6f 5f 70 61 72 65 | 6e 74 28 29 3b 0a 58 69 |_to_pare|nt();.Xi|
|00005600| 6e 74 20 61 64 64 5f 70 | 61 74 68 5f 74 6f 5f 74 |nt add_p|ath_to_t|
|00005610| 72 65 65 28 29 3b 0a 58 | 69 6e 74 20 66 69 6e 64 |ree();.X|int find|
|00005620| 5f 63 68 69 6c 64 28 29 | 3b 0a 58 66 69 6c 65 72 |_child()|;.Xfiler|
|00005630| 65 63 20 2a 66 69 72 73 | 74 5f 69 6e 5f 64 69 72 |ec *firs|t_in_dir|
|00005640| 65 63 74 6f 72 79 28 29 | 3b 0a 58 66 69 6c 65 72 |ectory()|;.Xfiler|
|00005650| 65 63 20 2a 66 69 72 73 | 74 5f 73 70 65 63 69 66 |ec *firs|t_specif|
|00005660| 69 65 64 5f 69 6e 5f 64 | 69 72 65 63 74 6f 72 79 |ied_in_d|irectory|
|00005670| 28 29 3b 0a 58 66 69 6c | 65 72 65 63 20 2a 67 65 |();.Xfil|erec *ge|
|00005680| 74 5f 63 77 64 5f 74 72 | 65 65 28 29 3b 0a 58 66 |t_cwd_tr|ee();.Xf|
|00005690| 69 6c 65 72 65 63 20 2a | 67 65 74 5f 72 6f 6f 74 |ilerec *|get_root|
|000056a0| 5f 74 72 65 65 28 29 3b | 0a 58 66 69 6c 65 72 65 |_tree();|.Xfilere|
|000056b0| 63 20 2a 6e 65 78 74 5f | 64 69 72 65 63 74 6f 72 |c *next_|director|
|000056c0| 79 28 29 3b 0a 58 66 69 | 6c 65 72 65 63 20 2a 6e |y();.Xfi|lerec *n|
|000056d0| 65 78 74 5f 69 6e 5f 64 | 69 72 65 63 74 6f 72 79 |ext_in_d|irectory|
|000056e0| 28 29 3b 0a 58 66 69 6c | 65 72 65 63 20 2a 6e 65 |();.Xfil|erec *ne|
|000056f0| 78 74 5f 6c 65 61 66 28 | 29 3b 0a 58 66 69 6c 65 |xt_leaf(|);.Xfile|
|00005700| 72 65 63 20 2a 6e 65 78 | 74 5f 73 70 65 63 69 66 |rec *nex|t_specif|
|00005710| 69 65 64 5f 64 69 72 65 | 63 74 6f 72 79 28 29 3b |ied_dire|ctory();|
|00005720| 0a 58 66 69 6c 65 72 65 | 63 20 2a 6e 65 78 74 5f |.Xfilere|c *next_|
|00005730| 73 70 65 63 69 66 69 65 | 64 5f 69 6e 5f 64 69 72 |specifie|d_in_dir|
|00005740| 65 63 74 6f 72 79 28 29 | 3b 0a 58 66 69 6c 65 72 |ectory()|;.Xfiler|
|00005750| 65 63 20 2a 6e 65 78 74 | 5f 73 70 65 63 69 66 69 |ec *next|_specifi|
|00005760| 65 64 5f 6c 65 61 66 28 | 29 3b 0a 58 0a 58 69 6e |ed_leaf(|);.X.Xin|
|00005770| 74 20 67 65 74 5f 6c 65 | 61 66 5f 70 61 74 68 28 |t get_le|af_path(|
|00005780| 29 3b 0a 58 69 6e 74 20 | 61 63 63 75 6d 75 6c 61 |);.Xint |accumula|
|00005790| 74 65 5f 6e 61 6d 65 73 | 28 29 3b 0a 58 0a 58 76 |te_names|();.X.Xv|
|000057a0| 6f 69 64 20 66 72 65 65 | 5f 6c 65 61 66 28 29 3b |oid free|_leaf();|
|000057b0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|000057c0| 74 65 73 74 20 33 33 30 | 36 20 2d 6e 65 20 60 77 |test 330|6 -ne `w|
|000057d0| 63 20 2d 63 20 3c 27 64 | 69 72 65 63 74 6f 72 69 |c -c <'d|irectori|
|000057e0| 65 73 2e 68 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |es.h'`; |then. |
|000057f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 64 | echo sh|ar: \"'d|
|00005800| 69 72 65 63 74 6f 72 69 | 65 73 2e 68 27 5c 22 20 |irectori|es.h'\" |
|00005810| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00005820| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00005830| 6e 64 20 6f 66 20 27 64 | 69 72 65 63 74 6f 72 69 |nd of 'd|irectori|
|00005840| 65 73 2e 68 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |es.h'.fi|.if test|
|00005850| 20 2d 66 20 27 65 72 72 | 6f 72 73 2e 63 27 20 2d | -f 'err|ors.c' -|
|00005860| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00005870| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00005880| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00005890| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000058a0| 66 69 6c 65 20 5c 22 27 | 65 72 72 6f 72 73 2e 63 |file \"'|errors.c|
|000058b0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|000058c0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000058d0| 22 27 65 72 72 6f 72 73 | 2e 63 27 5c 22 20 5c 28 |"'errors|.c'\" \(|
|000058e0| 31 34 38 32 20 63 68 61 | 72 61 63 74 65 72 73 5c |1482 cha|racters\|
|000058f0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00005900| 27 65 72 72 6f 72 73 2e | 63 27 20 3c 3c 27 45 4e |'errors.|c' <<'EN|
|00005910| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 0a 58 |D_OF_FIL|E'.X/*.X|
|00005920| 20 2a 20 24 53 6f 75 72 | 63 65 3a 20 2f 61 66 73 | * $Sour|ce: /afs|
|00005930| 2f 61 74 68 65 6e 61 2e | 6d 69 74 2e 65 64 75 2f |/athena.|mit.edu/|
|00005940| 61 73 74 61 66 66 2f 70 | 72 6f 6a 65 63 74 2f 64 |astaff/p|roject/d|
|00005950| 65 6c 65 74 65 2f 73 72 | 63 2f 52 43 53 2f 65 72 |elete/sr|c/RCS/er|
|00005960| 72 6f 72 73 2e 63 2c 76 | 20 24 0a 58 20 2a 20 24 |rors.c,v| $.X * $|
|00005970| 41 75 74 68 6f 72 3a 20 | 6a 69 6b 20 24 0a 58 20 |Author: |jik $.X |
|00005980| 2a 0a 58 20 2a 20 54 68 | 69 73 20 70 72 6f 67 72 |*.X * Th|is progr|
|00005990| 61 6d 20 69 73 20 70 61 | 72 74 20 6f 66 20 61 20 |am is pa|rt of a |
|000059a0| 70 61 63 6b 61 67 65 20 | 69 6e 63 6c 75 64 69 6e |package |includin|
|000059b0| 67 20 64 65 6c 65 74 65 | 2c 20 75 6e 64 65 6c 65 |g delete|, undele|
|000059c0| 74 65 2c 0a 58 20 2a 20 | 6c 73 64 65 6c 2c 20 65 |te,.X * |lsdel, e|
|000059d0| 78 70 75 6e 67 65 20 61 | 6e 64 20 70 75 72 67 65 |xpunge a|nd purge|
|000059e0| 2e 20 20 54 68 65 20 73 | 6f 66 74 77 61 72 65 20 |. The s|oftware |
|000059f0| 73 75 69 74 65 20 69 73 | 20 6d 65 61 6e 74 20 61 |suite is| meant a|
|00005a00| 73 20 61 0a 58 20 2a 20 | 72 65 70 6c 61 63 65 6d |s a.X * |replacem|
|00005a10| 65 6e 74 20 66 6f 72 20 | 72 6d 20 77 68 69 63 68 |ent for |rm which|
|00005a20| 20 61 6c 6c 6f 77 73 20 | 66 6f 72 20 66 69 6c 65 | allows |for file|
|00005a30| 20 72 65 63 6f 76 65 72 | 79 2e 0a 58 20 2a 20 0a | recover|y..X * .|
|00005a40| 58 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |X * Copy|right (c|
|00005a50| 29 20 31 39 38 39 20 62 | 79 20 74 68 65 20 4d 61 |) 1989 b|y the Ma|
|00005a60| 73 73 61 63 68 75 73 65 | 74 74 73 20 49 6e 73 74 |ssachuse|tts Inst|
|00005a70| 69 74 75 74 65 20 6f 66 | 20 54 65 63 68 6e 6f 6c |itute of| Technol|
|00005a80| 6f 67 79 2e 0a 58 20 2a | 20 46 6f 72 20 63 6f 70 |ogy..X *| For cop|
|00005a90| 79 69 6e 67 20 61 6e 64 | 20 64 69 73 74 72 69 62 |ying and| distrib|
|00005aa0| 75 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ution in|formatio|
|00005ab0| 6e 2c 20 73 65 65 20 74 | 68 65 20 66 69 6c 65 20 |n, see t|he file |
|00005ac0| 22 6d 69 74 2d 63 6f 70 | 79 72 69 67 68 74 2e 68 |"mit-cop|yright.h|
|00005ad0| 2e 22 0a 58 20 2a 2f 0a | 58 0a 58 23 69 66 20 28 |.".X */.|X.X#if (|
|00005ae0| 21 64 65 66 69 6e 65 64 | 28 6c 69 6e 74 29 20 26 |!defined|(lint) &|
|00005af0| 26 20 21 64 65 66 69 6e | 65 64 28 53 41 42 45 52 |& !defin|ed(SABER|
|00005b00| 29 29 0a 58 20 20 20 20 | 20 73 74 61 74 69 63 20 |)).X | static |
|00005b10| 63 68 61 72 20 72 63 73 | 69 64 5f 65 72 72 6f 72 |char rcs|id_error|
|00005b20| 73 5f 63 5b 5d 20 3d 20 | 22 24 48 65 61 64 65 72 |s_c[] = |"$Header|
|00005b30| 3a 20 2f 61 66 73 2f 61 | 74 68 65 6e 61 2e 6d 69 |: /afs/a|thena.mi|
|00005b40| 74 2e 65 64 75 2f 61 73 | 74 61 66 66 2f 70 72 6f |t.edu/as|taff/pro|
|00005b50| 6a 65 63 74 2f 64 65 6c | 65 74 65 2f 73 72 63 2f |ject/del|ete/src/|
|00005b60| 52 43 53 2f 65 72 72 6f | 72 73 2e 63 2c 76 20 31 |RCS/erro|rs.c,v 1|
|00005b70| 2e 33 20 39 30 2f 31 31 | 2f 31 32 20 30 32 3a 32 |.3 90/11|/12 02:2|
|00005b80| 38 3a 32 38 20 6a 69 6b | 20 45 78 70 20 24 22 3b |8:28 jik| Exp $";|
|00005b90| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 23 69 6e 63 |.X#endif|.X.X#inc|
|00005ba0| 6c 75 64 65 20 3c 63 6f | 6d 5f 65 72 72 2e 68 3e |lude <co|m_err.h>|
|00005bb0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |.X#inclu|de <stdi|
|00005bc0| 6f 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |o.h>.X#i|nclude "|
|00005bd0| 64 65 6c 65 74 65 5f 65 | 72 72 73 2e 68 22 0a 58 |delete_e|rrs.h".X|
|00005be0| 23 69 6e 63 6c 75 64 65 | 20 22 6d 69 74 2d 63 6f |#include| "mit-co|
|00005bf0| 70 79 72 69 67 68 74 2e | 68 22 0a 58 0a 58 63 68 |pyright.|h".X.Xch|
|00005c00| 61 72 20 2a 77 68 6f 61 | 6d 69 3b 0a 58 69 6e 74 |ar *whoa|mi;.Xint|
|00005c10| 20 65 72 72 6f 72 5f 72 | 65 70 6f 72 74 65 64 20 | error_r|eported |
|00005c20| 3d 20 31 3b 0a 58 69 6e | 74 20 65 72 72 6f 72 5f |= 1;.Xin|t error_|
|00005c30| 6f 63 63 75 72 72 65 64 | 20 3d 20 30 3b 0a 58 69 |occurred| = 0;.Xi|
|00005c40| 6e 74 20 72 65 70 6f 72 | 74 5f 65 72 72 6f 72 73 |nt repor|t_errors|
|00005c50| 20 3d 20 31 3b 0a 58 69 | 6e 74 20 65 72 72 6f 72 | = 1;.Xi|nt error|
|00005c60| 5f 63 6f 64 65 20 3d 20 | 30 3b 0a 58 0a 58 2f 2a |_code = |0;.X.X/*|
|00005c70| 0a 58 20 2a 20 50 72 6f | 70 65 72 20 75 73 65 20 |.X * Pro|per use |
|00005c80| 6f 66 20 74 68 69 73 20 | 70 72 6f 63 65 64 75 72 |of this |procedur|
|00005c90| 65 20 72 65 71 75 69 72 | 65 73 20 73 74 72 69 63 |e requir|es stric|
|00005ca0| 74 20 61 64 68 65 72 61 | 6e 63 65 20 74 6f 20 74 |t adhera|nce to t|
|00005cb0| 68 65 20 77 61 79 0a 58 | 20 2a 20 69 74 20 69 73 |he way.X| * it is|
|00005cc0| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 62 65 20 | suppose|d to be |
|00005cd0| 75 73 65 64 20 62 79 20 | 61 6c 6c 20 70 72 6f 63 |used by |all proc|
|00005ce0| 65 64 75 72 65 73 20 69 | 6e 20 61 20 70 72 6f 67 |edures i|n a prog|
|00005cf0| 72 61 6d 2e 20 20 57 68 | 65 6e 65 76 65 72 0a 58 |ram. Wh|enever.X|
|00005d00| 20 2a 20 74 68 65 72 65 | 20 69 73 20 61 6e 20 65 | * there| is an e|
|00005d10| 72 72 6f 72 2c 20 73 65 | 74 5f 65 72 72 6f 72 20 |rror, se|t_error |
|00005d20| 6d 75 73 74 20 62 65 20 | 63 61 6c 6c 65 64 20 77 |must be |called w|
|00005d30| 69 74 68 20 74 68 65 20 | 65 72 72 6f 72 20 76 61 |ith the |error va|
|00005d40| 6c 75 65 2e 0a 58 20 2a | 20 54 68 65 6e 2c 20 65 |lue..X *| Then, e|
|00005d50| 69 74 68 65 72 20 74 68 | 65 20 70 72 6f 63 65 64 |ither th|e proced|
|00005d60| 75 72 65 20 74 68 61 74 | 20 64 65 74 65 63 74 73 |ure that| detects|
|00005d70| 20 74 68 65 20 65 72 72 | 6f 72 20 6d 75 73 74 20 | the err|or must |
|00005d80| 63 61 6c 6c 0a 58 20 2a | 20 65 72 72 6f 72 28 29 |call.X *| error()|
|00005d90| 2c 20 6f 72 20 69 74 20 | 6d 75 73 74 20 70 61 73 |, or it |must pas|
|00005da0| 73 20 74 68 65 20 65 72 | 72 6f 72 20 75 70 20 74 |s the er|ror up t|
|00005db0| 6f 20 69 74 73 20 70 61 | 72 65 6e 74 20 66 6f 72 |o its pa|rent for|
|00005dc0| 20 74 68 65 20 70 61 72 | 65 6e 74 0a 58 20 2a 20 | the par|ent.X * |
|00005dd0| 74 6f 20 72 65 70 6f 72 | 74 2e 0a 58 20 2a 2f 0a |to repor|t..X */.|
|00005de0| 58 0a 58 0a 58 76 6f 69 | 64 20 65 72 72 6f 72 28 |X.X.Xvoi|d error(|
|00005df0| 73 74 72 29 0a 58 63 68 | 61 72 20 2a 73 74 72 3b |str).Xch|ar *str;|
|00005e00| 0a 58 7b 0a 58 20 20 20 | 20 20 69 66 20 28 72 65 |.X{.X | if (re|
|00005e10| 70 6f 72 74 5f 65 72 72 | 6f 72 73 20 26 26 20 28 |port_err|ors && (|
|00005e20| 21 20 65 72 72 6f 72 5f | 72 65 70 6f 72 74 65 64 |! error_|reported|
|00005e30| 29 29 20 7b 0a 58 09 20 | 20 69 66 20 28 2a 73 74 |)) {.X. | if (*st|
|00005e40| 72 29 0a 58 09 20 20 20 | 20 20 20 20 66 70 72 69 |r).X. | fpri|
|00005e50| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 25 73 3a |ntf(stde|rr, "%s:|
|00005e60| 20 25 73 3a 20 25 73 5c | 6e 22 2c 20 77 68 6f 61 | %s: %s\|n", whoa|
|00005e70| 6d 69 2c 20 73 74 72 2c | 0a 58 09 09 20 20 20 20 |mi, str,|.X.. |
|00005e80| 20 20 20 65 72 72 6f 72 | 5f 6d 65 73 73 61 67 65 | error|_message|
|00005e90| 28 65 72 72 6f 72 5f 63 | 6f 64 65 29 29 3b 0a 58 |(error_c|ode));.X|
|00005ea0| 09 20 20 65 6c 73 65 0a | 58 09 20 20 20 20 20 20 |. else.|X. |
|00005eb0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00005ec0| 20 22 25 73 3a 20 25 73 | 5c 6e 22 2c 20 77 68 6f | "%s: %s|\n", who|
|00005ed0| 61 6d 69 2c 20 65 72 72 | 6f 72 5f 6d 65 73 73 61 |ami, err|or_messa|
|00005ee0| 67 65 28 65 72 72 6f 72 | 5f 63 6f 64 65 29 29 3b |ge(error|_code));|
|00005ef0| 0a 58 20 20 20 20 20 7d | 0a 58 20 20 20 20 20 65 |.X }|.X e|
|00005f00| 72 72 6f 72 5f 72 65 70 | 6f 72 74 65 64 20 3d 20 |rror_rep|orted = |
|00005f10| 31 3b 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |1;.X}.EN|D_OF_FIL|
|00005f20| 45 0a 69 66 20 74 65 73 | 74 20 31 34 38 32 20 2d |E.if tes|t 1482 -|
|00005f30| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 65 72 72 6f |ne `wc -|c <'erro|
|00005f40| 72 73 2e 63 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |rs.c'`; |then. |
|00005f50| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 65 | echo sh|ar: \"'e|
|00005f60| 72 72 6f 72 73 2e 63 27 | 5c 22 20 75 6e 70 61 63 |rrors.c'|\" unpac|
|00005f70| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00005f80| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00005f90| 20 27 65 72 72 6f 72 73 | 2e 63 27 0a 66 69 0a 69 | 'errors|.c'.fi.i|
|00005fa0| 66 20 74 65 73 74 20 2d | 66 20 27 65 72 72 6f 72 |f test -|f 'error|
|00005fb0| 73 2e 68 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |s.h' -a |"${1}" !|
|00005fc0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00005fd0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00005fe0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00005ff0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 65 72 |sting fi|le \"'er|
|00006000| 72 6f 72 73 2e 68 27 5c | 22 0a 65 6c 73 65 0a 65 |rors.h'\|".else.e|
|00006010| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00006020| 74 69 6e 67 20 5c 22 27 | 65 72 72 6f 72 73 2e 68 |ting \"'|errors.h|
|00006030| 27 5c 22 20 5c 28 38 38 | 33 20 63 68 61 72 61 63 |'\" \(88|3 charac|
|00006040| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00006050| 2f 2f 22 20 3e 27 65 72 | 72 6f 72 73 2e 68 27 20 |//" >'er|rors.h' |
|00006060| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00006070| 58 2f 2a 0a 58 20 2a 20 | 24 53 6f 75 72 63 65 3a |X/*.X * |$Source:|
|00006080| 20 2f 61 66 73 2f 61 74 | 68 65 6e 61 2e 6d 69 74 | /afs/at|hena.mit|
|00006090| 2e 65 64 75 2f 75 73 65 | 72 2f 6a 2f 6a 69 6b 2f |.edu/use|r/j/jik/|
|000060a0| 64 65 6c 65 74 65 2f 73 | 72 63 2f 52 43 53 2f 65 |delete/s|rc/RCS/e|
|000060b0| 72 72 6f 72 73 2e 68 2c | 76 20 24 0a 58 20 2a 20 |rrors.h,|v $.X * |
|000060c0| 24 41 75 74 68 6f 72 3a | 20 6a 69 6b 20 24 0a 58 |$Author:| jik $.X|
|000060d0| 20 2a 20 24 48 65 61 64 | 65 72 3a 20 2f 61 66 73 | * $Head|er: /afs|
|000060e0| 2f 61 74 68 65 6e 61 2e | 6d 69 74 2e 65 64 75 2f |/athena.|mit.edu/|
|000060f0| 75 73 65 72 2f 6a 2f 6a | 69 6b 2f 64 65 6c 65 74 |user/j/j|ik/delet|
|00006100| 65 2f 73 72 63 2f 52 43 | 53 2f 65 72 72 6f 72 73 |e/src/RC|S/errors|
|00006110| 2e 68 2c 76 20 31 2e 32 | 20 38 39 2f 31 31 2f 30 |.h,v 1.2| 89/11/0|
|00006120| 36 20 32 31 3a 32 37 3a | 32 33 20 6a 69 6b 20 45 |6 21:27:|23 jik E|
|00006130| 78 70 20 24 0a 58 20 2a | 20 0a 58 20 2a 20 54 68 |xp $.X *| .X * Th|
|00006140| 69 73 20 66 69 6c 65 20 | 69 73 20 70 61 72 74 20 |is file |is part |
|00006150| 6f 66 20 61 20 70 61 63 | 6b 61 67 65 20 69 6e 63 |of a pac|kage inc|
|00006160| 6c 75 64 69 6e 67 20 64 | 65 6c 65 74 65 2c 20 75 |luding d|elete, u|
|00006170| 6e 64 65 6c 65 74 65 2c | 0a 58 20 2a 20 6c 73 64 |ndelete,|.X * lsd|
|00006180| 65 6c 2c 20 65 78 70 75 | 6e 67 65 20 61 6e 64 20 |el, expu|nge and |
|00006190| 70 75 72 67 65 2e 20 20 | 54 68 65 20 73 6f 66 74 |purge. |The soft|
|000061a0| 77 61 72 65 20 73 75 69 | 74 65 20 69 73 20 6d 65 |ware sui|te is me|
|000061b0| 61 6e 74 20 61 73 20 61 | 0a 58 20 2a 20 72 65 70 |ant as a|.X * rep|
|000061c0| 6c 61 63 65 6d 65 6e 74 | 20 66 6f 72 20 72 6d 20 |lacement| for rm |
|000061d0| 77 68 69 63 68 20 61 6c | 6c 6f 77 73 20 66 6f 72 |which al|lows for|
|000061e0| 20 66 69 6c 65 20 72 65 | 63 6f 76 65 72 79 2e 0a | file re|covery..|
|000061f0| 58 20 2a 20 0a 58 20 2a | 20 43 6f 70 79 72 69 67 |X * .X *| Copyrig|
|00006200| 68 74 20 28 63 29 20 31 | 39 38 39 20 62 79 20 74 |ht (c) 1|989 by t|
|00006210| 68 65 20 4d 61 73 73 61 | 63 68 75 73 65 74 74 73 |he Massa|chusetts|
|00006220| 20 49 6e 73 74 69 74 75 | 74 65 20 6f 66 20 54 65 | Institu|te of Te|
|00006230| 63 68 6e 6f 6c 6f 67 79 | 2e 0a 58 20 2a 20 46 6f |chnology|..X * Fo|
|00006240| 72 20 63 6f 70 79 69 6e | 67 20 61 6e 64 20 64 69 |r copyin|g and di|
|00006250| 73 74 72 69 62 75 74 69 | 6f 6e 20 69 6e 66 6f 72 |stributi|on infor|
|00006260| 6d 61 74 69 6f 6e 2c 20 | 73 65 65 20 74 68 65 20 |mation, |see the |
|00006270| 66 69 6c 65 20 22 6d 69 | 74 2d 63 6f 70 79 72 69 |file "mi|t-copyri|
|00006280| 67 68 74 2e 68 2e 22 0a | 58 20 2a 2f 0a 58 23 69 |ght.h.".|X */.X#i|
|00006290| 6e 63 6c 75 64 65 20 22 | 6d 69 74 2d 63 6f 70 79 |nclude "|mit-copy|
|000062a0| 72 69 67 68 74 2e 68 22 | 0a 58 0a 58 65 78 74 65 |right.h"|.X.Xexte|
|000062b0| 72 6e 20 63 68 61 72 20 | 2a 77 68 6f 61 6d 69 3b |rn char |*whoami;|
|000062c0| 0a 58 65 78 74 65 72 6e | 20 69 6e 74 20 65 72 72 |.Xextern| int err|
|000062d0| 6f 72 5f 72 65 70 6f 72 | 74 65 64 3b 0a 58 65 78 |or_repor|ted;.Xex|
|000062e0| 74 65 72 6e 20 69 6e 74 | 20 65 72 72 6f 72 5f 6f |tern int| error_o|
|000062f0| 63 63 75 72 72 65 64 3b | 0a 58 65 78 74 65 72 6e |ccurred;|.Xextern|
|00006300| 20 69 6e 74 20 72 65 70 | 6f 72 74 5f 65 72 72 6f | int rep|ort_erro|
|00006310| 72 73 3b 0a 58 65 78 74 | 65 72 6e 20 69 6e 74 20 |rs;.Xext|ern int |
|00006320| 65 72 72 6f 72 5f 63 6f | 64 65 3b 0a 58 0a 58 76 |error_co|de;.X.Xv|
|00006330| 6f 69 64 20 65 72 72 6f | 72 28 29 3b 0a 58 0a 58 |oid erro|r();.X.X|
|00006340| 23 64 65 66 69 6e 65 20 | 73 65 74 5f 65 72 72 6f |#define |set_erro|
|00006350| 72 28 63 64 29 20 7b 65 | 72 72 6f 72 5f 63 6f 64 |r(cd) {e|rror_cod|
|00006360| 65 20 3d 20 63 64 3b 20 | 65 72 72 6f 72 5f 72 65 |e = cd; |error_re|
|00006370| 70 6f 72 74 65 64 20 3d | 20 30 3b 20 65 72 72 6f |ported =| 0; erro|
|00006380| 72 5f 6f 63 63 75 72 72 | 65 64 20 3d 20 31 3b 7d |r_occurr|ed = 1;}|
|00006390| 0a 58 23 64 65 66 69 6e | 65 20 73 65 74 5f 77 61 |.X#defin|e set_wa|
|000063a0| 72 6e 69 6e 67 28 63 64 | 29 20 7b 65 72 72 6f 72 |rning(cd|) {error|
|000063b0| 5f 63 6f 64 65 20 3d 20 | 63 64 3b 20 65 72 72 6f |_code = |cd; erro|
|000063c0| 72 5f 72 65 70 6f 72 74 | 65 64 20 3d 20 30 3b 7d |r_report|ed = 0;}|
|000063d0| 0a 58 23 64 65 66 69 6e | 65 20 73 65 74 5f 73 74 |.X#defin|e set_st|
|000063e0| 61 74 75 73 28 63 64 29 | 20 7b 65 72 72 6f 72 5f |atus(cd)| {error_|
|000063f0| 63 6f 64 65 20 3d 20 63 | 64 3b 7d 0a 45 4e 44 5f |code = c|d;}.END_|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.