home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: nwsmltcs.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file news-multicast/, mode 755 , uid 243 , gid 13 , size 0 , seconds 4436633464
| default
| |
98%
| file
| data
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 00 |news-mul|ticast/.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 33 36 36 33 33 | 0 | 4436633|
|00000090| 34 36 34 20 20 20 37 30 | 31 30 00 20 00 00 00 00 |464 70|10. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 53 |news-mul|ticast/S|
|00000210| 68 61 72 46 69 6c 65 2e | 48 65 61 64 65 72 73 00 |harFile.|Headers.|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000280| 20 20 20 31 36 34 34 20 | 20 34 34 33 36 36 33 33 | 1644 | 4436633|
|00000290| 34 36 34 20 20 31 32 30 | 37 34 00 20 00 00 00 00 |464 120|74. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 6e 65 77 73 | 2d 6d 75 6c 74 69 63 61 |=== news|-multica|
|00000410| 73 74 2e 73 68 61 72 20 | 3d 3d 3d 3d 3d 3d 3d 3d |st.shar |========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000430| 3d 0a 46 72 6f 6d 20 72 | 69 61 63 73 21 65 6f 73 |=.From r|iacs!eos|
|00000440| 21 61 67 61 74 65 21 75 | 63 62 76 61 78 21 74 75 |!agate!u|cbvax!tu|
|00000450| 74 2e 63 69 73 2e 6f 68 | 69 6f 2d 73 74 61 74 65 |t.cis.oh|io-state|
|00000460| 2e 65 64 75 21 6d 61 69 | 6c 72 75 73 21 75 66 6c |.edu!mai|lrus!ufl|
|00000470| 6f 72 69 64 61 21 69 6e | 64 72 69 21 6e 69 63 2e |orida!in|dri!nic.|
|00000480| 4d 52 2e 4e 45 54 21 73 | 72 63 73 69 70 21 6a 68 |MR.NET!s|rcsip!jh|
|00000490| 65 72 65 67 21 6d 61 72 | 6b 20 54 75 65 20 4d 61 |ereg!mar|k Tue Ma|
|000004a0| 79 20 31 36 20 31 34 3a | 33 38 3a 33 36 20 50 44 |y 16 14:|38:36 PD|
|000004b0| 54 20 31 39 38 39 0a 0a | 0a 44 75 65 20 74 6f 20 |T 1989..|.Due to |
|000004c0| 74 68 65 20 6c 61 72 67 | 65 20 6e 75 6d 62 65 72 |the larg|e number|
|000004d0| 20 6f 66 20 72 65 71 75 | 65 73 74 73 20 74 68 61 | of requ|ests tha|
|000004e0| 74 20 49 20 68 61 64 20 | 66 6f 72 20 74 68 69 73 |t I had |for this|
|000004f0| 20 73 6f 66 74 77 61 72 | 65 2c 20 49 20 68 61 76 | softwar|e, I hav|
|00000500| 65 0a 64 65 63 69 64 65 | 64 20 74 6f 20 70 6f 73 |e.decide|d to pos|
|00000510| 74 20 69 74 2e 20 20 49 | 20 64 69 64 20 6e 6f 74 |t it. I| did not|
|00000520| 20 77 72 69 74 65 20 69 | 74 2c 20 53 68 61 6e 65 | write i|t, Shane|
|00000530| 20 4d 63 43 61 72 72 6f | 6e 20 61 6e 64 20 53 74 | McCarro|n and St|
|00000540| 65 76 65 20 4d 63 44 6f | 77 65 6c 6c 0a 77 72 6f |eve McDo|well.wro|
|00000550| 74 65 20 69 74 2e 0a 0a | 57 65 2c 20 69 6e 20 4d |te it...|We, in M|
|00000560| 69 6e 6e 65 73 6f 74 61 | 2c 20 68 61 76 65 20 62 |innesota|, have b|
|00000570| 65 65 6e 20 75 73 69 6e | 67 20 74 68 69 73 20 73 |een usin|g this s|
|00000580| 6f 66 74 77 61 72 65 20 | 66 6f 72 20 74 68 65 20 |oftware |for the |
|00000590| 62 65 74 74 65 72 20 70 | 61 72 74 20 6f 66 20 33 |better p|art of 3|
|000005a0| 0a 79 65 61 72 73 20 77 | 69 74 68 6f 75 74 20 61 |.years w|ithout a|
|000005b0| 20 68 69 74 63 68 2e 20 | 20 49 74 20 6d 61 6b 65 | hitch. | It make|
|000005c0| 73 20 66 65 65 64 69 6e | 67 20 61 20 62 75 6e 63 |s feedin|g a bunc|
|000005d0| 68 20 6f 66 20 6e 65 77 | 73 20 73 69 74 65 73 20 |h of new|s sites |
|000005e0| 61 20 77 68 6f 6c 65 20 | 6c 6f 74 0a 65 61 73 69 |a whole |lot.easi|
|000005f0| 65 72 2e 20 20 49 66 20 | 79 6f 75 20 68 61 76 65 |er. If |you have|
|00000600| 20 63 6f 6d 6d 65 6e 74 | 73 20 6f 72 20 73 75 67 | comment|s or sug|
|00000610| 67 65 73 74 69 6f 6e 73 | 20 61 62 6f 75 74 20 74 |gestions| about t|
|00000620| 68 65 20 73 6f 66 74 77 | 61 72 65 2c 20 79 6f 75 |he softw|are, you|
|00000630| 20 63 61 6e 0a 64 69 72 | 65 63 74 20 74 68 65 6d | can.dir|ect them|
|00000640| 20 65 69 74 68 65 72 20 | 74 6f 20 53 68 61 6e 65 | either |to Shane|
|00000650| 20 28 61 68 62 79 40 62 | 75 6e 67 69 61 2e 6d 6e | (ahby@b|ungia.mn|
|00000660| 2e 6f 72 67 29 2c 20 6f | 72 20 74 6f 20 6d 65 0a |.org), o|r to me.|
|00000670| 28 6d 61 72 6b 40 6a 68 | 65 72 65 67 2e 6d 6e 2e |(mark@jh|ereg.mn.|
|00000680| 6f 72 67 29 2e 0a 0a 2d | 2d 20 0a 4d 61 72 6b 20 |org)...-|- .Mark |
|00000690| 48 2e 20 43 6f 6c 62 75 | 72 6e 20 20 20 20 20 20 |H. Colbu|rn |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 20 20 20 20 6d 61 72 6b | 40 6a 68 65 72 65 67 2e | mark|@jhereg.|
|000006c0| 6d 6e 2e 6f 72 67 0a 4d | 69 6e 6e 65 74 65 63 68 |mn.org.M|innetech|
|000006d0| 20 43 6f 6e 73 75 6c 74 | 69 6e 67 2c 20 49 6e 63 | Consult|ing, Inc|
|000006e0| 2e 0a 0a 20 20 20 20 20 | 20 6f 20 2f 20 20 20 20 |... | o / |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 6f 20 2f 20 20 20 20 | 20 20 20 20 20 20 20 20 | o / | |
|00000710| 20 20 20 20 20 20 20 20 | 6f 20 2f 0a 2d 2d 2d 2d | |o /.----|
|00000720| 2d 2d 20 78 20 2d 2d 2d | 2d 2d 2d 20 43 75 74 20 |-- x ---|--- Cut |
|00000730| 48 65 72 65 20 2d 2d 2d | 2d 2d 20 78 20 2d 2d 2d |Here ---|-- x ---|
|00000740| 2d 2d 20 43 75 74 20 48 | 65 72 65 20 2d 2d 2d 2d |-- Cut H|ere ----|
|00000750| 2d 20 78 20 2d 2d 2d 2d | 2d 20 43 75 74 20 48 65 |- x ----|- Cut He|
|00000760| 72 65 20 2d 2d 2d 2d 2d | 2d 0a 20 20 20 20 20 20 |re -----|-. |
|00000770| 6f 20 5c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o \ | |
|00000780| 20 20 20 20 20 20 20 20 | 6f 20 5c 20 20 20 20 20 | |o \ |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|000007a0| 20 5c 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 | \......|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 52 |news-mul|ticast/R|
|00000810| 45 41 44 4d 45 00 00 00 | 00 00 00 00 00 00 00 00 |EADME...|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000880| 20 20 31 30 31 36 36 20 | 20 34 34 33 36 36 33 33 | 10166 | 4436633|
|00000890| 34 35 37 20 20 31 30 30 | 30 33 00 20 00 00 00 00 |457 100|03. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 49 4e 53 54 41 4c 4c 41 | 54 49 4f 4e 0a 3d 3d 3d |INSTALLA|TION.===|
|00000a10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 0a 46 69 72 73 74 |========|=..First|
|00000a20| 2c 20 62 65 20 73 75 72 | 65 20 74 6f 20 63 75 73 |, be sur|e to cus|
|00000a30| 74 6f 6d 69 7a 65 20 4d | 61 6b 65 66 69 6c 65 20 |tomize M|akefile |
|00000a40| 66 6f 72 20 79 6f 75 72 | 20 73 69 74 65 2e 20 20 |for your| site. |
|00000a50| 54 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 73 68 |The vari|ables sh|
|00000a60| 6f 75 6c 64 0a 62 65 20 | 74 68 65 20 73 61 6d 65 |ould.be |the same|
|00000a70| 20 61 73 20 6e 65 77 73 | 20 32 2e 31 30 2e 33 20 | as news| 2.10.3 |
|00000a80| 61 6e 64 20 62 65 79 6f | 6e 64 2e 0a 0a 55 75 63 |and beyo|nd...Uuc|
|00000a90| 61 73 74 20 6d 61 79 20 | 68 61 76 65 20 74 6f 20 |ast may |have to |
|00000aa0| 62 65 20 63 75 73 74 6f | 6d 69 7a 65 64 20 66 6f |be custo|mized fo|
|00000ab0| 72 20 79 6f 75 20 73 69 | 74 65 20 73 6f 20 74 68 |r you si|te so th|
|00000ac0| 61 74 20 74 68 65 20 75 | 75 63 70 20 66 69 6c 65 |at the u|ucp file|
|00000ad0| 0a 6e 61 6d 65 73 20 74 | 68 61 74 20 61 72 65 20 |.names t|hat are |
|00000ae0| 75 73 65 64 20 61 72 65 | 20 72 65 63 6f 67 6e 69 |used are| recogni|
|00000af0| 7a 65 64 20 62 79 20 79 | 6f 75 72 20 75 75 63 69 |zed by y|our uuci|
|00000b00| 63 6f 2e 20 20 54 68 65 | 20 6f 6e 6c 79 20 72 65 |co. The| only re|
|00000b10| 61 6c 20 6f 70 74 69 6f | 6e 20 0a 69 73 20 48 44 |al optio|n .is HD|
|00000b20| 42 2e 20 20 53 69 74 65 | 73 20 72 75 6e 6e 69 6e |B. Site|s runnin|
|00000b30| 67 20 48 44 42 20 55 55 | 43 50 20 73 68 6f 75 6c |g HDB UU|CP shoul|
|00000b40| 64 20 6a 75 73 74 20 68 | 61 76 65 20 74 6f 20 64 |d just h|ave to d|
|00000b50| 65 66 69 6e 65 0a 48 44 | 42 20 69 6e 20 4d 61 6b |efine.HD|B in Mak|
|00000b60| 65 66 69 6c 65 2e 20 20 | 49 20 68 6f 70 65 20 74 |efile. |I hope t|
|00000b70| 68 61 74 20 74 68 69 73 | 20 77 6f 72 6b 73 20 3a |hat this| works :|
|00000b80| 2d 29 2e 20 20 49 66 20 | 79 6f 75 20 64 6f 6e 27 |-). If |you don'|
|00000b90| 74 20 68 61 76 65 20 48 | 44 42 2c 0a 74 68 65 20 |t have H|DB,.the |
|00000ba0| 6f 74 68 65 72 20 63 6f | 6e 66 69 67 75 72 61 74 |other co|nfigurat|
|00000bb0| 69 6f 6e 20 73 68 6f 75 | 6c 64 20 77 6f 72 6b 20 |ion shou|ld work |
|00000bc0| 6a 75 73 74 20 66 69 6e | 65 20 66 6f 72 20 79 6f |just fin|e for yo|
|00000bd0| 75 2e 20 20 54 68 65 72 | 65 20 61 72 65 20 74 77 |u. Ther|e are tw|
|00000be0| 6f 0a 47 52 41 44 45 20 | 76 61 6c 75 65 73 20 74 |o.GRADE |values t|
|00000bf0| 68 61 74 20 61 72 65 20 | 64 65 66 69 6e 65 64 20 |hat are |defined |
|00000c00| 69 6e 20 74 68 65 20 66 | 69 6c 65 20 75 75 63 61 |in the f|ile uuca|
|00000c10| 73 74 2e 68 2e 20 20 54 | 68 65 73 65 20 61 72 65 |st.h. T|hese are|
|00000c20| 20 74 68 65 0a 67 72 61 | 64 65 20 76 61 6c 75 65 | the.gra|de value|
|00000c30| 73 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 75 73 |s that c|an be us|
|00000c40| 65 64 20 62 79 20 34 2e | 33 20 42 53 44 20 74 6f |ed by 4.|3 BSD to|
|00000c50| 20 72 65 67 75 6c 61 74 | 65 20 74 72 61 66 66 69 | regulat|e traffi|
|00000c60| 63 20 66 6c 6f 77 2e 20 | 20 49 6e 0a 74 68 65 20 |c flow. | In.the |
|00000c70| 63 61 73 65 20 6f 66 20 | 75 75 63 61 73 74 20 74 |case of |uucast t|
|00000c80| 68 65 79 20 73 68 6f 75 | 6c 64 20 62 65 20 75 73 |hey shou|ld be us|
|00000c90| 65 64 20 74 6f 20 67 75 | 61 72 61 6e 74 65 65 20 |ed to gu|arantee |
|00000ca0| 61 20 75 6e 69 71 75 65 | 20 6a 6f 62 20 66 69 6c |a unique| job fil|
|00000cb0| 65 0a 6e 61 6d 65 2e 20 | 20 49 66 20 79 6f 75 72 |e.name. | If your|
|00000cc0| 20 75 75 78 20 67 65 6e | 65 72 61 74 65 73 20 6a | uux gen|erates j|
|00000cd0| 6f 62 73 20 6c 69 6b 65 | 3a 0a 0a 09 43 2e 69 68 |obs like|:...C.ih|
|00000ce0| 6e 70 34 41 44 38 34 37 | 31 09 6c 6f 63 61 6c 20 |np4AD847|1.local |
|00000cf0| 63 6f 6d 6d 61 6e 64 20 | 66 69 6c 65 0a 09 44 2e |command |file..D.|
|00000d00| 6d 65 63 63 74 73 58 41 | 38 34 37 31 09 72 65 6d |mecctsXA|8471.rem|
|00000d10| 6f 74 65 20 63 6f 6d 6d | 61 6e 64 20 66 69 6c 65 |ote comm|and file|
|00000d20| 20 28 62 65 63 6f 6d 65 | 73 20 58 2e 20 66 69 6c | (become|s X. fil|
|00000d30| 65 20 6f 6e 20 69 68 6e | 70 34 29 0a 09 44 2e 69 |e on ihn|p4)..D.i|
|00000d40| 68 6e 70 34 42 43 38 34 | 37 31 09 64 61 74 61 20 |hnp4BC84|71.data |
|00000d50| 74 6f 20 74 72 61 6e 73 | 6d 69 74 0a 0a 74 68 65 |to trans|mit..the|
|00000d60| 6e 20 74 68 65 20 67 72 | 61 64 65 20 69 73 20 41 |n the gr|ade is A|
|00000d70| 44 2e 20 20 43 68 6f 6f | 73 65 20 61 20 67 72 61 |D. Choo|se a gra|
|00000d80| 64 65 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 20 |de that |doesn't |
|00000d90| 63 6f 6e 66 6c 69 63 74 | 20 77 69 74 68 20 74 68 |conflict| with th|
|00000da0| 69 73 2e 0a 54 68 65 20 | 64 65 66 61 75 6c 74 73 |is..The |defaults|
|00000db0| 20 61 72 65 20 4d 41 20 | 61 6e 64 20 58 4d 2e 20 | are MA |and XM. |
|00000dc0| 20 55 75 63 61 73 74 20 | 77 6f 75 6c 64 20 68 61 | Uucast |would ha|
|00000dd0| 76 65 20 67 65 6e 65 72 | 61 74 65 64 3a 0a 0a 09 |ve gener|ated:...|
|00000de0| 43 2e 69 68 6e 70 34 4d | 41 38 34 37 31 09 6c 6f |C.ihnp4M|A8471.lo|
|00000df0| 63 61 6c 20 63 6f 6d 6d | 61 6e 64 20 66 69 6c 65 |cal comm|and file|
|00000e00| 0a 09 44 2e 6d 65 63 63 | 74 73 58 4d 38 34 37 31 |..D.mecc|tsXM8471|
|00000e10| 09 72 65 6d 6f 74 65 20 | 63 6f 6d 6d 61 6e 64 20 |.remote |command |
|00000e20| 66 69 6c 65 20 28 62 65 | 63 6f 6d 65 73 20 58 2e |file (be|comes X.|
|00000e30| 20 66 69 6c 65 20 6f 6e | 20 69 68 6e 70 34 29 0a | file on| ihnp4).|
|00000e40| 09 44 2e 69 68 6e 70 34 | 4d 41 38 34 37 31 09 64 |.D.ihnp4|MA8471.d|
|00000e50| 61 74 61 20 74 6f 20 74 | 72 61 6e 73 6d 69 74 0a |ata to t|ransmit.|
|00000e60| 0a 4e 6f 74 65 20 74 68 | 61 74 20 77 68 69 6c 65 |.Note th|at while|
|00000e70| 20 74 68 65 20 67 72 61 | 64 65 73 20 69 6e 20 74 | the gra|des in t|
|00000e80| 68 65 20 64 61 74 61 20 | 61 6e 64 20 6c 6f 63 61 |he data |and loca|
|00000e90| 6c 20 63 6f 6d 6d 61 6e | 64 20 66 69 6c 65 73 20 |l comman|d files |
|00000ea0| 61 72 65 20 6e 6f 74 0a | 64 69 66 66 65 72 65 6e |are not.|differen|
|00000eb0| 74 2c 20 55 55 43 50 20 | 64 6f 65 73 6e 27 74 20 |t, UUCP |doesn't |
|00000ec0| 73 65 65 6d 20 74 6f 20 | 63 61 72 65 20 61 62 6f |seem to |care abo|
|00000ed0| 75 74 20 74 68 69 73 2e | 20 20 49 66 20 69 74 20 |ut this.| If it |
|00000ee0| 63 61 72 65 73 20 6f 6e | 20 79 6f 75 72 0a 73 79 |cares on| your.sy|
|00000ef0| 73 74 65 6d 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |stem, yo|u should|
|00000f00| 20 64 65 66 69 6e 65 20 | 61 20 74 68 69 72 64 20 | define |a third |
|00000f10| 67 72 61 64 65 20 28 47 | 52 41 44 45 33 29 20 61 |grade (G|RADE3) a|
|00000f20| 6e 64 20 75 73 65 20 74 | 68 61 74 20 61 73 20 77 |nd use t|hat as w|
|00000f30| 65 6c 6c 2e 0a 41 6c 73 | 6f 20 6e 6f 74 65 20 74 |ell..Als|o note t|
|00000f40| 68 61 74 20 74 68 65 20 | 72 65 6d 6f 74 65 20 63 |hat the |remote c|
|00000f50| 6f 6d 6d 61 6e 64 20 66 | 69 6c 65 20 75 73 75 61 |ommand f|ile usua|
|00000f60| 6c 6c 79 20 6d 75 73 74 | 20 68 61 76 65 20 61 6e |lly must| have an|
|00000f70| 20 58 20 69 6e 20 69 74 | 27 73 0a 6e 61 6d 65 20 | X in it|'s.name |
|00000f80| 73 6f 20 74 68 61 74 20 | 69 74 20 69 73 20 72 65 |so that |it is re|
|00000f90| 63 6f 67 6e 69 7a 65 64 | 20 61 73 20 73 75 63 68 |cognized| as such|
|00000fa0| 20 62 79 20 74 68 65 20 | 73 79 73 74 65 6d 2e 20 | by the |system. |
|00000fb0| 20 54 68 69 73 20 69 73 | 20 61 20 6c 69 74 74 6c | This is| a littl|
|00000fc0| 65 0a 63 75 72 69 6f 75 | 73 2c 20 62 75 74 20 73 |e.curiou|s, but s|
|00000fd0| 69 6e 63 65 20 49 20 64 | 6f 6e 27 74 20 68 61 76 |ince I d|on't hav|
|00000fe0| 65 20 73 6f 75 72 63 65 | 20 49 20 63 61 6e 27 74 |e source| I can't|
|00000ff0| 20 70 75 7a 7a 6c 65 20 | 69 74 20 6f 75 74 20 6f | puzzle |it out o|
|00001000| 6e 20 6d 79 0a 6f 77 6e | 2e 0a 0a 4f 6e 20 55 6c |n my.own|...On Ul|
|00001010| 74 72 69 78 20 73 79 73 | 74 65 6d 73 20 74 68 65 |trix sys|tems the|
|00001020| 20 55 55 43 50 20 64 61 | 74 61 66 69 6c 65 73 20 | UUCP da|tafiles |
|00001030| 61 72 65 20 69 6e 20 61 | 20 73 74 72 61 6e 67 65 |are in a| strange|
|00001040| 20 70 6c 61 63 65 2c 20 | 61 6e 64 20 6a 6f 62 0a | place, |and job.|
|00001050| 66 69 6c 65 73 20 61 72 | 65 20 69 6e 20 64 69 66 |files ar|e in dif|
|00001060| 66 65 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 69 |ferent d|irectori|
|00001070| 65 73 2e 20 20 54 68 69 | 73 20 63 61 6e 20 61 6c |es. Thi|s can al|
|00001080| 6c 20 62 65 20 73 70 65 | 63 69 66 69 65 64 20 62 |l be spe|cified b|
|00001090| 79 0a 63 68 61 6e 67 69 | 6e 67 20 74 68 65 20 43 |y.changi|ng the C|
|000010a0| 44 49 52 2c 20 44 44 49 | 52 2c 20 61 6e 64 20 58 |DIR, DDI|R, and X|
|000010b0| 44 49 52 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |DIR defi|nitions |
|000010c0| 69 6e 20 75 75 63 61 73 | 74 2e 68 2e 20 20 54 68 |in uucas|t.h. Th|
|000010d0| 65 72 65 20 6d 61 79 0a | 62 65 20 6f 74 68 65 72 |ere may.|be other|
|000010e0| 20 73 79 73 74 65 6d 73 | 20 77 68 65 72 65 20 74 | systems| where t|
|000010f0| 68 69 73 20 69 73 20 77 | 65 69 72 64 20 61 73 20 |his is w|eird as |
|00001100| 77 65 6c 6c 2e 20 20 49 | 6e 20 61 6e 79 20 63 61 |well. I|n any ca|
|00001110| 73 65 2c 20 79 6f 75 20 | 63 61 6e 0a 73 70 65 63 |se, you |can.spec|
|00001120| 69 66 79 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |ify the |location|
|00001130| 20 6f 66 20 65 61 63 68 | 20 74 79 70 65 20 6f 66 | of each| type of|
|00001140| 20 66 69 6c 65 20 69 6e | 64 69 76 69 64 75 61 6c | file in|dividual|
|00001150| 6c 79 2e 20 20 53 65 65 | 20 75 75 63 61 73 74 2e |ly. See| uucast.|
|00001160| 68 0a 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |h.for mo|re infor|
|00001170| 6d 61 74 69 6f 6e 2e 0a | 0a 41 6c 6c 20 6f 66 20 |mation..|.All of |
|00001180| 74 68 69 73 20 73 74 75 | 66 66 20 69 73 20 64 69 |this stu|ff is di|
|00001190| 66 66 65 72 65 6e 74 20 | 66 6f 72 20 65 61 63 68 |fferent |for each|
|000011a0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|000011b0| 6f 66 20 75 75 63 70 2c | 20 73 6f 0a 49 20 68 61 |of uucp,| so.I ha|
|000011c0| 76 65 20 6d 61 64 65 20 | 69 74 20 61 73 20 65 61 |ve made |it as ea|
|000011d0| 73 79 20 61 73 20 70 6f | 73 73 69 62 6c 65 20 74 |sy as po|ssible t|
|000011e0| 6f 20 63 68 61 6e 67 65 | 2e 20 20 49 66 20 79 6f |o change|. If yo|
|000011f0| 75 20 6e 65 65 64 20 74 | 6f 20 68 61 63 6b 20 69 |u need t|o hack i|
|00001200| 74 20 66 6f 72 20 79 6f | 75 72 0a 73 79 73 74 65 |t for yo|ur.syste|
|00001210| 6d 2c 20 70 6c 65 61 73 | 65 20 73 65 6e 64 20 74 |m, pleas|e send t|
|00001220| 68 6f 73 65 20 68 61 63 | 6b 73 20 74 6f 20 61 68 |hose hac|ks to ah|
|00001230| 62 79 40 4d 45 43 43 2e | 43 4f 4d 2c 20 73 6f 20 |by@MECC.|COM, so |
|00001240| 49 20 63 61 6e 20 69 6e | 63 6f 72 70 6f 72 61 74 |I can in|corporat|
|00001250| 65 20 74 68 65 6d 20 69 | 6e 74 6f 0a 66 75 74 75 |e them i|nto.futu|
|00001260| 72 65 20 72 65 6c 65 61 | 73 65 73 2e 0a 0a 41 20 |re relea|ses...A |
|00001270| 77 6f 72 64 20 6f 66 20 | 77 61 72 6e 69 6e 67 3a |word of |warning:|
|00001280| 20 20 79 6f 75 20 57 49 | 4c 4c 20 68 61 76 65 20 | you WI|LL have |
|00001290| 74 72 6f 75 62 6c 65 20 | 69 6e 73 74 61 6c 6c 69 |trouble |installi|
|000012a0| 6e 67 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |ng this |software|
|000012b0| 2e 20 20 49 74 0a 69 73 | 20 6e 6f 74 20 70 65 72 |. It.is| not per|
|000012c0| 66 65 63 74 2c 20 6e 6f | 72 20 69 73 20 69 74 20 |fect, no|r is it |
|000012d0| 66 6f 72 67 69 76 69 6e | 67 2e 20 20 49 66 20 79 |forgivin|g. If y|
|000012e0| 6f 75 20 61 72 65 20 75 | 6e 73 75 72 65 20 61 62 |ou are u|nsure ab|
|000012f0| 6f 75 74 20 74 68 65 0a | 73 74 61 62 69 6c 69 74 |out the.|stabilit|
|00001300| 79 20 6f 66 20 61 6e 79 | 20 6f 66 20 74 68 65 20 |y of any| of the |
|00001310| 6d 6f 64 75 6c 65 73 20 | 6f 6e 20 79 6f 75 72 20 |modules |on your |
|00001320| 73 79 73 74 65 6d 2c 20 | 74 68 65 72 65 20 61 72 |system, |there ar|
|00001330| 65 20 77 61 79 73 20 69 | 6e 20 65 61 63 68 0a 6f |e ways i|n each.o|
|00001340| 66 20 74 68 65 6d 20 74 | 6f 20 70 72 65 73 65 72 |f them t|o preser|
|00001350| 76 65 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ve the o|riginal |
|00001360| 73 74 61 74 65 20 6f 66 | 20 74 68 69 6e 67 73 2e |state of| things.|
|00001370| 20 20 50 6c 65 61 73 65 | 20 62 65 20 63 61 72 65 | Please| be care|
|00001380| 66 75 6c 0a 77 68 65 6e | 20 75 73 69 6e 67 20 74 |ful.when| using t|
|00001390| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2c 20 61 73 |his soft|ware, as|
|000013a0| 20 69 74 20 63 61 6e 20 | 62 65 20 76 65 72 79 20 | it can |be very |
|000013b0| 64 65 74 72 69 6d 65 6e | 74 61 6c 20 74 6f 20 79 |detrimen|tal to y|
|000013c0| 6f 75 72 20 6e 65 77 73 | 0a 73 79 73 74 65 6d 2c |our news|.system,|
|000013d0| 20 61 73 20 77 65 6c 6c | 20 61 73 20 61 6c 6c 20 | as well| as all |
|000013e0| 6f 66 20 79 6f 75 72 20 | 64 6f 77 6e 73 74 72 65 |of your |downstre|
|000013f0| 61 6d 20 73 69 74 65 73 | 2e 0a 0a 41 6c 73 6f 20 |am sites|...Also |
|00001400| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 72 65 20 |note tha|t there |
|00001410| 69 73 20 6e 6f 20 6d 61 | 6b 65 20 69 6e 73 74 61 |is no ma|ke insta|
|00001420| 6c 6c 20 6f 70 74 69 6f | 6e 20 69 6e 20 74 68 65 |ll optio|n in the|
|00001430| 20 4d 61 6b 65 66 69 6c | 65 2e 20 20 54 68 69 73 | Makefil|e. This|
|00001440| 0a 69 73 20 72 65 61 6c | 6c 79 20 6a 75 73 74 20 |.is real|ly just |
|00001450| 6c 61 7a 69 6e 65 73 73 | 20 6f 6e 20 6d 79 20 70 |laziness| on my p|
|00001460| 61 72 74 2e 20 20 4d 6f | 76 65 20 61 6c 6c 20 6f |art. Mo|ve all o|
|00001470| 66 20 74 68 65 20 67 65 | 6e 65 72 61 74 65 64 20 |f the ge|nerated |
|00001480| 66 69 6c 65 73 0a 69 6e | 74 6f 20 4c 49 42 44 49 |files.in|to LIBDI|
|00001490| 52 2e 20 20 52 65 6d 65 | 6d 62 65 72 20 74 68 61 |R. Reme|mber tha|
|000014a0| 74 20 75 75 63 61 73 74 | 20 4d 55 53 54 20 62 65 |t uucast| MUST be|
|000014b0| 20 73 75 69 64 20 74 6f | 20 75 75 63 70 20 73 6f | suid to| uucp so|
|000014c0| 20 74 68 61 74 20 69 74 | 20 63 61 6e 0a 67 65 6e | that it| can.gen|
|000014d0| 65 72 61 74 65 20 6a 6f | 62 20 66 69 6c 65 73 20 |erate jo|b files |
|000014e0| 77 69 74 68 20 74 68 65 | 20 63 6f 72 72 65 63 74 |with the| correct|
|000014f0| 20 6f 77 6e 65 72 73 68 | 69 70 2e 0a 0a 0a 4f 50 | ownersh|ip....OP|
|00001500| 45 52 41 54 49 4f 4e 0a | 3d 3d 3d 3d 3d 3d 3d 3d |ERATION.|========|
|00001510| 3d 0a 0a 45 78 61 6d 70 | 6c 65 20 73 79 73 20 66 |=..Examp|le sys f|
|00001520| 69 6c 65 2e 20 20 0a 0a | 6d 65 63 63 73 64 3a 6d |ile. ..|meccsd:m|
|00001530| 6f 64 2c 75 73 61 2c 6e | 61 2c 6e 65 74 2c 77 6f |od,usa,n|a,net,wo|
|00001540| 72 6c 64 2c 63 6f 6d 70 | 2c 6e 65 77 73 2c 73 63 |rld,comp|,news,sc|
|00001550| 69 2c 72 65 63 2c 6d 69 | 73 63 2c 73 6f 63 2c 74 |i,rec,mi|sc,soc,t|
|00001560| 61 6c 6b 2c 74 6f 2e 6d | 65 63 63 73 64 3a 4d 3a |alk,to.m|eccsd:M:|
|00001570| 6d 61 73 74 65 72 0a 6b | 61 72 61 75 3a 6e 65 74 |master.k|arau:net|
|00001580| 2e 73 6f 75 72 63 65 73 | 2c 6e 65 77 73 2e 61 64 |.sources|,news.ad|
|00001590| 6d 69 6e 2c 6e 65 77 73 | 2e 73 6f 66 74 77 61 72 |min,news|.softwar|
|000015a0| 65 2e 62 2c 74 6f 2e 6b | 61 72 61 75 3a 4d 3a 6d |e.b,to.k|arau:M:m|
|000015b0| 61 73 74 65 72 0a 6e 69 | 73 3a 6d 6f 64 2c 75 73 |aster.ni|s:mod,us|
|000015c0| 61 2c 6e 61 2c 6e 65 74 | 2c 77 6f 72 6c 64 2c 63 |a,na,net|,world,c|
|000015d0| 6f 6d 70 2c 6e 65 77 73 | 2c 73 63 69 2c 72 65 63 |omp,news|,sci,rec|
|000015e0| 2c 6d 69 73 63 2c 73 6f | 63 2c 74 61 6c 6b 2c 74 |,misc,so|c,talk,t|
|000015f0| 6f 2e 6e 69 73 3a 4d 3a | 6d 61 73 74 65 72 0a 7a |o.nis:M:|master.z|
|00001600| 65 6b 65 3a 6d 6f 64 2c | 75 73 61 2c 6e 61 2c 6e |eke:mod,|usa,na,n|
|00001610| 65 74 2c 77 6f 72 6c 64 | 2c 63 6f 6d 70 2c 6e 65 |et,world|,comp,ne|
|00001620| 77 73 2c 73 63 69 2c 72 | 65 63 2c 6d 69 73 63 2c |ws,sci,r|ec,misc,|
|00001630| 73 6f 63 2c 74 61 6c 6b | 2c 74 6f 2e 7a 65 6b 65 |soc,talk|,to.zeke|
|00001640| 3a 4d 3a 6d 61 73 74 65 | 72 0a 6d 61 73 74 65 72 |:M:maste|r.master|
|00001650| 3a 61 6c 6c 3a 4f 46 3a | 2f 75 73 72 2f 73 70 6f |:all:OF:|/usr/spo|
|00001660| 6f 6c 2f 62 61 74 63 68 | 2f 6d 61 73 74 65 72 0a |ol/batch|/master.|
|00001670| 0a 54 68 65 20 4d 20 69 | 6e 64 69 63 61 74 65 73 |.The M i|ndicates|
|00001680| 20 74 68 61 74 20 74 68 | 65 20 73 69 74 65 20 69 | that th|e site i|
|00001690| 73 20 62 65 69 6e 67 20 | 6d 75 6c 74 69 63 61 73 |s being |multicas|
|000016a0| 74 20 74 6f 2e 20 20 54 | 68 65 0a 77 6f 72 64 20 |t to. T|he.word |
|000016b0| 6d 61 73 74 65 72 20 69 | 73 20 74 68 65 20 6e 61 |master i|s the na|
|000016c0| 6d 65 20 6f 66 20 61 20 | 64 75 6d 6d 79 20 65 6e |me of a |dummy en|
|000016d0| 74 72 79 20 69 6e 20 74 | 68 65 20 73 79 73 20 66 |try in t|he sys f|
|000016e0| 69 6c 65 20 77 68 69 63 | 68 20 67 69 76 65 73 0a |ile whic|h gives.|
|000016f0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00001700| 61 62 6f 75 74 20 77 68 | 61 74 20 74 6f 20 64 6f |about wh|at to do|
|00001710| 20 77 69 74 68 20 74 68 | 65 73 65 20 6d 75 6c 74 | with th|ese mult|
|00001720| 69 20 63 61 73 74 20 73 | 69 74 65 73 2e 20 20 53 |i cast s|ites. S|
|00001730| 69 74 65 0a 22 6d 61 73 | 74 65 72 22 20 69 73 20 |ite."mas|ter" is |
|00001740| 72 65 63 65 69 76 69 6e | 67 20 61 6c 6c 20 61 72 |receivin|g all ar|
|00001750| 74 69 63 6c 65 73 2c 20 | 69 73 20 74 68 65 20 64 |ticles, |is the d|
|00001760| 65 73 74 69 6e 61 74 69 | 6f 6e 20 6f 66 20 61 20 |estinati|on of a |
|00001770| 6d 75 6c 74 69 63 61 73 | 74 0a 28 4f 29 20 61 6e |multicas|t.(O) an|
|00001780| 64 20 69 73 20 61 20 62 | 61 74 63 68 65 64 20 66 |d is a b|atched f|
|00001790| 65 65 64 20 28 46 29 2e | 20 20 54 68 65 20 66 69 |eed (F).| The fi|
|000017a0| 6c 65 20 69 74 20 70 6c | 61 63 65 73 20 74 68 69 |le it pl|aces thi|
|000017b0| 6e 67 73 20 69 6e 74 6f | 20 69 73 0a 2f 75 73 72 |ngs into| is./usr|
|000017c0| 2f 73 70 6f 6f 6c 2f 62 | 61 74 63 68 2f 6d 61 73 |/spool/b|atch/mas|
|000017d0| 74 65 72 2c 20 6a 75 73 | 74 20 6c 69 6b 65 20 61 |ter, jus|t like a|
|000017e0| 20 6e 6f 72 6d 61 6c 20 | 62 61 74 63 68 65 64 20 | normal |batched |
|000017f0| 65 6e 74 72 79 2e 0a 0a | 49 6e 20 79 6f 75 72 20 |entry...|In your |
|00001800| 63 72 6f 6e 74 61 62 2c | 20 72 65 70 6c 61 63 65 |crontab,| replace|
|00001810| 20 74 68 65 20 73 65 6e | 64 62 61 74 63 68 65 73 | the sen|dbatches|
|00001820| 20 77 69 74 68 20 73 6f | 6d 65 74 68 69 6e 67 20 | with so|mething |
|00001830| 6c 69 6b 65 3a 0a 0a 09 | 35 35 20 31 38 2d 35 20 |like:...|55 18-5 |
|00001840| 2a 20 2a 20 2a 20 63 61 | 74 20 2f 75 73 72 2f 73 |* * * ca|t /usr/s|
|00001850| 70 6f 6f 6c 2f 62 61 74 | 63 68 2f 6d 61 73 74 65 |pool/bat|ch/maste|
|00001860| 72 20 3e 3e 20 2f 75 73 | 72 2f 73 70 6f 6f 6c 2f |r >> /us|r/spool/|
|00001870| 62 61 74 63 68 2f 68 6f | 6c 64 3b 20 2f 75 73 72 |batch/ho|ld; /usr|
|00001880| 2f 6c 69 62 2f 6e 65 77 | 73 2f 6d 75 6c 74 69 62 |/lib/new|s/multib|
|00001890| 61 74 63 68 20 2d 63 20 | 6d 61 73 74 65 72 20 3e |atch -c |master >|
|000018a0| 3e 20 2f 75 73 72 2f 6c | 69 62 2f 63 72 6f 6e 2f |> /usr/l|ib/cron/|
|000018b0| 63 61 73 74 2d 6c 6f 67 | 0a 0a 54 68 69 73 20 70 |cast-log|..This p|
|000018c0| 72 65 73 65 72 76 65 73 | 20 74 68 65 20 62 61 74 |reserves| the bat|
|000018d0| 63 68 20 66 69 6c 65 20 | 28 6a 75 73 74 20 69 6e |ch file |(just in|
|000018e0| 20 63 61 73 65 29 20 61 | 6e 64 20 74 68 65 6e 20 | case) a|nd then |
|000018f0| 6d 75 6c 74 69 62 61 74 | 63 68 65 73 20 74 68 65 |multibat|ches the|
|00001900| 0a 61 72 74 69 63 6c 65 | 73 20 69 6e 64 69 63 61 |.article|s indica|
|00001910| 74 65 64 20 69 6e 20 66 | 69 6c 65 20 6d 61 73 74 |ted in f|ile mast|
|00001920| 65 72 20 63 6f 6d 70 72 | 65 73 73 65 64 20 28 2d |er compr|essed (-|
|00001930| 63 20 66 6c 61 67 20 66 | 6f 72 20 6d 75 6c 74 69 |c flag f|or multi|
|00001940| 73 65 6e 64 29 2e 0a 0a | 52 65 6d 65 6d 62 65 72 |send)...|Remember|
|00001950| 20 74 68 61 74 20 6d 75 | 6c 74 69 62 61 74 63 68 | that mu|ltibatch|
|00001960| 20 63 61 6c 6c 73 20 74 | 68 65 20 73 63 72 69 70 | calls t|he scrip|
|00001970| 74 20 6d 75 6c 74 69 73 | 65 6e 64 2c 20 61 6e 64 |t multis|end, and|
|00001980| 20 65 78 70 65 63 74 73 | 0a 6d 75 6c 74 69 73 65 | expects|.multise|
|00001990| 6e 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |nd to be| in the |
|000019a0| 24 28 4c 49 42 44 49 52 | 29 20 64 69 72 65 63 74 |$(LIBDIR|) direct|
|000019b0| 6f 72 79 20 66 6f 72 20 | 6e 65 77 73 2e 20 20 4d |ory for |news. M|
|000019c0| 75 6c 74 69 73 65 6e 64 | 20 63 61 6c 6c 73 0a 75 |ultisend| calls.u|
|000019d0| 75 63 61 73 74 2c 20 77 | 68 69 63 68 20 73 68 6f |ucast, w|hich sho|
|000019e0| 75 6c 64 20 62 65 20 69 | 6e 20 74 68 65 20 70 61 |uld be i|n the pa|
|000019f0| 74 68 20 6f 72 20 69 6e | 20 79 6f 75 72 20 24 28 |th or in| your $(|
|00001a00| 4c 49 42 44 49 52 29 20 | 64 69 72 65 63 74 6f 72 |LIBDIR) |director|
|00001a10| 79 2e 0a 0a 47 6f 6f 64 | 20 6c 75 63 6b 21 20 20 |y...Good| luck! |
|00001a20| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 79 20 |If you h|ave any |
|00001a30| 70 72 6f 62 6c 65 6d 73 | 2c 20 70 6c 65 61 73 65 |problems|, please|
|00001a40| 20 64 72 6f 70 20 6d 65 | 20 61 20 6c 69 6e 65 2e | drop me| a line.|
|00001a50| 0a 0a 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |..Copyri|ght (C) |
|00001a60| 53 68 61 6e 65 20 4d 63 | 43 61 72 72 6f 6e 2c 20 |Shane Mc|Carron, |
|00001a70| 31 39 38 37 2e 0a 00 00 | 00 00 00 00 00 00 00 00 |1987....|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 4d |news-mul|ticast/M|
|00001c10| 61 6b 65 66 69 6c 65 00 | 00 00 00 00 00 00 00 00 |akefile.|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00001c80| 20 20 20 31 34 31 32 20 | 20 34 34 33 36 36 33 33 | 1412 | 4436633|
|00001c90| 34 36 30 20 20 31 30 35 | 32 37 00 20 00 00 00 00 |460 105|27. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 23 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 6d |# Makefi|le for m|
|00001e10| 75 6c 74 69 62 61 74 63 | 68 20 61 6e 64 20 75 75 |ultibatc|h and uu|
|00001e20| 63 61 73 74 2e 0a 23 0a | 23 20 43 6f 70 79 72 69 |cast..#.|# Copyri|
|00001e30| 67 68 74 20 28 43 29 20 | 53 68 61 6e 65 20 4d 63 |ght (C) |Shane Mc|
|00001e40| 43 61 72 72 6f 6e 2c 20 | 31 39 38 37 2e 0a 23 0a |Carron, |1987..#.|
|00001e50| 23 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 20 |# Note t|hat the |
|00001e60| 73 79 6d 62 6f 6c 73 20 | 75 73 65 64 20 68 65 72 |symbols |used her|
|00001e70| 65 20 61 72 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |e are co|mpatible|
|00001e80| 20 77 69 74 68 20 74 68 | 6f 73 65 20 6f 66 0a 23 | with th|ose of.#|
|00001e90| 20 6e 65 77 73 20 32 2e | 31 30 2e 33 20 61 6e 64 | news 2.|10.3 and|
|00001ea0| 20 62 65 79 6f 6e 64 2e | 2e 2e 0a 0a 23 20 44 69 | beyond.|....# Di|
|00001eb0| 72 65 63 74 6f 72 79 20 | 77 68 65 72 65 20 6e 65 |rectory |where ne|
|00001ec0| 77 73 20 62 61 74 63 68 | 20 66 69 6c 65 73 20 61 |ws batch| files a|
|00001ed0| 72 65 20 6b 65 70 74 2e | 0a 42 41 54 43 48 44 49 |re kept.|.BATCHDI|
|00001ee0| 52 20 3d 20 2f 75 73 72 | 2f 73 70 6f 6f 6c 2f 62 |R = /usr|/spool/b|
|00001ef0| 61 74 63 68 0a 0a 23 20 | 44 69 72 65 63 74 6f 72 |atch..# |Director|
|00001f00| 79 20 77 69 74 68 20 6e | 65 77 73 20 73 6f 66 74 |y with n|ews soft|
|00001f10| 77 61 72 65 20 69 73 20 | 6b 65 70 74 2e 0a 4c 49 |ware is |kept..LI|
|00001f20| 42 44 49 52 20 3d 20 2f | 75 73 72 2f 6c 69 62 2f |BDIR = /|usr/lib/|
|00001f30| 6e 65 77 73 0a 0a 23 20 | 44 65 66 69 6e 65 20 57 |news..# |Define W|
|00001f40| 41 4e 54 5a 20 69 66 20 | 79 6f 75 20 64 6f 6e 27 |ANTZ if |you don'|
|00001f50| 74 20 77 61 6e 74 20 75 | 75 78 20 63 6f 6d 70 6c |t want u|ux compl|
|00001f60| 65 74 69 6f 6e 20 6e 6f | 74 69 63 65 73 20 66 72 |etion no|tices fr|
|00001f70| 6f 6d 20 6f 74 68 65 72 | 20 73 79 73 74 65 6d 73 |om other| systems|
|00001f80| 2e 0a 44 45 46 53 20 3d | 09 2d 44 42 41 54 43 48 |..DEFS =|.-DBATCH|
|00001f90| 44 49 52 3d 5c 22 24 28 | 42 41 54 43 48 44 49 52 |DIR=\"$(|BATCHDIR|
|00001fa0| 29 5c 22 20 2d 44 4c 49 | 42 44 49 52 3d 5c 22 24 |)\" -DLI|BDIR=\"$|
|00001fb0| 28 4c 49 42 44 49 52 29 | 5c 22 20 2d 44 57 41 4e |(LIBDIR)|\" -DWAN|
|00001fc0| 54 5a 0a 43 46 4c 41 47 | 53 20 3d 20 2d 4f 20 2d |TZ.CFLAG|S = -O -|
|00001fd0| 44 48 44 42 0a 0a 46 49 | 4c 45 53 20 3d 20 6d 75 |DHDB..FI|LES = mu|
|00001fe0| 6c 74 69 62 61 74 63 68 | 20 6d 75 6c 74 69 73 65 |ltibatch| multise|
|00001ff0| 6e 64 20 75 75 63 61 73 | 74 0a 0a 61 6c 6c 3a 20 |nd uucas|t..all: |
|00002000| 24 28 46 49 4c 45 53 29 | 0a 0a 6d 75 6c 74 69 62 |$(FILES)|..multib|
|00002010| 61 74 63 68 3a 20 4d 61 | 6b 65 66 69 6c 65 0a 09 |atch: Ma|kefile..|
|00002020| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00002030| 24 28 44 45 46 53 29 20 | 6d 75 6c 74 69 62 61 74 |$(DEFS) |multibat|
|00002040| 63 68 2e 63 20 2d 6f 20 | 6d 75 6c 74 69 62 61 74 |ch.c -o |multibat|
|00002050| 63 68 0a 0a 6d 75 6c 74 | 69 73 65 6e 64 3a 20 4d |ch..mult|isend: M|
|00002060| 61 6b 65 66 69 6c 65 20 | 6d 75 6c 74 69 73 65 6e |akefile |multisen|
|00002070| 64 2e 73 68 0a 09 73 65 | 64 20 2d 65 20 27 73 3b |d.sh..se|d -e 's;|
|00002080| 4c 49 42 44 49 52 3b 24 | 28 4c 49 42 44 49 52 29 |LIBDIR;$|(LIBDIR)|
|00002090| 3b 67 27 20 3c 20 6d 75 | 6c 74 69 73 65 6e 64 2e |;g' < mu|ltisend.|
|000020a0| 73 68 20 3e 20 6d 75 6c | 74 69 73 65 6e 64 0a 09 |sh > mul|tisend..|
|000020b0| 63 68 6d 6f 64 20 2b 78 | 20 6d 75 6c 74 69 73 65 |chmod +x| multise|
|000020c0| 6e 64 0a 0a 75 75 63 61 | 73 74 3a 20 4d 61 6b 65 |nd..uuca|st: Make|
|000020d0| 66 69 6c 65 20 75 75 63 | 61 73 74 2e 68 0a 09 24 |file uuc|ast.h..$|
|000020e0| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 24 |(CC) $(C|FLAGS) $|
|000020f0| 28 44 45 46 53 29 20 75 | 75 63 61 73 74 2e 63 20 |(DEFS) u|ucast.c |
|00002100| 2d 6f 20 75 75 63 61 73 | 74 0a 73 20 73 6f 66 74 |-o uucas|t.s soft|
|00002110| 77 61 72 65 20 69 73 20 | 6b 65 70 74 2e 0a 4c 49 |ware is |kept..LI|
|00002120| 42 44 49 52 20 3d 20 2f | 75 73 72 2f 6c 69 62 2f |BDIR = /|usr/lib/|
|00002130| 6e 65 77 73 0a 0a 23 20 | 44 65 66 69 6e 65 20 57 |news..# |Define W|
|00002140| 41 4e 54 5a 20 69 66 20 | 79 6f 75 20 64 6f 6e 27 |ANTZ if |you don'|
|00002150| 74 20 77 61 6e 74 20 75 | 75 78 20 63 6f 6d 70 6c |t want u|ux compl|
|00002160| 65 74 69 6f 6e 20 6e 6f | 74 69 63 65 73 20 66 72 |etion no|tices fr|
|00002170| 6f 6d 20 6f 74 68 65 72 | 20 73 79 73 74 65 6d 73 |om other| systems|
|00002180| 2e 0a 44 45 46 53 20 3d | 09 2d 44 42 41 54 43 48 |..DEFS =|.-DBATCH|
|00002190| 44 49 52 3d 5c 22 24 28 | 42 41 54 43 48 44 49 52 |DIR=\"$(|BATCHDIR|
|000021a0| 29 5c 22 20 2d 44 4c 49 | 42 44 49 52 3d 5c 22 24 |)\" -DLI|BDIR=\"$|
|000021b0| 28 4c 49 42 44 49 52 29 | 5c 22 20 2d 44 57 41 4e |(LIBDIR)|\" -DWAN|
|000021c0| 54 5a 0a 43 46 4c 41 47 | 53 20 3d 20 2d 4f 20 2d |TZ.CFLAG|S = -O -|
|000021d0| 44 48 44 42 0a 0a 46 49 | 4c 45 53 20 3d 20 6d 75 |DHDB..FI|LES = mu|
|000021e0| 6c 74 69 62 61 74 63 68 | 20 6d 75 6c 74 69 73 65 |ltibatch| multise|
|000021f0| 6e 64 20 75 75 63 61 73 | 74 0a 0a 61 6c 6c 3a 20 |nd uucas|t..all: |
|00002200| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 6d |news-mul|ticast/m|
|00002210| 75 6c 74 69 62 61 74 63 | 68 2e 63 00 00 00 00 00 |ultibatc|h.c.....|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00002280| 20 20 20 37 35 37 34 20 | 20 34 34 33 36 36 33 33 | 7574 | 4436633|
|00002290| 34 36 31 20 20 31 31 34 | 30 37 00 20 00 00 00 00 |461 114|07. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2f 2a 09 6d 75 6c 74 69 | 62 61 74 63 68 2e 63 20 |/*.multi|batch.c |
|00002410| 2d 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 73 65 6e |- progra|m to sen|
|00002420| 64 20 6e 65 77 73 20 62 | 61 74 63 68 65 73 20 74 |d news b|atches t|
|00002430| 6f 20 6d 75 6c 74 69 70 | 6c 65 20 73 79 73 74 65 |o multip|le syste|
|00002440| 6d 73 2e 0a 20 2a 0a 20 | 2a 09 38 36 2f 30 36 2f |ms.. *. |*.86/06/|
|00002450| 31 34 2e 09 32 2e 31 09 | 53 68 61 6e 65 20 50 2e |14..2.1.|Shane P.|
|00002460| 20 4d 63 43 61 72 72 6f | 6e 20 28 4d 45 43 43 29 | McCarro|n (MECC)|
|00002470| 0a 20 2a 0a 20 2a 09 43 | 6f 70 79 72 69 67 68 74 |. *. *.C|opyright|
|00002480| 20 28 43 29 20 53 68 61 | 6e 65 20 4d 63 43 61 72 | (C) Sha|ne McCar|
|00002490| 72 6f 6e 2c 20 31 39 38 | 37 2e 0a 20 2a 0a 20 2a |ron, 198|7.. *. *|
|000024a0| 09 4d 75 6c 74 69 62 61 | 74 63 68 20 77 69 6c 6c |.Multiba|tch will|
|000024b0| 20 74 61 6b 65 20 61 20 | 62 61 74 63 68 20 66 69 | take a |batch fi|
|000024c0| 6c 65 20 63 72 65 61 74 | 65 64 20 77 69 74 68 20 |le creat|ed with |
|000024d0| 74 68 65 20 4d 75 6c 74 | 69 63 61 73 74 69 6e 67 |the Mult|icasting|
|000024e0| 20 0a 20 2a 09 6f 70 74 | 69 6f 6e 20 6f 66 20 6e | . *.opt|ion of n|
|000024f0| 65 77 73 20 32 2e 31 30 | 2e 33 20 61 6e 64 20 6c |ews 2.10|.3 and l|
|00002500| 61 74 65 72 2c 20 61 6e | 64 20 64 69 73 74 72 69 |ater, an|d distri|
|00002510| 62 75 74 65 20 63 6f 6d | 6d 6f 6e 20 61 72 74 69 |bute com|mon arti|
|00002520| 63 6c 65 73 20 74 6f 0a | 20 2a 09 73 69 74 65 73 |cles to.| *.sites|
|00002530| 20 75 73 69 6e 67 20 74 | 68 65 20 62 72 6f 61 64 | using t|he broad|
|00002540| 63 61 73 74 69 6e 67 20 | 66 61 63 69 6c 69 74 79 |casting |facility|
|00002550| 20 6f 66 20 75 75 63 61 | 73 74 20 28 61 6c 73 6f | of uuca|st (also|
|00002560| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 0a 20 2a 09 | include|d in. *.|
|00002570| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 70 61 |this sof|tware pa|
|00002580| 63 6b 61 67 65 29 2e 0a | 20 2a 0a 20 2a 09 54 68 |ckage)..| *. *.Th|
|00002590| 65 20 66 6f 72 6d 61 74 | 20 6f 66 20 74 68 69 73 |e format| of this|
|000025a0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 3a 0a 20 2a 0a | command| is:. *.|
|000025b0| 20 2a 09 6d 75 6c 74 69 | 62 61 74 63 68 20 5b 2d | *.multi|batch [-|
|000025c0| 73 20 73 69 7a 65 5d 20 | 5b 20 2d 63 20 5d 20 5b |s size] |[ -c ] [|
|000025d0| 20 2d 63 37 20 5d 20 5b | 20 2d 6f 62 42 43 20 5d | -c7 ] [| -obBC ]|
|000025e0| 20 6d 75 6c 74 69 63 61 | 73 74 0a 20 2a 0a 20 2a | multica|st. *. *|
|000025f0| 09 61 6c 6c 20 70 61 72 | 61 6d 65 74 65 72 73 20 |.all par|ameters |
|00002600| 61 72 65 20 6c 69 6b 65 | 20 74 68 6f 73 65 20 6f |are like| those o|
|00002610| 66 20 73 65 6e 64 62 61 | 74 63 68 20 65 78 63 65 |f sendba|tch exce|
|00002620| 70 74 20 6d 75 6c 74 69 | 63 61 73 74 2c 20 77 68 |pt multi|cast, wh|
|00002630| 69 63 68 0a 20 2a 09 69 | 73 20 75 73 65 64 20 69 |ich. *.i|s used i|
|00002640| 6e 20 70 6c 61 63 65 20 | 6f 66 20 73 69 74 65 2e |n place |of site.|
|00002650| 20 20 4d 75 6c 74 69 63 | 61 73 74 20 69 73 20 74 | Multic|ast is t|
|00002660| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 |he name |of the f|
|00002670| 69 6c 65 20 77 68 69 63 | 68 20 0a 20 2a 09 63 6f |ile whic|h . *.co|
|00002680| 6e 74 61 69 6e 73 20 74 | 68 65 20 69 6e 65 77 73 |ntains t|he inews|
|00002690| 20 67 65 6e 65 72 61 74 | 65 64 20 6c 69 6e 65 73 | generat|ed lines|
|000026a0| 20 61 62 6f 75 74 20 61 | 72 74 69 63 6c 65 20 6e | about a|rticle n|
|000026b0| 61 6d 65 20 61 6e 64 20 | 64 65 73 74 69 6e 61 74 |ame and |destinat|
|000026c0| 69 6f 6e 0a 20 2a 09 73 | 69 74 65 73 2e 20 20 4d |ion. *.s|ites. M|
|000026d0| 75 6c 74 69 62 61 74 63 | 68 20 77 69 6c 6c 20 63 |ultibatc|h will c|
|000026e0| 6c 75 73 74 65 72 20 74 | 68 6f 73 65 20 61 72 74 |luster t|hose art|
|000026f0| 69 63 6c 65 73 20 77 68 | 69 63 68 20 6e 65 65 64 |icles wh|ich need|
|00002700| 20 74 6f 20 67 6f 20 74 | 6f 20 74 68 65 0a 20 2a | to go t|o the. *|
|00002710| 09 73 61 6d 65 20 73 69 | 74 65 73 2c 20 61 6e 64 |.same si|tes, and|
|00002720| 20 66 65 65 64 20 74 68 | 61 74 20 6c 69 73 74 20 | feed th|at list |
|00002730| 74 6f 20 61 20 73 65 6e | 64 62 61 74 63 68 20 6c |to a sen|dbatch l|
|00002740| 69 6b 65 20 73 63 72 69 | 70 74 2e 0a 20 2a 0a 20 |ike scri|pt.. *. |
|00002750| 2a 09 53 69 6e 63 65 20 | 74 68 65 20 70 61 72 61 |*.Since |the para|
|00002760| 6d 65 74 65 72 73 20 28 | 6f 70 74 69 6f 6e 73 29 |meters (|options)|
|00002770| 20 61 72 65 20 6e 6f 74 | 20 72 65 61 6c 6c 79 20 | are not| really |
|00002780| 75 73 65 64 20 62 79 20 | 74 68 69 73 0a 20 2a 09 |used by |this. *.|
|00002790| 70 72 6f 67 72 61 6d 2c | 20 62 75 74 20 61 72 65 |program,| but are|
|000027a0| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 73 63 72 | used by| the scr|
|000027b0| 69 70 74 20 69 74 20 63 | 61 6c 6c 73 2c 20 74 68 |ipt it c|alls, th|
|000027c0| 65 20 6f 70 74 69 6f 6e | 73 20 61 72 65 0a 20 2a |e option|s are. *|
|000027d0| 09 6a 75 73 74 20 72 69 | 70 70 65 64 20 6f 75 74 |.just ri|pped out|
|000027e0| 20 6f 66 20 61 72 67 76 | 20 61 6e 64 20 70 6c 61 | of argv| and pla|
|000027f0| 63 65 64 20 69 6e 20 61 | 20 73 74 72 69 6e 67 2e |ced in a| string.|
|00002800| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 20 |. */..#i|nclude |
|00002810| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00002820| 64 65 20 20 3c 65 72 72 | 6e 6f 2e 68 3e 0a 0a 23 |de <err|no.h>..#|
|00002830| 69 66 6e 64 65 66 09 50 | 41 54 48 5f 4d 41 58 0a |ifndef.P|ATH_MAX.|
|00002840| 23 64 65 66 69 6e 65 09 | 50 41 54 48 5f 4d 41 58 |#define.|PATH_MAX|
|00002850| 09 32 35 35 0a 23 65 6e | 64 69 66 09 50 41 54 48 |.255.#en|dif.PATH|
|00002860| 5f 4d 41 58 0a 0a 23 69 | 66 6e 64 65 66 09 4c 49 |_MAX..#i|fndef.LI|
|00002870| 42 44 49 52 0a 23 64 65 | 66 69 6e 65 09 4c 49 42 |BDIR.#de|fine.LIB|
|00002880| 44 49 52 09 09 22 2f 75 | 73 72 2f 6c 69 62 2f 6e |DIR.."/u|sr/lib/n|
|00002890| 65 77 73 22 0a 23 65 6e | 64 69 66 09 4c 49 42 44 |ews".#en|dif.LIBD|
|000028a0| 49 52 0a 0a 23 69 66 6e | 64 65 66 09 42 41 54 43 |IR..#ifn|def.BATC|
|000028b0| 48 44 49 52 0a 23 64 65 | 66 69 6e 65 09 42 41 54 |HDIR.#de|fine.BAT|
|000028c0| 43 48 44 49 52 09 22 2f | 75 73 72 2f 73 70 6f 6f |CHDIR."/|usr/spoo|
|000028d0| 6c 2f 62 61 74 63 68 22 | 0a 23 65 6e 64 69 66 09 |l/batch"|.#endif.|
|000028e0| 42 41 54 43 48 44 49 52 | 0a 0a 65 78 74 65 72 6e |BATCHDIR|..extern|
|000028f0| 09 69 6e 74 09 65 72 72 | 6e 6f 3b 0a 0a 74 79 70 |.int.err|no;..typ|
|00002900| 65 64 65 66 09 73 74 72 | 75 63 74 09 6e 6f 64 65 |edef.str|uct.node|
|00002910| 0a 7b 0a 09 73 74 72 75 | 63 74 09 6e 6f 64 65 09 |.{..stru|ct.node.|
|00002920| 2a 6c 69 6e 6b 3b 09 09 | 2f 2a 20 66 6f 72 77 61 |*link;..|/* forwa|
|00002930| 72 64 20 6c 69 6e 6b 20 | 2a 2f 0a 09 63 68 61 72 |rd link |*/..char|
|00002940| 09 2a 6c 69 6e 65 3b 09 | 09 09 2f 2a 20 6c 69 6e |.*line;.|../* lin|
|00002950| 65 20 66 72 6f 6d 20 66 | 69 6c 65 20 2a 2f 0a 7d |e from f|ile */.}|
|00002960| 20 4e 4f 44 45 3b 0a 0a | 74 79 70 65 64 65 66 09 | NODE;..|typedef.|
|00002970| 4e 4f 44 45 09 2a 4e 4f | 44 45 50 54 52 3b 0a 0a |NODE.*NO|DEPTR;..|
|00002980| 46 49 4c 45 09 2a 6f 75 | 74 66 69 6c 65 3b 0a 0a |FILE.*ou|tfile;..|
|00002990| 6d 61 69 6e 28 61 72 67 | 63 2c 20 61 72 67 76 29 |main(arg|c, argv)|
|000029a0| 0a 69 6e 74 09 61 72 67 | 63 3b 0a 63 68 61 72 09 |.int.arg|c;.char.|
|000029b0| 2a 61 72 67 76 5b 5d 3b | 0a 7b 0a 09 46 49 4c 45 |*argv[];|.{..FILE|
|000029c0| 09 2a 66 6f 70 65 6e 28 | 29 3b 0a 09 63 68 61 72 |.*fopen(|);..char|
|000029d0| 09 2a 67 65 74 73 79 73 | 28 29 3b 0a 09 63 68 61 |.*getsys|();..cha|
|000029e0| 72 09 2a 6d 61 6c 6c 6f | 63 28 29 3b 0a 09 76 6f |r.*mallo|c();..vo|
|000029f0| 69 64 09 65 72 72 6f 72 | 28 29 3b 0a 09 76 6f 69 |id.error|();..voi|
|00002a00| 64 09 70 72 69 6e 74 61 | 72 74 28 29 3b 0a 0a 09 |d.printa|rt();...|
|00002a10| 4e 4f 44 45 09 61 72 74 | 73 3b 0a 09 4e 4f 44 45 |NODE.art|s;..NODE|
|00002a20| 50 54 52 09 6c 61 73 74 | 20 3d 20 26 61 72 74 73 |PTR.last| = &arts|
|00002a30| 3b 0a 09 63 68 61 72 09 | 61 72 67 73 74 72 5b 42 |;..char.|argstr[B|
|00002a40| 55 46 53 49 5a 5d 3b 0a | 09 63 68 61 72 09 66 69 |UFSIZ];.|.char.fi|
|00002a50| 6c 65 6e 61 6d 65 5b 50 | 41 54 48 5f 4d 41 58 5d |lename[P|ATH_MAX]|
|00002a60| 3b 0a 09 63 68 61 72 09 | 66 6c 61 67 73 5b 42 55 |;..char.|flags[BU|
|00002a70| 46 53 49 5a 5d 3b 0a 09 | 63 68 61 72 09 69 6e 73 |FSIZ];..|char.ins|
|00002a80| 74 72 5b 42 55 46 53 49 | 5a 5d 3b 0a 09 63 68 61 |tr[BUFSI|Z];..cha|
|00002a90| 72 09 6f 6c 64 6e 61 6d | 65 5b 50 41 54 48 5f 4d |r.oldnam|e[PATH_M|
|00002aa0| 41 58 5d 3b 0a 09 63 68 | 61 72 09 2a 73 79 73 74 |AX];..ch|ar.*syst|
|00002ab0| 65 6d 73 3b 0a 0a 09 69 | 6e 74 09 61 72 74 73 6c |ems;...i|nt.artsl|
|00002ac0| 65 66 74 3b 0a 09 69 6e | 74 09 69 20 3d 20 31 3b |eft;..in|t.i = 1;|
|00002ad0| 0a 09 69 6e 74 09 6e 75 | 6d 61 72 74 73 20 3d 20 |..int.nu|marts = |
|00002ae0| 30 3b 0a 0a 09 61 72 74 | 73 2e 6c 69 6e 6b 20 3d |0;...art|s.link =|
|00002af0| 20 4e 55 4c 4c 3b 0a 09 | 77 68 69 6c 65 20 28 28 | NULL;..|while ((|
|00002b00| 69 20 3c 20 61 72 67 63 | 29 20 26 26 20 28 61 72 |i < argc|) && (ar|
|00002b10| 67 76 5b 69 5d 5b 30 5d | 20 3d 3d 20 27 2d 27 29 |gv[i][0]| == '-')|
|00002b20| 29 0a 09 7b 0a 09 09 73 | 74 72 63 61 74 28 66 6c |)..{...s|trcat(fl|
|00002b30| 61 67 73 2c 20 61 72 67 | 76 5b 69 5d 29 3b 0a 09 |ags, arg|v[i]);..|
|00002b40| 09 73 74 72 63 61 74 28 | 66 6c 61 67 73 2c 20 22 |.strcat(|flags, "|
|00002b50| 20 22 29 3b 0a 09 09 69 | 2b 2b 3b 0a 09 7d 20 2f | ");...i|++;..} /|
|00002b60| 2a 20 65 6e 64 20 77 68 | 69 6c 65 20 2a 2f 0a 09 |* end wh|ile */..|
|00002b70| 69 66 20 28 69 20 3d 3d | 20 61 72 67 63 29 20 0a |if (i ==| argc) .|
|00002b80| 09 7b 0a 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.{...fpr|intf(std|
|00002b90| 65 72 72 2c 20 22 75 73 | 61 67 65 3a 20 25 73 20 |err, "us|age: %s |
|00002ba0| 6f 70 74 69 6f 6e 73 20 | 62 61 74 63 68 5c 6e 22 |options |batch\n"|
|00002bb0| 2c 20 61 72 67 76 5b 30 | 5d 29 3b 0a 09 09 65 78 |, argv[0|]);...ex|
|00002bc0| 69 74 28 32 29 3b 0a 09 | 7d 20 2f 2a 20 65 6e 64 |it(2);..|} /* end|
|00002bd0| 20 69 66 20 2a 2f 0a 0a | 09 66 63 6c 6f 73 65 28 | if */..|.fclose(|
|00002be0| 73 74 64 69 6e 29 3b 09 | 2f 2a 20 77 65 20 64 6f |stdin);.|/* we do|
|00002bf0| 6e 27 74 20 6e 65 65 64 | 20 74 68 69 73 20 2a 2f |n't need| this */|
|00002c00| 0a 09 28 76 6f 69 64 29 | 20 73 70 72 69 6e 74 66 |..(void)| sprintf|
|00002c10| 28 6f 6c 64 6e 61 6d 65 | 2c 20 22 25 73 2f 25 73 |(oldname|, "%s/%s|
|00002c20| 22 2c 20 42 41 54 43 48 | 44 49 52 2c 20 61 72 67 |", BATCH|DIR, arg|
|00002c30| 76 5b 69 5d 29 3b 0a 09 | 28 76 6f 69 64 29 20 73 |v[i]);..|(void) s|
|00002c40| 70 72 69 6e 74 66 28 66 | 69 6c 65 6e 61 6d 65 2c |printf(f|ilename,|
|00002c50| 20 22 25 73 2e 77 6f 72 | 6b 22 2c 20 6f 6c 64 6e | "%s.wor|k", oldn|
|00002c60| 61 6d 65 29 3b 0a 09 69 | 66 20 28 6c 69 6e 6b 28 |ame);..i|f (link(|
|00002c70| 6f 6c 64 6e 61 6d 65 2c | 20 66 69 6c 65 6e 61 6d |oldname,| filenam|
|00002c80| 65 29 20 3d 3d 20 2d 31 | 29 0a 09 7b 0a 09 09 69 |e) == -1|)..{...i|
|00002c90| 66 20 28 65 72 72 6e 6f | 20 3d 3d 20 45 4e 4f 45 |f (errno| == ENOE|
|00002ca0| 4e 54 29 0a 09 09 09 65 | 78 69 74 28 31 29 3b 0a |NT)....e|xit(1);.|
|00002cb0| 09 09 65 6c 73 65 0a 09 | 09 09 65 72 72 6f 72 28 |..else..|..error(|
|00002cc0| 65 72 72 6e 6f 29 3b 0a | 09 7d 20 20 2f 2a 20 65 |errno);.|.} /* e|
|00002cd0| 6e 64 20 69 66 20 2a 2f | 0a 0a 09 2f 2a 20 67 65 |nd if */|.../* ge|
|00002ce0| 74 20 72 69 64 20 6f 66 | 20 74 68 65 20 6f 72 69 |t rid of| the ori|
|00002cf0| 67 69 6e 61 6c 20 66 69 | 6c 65 20 2a 2f 0a 0a 09 |ginal fi|le */...|
|00002d00| 28 76 6f 69 64 29 20 75 | 6e 6c 69 6e 6b 28 6f 6c |(void) u|nlink(ol|
|00002d10| 64 6e 61 6d 65 29 3b 0a | 0a 09 69 66 20 28 66 6f |dname);.|..if (fo|
|00002d20| 70 65 6e 28 66 69 6c 65 | 6e 61 6d 65 2c 20 22 72 |pen(file|name, "r|
|00002d30| 22 29 20 3d 3d 20 4e 55 | 4c 4c 29 0a 09 09 65 72 |") == NU|LL)...er|
|00002d40| 72 6f 72 28 65 72 72 6e | 6f 29 3b 0a 09 77 68 69 |ror(errn|o);..whi|
|00002d50| 6c 65 20 28 67 65 74 73 | 28 69 6e 73 74 72 29 20 |le (gets|(instr) |
|00002d60| 21 3d 20 4e 55 4c 4c 29 | 0a 09 7b 0a 09 09 69 66 |!= NULL)|..{...if|
|00002d70| 20 28 28 6c 61 73 74 2d | 3e 6c 69 6e 6b 20 3d 20 | ((last-|>link = |
|00002d80| 28 4e 4f 44 45 50 54 52 | 29 20 6d 61 6c 6c 6f 63 |(NODEPTR|) malloc|
|00002d90| 28 73 69 7a 65 6f 66 28 | 4e 4f 44 45 29 29 29 20 |(sizeof(|NODE))) |
|00002da0| 3d 3d 20 4e 55 4c 4c 29 | 0a 09 09 09 65 72 72 6f |== NULL)|....erro|
|00002db0| 72 28 32 29 3b 0a 09 09 | 6c 61 73 74 20 3d 20 6c |r(2);...|last = l|
|00002dc0| 61 73 74 2d 3e 6c 69 6e | 6b 3b 0a 09 09 69 66 20 |ast->lin|k;...if |
|00002dd0| 28 28 6c 61 73 74 2d 3e | 6c 69 6e 65 20 3d 20 6d |((last->|line = m|
|00002de0| 61 6c 6c 6f 63 28 28 75 | 6e 73 69 67 6e 65 64 29 |alloc((u|nsigned)|
|00002df0| 20 73 74 72 6c 65 6e 28 | 69 6e 73 74 72 29 20 2b | strlen(|instr) +|
|00002e00| 20 31 29 29 20 3d 3d 20 | 4e 55 4c 4c 29 0a 09 09 | 1)) == |NULL)...|
|00002e10| 09 65 72 72 6f 72 28 32 | 29 3b 0a 09 09 73 74 72 |.error(2|);...str|
|00002e20| 63 70 79 28 6c 61 73 74 | 2d 3e 6c 69 6e 65 2c 20 |cpy(last|->line, |
|00002e30| 69 6e 73 74 72 29 3b 0a | 09 09 6e 75 6d 61 72 74 |instr);.|..numart|
|00002e40| 73 2b 2b 3b 0a 09 7d 20 | 2f 2a 20 65 6e 64 20 77 |s++;..} |/* end w|
|00002e50| 68 69 6c 65 20 2a 2f 0a | 0a 09 2f 2a 20 49 66 20 |hile */.|../* If |
|00002e60| 79 6f 75 20 61 72 65 20 | 74 65 73 74 69 6e 67 20 |you are |testing |
|00002e70| 74 68 69 73 2c 20 74 68 | 65 6e 20 63 6f 6d 6d 65 |this, th|en comme|
|00002e80| 6e 74 20 6f 75 74 20 74 | 68 65 20 75 6e 6c 69 6e |nt out t|he unlin|
|00002e90| 6b 20 2a 2f 0a 0a 09 75 | 6e 6c 69 6e 6b 28 66 69 |k */...u|nlink(fi|
|00002ea0| 6c 65 6e 61 6d 65 29 3b | 0a 0a 09 2f 2a 20 73 74 |lename);|.../* st|
|00002eb0| 61 72 74 20 70 72 6f 63 | 65 73 73 69 6e 67 20 74 |art proc|essing t|
|00002ec0| 68 65 73 65 20 61 72 74 | 69 63 6c 65 73 20 2a 2f |hese art|icles */|
|00002ed0| 0a 0a 09 61 72 74 73 6c | 65 66 74 20 3d 20 6e 75 |...artsl|eft = nu|
|00002ee0| 6d 61 72 74 73 3b 0a 09 | 77 68 69 6c 65 20 28 61 |marts;..|while (a|
|00002ef0| 72 74 73 6c 65 66 74 20 | 3e 20 30 29 0a 09 7b 0a |rtsleft |> 0)..{.|
|00002f00| 09 09 6c 61 73 74 20 3d | 20 61 72 74 73 2e 6c 69 |..last =| arts.li|
|00002f10| 6e 6b 3b 09 09 2f 2a 20 | 73 74 61 72 74 20 77 69 |nk;../* |start wi|
|00002f20| 74 68 20 66 69 72 73 74 | 20 6e 6f 64 65 20 2a 2f |th first| node */|
|00002f30| 0a 09 09 77 68 69 6c 65 | 20 28 6c 61 73 74 2d 3e |...while| (last->|
|00002f40| 6c 69 6e 65 20 3d 3d 20 | 4e 55 4c 4c 29 0a 09 09 |line == |NULL)...|
|00002f50| 09 6c 61 73 74 20 3d 20 | 6c 61 73 74 2d 3e 6c 69 |.last = |last->li|
|00002f60| 6e 6b 3b 0a 09 09 73 79 | 73 74 65 6d 73 20 3d 20 |nk;...sy|stems = |
|00002f70| 67 65 74 73 79 73 28 6c | 61 73 74 2d 3e 6c 69 6e |getsys(l|ast->lin|
|00002f80| 65 29 3b 0a 09 09 73 74 | 72 63 70 79 28 66 69 6c |e);...st|rcpy(fil|
|00002f90| 65 6e 61 6d 65 2c 20 22 | 2f 74 6d 70 2f 6d 62 58 |ename, "|/tmp/mbX|
|00002fa0| 58 58 58 58 58 22 29 3b | 0a 09 09 69 66 20 28 6d |XXXXX");|...if (m|
|00002fb0| 6b 74 65 6d 70 28 66 69 | 6c 65 6e 61 6d 65 29 20 |ktemp(fi|lename) |
|00002fc0| 3d 3d 20 4e 55 4c 4c 29 | 0a 09 09 09 65 72 72 6f |== NULL)|....erro|
|00002fd0| 72 28 32 35 34 29 3b 0a | 09 09 69 66 20 28 28 6f |r(254);.|..if ((o|
|00002fe0| 75 74 66 69 6c 65 20 3d | 20 66 6f 70 65 6e 28 66 |utfile =| fopen(f|
|00002ff0| 69 6c 65 6e 61 6d 65 2c | 20 22 77 22 29 29 20 3d |ilename,| "w")) =|
|00003000| 3d 20 4e 55 4c 4c 29 0a | 09 09 09 65 72 72 6f 72 |= NULL).|...error|
|00003010| 28 65 72 72 6e 6f 29 3b | 0a 09 09 70 72 69 6e 74 |(errno);|...print|
|00003020| 61 72 74 28 6c 61 73 74 | 2d 3e 6c 69 6e 65 29 3b |art(last|->line);|
|00003030| 0a 09 09 6c 61 73 74 2d | 3e 6c 69 6e 65 20 3d 20 |...last-|>line = |
|00003040| 4e 55 4c 4c 3b 0a 09 09 | 6c 61 73 74 20 3d 20 6c |NULL;...|last = l|
|00003050| 61 73 74 2d 3e 6c 69 6e | 6b 3b 0a 09 09 61 72 74 |ast->lin|k;...art|
|00003060| 73 6c 65 66 74 2d 2d 3b | 0a 09 09 77 68 69 6c 65 |sleft--;|...while|
|00003070| 20 28 6c 61 73 74 29 0a | 09 09 7b 0a 09 09 09 69 | (last).|..{....i|
|00003080| 66 20 28 6c 61 73 74 2d | 3e 6c 69 6e 65 20 21 3d |f (last-|>line !=|
|00003090| 20 4e 55 4c 4c 29 0a 09 | 09 09 09 69 66 20 28 73 | NULL)..|...if (s|
|000030a0| 74 72 63 6d 70 28 73 79 | 73 74 65 6d 73 2c 20 67 |trcmp(sy|stems, g|
|000030b0| 65 74 73 79 73 28 6c 61 | 73 74 2d 3e 6c 69 6e 65 |etsys(la|st->line|
|000030c0| 29 29 20 3d 3d 20 30 29 | 0a 09 09 09 09 7b 0a 09 |)) == 0)|.....{..|
|000030d0| 09 09 09 09 70 72 69 6e | 74 61 72 74 28 6c 61 73 |....prin|tart(las|
|000030e0| 74 2d 3e 6c 69 6e 65 29 | 3b 0a 09 09 09 09 09 6c |t->line)|;......l|
|000030f0| 61 73 74 2d 3e 6c 69 6e | 65 20 3d 20 4e 55 4c 4c |ast->lin|e = NULL|
|00003100| 3b 0a 09 09 09 09 09 61 | 72 74 73 6c 65 66 74 2d |;......a|rtsleft-|
|00003110| 2d 3b 0a 09 09 09 09 7d | 20 2f 2a 20 65 6e 64 20 |-;.....}| /* end |
|00003120| 69 66 20 2a 2f 0a 09 09 | 09 6c 61 73 74 20 3d 20 |if */...|.last = |
|00003130| 6c 61 73 74 2d 3e 6c 69 | 6e 6b 3b 0a 09 09 7d 20 |last->li|nk;...} |
|00003140| 2f 2a 20 65 6e 64 20 77 | 68 69 6c 65 20 2a 2f 0a |/* end w|hile */.|
|00003150| 09 09 66 63 6c 6f 73 65 | 28 6f 75 74 66 69 6c 65 |..fclose|(outfile|
|00003160| 29 3b 0a 09 09 28 76 6f | 69 64 29 20 73 70 72 69 |);...(vo|id) spri|
|00003170| 6e 74 66 28 61 72 67 73 | 74 72 2c 20 22 25 73 2f |ntf(args|tr, "%s/|
|00003180| 6d 75 6c 74 69 73 65 6e | 64 20 25 73 20 2d 53 20 |multisen|d %s -S |
|00003190| 25 73 20 25 73 22 2c 20 | 4c 49 42 44 49 52 2c 20 |%s %s", |LIBDIR, |
|000031a0| 66 6c 61 67 73 2c 20 66 | 69 6c 65 6e 61 6d 65 2c |flags, f|ilename,|
|000031b0| 20 73 79 73 74 65 6d 73 | 29 3b 0a 09 09 69 20 3d | systems|);...i =|
|000031c0| 20 73 79 73 74 65 6d 28 | 61 72 67 73 74 72 29 3b | system(|argstr);|
|000031d0| 20 0a 09 09 75 6e 6c 69 | 6e 6b 28 66 69 6c 65 6e | ...unli|nk(filen|
|000031e0| 61 6d 65 29 3b 0a 09 09 | 69 66 20 28 69 20 21 3d |ame);...|if (i !=|
|000031f0| 20 30 29 0a 09 09 09 65 | 72 72 6f 72 28 69 29 3b | 0)....e|rror(i);|
|00003200| 0a 09 7d 20 2f 2a 20 65 | 6e 64 20 77 68 69 6c 65 |..} /* e|nd while|
|00003210| 20 2a 2f 0a 0a 09 72 65 | 74 75 72 6e 28 30 29 3b | */...re|turn(0);|
|00003220| 0a 7d 0a 0a 63 68 61 72 | 09 2a 67 65 74 73 79 73 |.}..char|.*getsys|
|00003230| 28 6c 69 6e 65 29 0a 63 | 68 61 72 09 2a 6c 69 6e |(line).c|har.*lin|
|00003240| 65 3b 0a 7b 0a 09 63 68 | 61 72 09 2a 73 20 3d 20 |e;.{..ch|ar.*s = |
|00003250| 6c 69 6e 65 3b 0a 0a 09 | 77 68 69 6c 65 20 28 2a |line;...|while (*|
|00003260| 73 20 21 3d 20 27 20 27 | 29 20 73 2b 2b 3b 0a 09 |s != ' '|) s++;..|
|00003270| 72 65 74 75 72 6e 28 2b | 2b 73 29 3b 0a 7d 0a 0a |return(+|+s);.}..|
|00003280| 76 6f 69 64 09 70 72 69 | 6e 74 61 72 74 28 6c 69 |void.pri|ntart(li|
|00003290| 6e 65 29 0a 63 68 61 72 | 09 2a 6c 69 6e 65 3b 0a |ne).char|.*line;.|
|000032a0| 7b 0a 09 69 6e 74 09 69 | 20 3d 20 30 3b 0a 0a 09 |{..int.i| = 0;...|
|000032b0| 77 68 69 6c 65 20 28 6c | 69 6e 65 5b 69 5d 20 21 |while (l|ine[i] !|
|000032c0| 3d 20 27 20 27 29 20 0a | 09 7b 0a 09 09 70 75 74 |= ' ') .|.{...put|
|000032d0| 63 28 6c 69 6e 65 5b 69 | 5d 2c 20 6f 75 74 66 69 |c(line[i|], outfi|
|000032e0| 6c 65 29 3b 0a 09 09 69 | 2b 2b 3b 0a 09 7d 20 2f |le);...i|++;..} /|
|000032f0| 2a 20 65 6e 64 20 77 68 | 69 6c 65 20 2a 2f 0a 09 |* end wh|ile */..|
|00003300| 70 75 74 63 28 27 5c 6e | 27 2c 20 6f 75 74 66 69 |putc('\n|', outfi|
|00003310| 6c 65 29 3b 0a 7d 0a 0a | 76 6f 69 64 09 65 72 72 |le);.}..|void.err|
|00003320| 6f 72 28 65 72 72 29 0a | 69 6e 74 09 65 72 72 3b |or(err).|int.err;|
|00003330| 0a 7b 0a 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |.{..fpri|ntf(stde|
|00003340| 72 72 2c 20 22 50 72 6f | 67 72 61 6d 20 62 6c 65 |rr, "Pro|gram ble|
|00003350| 77 20 6f 66 66 2e 20 20 | 45 72 72 6f 72 20 3d 20 |w off. |Error = |
|00003360| 25 64 2e 5c 6e 22 2c 20 | 65 72 72 29 3b 0a 09 65 |%d.\n", |err);..e|
|00003370| 78 69 74 28 65 72 72 29 | 3b 0a 7d 0a 20 61 6e 64 |xit(err)|;.}. and|
|00003380| 20 65 78 70 65 63 74 73 | 0a 6d 75 6c 74 69 73 65 | expects|.multise|
|00003390| 6e 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |nd to be| in the |
|000033a0| 24 28 4c 49 42 44 49 52 | 29 20 64 69 72 65 63 74 |$(LIBDIR|) direct|
|000033b0| 6f 72 79 20 66 6f 72 20 | 6e 65 77 73 2e 20 20 4d |ory for |news. M|
|000033c0| 75 6c 74 69 73 65 6e 64 | 20 63 61 6c 6c 73 0a 75 |ultisend| calls.u|
|000033d0| 75 63 61 73 74 2c 20 77 | 68 69 63 68 20 73 68 6f |ucast, w|hich sho|
|000033e0| 75 6c 64 20 62 65 20 69 | 6e 20 74 68 65 20 70 61 |uld be i|n the pa|
|000033f0| 74 68 20 6f 72 20 69 6e | 20 79 6f 75 72 20 24 28 |th or in| your $(|
|00003400| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 6d |news-mul|ticast/m|
|00003410| 75 6c 74 69 73 65 6e 64 | 2e 73 68 00 00 00 00 00 |ultisend|.sh.....|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003470| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003480| 20 20 20 32 33 34 33 20 | 20 34 34 33 36 36 33 33 | 2343 | 4436633|
|00003490| 34 36 32 20 20 31 31 34 | 33 35 00 20 00 00 00 00 |462 114|35. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 3a 20 27 40 28 23 29 6d | 75 6c 74 69 73 65 6e 64 |: '@(#)m|ultisend|
|00003610| 2e 73 68 09 32 2e 31 09 | 35 2f 32 39 2f 38 37 27 |.sh.2.1.|5/29/87'|
|00003620| 0a 23 09 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |.#.Copyr|ight (C)|
|00003630| 20 53 68 61 6e 65 20 4d | 63 43 61 72 72 6f 6e 2c | Shane M|cCarron,|
|00003640| 20 31 39 38 37 2e 0a 23 | 0a 23 09 54 68 69 73 20 | 1987..#|.#.This |
|00003650| 73 63 72 69 70 74 20 69 | 73 20 69 6e 74 65 6e 64 |script i|s intend|
|00003660| 65 64 20 74 6f 20 62 65 | 20 63 61 6c 6c 65 64 20 |ed to be| called |
|00003670| 6f 6e 6c 79 20 62 79 20 | 6d 75 6c 74 69 62 61 74 |only by |multibat|
|00003680| 63 68 2e 0a 23 09 41 6e | 79 20 70 61 72 61 6d 65 |ch..#.An|y parame|
|00003690| 74 65 72 73 20 79 6f 75 | 20 67 69 76 65 20 6d 75 |ters you| give mu|
|000036a0| 6c 74 69 62 61 74 63 68 | 20 61 72 65 20 70 61 73 |ltibatch| are pas|
|000036b0| 73 65 64 20 6f 6e 74 6f | 20 74 68 69 73 0a 23 09 |sed onto| this.#.|
|000036c0| 73 63 72 69 70 74 20 77 | 69 74 68 20 74 68 65 20 |script w|ith the |
|000036d0| 65 78 63 65 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |exceptio|n of the|
|000036e0| 20 4d 55 4c 54 49 43 41 | 53 54 20 67 65 6e 65 72 | MULTICA|ST gener|
|000036f0| 61 74 65 64 20 62 61 74 | 63 68 0a 23 09 66 69 6c |ated bat|ch.#.fil|
|00003700| 65 2e 0a 23 0a 23 09 4e | 6f 74 65 20 74 68 61 74 |e..#.#.N|ote that|
|00003710| 20 74 68 65 20 69 6e 74 | 65 72 66 61 63 65 20 74 | the int|erface t|
|00003720| 6f 20 6d 75 6c 74 69 73 | 65 6e 64 20 69 73 20 70 |o multis|end is p|
|00003730| 72 65 74 74 79 20 6d 75 | 63 68 20 6c 69 6b 65 0a |retty mu|ch like.|
|00003740| 23 09 73 65 6e 64 62 61 | 74 63 68 2e 20 20 48 6f |#.sendba|tch. Ho|
|00003750| 77 65 76 65 72 2c 20 69 | 74 20 64 6f 65 73 20 6e |wever, i|t does n|
|00003760| 6f 74 20 73 75 70 70 6f | 72 74 20 74 68 65 20 69 |ot suppo|rt the i|
|00003770| 68 61 76 65 20 66 6c 61 | 67 73 2e 0a 23 09 41 6c |have fla|gs..#.Al|
|00003780| 73 6f 20 74 68 65 20 66 | 6c 61 67 20 2d 53 20 69 |so the f|lag -S i|
|00003790| 73 20 75 73 65 64 20 74 | 6f 20 69 6e 64 69 63 61 |s used t|o indica|
|000037a0| 74 65 20 74 68 61 74 20 | 74 68 65 20 72 65 73 74 |te that |the rest|
|000037b0| 20 6f 66 20 74 68 65 0a | 23 09 70 61 72 61 6d 65 | of the.|#.parame|
|000037c0| 74 65 72 73 20 61 72 65 | 20 73 79 73 74 65 6d 20 |ters are| system |
|000037d0| 6e 61 6d 65 73 2e 20 20 | 49 74 20 69 73 20 73 75 |names. |It is su|
|000037e0| 70 70 6c 69 65 64 20 62 | 79 20 6d 75 6c 74 69 62 |pplied b|y multib|
|000037f0| 61 74 63 68 2e 0a 0a 0a | 63 66 6c 61 67 73 3d 0a |atch....|cflags=.|
|00003800| 4c 49 4d 3d 35 30 30 30 | 30 0a 45 43 48 4f 3d 0a |LIM=5000|0.ECHO=.|
|00003810| 43 4f 4d 50 3d 0a 43 37 | 3d 0a 52 4e 45 57 53 3d |COMP=.C7|=.RNEWS=|
|00003820| 72 6e 65 77 73 0a 64 61 | 74 65 0a 65 63 68 6f 20 |rnews.da|te.echo |
|00003830| 24 2a 0a 0a 77 68 69 6c | 65 20 5b 20 24 31 20 21 |$*..whil|e [ $1 !|
|00003840| 3d 20 27 2d 53 27 20 5d | 0a 64 6f 0a 09 63 61 73 |= '-S' ]|.do..cas|
|00003850| 65 20 24 31 20 69 6e 0a | 09 2d 5b 62 42 43 5d 2a |e $1 in.|.-[bBC]*|
|00003860| 29 09 63 66 6c 61 67 73 | 3d 22 24 63 66 6c 61 67 |).cflags|="$cflag|
|00003870| 73 20 24 72 6d 74 22 3b | 20 63 6f 6e 74 69 6e 75 |s $rmt";| continu|
|00003880| 65 3b 3b 0a 09 2d 73 2a | 29 09 4c 49 4d 3d 60 65 |e;;..-s*|).LIM=`e|
|00003890| 78 70 72 20 22 24 72 6d | 74 22 20 3a 20 27 2d 73 |xpr "$rm|t" : '-s|
|000038a0| 5c 28 2e 2a 5c 29 27 60 | 20 3b 3b 0a 09 2d 63 37 |\(.*\)'`| ;;..-c7|
|000038b0| 29 20 09 43 4f 4d 50 3d | 27 7c 20 4c 49 42 44 49 |) .COMP=|'| LIBDI|
|000038c0| 52 2f 63 6f 6d 70 72 65 | 73 73 20 24 63 66 6c 61 |R/compre|ss $cfla|
|000038d0| 67 73 27 0a 09 09 43 37 | 3d 27 7c 20 4c 49 42 44 |gs'...C7|='| LIBD|
|000038e0| 49 52 2f 65 6e 63 6f 64 | 65 27 0a 09 09 45 43 48 |IR/encod|e'...ECH|
|000038f0| 4f 3d 27 65 63 68 6f 20 | 22 23 21 20 63 37 75 6e |O='echo |"#! c7un|
|00003900| 62 61 74 63 68 22 27 20 | 3b 3b 0a 09 2d 63 29 09 |batch"' |;;..-c).|
|00003910| 43 4f 4d 50 3d 27 7c 20 | 4c 49 42 44 49 52 2f 63 |COMP='| |LIBDIR/c|
|00003920| 6f 6d 70 72 65 73 73 20 | 24 63 66 6c 61 67 73 27 |ompress |$cflags'|
|00003930| 0a 09 09 45 43 48 4f 3d | 27 65 63 68 6f 20 22 23 |...ECHO=|'echo "#|
|00003940| 21 20 63 75 6e 62 61 74 | 63 68 22 27 20 3b 3b 0a |! cunbat|ch"' ;;.|
|00003950| 09 2d 6f 2a 29 09 45 43 | 48 4f 3d 60 65 78 70 72 |.-o*).EC|HO=`expr|
|00003960| 20 22 24 72 6d 74 22 20 | 3a 20 27 2d 6f 5c 28 2e | "$rmt" |: '-o\(.|
|00003970| 2a 5c 29 27 60 0a 09 09 | 52 4e 45 57 53 3d 27 63 |*\)'`...|RNEWS='c|
|00003980| 75 6e 62 61 74 63 68 27 | 20 3b 3b 0a 09 65 73 61 |unbatch'| ;;..esa|
|00003990| 63 0a 09 73 68 69 66 74 | 0a 64 6f 6e 65 0a 0a 73 |c..shift|.done..s|
|000039a0| 68 69 66 74 0a 46 49 4c | 45 3d 24 31 0a 73 68 69 |hift.FIL|E=$1.shi|
|000039b0| 66 74 0a 53 59 53 54 45 | 4d 53 3d 24 2a 0a 0a 69 |ft.SYSTE|MS=$*..i|
|000039c0| 66 20 74 65 73 74 20 2d | 6e 20 22 24 43 4f 4d 50 |f test -|n "$COMP|
|000039d0| 22 0a 74 68 65 6e 0a 09 | 4c 49 4d 3d 60 65 78 70 |".then..|LIM=`exp|
|000039e0| 72 20 24 4c 49 4d 20 5c | 2a 20 32 60 0a 66 69 0a |r $LIM \|* 2`.fi.|
|000039f0| 0a 3a 20 6d 61 6b 65 20 | 73 75 72 65 20 24 3f 20 |.: make |sure $? |
|00003a00| 69 73 20 7a 65 72 6f 0a | 77 68 69 6c 65 20 74 65 |is zero.|while te|
|00003a10| 73 74 20 24 3f 20 2d 65 | 71 20 30 20 2d 61 20 5c |st $? -e|q 0 -a \|
|00003a20| 28 20 2d 73 20 24 46 49 | 4c 45 20 2d 6f 20 2d 73 |( -s $FI|LE -o -s|
|00003a30| 20 24 46 49 4c 45 2e 77 | 6f 72 6b 20 5c 29 0a 64 | $FILE.w|ork \).d|
|00003a40| 6f 0a 09 66 69 6c 65 3d | 60 64 61 74 65 20 2b 31 |o..file=|`date +1|
|00003a50| 30 2f 31 36 2f 38 36 4d | 25 53 60 0a 09 28 65 76 |0/16/86M|%S`..(ev|
|00003a60| 61 6c 20 24 45 43 48 4f | 3b 20 65 76 61 6c 20 4c |al $ECHO|; eval L|
|00003a70| 49 42 44 49 52 2f 62 61 | 74 63 68 20 24 46 49 4c |IBDIR/ba|tch $FIL|
|00003a80| 45 20 24 4c 49 4d 20 24 | 43 4f 4d 50 20 24 43 37 |E $LIM $|COMP $C7|
|00003a90| 29 20 3e 20 2f 74 6d 70 | 2f 6d 73 65 6e 64 24 24 |) > /tmp|/msend$$|
|00003aa0| 0a 09 4c 49 42 44 49 52 | 2f 75 75 63 61 73 74 20 |..LIBDIR|/uucast |
|00003ab0| 2f 74 6d 70 2f 6d 73 65 | 6e 64 24 24 20 24 52 4e |/tmp/mse|nd$$ $RN|
|00003ac0| 45 57 53 20 24 53 59 53 | 54 45 4d 53 0a 09 72 6d |EWS $SYS|TEMS..rm|
|00003ad0| 20 2f 74 6d 70 2f 6d 73 | 65 6e 64 24 24 0a 64 6f | /tmp/ms|end$$.do|
|00003ae0| 6e 65 0a 43 48 44 49 52 | 0a 0a 65 78 74 65 72 6e |ne.CHDIR|..extern|
|00003af0| 09 69 6e 74 09 65 72 72 | 6e 6f 3b 0a 0a 74 79 70 |.int.err|no;..typ|
|00003b00| 65 64 65 66 09 73 74 72 | 75 63 74 09 6e 6f 64 65 |edef.str|uct.node|
|00003b10| 0a 7b 0a 09 73 74 72 75 | 63 74 09 6e 6f 64 65 09 |.{..stru|ct.node.|
|00003b20| 2a 6c 69 6e 6b 3b 09 09 | 2f 2a 20 66 6f 72 77 61 |*link;..|/* forwa|
|00003b30| 72 64 20 6c 69 6e 6b 20 | 2a 2f 0a 09 63 68 61 72 |rd link |*/..char|
|00003b40| 09 2a 6c 69 6e 65 3b 09 | 09 09 2f 2a 20 6c 69 6e |.*line;.|../* lin|
|00003b50| 65 20 66 72 6f 6d 20 66 | 69 6c 65 20 2a 2f 0a 7d |e from f|ile */.}|
|00003b60| 20 4e 4f 44 45 3b 0a 0a | 74 79 70 65 64 65 66 09 | NODE;..|typedef.|
|00003b70| 4e 4f 44 45 09 2a 4e 4f | 44 45 50 54 52 3b 0a 0a |NODE.*NO|DEPTR;..|
|00003b80| 46 49 4c 45 09 2a 6f 75 | 74 66 69 6c 65 3b 0a 0a |FILE.*ou|tfile;..|
|00003b90| 6d 61 69 6e 28 61 72 67 | 63 2c 20 61 72 67 76 29 |main(arg|c, argv)|
|00003ba0| 0a 69 6e 74 09 61 72 67 | 63 3b 0a 63 68 61 72 09 |.int.arg|c;.char.|
|00003bb0| 2a 61 72 67 76 5b 5d 3b | 0a 7b 0a 09 46 49 4c 45 |*argv[];|.{..FILE|
|00003bc0| 09 2a 66 6f 70 65 6e 28 | 29 3b 0a 09 63 68 61 72 |.*fopen(|);..char|
|00003bd0| 09 2a 67 65 74 73 79 73 | 28 29 3b 0a 09 63 68 61 |.*getsys|();..cha|
|00003be0| 72 09 2a 6d 61 6c 6c 6f | 63 28 29 3b 0a 09 76 6f |r.*mallo|c();..vo|
|00003bf0| 69 64 09 65 72 72 6f 72 | 28 29 3b 0a 09 76 6f 69 |id.error|();..voi|
|00003c00| 6e 65 77 73 2d 6d 75 6c | 74 69 63 61 73 74 2f 75 |news-mul|ticast/u|
|00003c10| 75 63 61 73 74 2e 63 00 | 00 00 00 00 00 00 00 00 |ucast.c.|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003c80| 20 20 32 35 33 33 30 20 | 20 34 34 33 36 36 33 33 | 25330 | 4436633|
|00003c90| 34 36 33 20 20 31 30 35 | 36 37 00 20 00 00 00 00 |463 105|67. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 2f 2a 20 24 53 6f 75 72 | 63 65 24 0a 20 2a 0a 20 |/* $Sour|ce$. *. |
|00003e10| 2a 20 24 52 65 76 69 73 | 69 6f 6e 24 0a 20 2a 0a |* $Revis|ion$. *.|
|00003e20| 20 2a 09 75 75 63 61 73 | 74 20 2d 20 43 61 73 74 | *.uucas|t - Cast|
|00003e30| 20 61 20 55 55 58 20 63 | 6f 6d 6d 61 6e 64 20 74 | a UUX c|ommand t|
|00003e40| 6f 20 6d 75 6c 74 69 70 | 6c 65 20 73 79 73 74 65 |o multip|le syste|
|00003e50| 6d 73 2e 0a 20 2a 0a 20 | 2a 20 53 59 4e 4f 50 53 |ms.. *. |* SYNOPS|
|00003e60| 49 53 0a 20 2a 0a 20 2a | 20 09 75 75 63 61 73 74 |IS. *. *| .uucast|
|00003e70| 0a 20 2a 0a 20 2a 20 44 | 45 53 43 52 49 50 54 49 |. *. * D|ESCRIPTI|
|00003e80| 4f 4e 0a 20 2a 0a 20 2a | 09 4e 6f 74 65 3a 09 74 |ON. *. *|.Note:.t|
|00003e90| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 6d 75 73 74 |his prog|ram must|
|00003ea0| 20 72 75 6e 20 73 75 69 | 64 20 75 75 63 70 2e 20 | run sui|d uucp. |
|00003eb0| 20 49 74 20 77 69 6c 6c | 20 63 72 65 61 74 65 20 | It will| create |
|00003ec0| 74 68 65 0a 20 2a 09 09 | 66 69 6c 65 73 20 69 6e |the. *..|files in|
|00003ed0| 20 74 68 65 20 75 75 63 | 70 20 64 69 72 65 63 74 | the uuc|p direct|
|00003ee0| 6f 72 69 65 73 20 6f 77 | 6e 65 64 20 62 79 20 75 |ories ow|ned by u|
|00003ef0| 73 65 72 20 75 75 63 70 | 2c 20 77 69 74 68 0a 20 |ser uucp|, with. |
|00003f00| 2a 09 09 6d 61 73 6b 20 | 4d 41 53 4b 2e 0a 20 2a |*..mask |MASK.. *|
|00003f10| 0a 20 2a 20 41 55 54 48 | 4f 52 53 0a 20 2a 0a 20 |. * AUTH|ORS. *. |
|00003f20| 2a 20 09 4d 61 72 6b 20 | 43 6f 6c 62 75 72 6e 2c |* .Mark |Colburn,|
|00003f30| 20 4e 41 50 53 20 49 6e | 74 65 72 6e 61 74 69 6f | NAPS In|ternatio|
|00003f40| 6e 61 6c 20 28 6d 61 72 | 6b 40 6a 68 65 72 65 67 |nal (mar|k@jhereg|
|00003f50| 2e 6d 6e 2e 6f 72 67 29 | 20 31 2f 35 2f 38 39 0a |.mn.org)| 1/5/89.|
|00003f60| 20 2a 20 09 53 68 61 6e | 65 20 4d 63 43 61 72 72 | * .Shan|e McCarr|
|00003f70| 6f 6e 2c 20 4e 41 50 53 | 20 49 6e 74 65 72 6e 61 |on, NAPS| Interna|
|00003f80| 74 69 6f 6e 61 6c 20 28 | 61 68 62 79 40 62 75 6e |tional (|ahby@bun|
|00003f90| 67 69 61 2e 6d 6e 2e 6f | 72 67 29 20 31 32 2f 38 |gia.mn.o|rg) 12/8|
|00003fa0| 2f 38 36 0a 20 2a 0a 20 | 2a 09 43 6f 70 79 72 69 |/86. *. |*.Copyri|
|00003fb0| 67 68 74 20 28 43 29 20 | 53 68 61 6e 65 20 4d 63 |ght (C) |Shane Mc|
|00003fc0| 43 61 72 72 6f 6e 2c 20 | 31 39 38 37 2c 20 31 39 |Carron, |1987, 19|
|00003fd0| 38 39 0a 20 2a 0a 20 2a | 20 24 4c 6f 67 24 0a 20 |89. *. *| $Log$. |
|00003fe0| 2a 2f 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 70 77 |*/..#inc|lude <pw|
|00003ff0| 64 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |d.h>.#in|clude <s|
|00004000| 74 64 69 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tdio.h>.|#include|
|00004010| 20 3c 65 72 72 6e 6f 2e | 68 3e 0a 23 69 6e 63 6c | <errno.|h>.#incl|
|00004020| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00004030| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00004040| 73 74 61 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |stat.h>.|#include|
|00004050| 20 22 75 75 63 61 73 74 | 2e 68 22 0a 23 69 66 6e | "uucast|.h".#ifn|
|00004060| 64 65 66 09 4e 4f 44 45 | 0a 23 69 6e 63 6c 75 64 |def.NODE|.#includ|
|00004070| 65 20 3c 73 79 73 2f 75 | 74 73 6e 61 6d 65 2e 68 |e <sys/u|tsname.h|
|00004080| 3e 0a 23 65 6e 64 69 66 | 09 09 09 09 2f 2a 20 4e |>.#endif|..../* N|
|00004090| 4f 44 45 20 2a 2f 0a 0a | 23 64 65 66 69 6e 65 09 |ODE */..|#define.|
|000040a0| 4e 41 4d 45 4c 45 4e 09 | 28 31 34 20 2b 20 31 29 |NAMELEN.|(14 + 1)|
|000040b0| 09 2f 2a 20 6c 65 6e 67 | 74 68 20 6f 66 20 66 69 |./* leng|th of fi|
|000040c0| 6c 65 20 6e 61 6d 65 73 | 20 2a 2f 0a 0a 63 68 61 |le names| */..cha|
|000040d0| 72 09 20 20 20 20 20 20 | 20 2a 72 63 73 69 64 20 |r. | *rcsid |
|000040e0| 3d 20 22 24 48 65 61 64 | 65 72 24 22 3b 0a 0a 0a |= "$Head|er$";...|
|000040f0| 23 69 66 64 65 66 09 4e | 4f 44 45 0a 63 68 61 72 |#ifdef.N|ODE.char|
|00004100| 20 20 20 20 20 20 20 20 | 20 20 20 20 6e 6f 64 65 | | node|
|00004110| 5b 5d 20 3d 20 4e 4f 44 | 45 2c 0a 23 65 6c 73 65 |[] = NOD|E,.#else|
|00004120| 09 09 09 09 2f 2a 20 4e | 4f 44 45 20 2a 2f 0a 63 |..../* N|ODE */.c|
|00004130| 68 61 72 20 20 20 20 20 | 20 20 20 20 20 20 20 6e |har | n|
|00004140| 6f 64 65 5b 38 5d 2c 09 | 2f 2a 20 76 61 72 69 61 |ode[8],.|/* varia|
|00004150| 62 6c 65 20 66 6f 72 20 | 6e 6f 64 65 20 6e 61 6d |ble for |node nam|
|00004160| 65 20 66 72 6f 6d 20 75 | 6e 61 6d 65 20 2a 2f 0a |e from u|name */.|
|00004170| 23 65 6e 64 69 66 09 09 | 09 09 2f 2a 20 21 4e 4f |#endif..|../* !NO|
|00004180| 44 45 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 20 20 |DE */. | |
|00004190| 20 20 20 20 20 20 75 73 | 65 72 5b 5d 20 3d 20 55 | us|er[] = U|
|000041a0| 53 45 52 2c 09 2f 2a 20 | 74 68 65 20 75 73 65 72 |SER,./* |the user|
|000041b0| 20 74 68 61 74 20 69 73 | 20 64 6f 69 6e 67 20 74 | that is| doing t|
|000041c0| 68 65 20 73 65 6e 64 69 | 6e 67 20 2a 2f 0a 20 20 |he sendi|ng */. |
|000041d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f | | co|
|000041e0| 6d 6e 61 6d 65 5b 4e 41 | 4d 45 4c 45 4e 5d 2c 09 |mname[NA|MELEN],.|
|000041f0| 2f 2a 20 6e 61 6d 65 20 | 6f 66 20 63 6f 6d 6d 61 |/* name |of comma|
|00004200| 6e 64 20 66 69 6c 65 20 | 2a 2f 0a 20 20 20 20 20 |nd file |*/. |
|00004210| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 6d 6e 61 | | remna|
|00004220| 6d 65 5b 4e 41 4d 45 4c | 45 4e 5d 2c 09 2f 2a 20 |me[NAMEL|EN],./* |
|00004230| 6e 61 6d 65 20 6f 66 20 | 72 65 6d 6f 74 65 20 63 |name of |remote c|
|00004240| 6f 6d 6d 61 6e 64 20 66 | 69 6c 65 20 2a 2f 0a 20 |ommand f|ile */. |
|00004250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6e | | n|
|00004260| 72 65 6d 6e 61 6d 65 5b | 4e 41 4d 45 4c 45 4e 5d |remname[|NAMELEN]|
|00004270| 2c 09 2f 2a 20 6e 61 6d | 65 20 6f 66 20 72 65 6d |,./* nam|e of rem|
|00004280| 6f 74 65 20 64 61 74 61 | 20 66 69 6c 65 20 2a 2f |ote data| file */|
|00004290| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000042a0| 20 6c 6f 63 6e 61 6d 65 | 5b 4e 41 4d 45 4c 45 4e | locname|[NAMELEN|
|000042b0| 5d 3b 09 2f 2a 20 6e 61 | 6d 65 20 6f 66 20 6c 6f |];./* na|me of lo|
|000042c0| 63 61 6c 20 64 61 74 61 | 20 66 69 6c 65 20 2a 2f |cal data| file */|
|000042d0| 0a 65 78 74 65 72 6e 20 | 20 20 20 20 20 20 20 20 |.extern | |
|000042e0| 20 65 72 72 6e 6f 3b 0a | 0a 0a 69 6e 74 20 6d 61 | errno;.|..int ma|
|000042f0| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 69 |in(argc,| argv).i|
|00004300| 6e 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 |nt | a|
|00004310| 72 67 63 3b 0a 63 68 61 | 72 20 20 20 20 20 20 20 |rgc;.cha|r |
|00004320| 20 20 20 2a 2a 61 72 67 | 76 3b 0a 7b 0a 20 20 20 | **arg|v;.{. |
|00004330| 20 76 6f 69 64 20 20 20 | 20 20 09 20 20 20 20 6d | void | . m|
|00004340| 61 6b 65 6e 61 6d 65 28 | 29 3b 0a 20 20 20 20 76 |akename(|);. v|
|00004350| 6f 69 64 20 20 20 20 20 | 09 20 20 20 20 75 73 61 |oid |. usa|
|00004360| 67 65 28 29 3b 0a 20 20 | 20 20 73 74 72 75 63 74 |ge();. | struct|
|00004370| 20 70 61 73 73 77 64 20 | 20 2a 67 65 74 70 77 6e | passwd | *getpwn|
|00004380| 61 6d 28 29 3b 0a 0a 20 | 20 20 20 63 68 61 72 20 |am();.. | char |
|00004390| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 6c 65 5b | | file[|
|000043a0| 31 32 38 5d 2c 09 2f 2a | 20 66 69 6c 65 20 6e 61 |128],./*| file na|
|000043b0| 6d 65 20 74 6f 20 74 72 | 61 6e 73 6d 69 74 20 2a |me to tr|ansmit *|
|000043c0| 2f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/. | |
|000043d0| 20 20 20 20 20 20 70 61 | 74 68 5b 31 32 38 5d 2c | pa|th[128],|
|000043e0| 09 2f 2a 20 74 65 6d 70 | 6f 72 61 72 79 20 70 61 |./* temp|orary pa|
|000043f0| 74 68 20 6e 61 6d 65 20 | 2a 2f 0a 20 20 20 20 20 |th name |*/. |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 63 | | *c|
|00004410| 6f 6d 6d 61 6e 64 20 3d | 20 61 72 67 76 5b 32 5d |ommand =| argv[2]|
|00004420| 2c 09 2f 2a 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |,./* com|mand to |
|00004430| 55 55 58 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 20 |UUX */. | |
|00004440| 20 20 20 20 20 20 20 20 | 20 20 2a 73 79 73 6e 61 | | *sysna|
|00004450| 6d 65 5b 4d 41 58 53 59 | 53 5d 3b 09 2f 2a 20 61 |me[MAXSY|S];./* a|
|00004460| 72 72 61 79 20 6f 66 20 | 73 79 73 74 65 6d 20 6e |rray of |system n|
|00004470| 61 6d 65 73 20 2a 2f 0a | 20 20 20 20 46 49 4c 45 |ames */.| FILE|
|00004480| 20 20 20 20 20 20 20 20 | 20 20 20 2a 66 70 74 72 | | *fptr|
|00004490| 3b 09 2f 2a 20 66 69 6c | 65 20 64 65 73 63 72 69 |;./* fil|e descri|
|000044a0| 70 74 6f 72 20 2a 2f 0a | 20 20 20 20 69 6e 74 20 |ptor */.| int |
|000044b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 2c 09 09 | | i,..|
|000044c0| 2f 2a 20 6c 6f 6f 70 69 | 6e 67 20 76 61 72 69 61 |/* loopi|ng varia|
|000044d0| 62 6c 65 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 20 |ble */. | |
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 73 75 6c | | resul|
|000044f0| 74 2c 09 2f 2a 20 72 65 | 73 75 6c 74 20 6f 66 20 |t,./* re|sult of |
|00004500| 6c 69 6e 6b 20 63 61 6c | 6c 20 2a 2f 0a 20 20 20 |link cal|l */. |
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004520| 20 73 65 71 2c 09 2f 2a | 20 73 65 71 75 65 6e 63 | seq,./*| sequenc|
|00004530| 65 20 6e 75 6d 62 65 72 | 20 2a 2f 0a 20 20 20 20 |e number| */. |
|00004540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004550| 73 79 73 63 6f 75 6e 74 | 20 3d 20 30 3b 09 2f 2a |syscount| = 0;./*|
|00004560| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 79 73 74 65 | number |of syste|
|00004570| 6d 73 20 74 6f 20 73 65 | 6e 64 20 74 6f 20 2a 2f |ms to se|nd to */|
|00004580| 0a 20 20 20 20 73 74 72 | 75 63 74 20 70 61 73 73 |. str|uct pass|
|00004590| 77 64 20 20 2a 75 75 63 | 70 3b 09 2f 2a 20 73 74 |wd *uuc|p;./* st|
|000045a0| 72 75 63 74 20 66 6f 72 | 20 75 73 65 72 20 75 75 |ruct for| user uu|
|000045b0| 63 70 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 2a |cp infor|mation *|
|000045c0| 2f 0a 23 69 66 64 65 66 | 20 48 44 42 0a 20 20 20 |/.#ifdef| HDB. |
|000045d0| 20 73 74 72 75 63 74 20 | 73 74 61 74 09 20 20 20 | struct |stat. |
|000045e0| 20 73 62 75 66 3b 09 2f | 2a 20 73 74 72 75 63 74 | sbuf;./|* struct|
|000045f0| 20 66 6f 72 20 63 68 65 | 63 6b 20 64 69 72 65 63 | for che|ck direc|
|00004600| 74 72 69 65 73 20 2a 2f | 0a 23 65 6e 64 69 66 0a |tries */|.#endif.|
|00004610| 20 20 20 20 0a 20 20 20 | 20 69 66 20 28 61 72 67 | . | if (arg|
|00004620| 63 20 3c 20 34 29 20 7b | 0a 09 75 73 61 67 65 28 |c < 4) {|..usage(|
|00004630| 61 72 67 76 5b 30 5d 29 | 3b 0a 20 20 20 20 7d 0a |argv[0])|;. }.|
|00004640| 20 20 20 20 0a 20 20 20 | 20 69 66 20 28 28 75 75 | . | if ((uu|
|00004650| 63 70 20 3d 20 67 65 74 | 70 77 6e 61 6d 28 22 75 |cp = get|pwnam("u|
|00004660| 75 63 70 22 29 29 20 3e | 3d 20 30 29 20 7b 0a 09 |ucp")) >|= 0) {..|
|00004670| 73 65 74 75 69 64 28 75 | 75 63 70 2d 3e 70 77 5f |setuid(u|ucp->pw_|
|00004680| 75 69 64 29 3b 0a 09 73 | 65 74 67 69 64 28 75 75 |uid);..s|etgid(uu|
|00004690| 63 70 2d 3e 70 77 5f 67 | 69 64 29 3b 0a 20 20 20 |cp->pw_g|id);. |
|000046a0| 20 7d 0a 0a 20 20 20 20 | 73 74 72 63 70 79 28 66 | }.. |strcpy(f|
|000046b0| 69 6c 65 2c 20 61 72 67 | 76 5b 31 5d 29 3b 09 2f |ile, arg|v[1]);./|
|000046c0| 2a 20 67 65 74 20 74 68 | 65 20 64 61 74 61 20 66 |* get th|e data f|
|000046d0| 69 6c 65 20 6e 61 6d 65 | 20 2a 2f 0a 0a 20 20 20 |ile name| */.. |
|000046e0| 20 66 6f 72 20 28 69 20 | 3d 20 33 3b 20 69 20 3c | for (i |= 3; i <|
|000046f0| 20 61 72 67 63 3b 20 69 | 2b 2b 29 20 7b 2f 2a 20 | argc; i|++) {/* |
|00004700| 67 65 74 20 74 68 65 20 | 73 79 73 74 65 6d 20 6e |get the |system n|
|00004710| 61 6d 65 73 20 2a 2f 0a | 09 73 79 73 6e 61 6d 65 |ames */.|.sysname|
|00004720| 5b 69 20 2d 20 33 5d 20 | 3d 20 61 72 67 76 5b 69 |[i - 3] |= argv[i|
|00004730| 5d 3b 0a 09 73 79 73 63 | 6f 75 6e 74 2b 2b 3b 0a |];..sysc|ount++;.|
|00004740| 20 20 20 20 7d 0a 23 69 | 66 6e 64 65 66 09 4e 4f | }.#i|fndef.NO|
|00004750| 44 45 0a 20 20 20 20 28 | 76 6f 69 64 29 20 67 65 |DE. (|void) ge|
|00004760| 74 6e 6f 64 65 28 6e 6f | 64 65 29 3b 09 2f 2a 20 |tnode(no|de);./* |
|00004770| 67 65 74 20 74 68 65 20 | 6e 6f 64 65 20 6e 61 6d |get the |node nam|
|00004780| 65 20 2a 2f 0a 23 65 6e | 64 69 66 09 09 09 09 2f |e */.#en|dif..../|
|00004790| 2a 20 4e 4f 44 45 20 2a | 2f 0a 20 20 20 20 28 76 |* NODE *|/. (v|
|000047a0| 6f 69 64 29 20 75 6d 61 | 73 6b 28 4d 41 53 4b 29 |oid) uma|sk(MASK)|
|000047b0| 3b 09 09 2f 2a 20 63 6c | 65 61 72 20 74 68 65 20 |;../* cl|ear the |
|000047c0| 6d 61 73 6b 20 62 69 74 | 73 20 2a 2f 0a 20 20 20 |mask bit|s */. |
|000047d0| 20 73 65 71 20 3d 20 67 | 65 74 70 69 64 28 29 3b | seq = g|etpid();|
|000047e0| 09 09 2f 2a 20 67 65 74 | 20 74 68 65 20 70 72 6f |../* get| the pro|
|000047f0| 63 65 73 73 20 69 64 20 | 2a 2f 0a 20 20 20 20 69 |cess id |*/. i|
|00004800| 20 3d 20 30 3b 0a 20 20 | 20 20 77 68 69 6c 65 20 | = 0;. | while |
|00004810| 28 69 20 3c 20 73 79 73 | 63 6f 75 6e 74 29 20 7b |(i < sys|count) {|
|00004820| 0a 0a 23 69 66 64 65 66 | 20 48 44 42 0a 09 28 76 |..#ifdef| HDB..(v|
|00004830| 6f 69 64 29 20 73 70 72 | 69 6e 74 66 28 70 61 74 |oid) spr|intf(pat|
|00004840| 68 2c 20 22 25 73 2f 25 | 73 22 2c 20 58 44 49 52 |h, "%s/%|s", XDIR|
|00004850| 2c 20 73 79 73 6e 61 6d | 65 5b 69 5d 29 3b 0a 09 |, sysnam|e[i]);..|
|00004860| 69 66 20 28 73 74 61 74 | 28 70 61 74 68 2c 20 26 |if (stat|(path, &|
|00004870| 73 62 75 66 29 20 3d 3d | 20 2d 31 20 26 26 20 65 |sbuf) ==| -1 && e|
|00004880| 72 72 6e 6f 20 3d 3d 20 | 45 4e 4f 45 4e 54 29 20 |rrno == |ENOENT) |
|00004890| 7b 0a 09 20 20 20 20 69 | 66 20 28 6d 6b 64 69 72 |{.. i|f (mkdir|
|000048a0| 28 70 61 74 68 2c 20 30 | 37 35 35 29 20 3c 20 30 |(path, 0|755) < 0|
|000048b0| 29 20 7b 0a 09 09 28 76 | 6f 69 64 29 20 66 70 72 |) {...(v|oid) fpr|
|000048c0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|000048d0| 3a 20 75 6e 61 62 6c 65 | 20 74 6f 20 63 72 65 61 |: unable| to crea|
|000048e0| 74 65 20 64 69 72 65 63 | 74 6f 72 79 20 25 73 5c |te direc|tory %s\|
|000048f0| 6e 22 2c 20 0a 09 09 09 | 20 20 20 20 20 20 20 63 |n", ....| c|
|00004900| 6f 6d 6d 61 6e 64 2c 20 | 70 61 74 68 29 3b 0a 09 |ommand, |path);..|
|00004910| 09 2f 2a 0a 09 09 20 2a | 20 49 66 20 74 68 65 20 |./*... *| If the |
|00004920| 64 69 72 65 63 74 6f 72 | 79 20 63 61 6e 6e 6f 74 |director|y cannot|
|00004930| 20 62 65 20 63 72 65 61 | 74 65 64 2c 20 74 68 65 | be crea|ted, the|
|00004940| 72 65 20 69 73 20 6c 69 | 74 74 6c 65 0a 09 09 20 |re is li|ttle... |
|00004950| 2a 20 73 65 6e 73 65 20 | 67 6f 69 6e 67 20 74 68 |* sense |going th|
|00004960| 72 6f 75 67 68 20 74 68 | 65 20 72 65 73 74 20 6f |rough th|e rest o|
|00004970| 66 20 74 68 65 20 6d 6f | 74 69 6f 6e 73 20 74 6f |f the mo|tions to|
|00004980| 20 63 6f 70 79 0a 09 09 | 20 2a 20 74 68 65 20 66 | copy...| * the f|
|00004990| 69 6c 65 20 74 68 65 20 | 74 68 65 20 6e 6f 6e 2d |ile the |the non-|
|000049a0| 65 78 69 73 74 61 6e 74 | 20 64 69 72 65 63 74 6f |existant| directo|
|000049b0| 72 79 2e 2e 2e 0a 09 09 | 20 2a 2f 0a 09 09 63 6f |ry......| */...co|
|000049c0| 6e 74 69 6e 75 65 3b 0a | 09 20 20 20 20 7d 0a 09 |ntinue;.|. }..|
|000049d0| 7d 0a 23 65 6e 64 69 66 | 0a 0a 09 2f 2a 0a 09 20 |}.#endif|.../*.. |
|000049e0| 2a 20 43 6c 65 61 6e 65 | 64 20 75 70 20 6c 6f 67 |* Cleane|d up log|
|000049f0| 69 63 20 61 20 62 69 74 | 20 2d 20 4d 48 43 20 0a |ic a bit| - MHC .|
|00004a00| 09 20 2a 2f 0a 09 64 6f | 20 7b 0a 09 20 20 20 20 |. */..do| {.. |
|00004a10| 6d 61 6b 65 6e 61 6d 65 | 28 73 79 73 6e 61 6d 65 |makename|(sysname|
|00004a20| 5b 69 5d 2c 20 73 65 71 | 2b 2b 29 3b 0a 23 69 66 |[i], seq|++);.#if|
|00004a30| 64 65 66 20 48 44 42 0a | 09 20 20 20 20 28 76 6f |def HDB.|. (vo|
|00004a40| 69 64 29 20 73 70 72 69 | 6e 74 66 28 70 61 74 68 |id) spri|ntf(path|
|00004a50| 2c 20 22 25 73 2f 25 73 | 2f 25 73 22 2c 20 58 44 |, "%s/%s|/%s", XD|
|00004a60| 49 52 2c 20 73 79 73 6e | 61 6d 65 5b 69 5d 2c 20 |IR, sysn|ame[i], |
|00004a70| 72 65 6d 6e 61 6d 65 29 | 3b 0a 23 65 6c 73 65 0a |remname)|;.#else.|
|00004a80| 09 20 20 20 20 28 76 6f | 69 64 29 20 73 70 72 69 |. (vo|id) spri|
|00004a90| 6e 74 66 28 70 61 74 68 | 2c 20 22 25 73 2f 25 73 |ntf(path|, "%s/%s|
|00004aa0| 22 2c 20 58 44 49 52 2c | 20 72 65 6d 6e 61 6d 65 |", XDIR,| remname|
|00004ab0| 29 3b 0a 23 65 6e 64 69 | 66 09 09 09 09 2f 2a 20 |);.#endi|f..../* |
|00004ac0| 48 44 42 20 2a 2f 0a 09 | 7d 20 77 68 69 6c 65 20 |HDB */..|} while |
|00004ad0| 28 21 61 63 63 65 73 73 | 28 70 61 74 68 2c 20 30 |(!access|(path, 0|
|00004ae0| 29 29 3b 0a 0a 23 69 66 | 64 65 66 20 48 44 42 0a |));..#if|def HDB.|
|00004af0| 09 28 76 6f 69 64 29 20 | 73 70 72 69 6e 74 66 28 |.(void) |sprintf(|
|00004b00| 70 61 74 68 2c 20 22 25 | 73 2f 25 73 2f 25 73 22 |path, "%|s/%s/%s"|
|00004b10| 2c 20 44 44 49 52 2c 20 | 73 79 73 6e 61 6d 65 5b |, DDIR, |sysname[|
|00004b20| 69 5d 2c 20 63 6f 6d 6e | 61 6d 65 29 3b 0a 23 65 |i], comn|ame);.#e|
|00004b30| 6c 73 65 0a 09 28 76 6f | 69 64 29 20 73 70 72 69 |lse..(vo|id) spri|
|00004b40| 6e 74 66 28 70 61 74 68 | 2c 20 22 25 73 2f 25 73 |ntf(path|, "%s/%s|
|00004b50| 22 2c 20 44 44 49 52 2c | 20 63 6f 6d 6e 61 6d 65 |", DDIR,| comname|
|00004b60| 29 3b 0a 23 65 6e 64 69 | 66 09 09 09 09 2f 2a 20 |);.#endi|f..../* |
|00004b70| 48 44 42 20 2a 2f 0a 0a | 09 69 66 20 28 28 72 65 |HDB */..|.if ((re|
|00004b80| 73 75 6c 74 20 3d 20 6c | 69 6e 6b 28 66 69 6c 65 |sult = l|ink(file|
|00004b90| 2c 20 70 61 74 68 29 29 | 20 3d 3d 20 2d 31 20 26 |, path))| == -1 &|
|00004ba0| 26 20 28 65 72 72 6e 6f | 20 3d 3d 20 45 58 44 45 |& (errno| == EXDE|
|00004bb0| 56 29 29 20 7b 0a 09 20 | 20 20 20 2f 2a 0a 09 20 |V)) {.. | /*.. |
|00004bc0| 20 20 20 20 2a 20 4c 69 | 6e 6b 20 66 61 69 6c 65 | * Li|nk faile|
|00004bd0| 64 20 64 75 65 20 74 6f | 20 74 61 72 67 65 74 20 |d due to| target |
|00004be0| 64 69 72 65 63 74 6f 72 | 69 6e 67 20 62 65 69 6e |director|ing bein|
|00004bf0| 67 20 6f 6e 20 61 20 64 | 69 66 66 65 72 65 6e 74 |g on a d|ifferent|
|00004c00| 0a 09 20 20 20 20 20 2a | 20 66 69 6c 65 20 73 79 |.. *| file sy|
|00004c10| 73 74 65 6d 2e 20 20 54 | 72 79 20 64 6f 69 6e 67 |stem. T|ry doing|
|00004c20| 20 61 20 63 6f 70 79 2e | 20 49 66 20 63 6f 70 79 | a copy.| If copy|
|00004c30| 20 77 6f 72 6b 73 20 74 | 68 65 6e 20 6d 6f 76 65 | works t|hen move|
|00004c40| 20 70 61 74 68 0a 09 20 | 20 20 20 20 2a 20 74 6f | path.. | * to|
|00004c50| 20 66 69 6c 65 20 73 6f | 20 74 68 61 74 20 69 74 | file so| that it|
|00004c60| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 61 73 20 | can be |used as |
|00004c70| 61 20 73 6f 75 72 63 65 | 20 74 6f 20 6c 69 6e 6b |a source| to link|
|00004c80| 20 74 68 65 20 72 65 73 | 74 20 6f 66 0a 09 20 20 | the res|t of.. |
|00004c90| 20 20 20 2a 20 74 68 65 | 20 66 69 6c 65 73 2e 20 | * the| files. |
|00004ca0| 0a 09 20 20 20 20 20 2a | 2f 0a 0a 09 20 20 20 20 |.. *|/... |
|00004cb0| 2f 2a 20 63 68 61 6e 67 | 65 64 20 74 6f 20 64 6f |/* chang|ed to do|
|00004cc0| 20 73 74 72 63 70 79 20 | 6f 6e 6c 79 20 69 66 20 | strcpy |only if |
|00004cd0| 63 6f 70 79 20 77 6f 72 | 6b 73 20 2d 20 4d 48 43 |copy wor|ks - MHC|
|00004ce0| 20 2a 2f 0a 0a 09 20 20 | 20 20 69 66 20 28 72 65 | */... | if (re|
|00004cf0| 73 75 6c 74 20 3d 20 63 | 6f 70 79 28 66 69 6c 65 |sult = c|opy(file|
|00004d00| 2c 20 70 61 74 68 29 20 | 3d 3d 20 30 29 20 7b 0a |, path) |== 0) {.|
|00004d10| 09 09 73 74 72 63 70 79 | 28 66 69 6c 65 2c 20 70 |..strcpy|(file, p|
|00004d20| 61 74 68 29 3b 0a 09 20 | 20 20 20 7d 0a 09 20 20 |ath);.. | }.. |
|00004d30| 20 20 0a 09 7d 20 65 6c | 73 65 20 69 66 20 28 72 | ..} el|se if (r|
|00004d40| 65 73 75 6c 74 20 21 3d | 20 30 29 20 7b 0a 09 20 |esult !=| 0) {.. |
|00004d50| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00004d60| 72 2c 20 22 75 75 63 61 | 73 74 3a 20 4c 69 6e 6b |r, "uuca|st: Link|
|00004d70| 20 66 61 69 6c 65 64 20 | 66 72 6f 6d 20 25 73 20 | failed |from %s |
|00004d80| 74 6f 20 25 73 3a 20 25 | 64 5c 6e 22 2c 0a 09 09 |to %s: %|d\n",...|
|00004d90| 20 20 20 20 66 69 6c 65 | 2c 20 70 61 74 68 2c 20 | file|, path, |
|00004da0| 65 72 72 6e 6f 29 3b 0a | 09 20 20 20 20 65 78 69 |errno);.|. exi|
|00004db0| 74 28 65 72 72 6e 6f 29 | 3b 0a 09 7d 09 09 09 2f |t(errno)|;..}.../|
|00004dc0| 2a 20 65 6e 64 20 65 6c | 73 65 20 2a 2f 0a 23 20 |* end el|se */.# |
|00004dd0| 69 66 64 65 66 20 48 44 | 42 0a 09 28 76 6f 69 64 |ifdef HD|B..(void|
|00004de0| 29 20 73 70 72 69 6e 74 | 66 28 70 61 74 68 2c 20 |) sprint|f(path, |
|00004df0| 22 25 73 2f 25 73 2f 25 | 73 22 2c 20 58 44 49 52 |"%s/%s/%|s", XDIR|
|00004e00| 2c 20 73 79 73 6e 61 6d | 65 5b 69 5d 2c 20 72 65 |, sysnam|e[i], re|
|00004e10| 6d 6e 61 6d 65 29 3b 0a | 23 65 6c 73 65 0a 09 28 |mname);.|#else..(|
|00004e20| 76 6f 69 64 29 20 73 70 | 72 69 6e 74 66 28 70 61 |void) sp|rintf(pa|
|00004e30| 74 68 2c 20 22 25 73 2f | 25 73 22 2c 20 58 44 49 |th, "%s/|%s", XDI|
|00004e40| 52 2c 20 72 65 6d 6e 61 | 6d 65 29 3b 0a 23 65 6e |R, remna|me);.#en|
|00004e50| 64 69 66 0a 09 66 70 74 | 72 20 3d 20 66 6f 70 65 |dif..fpt|r = fope|
|00004e60| 6e 28 70 61 74 68 2c 20 | 22 77 22 29 3b 0a 23 69 |n(path, |"w");.#i|
|00004e70| 66 64 65 66 09 57 41 4e | 54 5a 0a 09 66 70 72 69 |fdef.WAN|TZ..fpri|
|00004e80| 6e 74 66 28 66 70 74 72 | 2c 20 22 55 20 25 73 20 |ntf(fptr|, "U %s |
|00004e90| 25 73 5c 6e 4e 5c 6e 5a | 5c 6e 52 20 25 73 5c 6e |%s\nN\nZ|\nR %s\n|
|00004ea0| 46 20 25 73 5c 6e 49 20 | 25 73 5c 6e 43 20 25 73 |F %s\nI |%s\nC %s|
|00004eb0| 5c 6e 22 2c 0a 09 09 75 | 73 65 72 2c 20 6e 6f 64 |\n",...u|ser, nod|
|00004ec0| 65 2c 20 75 73 65 72 2c | 20 63 6f 6d 6e 61 6d 65 |e, user,| comname|
|00004ed0| 2c 20 63 6f 6d 6e 61 6d | 65 2c 20 63 6f 6d 6d 61 |, comnam|e, comma|
|00004ee0| 6e 64 29 3b 0a 23 65 6c | 73 65 0a 09 66 70 72 69 |nd);.#el|se..fpri|
|00004ef0| 6e 74 66 28 66 70 74 72 | 2c 20 22 55 20 25 73 20 |ntf(fptr|, "U %s |
|00004f00| 25 73 5c 6e 46 20 25 73 | 5c 6e 49 20 25 73 5c 6e |%s\nF %s|\nI %s\n|
|00004f10| 43 20 25 73 5c 6e 22 2c | 20 75 73 65 72 2c 20 6e |C %s\n",| user, n|
|00004f20| 6f 64 65 2c 0a 09 09 63 | 6f 6d 6e 61 6d 65 2c 20 |ode,...c|omname, |
|00004f30| 63 6f 6d 6e 61 6d 65 2c | 20 63 6f 6d 6d 61 6e 64 |comname,| command|
|00004f40| 29 3b 0a 23 65 6e 64 69 | 66 0a 09 66 63 6c 6f 73 |);.#endi|f..fclos|
|00004f50| 65 28 66 70 74 72 29 3b | 0a 23 69 66 64 65 66 20 |e(fptr);|.#ifdef |
|00004f60| 48 44 42 0a 09 28 76 6f | 69 64 29 20 73 70 72 69 |HDB..(vo|id) spri|
|00004f70| 6e 74 66 28 70 61 74 68 | 2c 20 22 25 73 2f 25 73 |ntf(path|, "%s/%s|
|00004f80| 2f 25 73 22 2c 20 43 44 | 49 52 2c 20 73 79 73 6e |/%s", CD|IR, sysn|
|00004f90| 61 6d 65 5b 69 5d 2c 20 | 6c 6f 63 6e 61 6d 65 29 |ame[i], |locname)|
|00004fa0| 3b 0a 23 65 6c 73 65 0a | 09 28 76 6f 69 64 29 20 |;.#else.|.(void) |
|00004fb0| 73 70 72 69 6e 74 66 28 | 70 61 74 68 2c 20 22 25 |sprintf(|path, "%|
|00004fc0| 73 2f 25 73 22 2c 20 43 | 44 49 52 2c 20 6c 6f 63 |s/%s", C|DIR, loc|
|00004fd0| 6e 61 6d 65 29 3b 0a 23 | 65 6e 64 69 66 0a 09 66 |name);.#|endif..f|
|00004fe0| 70 74 72 20 3d 20 66 6f | 70 65 6e 28 70 61 74 68 |ptr = fo|pen(path|
|00004ff0| 2c 20 22 77 22 29 3b 0a | 23 69 66 64 65 66 20 48 |, "w");.|#ifdef H|
|00005000| 44 42 0a 09 66 70 72 69 | 6e 74 66 28 66 70 74 72 |DB..fpri|ntf(fptr|
|00005010| 2c 20 22 53 20 25 73 20 | 25 73 20 25 73 20 2d 20 |, "S %s |%s %s - |
|00005020| 25 73 20 30 36 36 36 20 | 25 73 5c 6e 53 20 25 73 |%s 0666 |%s\nS %s|
|00005030| 20 25 73 20 25 73 20 2d | 20 25 73 20 30 36 36 36 | %s %s -| %s 0666|
|00005040| 20 25 73 5c 6e 22 2c 0a | 09 09 63 6f 6d 6e 61 6d | %s\n",.|..comnam|
|00005050| 65 2c 20 63 6f 6d 6e 61 | 6d 65 2c 20 75 73 65 72 |e, comna|me, user|
|00005060| 2c 20 63 6f 6d 6e 61 6d | 65 2c 20 75 73 65 72 2c |, comnam|e, user,|
|00005070| 20 72 65 6d 6e 61 6d 65 | 2c 20 6e 72 65 6d 6e 61 | remname|, nremna|
|00005080| 6d 65 2c 0a 09 09 75 73 | 65 72 2c 20 72 65 6d 6e |me,...us|er, remn|
|00005090| 61 6d 65 2c 20 75 73 65 | 72 29 3b 0a 23 65 6c 73 |ame, use|r);.#els|
|000050a0| 65 0a 09 66 70 72 69 6e | 74 66 28 66 70 74 72 2c |e..fprin|tf(fptr,|
|000050b0| 20 22 53 20 25 73 20 25 | 73 20 25 73 20 2d 20 25 | "S %s %|s %s - %|
|000050c0| 73 20 30 36 36 36 5c 6e | 53 20 25 73 20 25 73 20 |s 0666\n|S %s %s |
|000050d0| 25 73 20 2d 20 25 73 20 | 30 36 36 36 5c 6e 22 2c |%s - %s |0666\n",|
|000050e0| 0a 09 09 63 6f 6d 6e 61 | 6d 65 2c 20 63 6f 6d 6e |...comna|me, comn|
|000050f0| 61 6d 65 2c 20 75 73 65 | 72 2c 20 63 6f 6d 6e 61 |ame, use|r, comna|
|00005100| 6d 65 2c 20 72 65 6d 6e | 61 6d 65 2c 20 6e 72 65 |me, remn|ame, nre|
|00005110| 6d 6e 61 6d 65 2c 0a 09 | 09 75 73 65 72 2c 20 72 |mname,..|.user, r|
|00005120| 65 6d 6e 61 6d 65 29 3b | 0a 23 65 6e 64 69 66 0a |emname);|.#endif.|
|00005130| 09 66 63 6c 6f 73 65 28 | 66 70 74 72 29 3b 0a 09 |.fclose(|fptr);..|
|00005140| 69 2b 2b 3b 0a 20 20 20 | 20 7d 09 09 09 09 2f 2a |i++;. | }..../*|
|00005150| 20 65 6e 64 20 66 6f 72 | 20 2a 2f 0a 7d 0a 0a 0a | end for| */.}...|
|00005160| 2f 2a 20 63 6f 70 79 20 | 2d 20 63 6f 70 79 20 61 |/* copy |- copy a|
|00005170| 20 66 69 6c 65 20 66 72 | 6f 6d 20 6f 6e 65 20 73 | file fr|om one s|
|00005180| 70 6f 74 20 74 6f 20 61 | 6e 6f 74 68 65 72 0a 20 |pot to a|nother. |
|00005190| 2a 0a 20 2a 20 44 45 53 | 43 52 49 50 54 49 4f 4e |*. * DES|CRIPTION|
|000051a0| 0a 20 2a 0a 20 2a 09 43 | 6f 70 79 20 63 6f 70 69 |. *. *.C|opy copi|
|000051b0| 65 73 20 61 20 66 69 6c | 65 20 75 73 69 6e 67 20 |es a fil|e using |
|000051c0| 74 68 65 20 73 79 73 74 | 65 6d 20 63 6f 70 79 20 |the syst|em copy |
|000051d0| 63 6f 6d 6d 61 6e 64 2e | 0a 20 2a 0a 20 2a 20 50 |command.|. *. * P|
|000051e0| 41 52 41 4d 45 54 45 52 | 53 0a 20 2a 0a 20 2a 09 |ARAMETER|S. *. *.|
|000051f0| 63 68 61 72 20 2a 66 69 | 6c 65 31 09 2d 20 66 69 |char *fi|le1.- fi|
|00005200| 6c 65 20 74 6f 20 63 6f | 70 79 20 64 61 74 61 20 |le to co|py data |
|00005210| 66 72 6f 6d 0a 20 2a 09 | 63 68 61 72 20 2a 66 69 |from. *.|char *fi|
|00005220| 6c 65 32 09 2d 20 66 69 | 6c 65 20 74 6f 20 63 6f |le2.- fi|le to co|
|00005230| 70 79 20 64 61 74 61 20 | 74 6f 0a 20 2a 0a 20 2a |py data |to. *. *|
|00005240| 20 52 45 54 55 52 4e 53 | 0a 20 2a 0a 20 2a 09 54 | RETURNS|. *. *.T|
|00005250| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|00005260| 20 73 79 73 74 65 6d 20 | 63 70 28 31 29 20 63 6f | system |cp(1) co|
|00005270| 6d 6d 61 6e 64 2e 0a 20 | 2a 2f 0a 0a 23 69 66 64 |mmand.. |*/..#ifd|
|00005280| 65 66 20 5f 5f 53 54 44 | 43 5f 5f 0a 0a 69 6e 74 |ef __STD|C__..int|
|00005290| 20 63 6f 70 79 28 63 68 | 61 72 20 2a 66 69 6c 65 | copy(ch|ar *file|
|000052a0| 31 2c 20 63 68 61 72 20 | 2a 66 69 6c 65 32 29 0a |1, char |*file2).|
|000052b0| 0a 23 65 6c 73 65 0a 0a | 69 6e 74 20 63 6f 70 79 |.#else..|int copy|
|000052c0| 28 66 69 6c 65 31 2c 20 | 66 69 6c 65 32 29 0a 63 |(file1, |file2).c|
|000052d0| 68 61 72 20 20 20 20 20 | 20 20 20 20 20 20 2a 66 |har | *f|
|000052e0| 69 6c 65 31 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |ile1,. | |
|000052f0| 20 20 20 20 20 2a 66 69 | 6c 65 32 3b 09 09 2f 2a | *fi|le2;../*|
|00005300| 20 73 6f 75 72 63 65 20 | 61 6e 64 20 64 65 73 74 | source |and dest|
|00005310| 69 6e 61 74 69 6f 6e 20 | 6e 61 6d 65 20 2a 2f 0a |ination |name */.|
|00005320| 0a 23 65 6e 64 69 66 0a | 7b 0a 20 20 20 20 63 68 |.#endif.|{. ch|
|00005330| 61 72 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6d |ar | cm|
|00005340| 64 5b 42 55 46 53 49 5a | 5d 3b 2f 2a 20 6d 61 6b |d[BUFSIZ|];/* mak|
|00005350| 65 20 61 20 63 6f 6d 6d | 61 6e 64 20 73 74 72 69 |e a comm|and stri|
|00005360| 6e 67 20 2a 2f 0a 0a 20 | 20 20 20 28 76 6f 69 64 |ng */.. | (void|
|00005370| 29 20 73 70 72 69 6e 74 | 66 28 63 6d 64 2c 20 22 |) sprint|f(cmd, "|
|00005380| 63 70 20 25 73 20 25 73 | 22 2c 20 66 69 6c 65 31 |cp %s %s|", file1|
|00005390| 2c 20 66 69 6c 65 32 29 | 3b 0a 20 20 20 20 72 65 |, file2)|;. re|
|000053a0| 74 75 72 6e 20 28 73 79 | 73 74 65 6d 28 63 6d 64 |turn (sy|stem(cmd|
|000053b0| 29 29 3b 0a 7d 0a 0a 0a | 23 69 66 6e 64 65 66 09 |));.}...|#ifndef.|
|000053c0| 4e 4f 44 45 0a 0a 2f 2a | 20 67 65 74 6e 6f 64 65 |NODE../*| getnode|
|000053d0| 20 2d 20 67 65 74 20 74 | 68 65 20 6e 6f 64 65 6e | - get t|he noden|
|000053e0| 61 6d 65 20 66 6f 72 20 | 74 68 65 20 73 79 73 74 |ame for |the syst|
|000053f0| 65 6d 0a 20 2a 0a 20 2a | 20 44 45 53 43 52 49 50 |em. *. *| DESCRIP|
|00005400| 54 49 4f 4e 0a 20 2a 0a | 20 2a 20 09 47 65 74 6e |TION. *.| * .Getn|
|00005410| 6f 64 65 20 61 74 74 65 | 6d 70 74 73 20 74 6f 20 |ode atte|mpts to |
|00005420| 67 65 74 20 74 68 65 20 | 6e 6f 64 65 20 6e 61 6d |get the |node nam|
|00005430| 65 20 6f 66 20 74 68 65 | 20 73 79 73 74 65 6d 20 |e of the| system |
|00005440| 77 68 69 63 68 0a 20 2a | 09 74 68 69 73 20 70 72 |which. *|.this pr|
|00005450| 6f 67 72 61 6d 20 69 73 | 20 62 65 69 6e 67 20 65 |ogram is| being e|
|00005460| 78 65 63 75 74 65 64 20 | 6f 6e 20 76 69 61 20 74 |xecuted |on via t|
|00005470| 68 65 20 75 6e 61 6d 65 | 20 63 61 6c 6c 2e 20 20 |he uname| call. |
|00005480| 49 66 0a 20 2a 09 74 68 | 65 20 75 6e 61 6d 65 20 |If. *.th|e uname |
|00005490| 63 61 6c 6c 20 73 75 63 | 63 65 65 64 73 2c 20 74 |call suc|ceeds, t|
|000054a0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 73 |he name |of the s|
|000054b0| 79 73 74 65 6d 20 77 69 | 6c 6c 20 62 65 20 0a 20 |ystem wi|ll be . |
|000054c0| 2a 09 63 6f 70 69 65 64 | 20 69 6e 74 6f 20 74 68 |*.copied| into th|
|000054d0| 65 20 61 72 72 61 79 20 | 70 6f 69 6e 74 65 64 20 |e array |pointed |
|000054e0| 74 6f 20 62 79 20 6e 61 | 6d 65 2e 0a 20 2a 0a 20 |to by na|me.. *. |
|000054f0| 2a 20 50 41 52 41 4d 45 | 54 45 52 53 0a 20 2a 0a |* PARAME|TERS. *.|
|00005500| 20 2a 09 63 68 61 72 20 | 2a 6e 61 6d 65 09 2d 20 | *.char |*name.- |
|00005510| 61 72 72 61 79 20 74 6f | 20 73 61 76 65 20 6e 6f |array to| save no|
|00005520| 64 65 20 6e 61 6d 65 20 | 69 6e 0a 20 2a 0a 20 2a |de name |in. *. *|
|00005530| 20 52 45 54 55 52 4e 53 | 0a 20 2a 0a 20 2a 09 47 | RETURNS|. *. *.G|
|00005540| 65 74 6e 6f 64 65 20 72 | 65 74 75 72 6e 73 20 30 |etnode r|eturns 0|
|00005550| 20 69 66 20 74 68 65 20 | 75 6e 61 6d 65 20 63 61 | if the |uname ca|
|00005560| 6c 6c 20 77 61 73 20 73 | 75 63 63 65 73 73 66 75 |ll was s|uccessfu|
|00005570| 6c 6c 20 61 6e 64 20 0a | 20 2a 09 74 68 65 20 6e |ll and .| *.the n|
|00005580| 6f 64 65 20 6e 61 6d 65 | 20 77 61 73 20 63 6f 70 |ode name| was cop|
|00005590| 69 65 64 20 69 6e 74 6f | 20 74 68 65 20 61 72 72 |ied into| the arr|
|000055a0| 61 79 20 70 6f 69 6e 74 | 65 64 20 61 74 20 62 79 |ay point|ed at by|
|000055b0| 20 0a 20 2a 09 6e 61 6d | 65 2e 20 20 49 66 20 74 | . *.nam|e. If t|
|000055c0| 68 65 20 75 6e 61 6d 65 | 20 63 61 6c 6c 20 66 61 |he uname| call fa|
|000055d0| 69 6c 73 2c 20 74 68 65 | 6e 20 74 68 65 20 6e 6f |ils, the|n the no|
|000055e0| 64 65 20 6e 61 6d 65 20 | 69 73 0a 20 2a 09 6e 6f |de name |is. *.no|
|000055f0| 74 20 63 6f 70 69 65 64 | 20 69 6e 74 6f 20 74 68 |t copied| into th|
|00005600| 65 20 61 72 72 61 79 20 | 70 6f 69 6e 74 65 64 20 |e array |pointed |
|00005610| 61 74 20 62 79 20 6e 61 | 6d 65 2c 20 61 6e 64 20 |at by na|me, and |
|00005620| 67 65 74 6e 6f 64 65 0a | 20 2a 09 72 65 74 75 72 |getnode.| *.retur|
|00005630| 6e 73 20 61 20 76 61 6c | 75 65 20 6f 66 20 2d 31 |ns a val|ue of -1|
|00005640| 20 74 6f 20 74 68 65 20 | 63 61 6c 6c 65 72 2e 0a | to the |caller..|
|00005650| 20 2a 2f 0a 0a 23 69 66 | 64 65 66 20 5f 5f 53 54 | */..#if|def __ST|
|00005660| 44 43 5f 5f 0a 0a 69 6e | 74 20 67 65 74 6e 6f 64 |DC__..in|t getnod|
|00005670| 65 28 63 68 61 72 20 2a | 6e 61 6d 65 29 0a 0a 23 |e(char *|name)..#|
|00005680| 65 6c 73 65 0a 0a 69 6e | 74 20 67 65 74 6e 6f 64 |else..in|t getnod|
|00005690| 65 28 6e 61 6d 65 29 0a | 63 68 61 72 20 20 20 20 |e(name).|char |
|000056a0| 20 20 20 20 20 20 20 2a | 6e 61 6d 65 3b 0a 0a 23 | *|name;..#|
|000056b0| 65 6e 64 69 66 0a 7b 0a | 20 20 20 20 73 74 72 75 |endif.{.| stru|
|000056c0| 63 74 20 75 74 73 6e 61 | 6d 65 20 20 62 75 66 66 |ct utsna|me buff|
|000056d0| 65 72 3b 0a 0a 20 20 20 | 20 69 66 20 28 75 6e 61 |er;.. | if (una|
|000056e0| 6d 65 28 26 62 75 66 66 | 65 72 29 20 3d 3d 20 30 |me(&buff|er) == 0|
|000056f0| 29 20 7b 0a 09 73 74 72 | 63 70 79 28 6e 61 6d 65 |) {..str|cpy(name|
|00005700| 2c 20 62 75 66 66 65 72 | 2e 6e 6f 64 65 6e 61 6d |, buffer|.nodenam|
|00005710| 65 29 3b 0a 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |e);..ret|urn(0);.|
|00005720| 20 20 20 20 7d 0a 20 20 | 20 20 72 65 74 75 72 6e | }. | return|
|00005730| 28 2d 31 29 3b 0a 7d 0a | 0a 23 65 6e 64 69 66 20 |(-1);.}.|.#endif |
|00005740| 2f 2a 20 4e 4f 44 45 20 | 2a 2f 0a 0a 0a 2f 2a 20 |/* NODE |*/.../* |
|00005750| 6d 61 6b 65 6e 61 6d 65 | 20 2d 20 6d 61 6b 65 20 |makename| - make |
|00005760| 74 68 65 20 6e 61 6d 65 | 20 66 69 6c 65 73 20 66 |the name| files f|
|00005770| 6f 72 20 63 61 73 74 69 | 6e 67 2e 0a 20 2a 0a 20 |or casti|ng.. *. |
|00005780| 2a 20 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 20 2a |* DESCRI|PTION. *|
|00005790| 0a 20 2a 09 72 65 6d 6e | 61 6d 65 20 61 6e 64 20 |. *.remn|ame and |
|000057a0| 6e 72 65 6d 6e 61 6d 65 | 20 75 73 65 20 67 72 61 |nremname| use gra|
|000057b0| 64 65 32 20 62 65 63 61 | 75 73 65 20 6f 6e 20 73 |de2 beca|use on s|
|000057c0| 6f 6d 65 20 73 79 73 74 | 65 6d 73 20 28 55 6c 74 |ome syst|ems (Ult|
|000057d0| 72 69 78 29 0a 20 2a 09 | 74 68 65 20 72 65 6d 6f |rix). *.|the remo|
|000057e0| 74 65 20 63 6f 6d 6d 61 | 6e 64 20 66 69 6c 65 20 |te comma|nd file |
|000057f0| 6d 75 73 74 20 68 61 76 | 65 20 61 6e 20 58 20 69 |must hav|e an X i|
|00005800| 6e 20 69 74 73 20 6e 61 | 6d 65 2e 20 20 4f 6e 20 |n its na|me. On |
|00005810| 6e 6f 72 6d 61 6c 0a 20 | 2a 09 73 79 73 74 65 6d |normal. |*.system|
|00005820| 73 2c 20 6a 75 73 74 20 | 6d 61 6b 65 20 47 52 41 |s, just |make GRA|
|00005830| 44 45 20 61 6e 64 20 47 | 52 41 44 45 32 20 74 68 |DE and G|RADE2 th|
|00005840| 65 20 73 61 6d 65 2e 0a | 20 2a 0a 20 2a 20 50 41 |e same..| *. * PA|
|00005850| 52 41 4d 45 54 45 52 53 | 0a 20 2a 0a 20 2a 09 63 |RAMETERS|. *. *.c|
|00005860| 68 61 72 20 2a 73 79 73 | 6e 61 6d 20 09 2d 20 6e |har *sys|nam .- n|
|00005870| 61 6d 65 20 6f 66 20 73 | 79 73 74 65 6d 20 74 6f |ame of s|ystem to|
|00005880| 20 73 65 6e 64 20 74 6f | 0a 20 2a 09 69 6e 74 20 | send to|. *.int |
|00005890| 20 6e 75 6d 09 2d 20 73 | 65 71 75 6e 63 65 20 6e | num.- s|equnce n|
|000058a0| 75 6d 62 65 72 20 74 6f | 20 75 73 65 20 66 6f 72 |umber to| use for|
|000058b0| 20 73 65 6e 64 69 6e 67 | 0a 20 2a 0a 20 2a 2f 0a | sending|. *. */.|
|000058c0| 0a 23 69 66 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |.#ifdef |__STDC__|
|000058d0| 0a 0a 76 6f 69 64 20 6d | 61 6b 65 6e 61 6d 65 28 |..void m|akename(|
|000058e0| 63 68 61 72 20 2a 73 79 | 73 6e 61 6d 2c 20 69 6e |char *sy|snam, in|
|000058f0| 74 20 6e 75 6d 29 0a 0a | 23 65 6c 73 65 0a 0a 76 |t num)..|#else..v|
|00005900| 6f 69 64 20 6d 61 6b 65 | 6e 61 6d 65 28 73 79 73 |oid make|name(sys|
|00005910| 6e 61 6d 2c 20 6e 75 6d | 29 09 2f 2a 20 6d 61 6b |nam, num|)./* mak|
|00005920| 65 20 66 69 6c 65 20 6e | 61 6d 65 73 20 2a 2f 0a |e file n|ames */.|
|00005930| 63 68 61 72 20 20 20 20 | 20 20 20 20 20 20 20 2a |char | *|
|00005940| 73 79 73 6e 61 6d 3b 09 | 09 2f 2a 20 73 79 73 74 |sysnam;.|./* syst|
|00005950| 65 6d 20 6e 61 6d 65 20 | 2a 2f 0a 69 6e 74 20 20 |em name |*/.int |
|00005960| 20 20 20 20 20 20 20 20 | 20 20 20 6e 75 6d 3b 09 | | num;.|
|00005970| 09 2f 2a 20 73 65 71 75 | 65 6e 63 65 20 6e 75 6d |./* sequ|ence num|
|00005980| 62 65 72 20 2a 2f 0a 0a | 23 65 6e 64 69 66 0a 7b |ber */..|#endif.{|
|00005990| 0a 20 20 20 20 77 68 69 | 6c 65 20 28 6e 75 6d 20 |. whi|le (num |
|000059a0| 3e 20 28 31 30 30 30 30 | 20 2d 20 31 29 29 0a 09 |> (10000| - 1))..|
|000059b0| 6e 75 6d 20 3d 20 6e 75 | 6d 20 2d 20 31 30 30 30 |num = nu|m - 1000|
|000059c0| 30 3b 0a 23 69 66 64 65 | 66 20 48 44 42 0a 20 20 |0;.#ifde|f HDB. |
|000059d0| 20 20 28 76 6f 69 64 29 | 20 73 70 72 69 6e 74 66 | (void)| sprintf|
|000059e0| 28 63 6f 6d 6e 61 6d 65 | 2c 20 22 44 2e 25 2e 35 |(comname|, "D.%.5|
|000059f0| 73 25 73 25 30 34 64 22 | 2c 20 6e 6f 64 65 2c 20 |s%s%04d"|, node, |
|00005a00| 47 52 41 44 45 2c 20 6e | 75 6d 29 3b 0a 20 20 20 |GRADE, n|um);. |
|00005a10| 20 28 76 6f 69 64 29 20 | 73 70 72 69 6e 74 66 28 | (void) |sprintf(|
|00005a20| 72 65 6d 6e 61 6d 65 2c | 20 22 44 2e 25 2e 35 73 |remname,| "D.%.5s|
|00005a30| 25 30 34 64 61 31 32 63 | 22 2c 20 73 79 73 6e 61 |%04da12c|", sysna|
|00005a40| 6d 2c 20 6e 75 6d 29 3b | 0a 20 20 20 20 28 76 6f |m, num);|. (vo|
|00005a50| 69 64 29 20 73 70 72 69 | 6e 74 66 28 6e 72 65 6d |id) spri|ntf(nrem|
|00005a60| 6e 61 6d 65 2c 20 22 58 | 2e 25 2e 37 73 25 73 25 |name, "X|.%.7s%s%|
|00005a70| 30 34 64 22 2c 20 73 79 | 73 6e 61 6d 2c 20 47 52 |04d", sy|snam, GR|
|00005a80| 41 44 45 2c 20 6e 75 6d | 29 3b 0a 20 20 20 20 28 |ADE, num|);. (|
|00005a90| 76 6f 69 64 29 20 73 70 | 72 69 6e 74 66 28 6c 6f |void) sp|rintf(lo|
|00005aa0| 63 6e 61 6d 65 2c 20 22 | 43 2e 25 2e 37 73 25 73 |cname, "|C.%.7s%s|
|00005ab0| 25 30 34 64 22 2c 20 73 | 79 73 6e 61 6d 2c 20 47 |%04d", s|ysnam, G|
|00005ac0| 52 41 44 45 2c 20 6e 75 | 6d 29 3b 0a 23 65 6c 73 |RADE, nu|m);.#els|
|00005ad0| 65 0a 23 69 66 6e 64 65 | 66 09 47 52 41 44 45 32 |e.#ifnde|f.GRADE2|
|00005ae0| 0a 20 20 20 20 28 76 6f | 69 64 29 20 73 70 72 69 |. (vo|id) spri|
|00005af0| 6e 74 66 28 63 6f 6d 6e | 61 6d 65 2c 20 22 44 2e |ntf(comn|ame, "D.|
|00005b00| 25 2e 36 73 25 73 25 30 | 34 64 22 2c 20 73 79 73 |%.6s%s%0|4d", sys|
|00005b10| 6e 61 6d 2c 20 47 52 41 | 44 45 2c 20 6e 75 6d 29 |nam, GRA|DE, num)|
|00005b20| 3b 0a 20 20 20 20 28 76 | 6f 69 64 29 20 73 70 72 |;. (v|oid) spr|
|00005b30| 69 6e 74 66 28 72 65 6d | 6e 61 6d 65 2c 20 22 44 |intf(rem|name, "D|
|00005b40| 2e 25 2e 36 73 25 73 25 | 30 34 64 22 2c 20 6e 6f |.%.6s%s%|04d", no|
|00005b50| 64 65 2c 20 47 52 41 44 | 45 2c 20 6e 75 6d 29 3b |de, GRAD|E, num);|
|00005b60| 0a 20 20 20 20 28 76 6f | 69 64 29 20 73 70 72 69 |. (vo|id) spri|
|00005b70| 6e 74 66 28 6e 72 65 6d | 6e 61 6d 65 2c 20 22 58 |ntf(nrem|name, "X|
|00005b80| 2e 25 2e 36 73 25 73 25 | 30 34 64 22 2c 20 6e 6f |.%.6s%s%|04d", no|
|00005b90| 64 65 2c 20 47 52 41 44 | 45 2c 20 6e 75 6d 29 3b |de, GRAD|E, num);|
|00005ba0| 0a 20 20 20 20 28 76 6f | 69 64 29 20 73 70 72 69 |. (vo|id) spri|
|00005bb0| 6e 74 66 28 6c 6f 63 6e | 61 6d 65 2c 20 22 43 2e |ntf(locn|ame, "C.|
|00005bc0| 25 2e 36 73 25 73 25 30 | 34 64 22 2c 20 73 79 73 |%.6s%s%0|4d", sys|
|00005bd0| 6e 61 6d 2c 20 47 52 41 | 44 45 2c 20 6e 75 6d 29 |nam, GRA|DE, num)|
|00005be0| 3b 0a 23 65 6c 73 65 0a | 20 20 20 20 28 76 6f 69 |;.#else.| (voi|
|00005bf0| 64 29 20 73 70 72 69 6e | 74 66 28 63 6f 6d 6e 61 |d) sprin|tf(comna|
|00005c00| 6d 65 2c 20 22 44 2e 25 | 2e 36 73 25 73 25 30 34 |me, "D.%|.6s%s%04|
|00005c10| 64 22 2c 20 73 79 73 6e | 61 6d 2c 20 47 52 41 44 |d", sysn|am, GRAD|
|00005c20| 45 2c 20 6e 75 6d 29 3b | 0a 20 20 20 20 28 76 6f |E, num);|. (vo|
|00005c30| 69 64 29 20 73 70 72 69 | 6e 74 66 28 72 65 6d 6e |id) spri|ntf(remn|
|00005c40| 61 6d 65 2c 20 22 44 2e | 25 2e 36 73 25 73 25 30 |ame, "D.|%.6s%s%0|
|00005c50| 34 64 22 2c 20 6e 6f 64 | 65 2c 20 47 52 41 44 45 |4d", nod|e, GRADE|
|00005c60| 32 2c 20 6e 75 6d 29 3b | 0a 20 20 20 20 28 76 6f |2, num);|. (vo|
|00005c70| 69 64 29 20 73 70 72 69 | 6e 74 66 28 6e 72 65 6d |id) spri|ntf(nrem|
|00005c80| 6e 61 6d 65 2c 20 22 58 | 2e 25 2e 36 73 25 73 25 |name, "X|.%.6s%s%|
|00005c90| 30 34 64 22 2c 20 6e 6f | 64 65 2c 20 47 52 41 44 |04d", no|de, GRAD|
|00005ca0| 45 32 2c 20 6e 75 6d 29 | 3b 0a 20 20 20 20 28 76 |E2, num)|;. (v|
|00005cb0| 6f 69 64 29 20 73 70 72 | 69 6e 74 66 28 6c 6f 63 |oid) spr|intf(loc|
|00005cc0| 6e 61 6d 65 2c 20 22 43 | 2e 25 2e 36 73 25 73 25 |name, "C|.%.6s%s%|
|00005cd0| 30 34 64 22 2c 20 73 79 | 73 6e 61 6d 2c 20 47 52 |04d", sy|snam, GR|
|00005ce0| 41 44 45 2c 20 6e 75 6d | 29 3b 0a 23 65 6e 64 69 |ADE, num|);.#endi|
|00005cf0| 66 09 21 47 52 41 44 45 | 32 0a 23 65 6e 64 69 66 |f.!GRADE|2.#endif|
|00005d00| 09 48 44 42 0a 7d 0a 0a | 0a 2f 2a 20 75 73 61 67 |.HDB.}..|./* usag|
|00005d10| 65 20 2d 20 70 72 69 6e | 74 20 61 20 75 73 61 67 |e - prin|t a usag|
|00005d20| 65 20 6d 65 73 73 61 67 | 65 20 61 6e 64 20 65 78 |e messag|e and ex|
|00005d30| 69 74 0a 20 2a 0a 20 2a | 20 44 45 53 43 52 49 50 |it. *. *| DESCRIP|
|00005d40| 54 49 4f 4e 0a 20 2a 0a | 20 2a 09 55 73 61 67 65 |TION. *.| *.Usage|
|00005d50| 20 70 72 69 6e 74 73 20 | 6f 75 74 20 61 20 68 65 | prints |out a he|
|00005d60| 6c 70 66 75 6c 20 75 73 | 61 67 65 20 6d 65 73 73 |lpful us|age mess|
|00005d70| 61 67 65 20 6f 6e 20 73 | 74 61 6e 64 61 72 64 20 |age on s|tandard |
|00005d80| 6f 75 74 70 75 74 0a 20 | 2a 09 61 6e 64 20 74 65 |output. |*.and te|
|00005d90| 72 6d 69 6e 61 74 65 73 | 20 74 68 65 20 70 72 6f |rminates| the pro|
|00005da0| 67 72 61 6d 2e 0a 20 2a | 0a 20 2a 20 52 45 54 55 |gram.. *|. * RETU|
|00005db0| 52 4e 53 0a 20 2a 0a 20 | 2a 09 55 73 61 67 65 20 |RNS. *. |*.Usage |
|00005dc0| 72 65 74 75 72 6e 73 20 | 61 20 76 61 6c 75 65 20 |returns |a value |
|00005dd0| 6f 66 20 31 20 74 6f 20 | 74 68 65 20 70 61 72 65 |of 1 to |the pare|
|00005de0| 6e 74 20 70 72 6f 63 65 | 73 73 2e 0a 20 2a 2f 0a |nt proce|ss.. */.|
|00005df0| 0a 23 69 66 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |.#ifdef |__STDC__|
|00005e00| 0a 0a 76 6f 69 64 20 75 | 73 61 67 65 28 63 68 61 |..void u|sage(cha|
|00005e10| 72 20 2a 63 6f 6d 6d 61 | 6e 64 29 0a 0a 23 65 6c |r *comma|nd)..#el|
|00005e20| 73 65 0a 0a 76 6f 69 64 | 20 75 73 61 67 65 28 63 |se..void| usage(c|
|00005e30| 6f 6d 6d 61 6e 64 29 0a | 63 68 61 72 20 20 20 20 |ommand).|char |
|00005e40| 20 20 20 20 20 20 20 2a | 63 6f 6d 6d 61 6e 64 3b | *|command;|
|00005e50| 0a 0a 23 65 6e 64 69 66 | 0a 7b 0a 20 20 20 20 66 |..#endif|.{. f|
|00005e60| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00005e70| 75 73 61 67 65 3a 20 25 | 73 20 66 69 6c 65 20 63 |usage: %|s file c|
|00005e80| 6f 6d 6d 61 6e 64 20 73 | 79 73 74 65 6d 28 73 29 |ommand s|ystem(s)|
|00005e90| 5c 6e 22 2c 20 63 6f 6d | 6d 61 6e 64 29 3b 0a 20 |\n", com|mand);. |
|00005ea0| 20 20 20 65 78 69 74 28 | 31 29 3b 0a 7d 0a 0a 0a | exit(|1);.}...|
|00005eb0| 2f 2a 20 6d 6b 64 69 72 | 20 2d 20 6d 61 6b 65 20 |/* mkdir| - make |
|00005ec0| 61 20 64 69 72 65 63 74 | 6f 72 79 0a 20 2a 0a 20 |a direct|ory. *. |
|00005ed0| 2a 20 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 20 2a |* DESCRI|PTION. *|
|00005ee0| 0a 20 2a 20 09 4d 6b 64 | 69 72 20 77 69 6c 6c 20 |. * .Mkd|ir will |
|00005ef0| 6d 61 6b 65 20 61 20 64 | 69 72 65 63 74 6f 72 79 |make a d|irectory|
|00005f00| 20 6f 66 20 74 68 65 20 | 6e 61 6d 65 20 22 64 70 | of the |name "dp|
|00005f10| 61 74 68 22 20 77 69 74 | 68 20 61 20 6d 6f 64 65 |ath" wit|h a mode|
|00005f20| 20 6f 66 0a 20 2a 09 22 | 64 6d 6f 64 65 22 2e 20 | of. *."|dmode". |
|00005f30| 20 54 68 69 73 20 69 73 | 20 63 6f 6e 73 69 73 74 | This is| consist|
|00005f40| 65 6e 74 20 77 69 74 68 | 20 74 68 65 20 42 53 44 |ent with| the BSD|
|00005f50| 20 6d 6b 64 69 72 28 29 | 20 66 75 6e 63 74 69 6f | mkdir()| functio|
|00005f60| 6e 20 61 6e 64 20 74 68 | 65 0a 20 2a 09 50 31 30 |n and th|e. *.P10|
|00005f70| 30 33 2e 31 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |03.1 def|initions|
|00005f80| 20 6f 66 20 4d 4b 44 49 | 52 2e 0a 20 2a 0a 20 2a | of MKDI|R.. *. *|
|00005f90| 09 53 70 65 63 69 61 6c | 20 63 6f 6e 73 69 64 65 |.Special| conside|
|00005fa0| 72 61 74 69 6f 6e 73 20 | 61 72 65 20 74 61 6b 65 |rations |are take|
|00005fb0| 6e 20 69 6e 74 6f 20 61 | 63 63 6f 75 6e 74 20 73 |n into a|ccount s|
|00005fc0| 69 6e 63 65 20 74 68 69 | 73 20 77 69 6c 6c 20 62 |ince thi|s will b|
|00005fd0| 65 0a 20 2a 09 72 75 6e | 6e 69 6e 67 20 6f 6e 20 |e. *.run|ning on |
|00005fe0| 61 20 73 79 73 74 65 6d | 20 77 68 69 63 68 20 69 |a system| which i|
|00005ff0| 73 20 72 75 6e 6e 69 6e | 67 20 73 75 69 64 27 65 |s runnin|g suid'e|
|00006000| 64 2e 0a 20 2a 0a 20 2a | 20 50 41 52 41 4d 45 54 |d.. *. *| PARAMET|
|00006010| 45 52 53 0a 20 2a 0a 20 | 2a 09 64 70 61 74 68 09 |ERS. *. |*.dpath.|
|00006020| 09 2d 20 6e 61 6d 65 20 | 6f 66 20 64 69 72 65 63 |.- name |of direc|
|00006030| 74 6f 72 79 20 74 6f 20 | 63 72 65 61 74 65 0a 20 |tory to |create. |
|00006040| 2a 09 64 6d 6f 64 65 09 | 09 2d 20 6d 6f 64 65 20 |*.dmode.|.- mode |
|00006050| 6f 66 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |of the d|irectory|
|00006060| 0a 20 2a 0a 20 2a 20 52 | 45 54 55 52 4e 53 0a 20 |. *. * R|ETURNS. |
|00006070| 2a 0a 20 2a 09 52 65 74 | 75 72 6e 73 20 30 20 69 |*. *.Ret|urns 0 i|
|00006080| 66 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |f the di|rectory |
|00006090| 77 61 73 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |was succ|essfully|
|000060a0| 20 63 72 65 61 74 65 64 | 2c 20 6f 74 68 65 72 77 | created|, otherw|
|000060b0| 69 73 65 20 61 0a 20 2a | 09 6e 6f 6e 2d 7a 65 72 |ise a. *|.non-zer|
|000060c0| 6f 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 77 |o return| value w|
|000060d0| 69 6c 6c 20 62 65 20 70 | 61 73 73 65 64 20 62 61 |ill be p|assed ba|
|000060e0| 63 6b 20 74 6f 20 74 68 | 65 20 63 61 6c 6c 69 6e |ck to th|e callin|
|000060f0| 67 20 66 75 6e 63 74 69 | 6f 6e 0a 20 2a 09 61 6e |g functi|on. *.an|
|00006100| 64 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 65 |d the va|lue of e|
|00006110| 72 72 6e 6f 20 73 68 6f | 75 6c 64 20 72 65 66 6c |rrno sho|uld refl|
|00006120| 65 63 74 20 74 68 65 20 | 65 72 72 6f 72 2e 0a 20 |ect the |error.. |
|00006130| 2a 2f 0a 0a 23 69 66 64 | 65 66 20 5f 5f 53 54 44 |*/..#ifd|ef __STD|
|00006140| 43 5f 5f 0a 0a 69 6e 74 | 20 6d 6b 64 69 72 28 63 |C__..int| mkdir(c|
|00006150| 68 61 72 20 2a 64 70 61 | 74 68 2c 20 69 6e 74 20 |har *dpa|th, int |
|00006160| 64 6d 6f 64 65 29 0a 0a | 23 65 6c 73 65 0a 20 20 |dmode)..|#else. |
|00006170| 20 20 0a 69 6e 74 20 6d | 6b 64 69 72 28 64 70 61 | .int m|kdir(dpa|
|00006180| 74 68 2c 20 64 6d 6f 64 | 65 29 0a 63 68 61 72 20 |th, dmod|e).char |
|00006190| 20 20 20 20 20 20 20 20 | 20 20 2a 64 70 61 74 68 | | *dpath|
|000061a0| 3b 0a 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 |;.int | |
|000061b0| 20 20 64 6d 6f 64 65 3b | 0a 0a 23 65 6e 64 69 66 | dmode;|..#endif|
|000061c0| 0a 7b 0a 20 20 20 20 69 | 6e 74 20 20 20 20 20 20 |.{. i|nt |
|000061d0| 20 20 20 20 20 20 20 63 | 70 69 64 2c 20 73 74 61 | c|pid, sta|
|000061e0| 74 75 73 3b 0a 20 20 20 | 20 69 6e 74 09 09 20 20 |tus;. | int.. |
|000061f0| 20 20 6f 6c 64 69 64 3b | 0a 20 20 20 20 73 74 72 | oldid;|. str|
|00006200| 75 63 74 20 73 74 61 74 | 20 20 20 20 20 73 74 61 |uct stat| sta|
|00006210| 74 62 75 66 3b 0a 20 20 | 20 20 65 78 74 65 72 6e |tbuf;. | extern|
|00006220| 20 69 6e 74 20 20 20 20 | 20 20 65 72 72 6e 6f 3b | int | errno;|
|00006230| 0a 20 20 20 20 63 68 61 | 72 20 20 20 20 20 20 20 |. cha|r |
|00006240| 20 20 20 20 20 62 75 66 | 66 5b 32 35 36 5d 3b 0a | buf|f[256];.|
|00006250| 0a 20 20 20 20 69 66 20 | 28 73 74 61 74 28 64 70 |. if |(stat(dp|
|00006260| 61 74 68 2c 20 26 73 74 | 61 74 62 75 66 29 20 3d |ath, &st|atbuf) =|
|00006270| 3d 20 30 29 20 7b 0a 09 | 65 72 72 6e 6f 20 3d 20 |= 0) {..|errno = |
|00006280| 45 45 58 49 53 54 3b 09 | 09 2f 2a 20 53 74 61 74 |EEXIST;.|./* Stat|
|00006290| 20 77 6f 72 6b 65 64 2c | 20 73 6f 20 69 74 20 61 | worked,| so it a|
|000062a0| 6c 72 65 61 64 79 20 65 | 78 69 73 74 73 20 2a 2f |lready e|xists */|
|000062b0| 0a 09 72 65 74 75 72 6e | 20 28 2d 31 29 3b 0a 20 |..return| (-1);. |
|000062c0| 20 20 20 7d 0a 20 20 20 | 20 2f 2a 20 49 66 20 73 | }. | /* If s|
|000062d0| 74 61 74 20 66 61 69 6c | 73 20 66 6f 72 20 61 20 |tat fail|s for a |
|000062e0| 72 65 61 73 6f 6e 20 6f | 74 68 65 72 20 74 68 61 |reason o|ther tha|
|000062f0| 6e 20 6e 6f 6e 2d 65 78 | 69 73 74 65 6e 63 65 2c |n non-ex|istence,|
|00006300| 20 72 65 74 75 72 6e 20 | 65 72 72 6f 72 20 2a 2f | return |error */|
|00006310| 0a 20 20 20 20 69 66 20 | 28 65 72 72 6e 6f 20 21 |. if |(errno !|
|00006320| 3d 20 45 4e 4f 45 4e 54 | 29 0a 09 72 65 74 75 72 |= ENOENT|)..retur|
|00006330| 6e 20 28 2d 31 29 3b 0a | 0a 20 20 20 20 73 77 69 |n (-1);.|. swi|
|00006340| 74 63 68 20 28 63 70 69 | 64 20 3d 20 66 6f 72 6b |tch (cpi|d = fork|
|00006350| 28 29 29 20 7b 0a 0a 20 | 20 20 20 63 61 73 65 20 |()) {.. | case |
|00006360| 2d 31 3a 09 09 09 2f 2a | 20 45 72 72 6f 72 20 69 |-1:.../*| Error i|
|00006370| 6e 20 66 6f 72 6b 28 29 | 20 2a 2f 0a 09 72 65 74 |n fork()| */..ret|
|00006380| 75 72 6e 20 28 2d 31 29 | 3b 09 09 2f 2a 20 45 72 |urn (-1)|;../* Er|
|00006390| 72 6e 6f 20 69 73 20 73 | 65 74 20 61 6c 72 65 61 |rno is s|et alrea|
|000063a0| 64 79 20 2a 2f 0a 0a 20 | 20 20 20 63 61 73 65 20 |dy */.. | case |
|000063b0| 30 3a 09 09 09 2f 2a 20 | 43 68 69 6c 64 20 70 72 |0:.../* |Child pr|
|000063c0| 6f 63 65 73 73 20 2a 2f | 0a 0a 09 73 74 61 74 75 |ocess */|...statu|
|000063d0| 73 20 3d 20 75 6d 61 73 | 6b 28 30 29 3b 09 2f 2a |s = umas|k(0);./*|
|000063e0| 20 47 65 74 20 63 75 72 | 72 65 6e 74 20 75 6d 61 | Get cur|rent uma|
|000063f0| 73 6b 20 2a 2f 0a 09 73 | 74 61 74 75 73 20 3d 20 |sk */..s|tatus = |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.