home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / f2c.tar < prev    next >
Tape Archive  |  1991-09-25  |  1.1 MB

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: f2c.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file f2c/, mode 750 , uid 153 , gid 144 , size 0 , seconds 4741143457 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 66 32 63 2f 00 00 00 00 | 00 00 00 00 00 00 00 00 |f2c/....|........|
|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 30 20 00 20 20 20 31 |.... 7|50 . 1|
|00000070| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 37 34 31 31 34 33 | 0 | 4741143|
|00000090| 34 35 37 20 20 20 34 35 | 32 30 00 20 00 00 00 00 |457 45|20. ....|
|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| 66 32 63 2f 6c 69 62 49 | 37 37 2f 00 00 00 00 00 |f2c/libI|77/.....|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 37 | 35 30 20 00 20 20 20 31 |.... 7|50 . 1|
|00000270| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 34 37 34 31 31 34 32 | 0 | 4741142|
|00000290| 32 31 33 20 20 20 35 35 | 34 32 00 20 00 00 00 00 |213 55|42. ....|
|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| 66 32 63 2f 6c 69 62 49 | 37 37 2f 4e 6f 74 69 63 |f2c/libI|77/Notic|
|00000410| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00000470| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00000480| 20 20 20 32 32 33 31 20 | 20 34 37 34 31 31 34 32 | 2231 | 4741142|
|00000490| 31 37 33 20 20 20 36 37 | 37 37 00 20 00 00 00 00 |173 67|77. ....|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000640| 2a 0a 43 6f 70 79 72 69 | 67 68 74 20 31 39 39 30 |*.Copyri|ght 1990|
|00000650| 20 62 79 20 41 54 26 54 | 20 42 65 6c 6c 20 4c 61 | by AT&T| Bell La|
|00000660| 62 6f 72 61 74 6f 72 69 | 65 73 20 61 6e 64 20 42 |boratori|es and B|
|00000670| 65 6c 6c 63 6f 72 65 2e | 0a 0a 50 65 72 6d 69 73 |ellcore.|..Permis|
|00000680| 73 69 6f 6e 20 74 6f 20 | 75 73 65 2c 20 63 6f 70 |sion to |use, cop|
|00000690| 79 2c 20 6d 6f 64 69 66 | 79 2c 20 61 6e 64 20 64 |y, modif|y, and d|
|000006a0| 69 73 74 72 69 62 75 74 | 65 20 74 68 69 73 20 73 |istribut|e this s|
|000006b0| 6f 66 74 77 61 72 65 0a | 61 6e 64 20 69 74 73 20 |oftware.|and its |
|000006c0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|000006d0| 72 20 61 6e 79 20 70 75 | 72 70 6f 73 65 20 61 6e |r any pu|rpose an|
|000006e0| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 20 69 73 |d withou|t fee is|
|000006f0| 20 68 65 72 65 62 79 0a | 67 72 61 6e 74 65 64 2c | hereby.|granted,|
|00000700| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|00000710| 68 65 20 61 62 6f 76 65 | 20 63 6f 70 79 72 69 67 |he above| copyrig|
|00000720| 68 74 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |ht notic|e appear|
|00000730| 20 69 6e 20 61 6c 6c 0a | 63 6f 70 69 65 73 20 61 | in all.|copies a|
|00000740| 6e 64 20 74 68 61 74 20 | 62 6f 74 68 20 74 68 61 |nd that |both tha|
|00000750| 74 20 74 68 65 20 63 6f | 70 79 72 69 67 68 74 20 |t the co|pyright |
|00000760| 6e 6f 74 69 63 65 20 61 | 6e 64 20 74 68 69 73 0a |notice a|nd this.|
|00000770| 70 65 72 6d 69 73 73 69 | 6f 6e 20 6e 6f 74 69 63 |permissi|on notic|
|00000780| 65 20 61 6e 64 20 77 61 | 72 72 61 6e 74 79 20 64 |e and wa|rranty d|
|00000790| 69 73 63 6c 61 69 6d 65 | 72 20 61 70 70 65 61 72 |isclaime|r appear|
|000007a0| 20 69 6e 20 73 75 70 70 | 6f 72 74 69 6e 67 0a 64 | in supp|orting.d|
|000007b0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2c 20 61 6e |ocumenta|tion, an|
|000007c0| 64 20 74 68 61 74 20 74 | 68 65 20 6e 61 6d 65 73 |d that t|he names|
|000007d0| 20 6f 66 20 41 54 26 54 | 20 42 65 6c 6c 20 4c 61 | of AT&T| Bell La|
|000007e0| 62 6f 72 61 74 6f 72 69 | 65 73 20 6f 72 0a 42 65 |boratori|es or.Be|
|000007f0| 6c 6c 63 6f 72 65 20 6f | 72 20 61 6e 79 20 6f 66 |llcore o|r any of|
|00000800| 20 74 68 65 69 72 20 65 | 6e 74 69 74 69 65 73 20 | their e|ntities |
|00000810| 6e 6f 74 20 62 65 20 75 | 73 65 64 20 69 6e 20 61 |not be u|sed in a|
|00000820| 64 76 65 72 74 69 73 69 | 6e 67 20 6f 72 0a 70 75 |dvertisi|ng or.pu|
|00000830| 62 6c 69 63 69 74 79 20 | 70 65 72 74 61 69 6e 69 |blicity |pertaini|
|00000840| 6e 67 20 74 6f 20 64 69 | 73 74 72 69 62 75 74 69 |ng to di|stributi|
|00000850| 6f 6e 20 6f 66 20 74 68 | 65 20 73 6f 66 74 77 61 |on of th|e softwa|
|00000860| 72 65 20 77 69 74 68 6f | 75 74 0a 73 70 65 63 69 |re witho|ut.speci|
|00000870| 66 69 63 2c 20 77 72 69 | 74 74 65 6e 20 70 72 69 |fic, wri|tten pri|
|00000880| 6f 72 20 70 65 72 6d 69 | 73 73 69 6f 6e 2e 0a 0a |or permi|ssion...|
|00000890| 41 54 26 54 20 61 6e 64 | 20 42 65 6c 6c 63 6f 72 |AT&T and| Bellcor|
|000008a0| 65 20 64 69 73 63 6c 61 | 69 6d 20 61 6c 6c 20 77 |e discla|im all w|
|000008b0| 61 72 72 61 6e 74 69 65 | 73 20 77 69 74 68 20 72 |arrantie|s with r|
|000008c0| 65 67 61 72 64 20 74 6f | 20 74 68 69 73 0a 73 6f |egard to| this.so|
|000008d0| 66 74 77 61 72 65 2c 20 | 69 6e 63 6c 75 64 69 6e |ftware, |includin|
|000008e0| 67 20 61 6c 6c 20 69 6d | 70 6c 69 65 64 20 77 61 |g all im|plied wa|
|000008f0| 72 72 61 6e 74 69 65 73 | 20 6f 66 20 6d 65 72 63 |rranties| of merc|
|00000900| 68 61 6e 74 61 62 69 6c | 69 74 79 0a 61 6e 64 20 |hantabil|ity.and |
|00000910| 66 69 74 6e 65 73 73 2e | 20 20 49 6e 20 6e 6f 20 |fitness.| In no |
|00000920| 65 76 65 6e 74 20 73 68 | 61 6c 6c 20 41 54 26 54 |event sh|all AT&T|
|00000930| 20 6f 72 20 42 65 6c 6c | 63 6f 72 65 20 62 65 20 | or Bell|core be |
|00000940| 6c 69 61 62 6c 65 20 66 | 6f 72 0a 61 6e 79 20 73 |liable f|or.any s|
|00000950| 70 65 63 69 61 6c 2c 20 | 69 6e 64 69 72 65 63 74 |pecial, |indirect|
|00000960| 20 6f 72 20 63 6f 6e 73 | 65 71 75 65 6e 74 69 61 | or cons|equentia|
|00000970| 6c 20 64 61 6d 61 67 65 | 73 20 6f 72 20 61 6e 79 |l damage|s or any|
|00000980| 20 64 61 6d 61 67 65 73 | 0a 77 68 61 74 73 6f 65 | damages|.whatsoe|
|00000990| 76 65 72 20 72 65 73 75 | 6c 74 69 6e 67 20 66 72 |ver resu|lting fr|
|000009a0| 6f 6d 20 6c 6f 73 73 20 | 6f 66 20 75 73 65 2c 20 |om loss |of use, |
|000009b0| 64 61 74 61 20 6f 72 20 | 70 72 6f 66 69 74 73 2c |data or |profits,|
|000009c0| 20 77 68 65 74 68 65 72 | 0a 69 6e 20 61 6e 20 61 | whether|.in an a|
|000009d0| 63 74 69 6f 6e 20 6f 66 | 20 63 6f 6e 74 72 61 63 |ction of| contrac|
|000009e0| 74 2c 20 6e 65 67 6c 69 | 67 65 6e 63 65 20 6f 72 |t, negli|gence or|
|000009f0| 20 6f 74 68 65 72 20 74 | 6f 72 74 69 6f 75 73 20 | other t|ortious |
|00000a00| 61 63 74 69 6f 6e 2c 0a | 61 72 69 73 69 6e 67 20 |action,.|arising |
|00000a10| 6f 75 74 20 6f 66 20 6f | 72 20 69 6e 20 63 6f 6e |out of o|r in con|
|00000a20| 6e 65 63 74 69 6f 6e 20 | 77 69 74 68 20 74 68 65 |nection |with the|
|00000a30| 20 75 73 65 20 6f 72 20 | 70 65 72 66 6f 72 6d 61 | use or |performa|
|00000a40| 6e 63 65 20 6f 66 0a 74 | 68 69 73 20 73 6f 66 74 |nce of.t|his soft|
|00000a50| 77 61 72 65 2e 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ware..**|********|
|00000a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a90| 2a 2a 2a 2a 2a 2a 2f 0a | 0a 00 00 00 00 00 00 00 |******/.|........|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 66 32 63 2f 6c 69 62 49 | 37 37 2f 52 45 41 44 4d |f2c/libI|77/READM|
|00000c10| 45 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |E.......|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00000c70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00000c80| 20 20 20 36 33 33 32 20 | 20 34 37 34 31 31 34 32 | 6332 | 4741142|
|00000c90| 31 37 33 20 20 20 36 35 | 32 31 00 20 00 00 00 00 |173 65|21. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 49 66 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 6c |If your |system l|
|00000e10| 61 63 6b 73 20 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |acks /us|r/includ|
|00000e20| 65 2f 6c 6f 63 61 6c 2e | 68 20 2c 0a 74 68 65 6e |e/local.|h ,.then|
|00000e30| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 63 72 65 61 | you sho|uld crea|
|00000e40| 74 65 20 61 6e 20 61 70 | 70 72 6f 70 72 69 61 74 |te an ap|propriat|
|00000e50| 65 20 6c 6f 63 61 6c 2e | 68 20 69 6e 0a 74 68 69 |e local.|h in.thi|
|00000e60| 73 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 41 6e |s direct|ory. An|
|00000e70| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 6c 6f 63 | appropr|iate loc|
|00000e80| 61 6c 2e 68 20 6d 61 79 | 20 73 69 6d 70 6c 79 0a |al.h may| simply.|
|00000e90| 62 65 20 65 6d 70 74 79 | 2c 20 6f 72 20 69 74 20 |be empty|, or it |
|00000ea0| 6d 61 79 20 23 64 65 66 | 69 6e 65 20 56 41 58 20 |may #def|ine VAX |
|00000eb0| 6f 72 20 23 64 65 66 69 | 6e 65 20 43 52 41 59 0a |or #defi|ne CRAY.|
|00000ec0| 28 6f 72 20 77 68 61 74 | 65 76 65 72 20 65 6c 73 |(or what|ever els|
|00000ed0| 65 20 79 6f 75 20 6d 75 | 73 74 20 64 6f 20 74 6f |e you mu|st do to|
|00000ee0| 20 6d 61 6b 65 20 66 70 | 2e 68 20 77 6f 72 6b 20 | make fp|.h work |
|00000ef0| 72 69 67 68 74 29 2e 0a | 41 6c 74 65 72 6e 61 74 |right)..|Alternat|
|00000f00| 69 76 65 6c 79 2c 20 65 | 64 69 74 20 66 70 2e 68 |ively, e|dit fp.h|
|00000f10| 20 74 6f 20 73 75 69 74 | 65 20 79 6f 75 72 20 6d | to suit|e your m|
|00000f20| 61 63 68 69 6e 65 2e 0a | 0a 49 66 20 79 6f 75 72 |achine..|.If your|
|00000f30| 20 73 79 73 74 65 6d 20 | 6c 61 63 6b 73 20 2f 75 | system |lacks /u|
|00000f40| 73 72 2f 69 6e 63 6c 75 | 64 65 2f 66 63 6e 74 6c |sr/inclu|de/fcntl|
|00000f50| 2e 68 20 2c 20 74 68 65 | 6e 20 79 6f 75 0a 73 68 |.h , the|n you.sh|
|00000f60| 6f 75 6c 64 20 73 69 6d | 70 6c 79 20 63 72 65 61 |ould sim|ply crea|
|00000f70| 74 65 20 61 6e 20 65 6d | 70 74 79 20 66 63 6e 74 |te an em|pty fcnt|
|00000f80| 6c 2e 68 20 69 6e 20 74 | 68 69 73 20 64 69 72 65 |l.h in t|his dire|
|00000f90| 63 74 6f 72 79 2e 0a 0a | 49 66 20 79 6f 75 72 20 |ctory...|If your |
|00000fa0| 73 79 73 74 65 6d 27 73 | 20 73 70 72 69 6e 74 66 |system's| sprintf|
|00000fb0| 20 64 6f 65 73 20 6e 6f | 74 20 77 6f 72 6b 20 74 | does no|t work t|
|00000fc0| 68 65 20 77 61 79 20 41 | 4e 53 49 20 43 0a 73 70 |he way A|NSI C.sp|
|00000fd0| 65 63 69 66 69 65 73 20 | 2d 2d 20 73 70 65 63 69 |ecifies |-- speci|
|00000fe0| 66 69 63 61 6c 6c 79 2c | 20 69 66 20 69 74 20 64 |fically,| if it d|
|00000ff0| 6f 65 73 20 6e 6f 74 20 | 72 65 74 75 72 6e 20 74 |oes not |return t|
|00001000| 68 65 0a 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he.numbe|r of cha|
|00001010| 72 61 63 74 65 72 73 20 | 74 72 61 6e 73 6d 69 74 |racters |transmit|
|00001020| 74 65 64 20 2d 2d 20 74 | 68 65 6e 20 69 6e 73 65 |ted -- t|hen inse|
|00001030| 72 74 20 74 68 65 20 6c | 69 6e 65 0a 0a 23 64 65 |rt the l|ine..#de|
|00001040| 66 69 6e 65 20 55 53 45 | 5f 53 54 52 4c 45 4e 0a |fine USE|_STRLEN.|
|00001050| 0a 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 66 |.at the |end of f|
|00001060| 6d 74 2e 68 20 2e 20 20 | 54 68 69 73 20 69 73 20 |mt.h . |This is |
|00001070| 6e 65 63 65 73 73 61 72 | 79 20 77 69 74 68 0a 61 |necessar|y with.a|
|00001080| 74 20 6c 65 61 73 74 20 | 73 6f 6d 65 20 76 65 72 |t least |some ver|
|00001090| 73 69 6f 6e 73 20 6f 66 | 20 53 75 6e 20 73 6f 66 |sions of| Sun sof|
|000010a0| 74 77 61 72 65 2e 0a 0a | 49 66 20 79 6f 75 20 67 |tware...|If you g|
|000010b0| 65 74 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |et error| message|
|000010c0| 73 20 61 62 6f 75 74 20 | 72 65 66 65 72 65 6e 63 |s about |referenc|
|000010d0| 65 73 20 74 6f 20 63 66 | 2d 3e 5f 70 74 72 0a 61 |es to cf|->_ptr.a|
|000010e0| 6e 64 20 63 66 2d 3e 5f | 62 61 73 65 20 77 68 65 |nd cf->_|base whe|
|000010f0| 6e 20 63 6f 6d 70 69 6c | 69 6e 67 20 77 72 74 66 |n compil|ing wrtf|
|00001100| 6d 74 2e 63 20 61 6e 64 | 20 77 73 66 65 2e 63 20 |mt.c and| wsfe.c |
|00001110| 6f 72 20 74 6f 0a 73 74 | 64 65 72 72 2d 3e 5f 66 |or to.st|derr->_f|
|00001120| 6c 61 67 20 77 68 65 6e | 20 63 6f 6d 70 69 6c 69 |lag when| compili|
|00001130| 6e 67 20 65 72 72 2e 63 | 2c 20 74 68 65 6e 20 69 |ng err.c|, then i|
|00001140| 6e 73 65 72 74 20 74 68 | 65 20 6c 69 6e 65 0a 0a |nsert th|e line..|
|00001150| 23 64 65 66 69 6e 65 20 | 4e 4f 4e 5f 55 4e 49 58 |#define |NON_UNIX|
|00001160| 5f 53 54 44 49 4f 0a 0a | 61 74 20 74 68 65 20 62 |_STDIO..|at the b|
|00001170| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 66 69 6f 2e |eginning| of fio.|
|00001180| 68 2c 20 61 6e 64 20 72 | 65 63 6f 6d 70 69 6c 65 |h, and r|ecompile|
|00001190| 20 74 68 65 73 65 20 6d | 6f 64 75 6c 65 73 2e 0a | these m|odules..|
|000011a0| 0a 59 6f 75 20 6d 61 79 | 20 6e 65 65 64 20 74 6f |.You may| need to|
|000011b0| 20 73 75 70 70 6c 79 20 | 74 68 65 20 66 6f 6c 6c | supply |the foll|
|000011c0| 6f 77 69 6e 67 20 6e 6f | 6e 2d 41 4e 53 49 20 72 |owing no|n-ANSI r|
|000011d0| 6f 75 74 69 6e 65 73 3a | 0a 0a 20 20 66 73 74 61 |outines:|.. fsta|
|000011e0| 74 28 69 6e 74 20 66 69 | 6c 65 64 73 2c 20 73 74 |t(int fi|leds, st|
|000011f0| 72 75 63 74 20 73 74 61 | 74 20 2a 62 75 66 29 20 |ruct sta|t *buf) |
|00001200| 69 73 20 73 69 6d 69 6c | 61 72 0a 74 6f 20 73 74 |is simil|ar.to st|
|00001210| 61 74 28 63 68 61 72 20 | 2a 6e 61 6d 65 2c 20 73 |at(char |*name, s|
|00001220| 74 72 75 63 74 20 73 74 | 61 74 20 2a 62 75 66 29 |truct st|at *buf)|
|00001230| 2c 20 65 78 63 65 70 74 | 20 74 68 61 74 0a 74 68 |, except| that.th|
|00001240| 65 20 66 69 72 73 74 20 | 61 72 67 75 6d 65 6e 74 |e first |argument|
|00001250| 2c 20 66 69 6c 65 64 73 | 2c 20 69 73 20 74 68 65 |, fileds|, is the|
|00001260| 20 66 69 6c 65 20 64 65 | 73 63 72 69 70 74 6f 72 | file de|scriptor|
|00001270| 0a 72 65 74 75 72 6e 65 | 64 20 62 79 20 6f 70 65 |.returne|d by ope|
|00001280| 6e 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 74 68 |n rather| than th|
|00001290| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 69 |e name o|f the fi|
|000012a0| 6c 65 2e 0a 66 73 74 61 | 74 20 69 73 20 75 73 65 |le..fsta|t is use|
|000012b0| 64 20 69 6e 20 74 68 65 | 20 73 79 73 74 65 6d 2d |d in the| system-|
|000012c0| 64 65 70 65 6e 64 65 6e | 74 20 72 6f 75 74 69 6e |dependen|t routin|
|000012d0| 65 0a 63 61 6e 73 65 65 | 6b 20 28 69 6e 20 74 68 |e.cansee|k (in th|
|000012e0| 65 20 6c 69 62 49 37 37 | 20 73 6f 75 72 63 65 20 |e libI77| source |
|000012f0| 66 69 6c 65 20 65 72 72 | 2e 63 29 2c 20 77 68 69 |file err|.c), whi|
|00001300| 63 68 0a 69 73 20 73 75 | 70 70 6f 73 65 64 20 74 |ch.is su|pposed t|
|00001310| 6f 20 72 65 74 75 72 6e | 20 31 20 69 66 20 69 74 |o return| 1 if it|
|00001320| 27 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 69 |'s possi|ble to i|
|00001330| 73 73 75 65 0a 73 65 65 | 6b 73 20 6f 6e 20 74 68 |ssue.see|ks on th|
|00001340| 65 20 66 69 6c 65 20 69 | 6e 20 71 75 65 73 74 69 |e file i|n questi|
|00001350| 6f 6e 2c 20 30 20 69 66 | 20 69 74 27 73 20 6e 6f |on, 0 if| it's no|
|00001360| 74 3b 20 79 6f 75 20 6d | 61 79 0a 6e 65 65 64 20 |t; you m|ay.need |
|00001370| 74 6f 20 73 75 69 74 61 | 62 6c 79 20 6d 6f 64 69 |to suita|bly modi|
|00001380| 66 79 20 65 72 72 2e 63 | 20 2e 20 20 4f 6e 20 6e |fy err.c| . On n|
|00001390| 6f 6e 2d 55 4e 49 58 20 | 73 79 73 74 65 6d 73 2c |on-UNIX |systems,|
|000013a0| 0a 79 6f 75 20 63 61 6e | 20 61 76 6f 69 64 20 72 |.you can| avoid r|
|000013b0| 65 66 65 72 65 6e 63 65 | 73 20 74 6f 20 66 73 74 |eference|s to fst|
|000013c0| 61 74 20 61 6e 64 20 73 | 74 61 74 20 62 79 20 63 |at and s|tat by c|
|000013d0| 6f 6d 70 69 6c 69 6e 67 | 0a 65 72 72 2e 63 2c 20 |ompiling|.err.c, |
|000013e0| 69 6e 71 75 69 72 65 2e | 63 2c 20 6f 70 65 6e 2e |inquire.|c, open.|
|000013f0| 63 2c 20 61 6e 64 20 75 | 74 69 6c 2e 63 20 77 69 |c, and u|til.c wi|
|00001400| 74 68 20 4d 53 44 4f 53 | 20 64 65 66 69 6e 65 64 |th MSDOS| defined|
|00001410| 3b 0a 69 6e 20 74 68 61 | 74 20 63 61 73 65 2c 20 |;.in tha|t case, |
|00001420| 79 6f 75 20 6d 61 79 20 | 6e 65 65 64 20 74 6f 20 |you may |need to |
|00001430| 73 75 70 70 6c 79 20 61 | 63 63 65 73 73 28 63 68 |supply a|ccess(ch|
|00001440| 61 72 20 2a 4e 61 6d 65 | 2c 30 29 2c 0a 77 68 69 |ar *Name|,0),.whi|
|00001450| 63 68 20 69 73 20 73 75 | 70 70 6f 73 65 64 20 74 |ch is su|pposed t|
|00001460| 6f 20 72 65 74 75 72 6e | 20 30 20 69 66 20 66 69 |o return| 0 if fi|
|00001470| 6c 65 20 4e 61 6d 65 20 | 65 78 69 73 74 73 2c 0a |le Name |exists,.|
|00001480| 6e 6f 6e 7a 65 72 6f 20 | 6f 74 68 65 72 77 69 73 |nonzero |otherwis|
|00001490| 65 2e 0a 0a 20 20 63 68 | 61 72 20 2a 20 6d 6b 74 |e... ch|ar * mkt|
|000014a0| 65 6d 70 28 63 68 61 72 | 20 2a 62 75 66 29 20 69 |emp(char| *buf) i|
|000014b0| 73 20 73 75 70 70 6f 73 | 65 64 20 74 6f 20 72 65 |s suppos|ed to re|
|000014c0| 70 6c 61 63 65 20 74 68 | 65 0a 36 20 74 72 61 69 |place th|e.6 trai|
|000014d0| 6c 69 6e 67 20 58 27 73 | 20 69 6e 20 62 75 66 20 |ling X's| in buf |
|000014e0| 77 69 74 68 20 61 20 75 | 6e 69 71 75 65 20 6e 75 |with a u|nique nu|
|000014f0| 6d 62 65 72 20 61 6e 64 | 20 74 68 65 6e 0a 72 65 |mber and| then.re|
|00001500| 74 75 72 6e 20 62 75 66 | 2e 20 20 54 68 65 20 69 |turn buf|. The i|
|00001510| 64 65 61 20 69 73 20 74 | 6f 20 67 65 74 20 61 20 |dea is t|o get a |
|00001520| 75 6e 69 71 75 65 20 6e | 61 6d 65 20 66 6f 72 0a |unique n|ame for.|
|00001530| 61 20 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |a tempor|ary file|
|00001540| 2e 0a 0a 4f 6e 20 6e 6f | 6e 2d 55 4e 49 58 20 73 |...On no|n-UNIX s|
|00001550| 79 73 74 65 6d 73 2c 20 | 79 6f 75 20 6d 61 79 20 |ystems, |you may |
|00001560| 6e 65 65 64 20 74 6f 20 | 63 68 61 6e 67 65 20 61 |need to |change a|
|00001570| 20 66 65 77 20 6f 74 68 | 65 72 2c 0a 65 2e 67 2e | few oth|er,.e.g.|
|00001580| 3a 20 74 68 65 20 66 6f | 72 6d 20 6f 66 20 6e 61 |: the fo|rm of na|
|00001590| 6d 65 20 63 6f 6d 70 75 | 74 65 64 20 62 79 20 6d |me compu|ted by m|
|000015a0| 6b 74 65 6d 70 28 29 20 | 69 6e 20 65 6e 64 66 69 |ktemp() |in endfi|
|000015b0| 6c 65 2e 63 20 61 6e 64 | 0a 6f 70 65 6e 2e 63 3b |le.c and|.open.c;|
|000015c0| 20 74 68 65 20 75 73 65 | 20 6f 66 20 74 68 65 20 | the use| of the |
|000015d0| 6f 70 65 6e 28 29 2c 20 | 63 6c 6f 73 65 28 29 2c |open(), |close(),|
|000015e0| 20 61 6e 64 20 63 72 65 | 61 74 28 29 20 73 79 73 | and cre|at() sys|
|000015f0| 74 65 6d 0a 63 61 6c 6c | 73 20 69 6e 20 65 6e 64 |tem.call|s in end|
|00001600| 66 69 6c 65 2e 63 2c 20 | 65 72 72 2e 63 2c 20 6f |file.c, |err.c, o|
|00001610| 70 65 6e 2e 63 3b 20 61 | 6e 64 20 74 68 65 20 6d |pen.c; a|nd the m|
|00001620| 6f 64 65 73 20 69 6e 20 | 63 61 6c 6c 73 20 6f 6e |odes in |calls on|
|00001630| 0a 66 6f 70 65 6e 28 29 | 20 61 6e 64 20 66 64 6f |.fopen()| and fdo|
|00001640| 70 65 6e 28 29 20 28 61 | 6e 64 20 70 65 72 68 61 |pen() (a|nd perha|
|00001650| 70 73 20 74 68 65 20 75 | 73 65 20 6f 66 20 66 64 |ps the u|se of fd|
|00001660| 6f 70 65 6e 28 29 20 69 | 74 73 65 6c 66 0a 2d 2d |open() i|tself.--|
|00001670| 20 69 74 27 73 20 73 75 | 70 70 6f 73 65 64 20 74 | it's su|pposed t|
|00001680| 6f 20 72 65 74 75 72 6e | 20 61 20 46 49 4c 45 2a |o return| a FILE*|
|00001690| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|000016a0| 6f 20 61 20 67 69 76 65 | 6e 0a 61 6e 20 69 6e 74 |o a give|n.an int|
|000016b0| 65 67 65 72 20 66 69 6c | 65 20 64 65 73 63 72 69 |eger fil|e descri|
|000016c0| 70 74 6f 72 29 20 69 6e | 20 65 72 72 2e 63 20 61 |ptor) in| err.c a|
|000016d0| 6e 64 20 6f 70 65 6e 2e | 63 20 28 63 6f 6d 70 6f |nd open.|c (compo|
|000016e0| 6e 65 6e 74 20 75 66 6d | 74 0a 6f 66 20 73 74 72 |nent ufm|t.of str|
|000016f0| 75 63 74 20 75 6e 69 74 | 20 69 73 20 31 20 66 6f |uct unit| is 1 fo|
|00001700| 72 20 66 6f 72 6d 61 74 | 74 65 64 20 49 2f 4f 20 |r format|ted I/O |
|00001710| 2d 2d 20 74 65 78 74 20 | 6d 6f 64 65 20 6f 6e 20 |-- text |mode on |
|00001720| 73 6f 6d 65 20 73 79 73 | 74 65 6d 73 0a 2d 2d 20 |some sys|tems.-- |
|00001730| 61 6e 64 20 30 20 66 6f | 72 20 75 6e 66 6f 72 6d |and 0 fo|r unform|
|00001740| 61 74 74 65 64 20 49 2f | 4f 20 2d 2d 20 62 69 6e |atted I/|O -- bin|
|00001750| 61 72 79 20 6d 6f 64 65 | 20 6f 6e 20 73 6f 6d 65 |ary mode| on some|
|00001760| 20 73 79 73 74 65 6d 73 | 29 2e 0a 0a 46 6f 72 20 | systems|)...For |
|00001770| 54 75 72 62 6f 20 43 2b | 2b 2c 20 69 6e 20 70 61 |Turbo C+|+, in pa|
|00001780| 72 74 69 63 75 6c 61 72 | 2c 20 79 6f 75 20 6e 65 |rticular|, you ne|
|00001790| 65 64 20 74 6f 20 61 64 | 6a 75 73 74 20 74 68 65 |ed to ad|just the|
|000017a0| 20 6d 6b 74 65 6d 70 0a | 69 6e 76 6f 63 61 74 69 | mktemp.|invocati|
|000017b0| 6f 6e 73 20 61 6e 64 20 | 73 68 6f 75 6c 64 20 63 |ons and |should c|
|000017c0| 6f 6d 70 69 6c 65 20 61 | 6c 6c 20 6f 66 20 6c 69 |ompile a|ll of li|
|000017d0| 62 49 37 37 20 77 69 74 | 68 20 2d 44 4d 53 44 4f |bI77 wit|h -DMSDO|
|000017e0| 53 20 2e 0a 59 6f 75 20 | 61 6c 73 6f 20 6e 65 65 |S ..You |also nee|
|000017f0| 64 20 74 6f 20 23 75 6e | 64 65 66 20 75 6e 67 65 |d to #un|def unge|
|00001800| 74 63 20 69 6e 20 6c 72 | 65 61 64 2e 63 20 61 6e |tc in lr|ead.c an|
|00001810| 64 20 72 73 6e 65 2e 63 | 20 2e 0a 44 6f 6e 27 74 |d rsne.c| ..Don't|
|00001820| 20 75 73 65 20 2d 6d 68 | 20 2d 2d 20 69 74 20 69 | use -mh| -- it i|
|00001830| 73 20 68 6f 72 72 69 62 | 6c 79 20 62 72 6f 6b 65 |s horrib|ly broke|
|00001840| 6e 2e 0a 0a 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |n...If y|ou want |
|00001850| 74 6f 20 62 65 20 61 62 | 6c 65 20 74 6f 20 6c 6f |to be ab|le to lo|
|00001860| 61 64 20 61 67 61 69 6e | 73 74 20 6c 69 62 49 37 |ad again|st libI7|
|00001870| 37 20 62 75 74 20 6e 6f | 74 20 6c 69 62 46 37 37 |7 but no|t libF77|
|00001880| 2c 0a 74 68 65 6e 20 79 | 6f 75 20 77 69 6c 6c 20 |,.then y|ou will |
|00001890| 6e 65 65 64 20 74 6f 20 | 61 64 64 20 73 69 67 5f |need to |add sig_|
|000018a0| 64 69 65 2e 6f 20 28 66 | 72 6f 6d 20 6c 69 62 46 |die.o (f|rom libF|
|000018b0| 37 37 29 20 74 6f 20 6c | 69 62 49 37 37 2e 0a 0a |77) to l|ibI77...|
|000018c0| 54 6f 20 63 68 65 63 6b | 20 66 6f 72 20 74 72 61 |To check| for tra|
|000018d0| 6e 73 6d 69 73 73 69 6f | 6e 20 65 72 72 6f 72 73 |nsmissio|n errors|
|000018e0| 2c 20 69 73 73 75 65 20 | 74 68 65 20 63 6f 6d 6d |, issue |the comm|
|000018f0| 61 6e 64 0a 09 6d 61 6b | 65 20 63 68 65 63 6b 0a |and..mak|e check.|
|00001900| 54 68 69 73 20 61 73 73 | 75 6d 65 73 20 79 6f 75 |This ass|umes you|
|00001910| 20 68 61 76 65 20 74 68 | 65 20 78 73 75 6d 20 70 | have th|e xsum p|
|00001920| 72 6f 67 72 61 6d 20 77 | 68 6f 73 65 20 73 6f 75 |rogram w|hose sou|
|00001930| 72 63 65 2c 20 78 73 75 | 6d 2e 63 2c 0a 69 73 20 |rce, xsu|m.c,.is |
|00001940| 64 69 73 74 72 69 62 75 | 74 65 64 20 61 73 20 70 |distribu|ted as p|
|00001950| 61 72 74 20 6f 66 20 22 | 61 6c 6c 20 66 72 6f 6d |art of "|all from|
|00001960| 20 66 32 63 2f 73 72 63 | 22 2e 20 20 49 66 20 79 | f2c/src|". If y|
|00001970| 6f 75 20 64 6f 20 6e 6f | 74 0a 68 61 76 65 20 78 |ou do no|t.have x|
|00001980| 73 75 6d 2c 20 79 6f 75 | 20 63 61 6e 20 6f 62 74 |sum, you| can obt|
|00001990| 61 69 6e 20 78 73 75 6d | 2e 63 20 62 79 20 73 65 |ain xsum|.c by se|
|000019a0| 6e 64 69 6e 67 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |nding th|e follow|
|000019b0| 69 6e 67 20 45 2d 6d 61 | 69 6c 0a 6d 65 73 73 61 |ing E-ma|il.messa|
|000019c0| 67 65 20 74 6f 20 6e 65 | 74 6c 69 62 40 72 65 73 |ge to ne|tlib@res|
|000019d0| 65 61 72 63 68 2e 61 74 | 74 2e 63 6f 6d 0a 09 73 |earch.at|t.com..s|
|000019e0| 65 6e 64 20 78 73 75 6d | 2e 63 20 66 72 6f 6d 20 |end xsum|.c from |
|000019f0| 66 32 63 2f 73 72 63 0a | 0a 54 68 65 20 6d 61 6b |f2c/src.|.The mak|
|00001a00| 65 66 69 6c 65 20 61 73 | 73 75 6d 65 73 20 79 6f |efile as|sumes yo|
|00001a10| 75 20 68 61 76 65 20 69 | 6e 73 74 61 6c 6c 65 64 |u have i|nstalled|
|00001a20| 20 66 32 63 2e 68 20 69 | 6e 20 61 20 73 74 61 6e | f2c.h i|n a stan|
|00001a30| 64 61 72 64 0a 70 6c 61 | 63 65 20 28 61 6e 64 20 |dard.pla|ce (and |
|00001a40| 64 6f 65 73 20 6e 6f 74 | 20 63 61 75 73 65 20 72 |does not| cause r|
|00001a50| 65 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 77 68 65 |ecompila|tion whe|
|00001a60| 6e 20 66 32 63 2e 68 20 | 69 73 20 63 68 61 6e 67 |n f2c.h |is chang|
|00001a70| 65 64 29 3b 0a 66 32 63 | 2e 68 20 63 6f 6d 65 73 |ed);.f2c|.h comes|
|00001a80| 20 77 69 74 68 20 22 61 | 6c 6c 20 66 72 6f 6d 20 | with "a|ll from |
|00001a90| 66 32 63 22 20 28 74 68 | 65 20 73 6f 75 72 63 65 |f2c" (th|e source|
|00001aa0| 20 66 6f 72 20 66 32 63 | 29 20 61 6e 64 20 69 73 | for f2c|) and is|
|00001ab0| 0a 61 76 61 69 6c 61 62 | 6c 65 20 73 65 70 61 72 |.availab|le separ|
|00001ac0| 61 74 65 6c 79 20 28 22 | 66 32 63 2e 68 20 66 72 |ately ("|f2c.h fr|
|00001ad0| 6f 6d 20 66 32 63 22 29 | 2e 0a 00 00 00 00 00 00 |om f2c")|........|
|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| 66 32 63 2f 6c 69 62 49 | 37 37 2f 56 65 72 73 69 |f2c/libI|77/Versi|
|00001c10| 6f 6e 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |on.c....|........|
|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 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00001c70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00001c80| 20 20 20 37 30 32 37 20 | 20 34 37 34 31 31 34 32 | 7027 | 4741142|
|00001c90| 31 37 34 20 20 20 37 34 | 33 35 00 20 00 00 00 00 |174 74|35. ....|
|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| 73 74 61 74 69 63 20 63 | 68 61 72 20 6a 75 6e 6b |static c|har junk|
|00001e10| 5b 5d 20 3d 20 22 5c 6e | 40 28 23 29 20 4c 49 42 |[] = "\n|@(#) LIB|
|00001e20| 49 37 37 20 56 45 52 53 | 49 4f 4e 20 70 6a 77 2c |I77 VERS|ION pjw,|
|00001e30| 64 6d 67 2d 6d 6f 64 73 | 20 31 31 20 44 65 63 2e |dmg-mods| 11 Dec.|
|00001e40| 20 31 39 39 30 5c 6e 22 | 3b 0a 0a 2f 2a 0a 32 2e | 1990\n"|;../*.2.|
|00001e50| 30 31 09 24 20 66 6f 72 | 6d 61 74 20 61 64 64 65 |01.$ for|mat adde|
|00001e60| 64 0a 32 2e 30 32 09 43 | 6f 64 69 6e 67 20 62 75 |d.2.02.C|oding bu|
|00001e70| 67 20 69 6e 20 6f 70 65 | 6e 2e 63 20 72 65 70 61 |g in ope|n.c repa|
|00001e80| 69 72 65 64 0a 32 2e 30 | 33 09 66 69 78 65 64 20 |ired.2.0|3.fixed |
|00001e90| 62 75 67 73 20 69 6e 20 | 6c 72 65 61 64 2e 63 20 |bugs in |lread.c |
|00001ea0| 28 72 65 61 64 20 2a 20 | 77 69 74 68 20 6e 65 67 |(read * |with neg|
|00001eb0| 61 74 69 76 65 20 66 2d | 66 6f 72 6d 61 74 29 20 |ative f-|format) |
|00001ec0| 61 6e 64 20 6c 69 6f 2e | 63 0a 09 61 6e 64 20 6c |and lio.|c..and l|
|00001ed0| 69 6f 2e 68 20 28 65 2d | 66 6f 72 6d 61 74 20 63 |io.h (e-|format c|
|00001ee0| 6f 6e 66 6f 72 6d 69 6e | 67 20 74 6f 20 73 70 65 |onformin|g to spe|
|00001ef0| 63 29 0a 32 2e 30 34 09 | 63 68 61 6e 67 65 64 20 |c).2.04.|changed |
|00001f00| 6f 70 65 6e 2e 63 20 61 | 6e 64 20 65 72 72 2e 63 |open.c a|nd err.c|
|00001f10| 20 28 66 6f 70 65 6e 20 | 61 6e 64 20 66 72 65 6f | (fopen |and freo|
|00001f20| 70 65 6e 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |pen resp|ectively|
|00001f30| 29 20 74 6f 0a 09 75 70 | 64 61 74 65 20 74 6f 20 |) to..up|date to |
|00001f40| 6e 65 77 20 63 2d 6c 69 | 62 72 61 72 79 20 28 61 |new c-li|brary (a|
|00001f50| 70 70 65 6e 64 20 6d 6f | 64 65 29 0a 32 2e 30 35 |ppend mo|de).2.05|
|00001f60| 09 61 64 64 65 64 20 6e | 61 6d 65 6c 69 73 74 20 |.added n|amelist |
|00001f70| 63 61 70 61 62 69 6c 69 | 74 79 0a 32 2e 30 36 09 |capabili|ty.2.06.|
|00001f80| 61 6c 6c 6f 77 20 69 6e | 74 65 72 6e 61 6c 20 6c |allow in|ternal l|
|00001f90| 69 73 74 20 61 6e 64 20 | 6e 61 6d 65 6c 69 73 74 |ist and |namelist|
|00001fa0| 20 49 2f 4f 0a 2a 2f 0a | 0a 2f 2a 0a 63 6c 6f 73 | I/O.*/.|./*.clos|
|00001fb0| 65 2e 63 3a 0a 09 61 6c | 6c 6f 77 20 75 70 70 65 |e.c:..al|low uppe|
|00001fc0| 72 2d 63 61 73 65 20 53 | 54 41 54 55 53 3d 20 76 |r-case S|TATUS= v|
|00001fd0| 61 6c 75 65 73 0a 65 6e | 64 66 69 6c 65 2e 63 0a |alues.en|dfile.c.|
|00001fe0| 09 63 72 65 61 74 65 20 | 66 6f 72 74 2e 6e 6e 6e |.create |fort.nnn|
|00001ff0| 20 69 66 20 75 6e 69 74 | 20 6e 6e 6e 20 6e 6f 74 | if unit| nnn not|
|00002000| 20 6f 70 65 6e 3b 0a 09 | 65 6c 73 65 20 69 66 20 | open;..|else if |
|00002010| 28 66 69 6c 65 20 6c 65 | 6e 67 74 68 20 3d 3d 20 |(file le|ngth == |
|00002020| 30 29 20 75 73 65 20 63 | 72 65 61 74 28 29 20 72 |0) use c|reat() r|
|00002030| 61 74 68 65 72 20 74 68 | 61 6e 20 63 6f 70 79 3b |ather th|an copy;|
|00002040| 0a 09 75 73 65 20 6c 6f | 63 61 6c 20 63 6f 70 79 |..use lo|cal copy|
|00002050| 28 29 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 66 |() rathe|r than f|
|00002060| 6f 72 6b 69 6e 67 20 2f | 62 69 6e 2f 63 70 3b 0a |orking /|bin/cp;.|
|00002070| 09 72 65 77 69 6e 64 2c | 20 66 73 65 65 6b 20 74 |.rewind,| fseek t|
|00002080| 6f 20 63 6c 65 61 72 20 | 62 75 66 66 65 72 20 28 |o clear |buffer (|
|00002090| 66 6f 72 20 6e 6f 20 72 | 65 61 64 69 6e 67 20 70 |for no r|eading p|
|000020a0| 61 73 74 20 45 4f 46 29 | 0a 65 72 72 2e 63 0a 09 |ast EOF)|.err.c..|
|000020b0| 75 73 65 20 6e 65 69 74 | 68 65 72 20 73 65 74 62 |use neit|her setb|
|000020c0| 75 66 20 6e 6f 72 20 73 | 65 74 76 62 75 66 3b 20 |uf nor s|etvbuf; |
|000020d0| 6d 61 6b 65 20 73 74 64 | 65 72 72 20 62 75 66 66 |make std|err buff|
|000020e0| 65 72 65 64 0a 66 69 6f | 2e 68 0a 09 23 64 65 66 |ered.fio|.h..#def|
|000020f0| 69 6e 65 20 5f 62 75 66 | 65 6e 64 0a 69 6e 71 75 |ine _buf|end.inqu|
|00002100| 69 72 65 2e 63 0a 09 75 | 70 70 65 72 20 63 61 73 |ire.c..u|pper cas|
|00002110| 65 20 72 65 73 70 6f 6e | 73 65 73 3b 0a 09 6f 6d |e respon|ses;..om|
|00002120| 69 74 20 62 79 66 69 6c | 65 20 74 65 73 74 20 66 |it byfil|e test f|
|00002130| 72 6f 6d 20 53 45 51 55 | 45 4e 54 49 41 4c 3d 0a |rom SEQU|ENTIAL=.|
|00002140| 09 61 6e 73 77 65 72 20 | 22 59 45 53 22 20 74 6f |.answer |"YES" to|
|00002150| 20 44 49 52 45 43 54 3d | 20 66 6f 72 20 75 6e 6f | DIRECT=| for uno|
|00002160| 70 65 6e 65 64 20 66 69 | 6c 65 20 28 6f 70 65 6e |pened fi|le (open|
|00002170| 20 74 6f 20 64 65 62 61 | 74 65 29 0a 6c 69 6f 2e | to deba|te).lio.|
|00002180| 63 0a 09 66 6c 75 73 68 | 20 73 74 64 65 72 72 2c |c..flush| stderr,|
|00002190| 20 73 74 64 6f 75 74 20 | 61 74 20 65 6e 64 20 6f | stdout |at end o|
|000021a0| 66 20 65 61 63 68 20 73 | 74 6d 74 0a 09 73 70 61 |f each s|tmt..spa|
|000021b0| 63 65 20 62 65 66 6f 72 | 65 20 63 68 61 72 61 63 |ce befor|e charac|
|000021c0| 74 65 72 20 73 74 72 69 | 6e 67 73 20 69 6e 20 6c |ter stri|ngs in l|
|000021d0| 69 73 74 20 6f 75 74 70 | 75 74 20 6f 6e 6c 79 20 |ist outp|ut only |
|000021e0| 61 74 20 6c 69 6e 65 20 | 73 74 61 72 74 0a 6c 69 |at line |start.li|
|000021f0| 6f 2e 68 0a 09 61 64 6a | 75 73 74 20 4c 45 57 2c |o.h..adj|ust LEW,|
|00002200| 20 4c 45 44 20 63 6f 6e | 73 69 73 74 65 6e 74 20 | LED con|sistent |
|00002210| 77 69 74 68 20 6f 6c 64 | 20 6c 69 62 49 37 37 0a |with old| libI77.|
|00002220| 6c 72 65 61 64 2e 63 0a | 09 75 73 65 20 61 74 6f |lread.c.|.use ato|
|00002230| 66 28 29 0a 09 61 6c 6c | 6f 77 20 22 6e 6e 6e 2a |f()..all|ow "nnn*|
|00002240| 2c 22 20 77 68 65 6e 20 | 72 65 61 64 69 6e 67 20 |," when |reading |
|00002250| 63 6f 6d 70 6c 65 78 20 | 63 6f 6e 73 74 61 6e 74 |complex |constant|
|00002260| 73 0a 6f 70 65 6e 2e 63 | 0a 09 74 72 79 20 6f 70 |s.open.c|..try op|
|00002270| 65 6e 69 6e 67 20 66 6f | 72 20 77 72 69 74 69 6e |ening fo|r writin|
|00002280| 67 20 77 68 65 6e 20 6f | 70 65 6e 20 66 6f 72 20 |g when o|pen for |
|00002290| 72 65 61 64 20 66 61 69 | 6c 73 2c 20 77 69 74 68 |read fai|ls, with|
|000022a0| 0a 09 73 70 65 63 69 61 | 6c 20 75 77 72 74 20 76 |..specia|l uwrt v|
|000022b0| 61 6c 75 65 20 28 32 29 | 20 64 65 6c 61 79 69 6e |alue (2)| delayin|
|000022c0| 67 20 63 72 65 61 74 28 | 29 20 74 6f 20 66 69 72 |g creat(|) to fir|
|000022d0| 73 74 20 77 72 69 74 65 | 3b 0a 09 73 65 74 20 63 |st write|;..set c|
|000022e0| 75 72 75 6e 69 74 20 73 | 6f 20 65 72 72 6f 72 20 |urunit s|o error |
|000022f0| 6d 65 73 73 61 67 65 73 | 20 64 6f 6e 27 74 20 64 |messages| don't d|
|00002300| 72 6f 70 20 63 6f 72 65 | 3b 0a 09 6e 6f 20 66 69 |rop core|;..no fi|
|00002310| 6c 65 20 6e 61 6d 65 20 | 3d 3d 3e 20 66 6f 72 74 |le name |==> fort|
|00002320| 2e 6e 6e 6e 20 65 78 63 | 65 70 74 20 66 6f 72 20 |.nnn exc|ept for |
|00002330| 53 54 41 54 55 53 3d 27 | 53 43 52 41 54 43 48 27 |STATUS='|SCRATCH'|
|00002340| 0a 72 64 66 6d 74 2e 63 | 0a 09 75 73 65 20 61 74 |.rdfmt.c|..use at|
|00002350| 6f 66 28 29 3b 20 74 72 | 75 73 74 20 45 4f 46 20 |of(); tr|ust EOF |
|00002360| 3d 3d 20 65 6e 64 2d 6f | 66 2d 66 69 6c 65 20 28 |== end-o|f-file (|
|00002370| 73 6f 20 64 6f 6e 27 74 | 20 72 65 61 64 20 70 61 |so don't| read pa|
|00002380| 73 74 0a 09 65 6e 64 2d | 6f 66 2d 66 69 6c 65 20 |st..end-|of-file |
|00002390| 61 66 74 65 72 20 65 6e | 64 66 69 6c 65 20 73 74 |after en|dfile st|
|000023a0| 6d 74 29 0a 73 66 65 2e | 63 0a 09 66 6c 75 73 68 |mt).sfe.|c..flush|
|000023b0| 20 73 74 64 65 72 72 2c | 20 73 74 64 6f 75 74 20 | stderr,| stdout |
|000023c0| 61 74 20 65 6e 64 20 6f | 66 20 65 61 63 68 20 73 |at end o|f each s|
|000023d0| 74 6d 74 0a 77 72 74 66 | 6d 74 2e 63 3a 0a 09 75 |tmt.wrtf|mt.c:..u|
|000023e0| 73 65 20 75 70 70 65 72 | 20 63 61 73 65 0a 09 70 |se upper| case..p|
|000023f0| 75 74 20 77 72 74 5f 45 | 20 61 6e 64 20 77 72 74 |ut wrt_E| and wrt|
|00002400| 5f 46 20 69 6e 74 6f 20 | 77 72 65 66 2e 63 2c 20 |_F into |wref.c, |
|00002410| 75 73 65 20 73 70 72 69 | 6e 74 66 28 29 0a 09 09 |use spri|ntf()...|
|00002420| 72 61 74 68 65 72 20 74 | 68 61 6e 20 65 63 76 74 |rather t|han ecvt|
|00002430| 28 29 20 61 6e 64 20 66 | 63 76 74 28 29 20 5b 6d |() and f|cvt() [m|
|00002440| 6f 72 65 20 61 63 63 75 | 72 61 74 65 20 6f 6e 20 |ore accu|rate on |
|00002450| 56 41 58 5d 0a 2a 2f 0a | 0a 2f 2a 20 31 36 20 4f |VAX].*/.|./* 16 O|
|00002460| 63 74 2e 20 31 39 38 38 | 3a 20 75 77 72 74 20 3d |ct. 1988|: uwrt =|
|00002470| 20 33 20 61 66 74 65 72 | 20 77 72 69 74 65 2c 20 | 3 after| write, |
|00002480| 72 65 77 69 6e 64 2c 20 | 73 6f 20 63 6c 6f 73 65 |rewind, |so close|
|00002490| 20 77 6f 6e 27 74 20 7a | 61 70 20 74 68 65 20 66 | won't z|ap the f|
|000024a0| 69 6c 65 2e 20 2a 2f 0a | 0a 2f 2a 20 31 30 20 4a |ile. */.|./* 10 J|
|000024b0| 75 6c 79 20 31 39 38 39 | 3a 20 63 68 61 6e 67 65 |uly 1989|: change|
|000024c0| 20 5f 62 75 66 65 6e 64 | 20 74 6f 20 62 75 66 5f | _bufend| to buf_|
|000024d0| 65 6e 64 20 69 6e 20 66 | 69 6f 2e 68 2c 20 77 73 |end in f|io.h, ws|
|000024e0| 66 65 2e 63 2c 20 77 72 | 74 66 6d 74 2e 63 20 2a |fe.c, wr|tfmt.c *|
|000024f0| 2f 0a 0a 2f 2a 20 32 38 | 20 4e 6f 76 2e 20 31 39 |/../* 28| Nov. 19|
|00002500| 38 39 3a 20 63 6f 72 72 | 65 63 74 69 6f 6e 73 20 |89: corr|ections |
|00002510| 66 6f 72 20 49 45 45 45 | 20 61 6e 64 20 43 72 61 |for IEEE| and Cra|
|00002520| 79 20 61 72 69 74 68 6d | 65 74 69 63 20 2a 2f 0a |y arithm|etic */.|
|00002530| 2f 2a 20 32 39 20 4e 6f | 76 2e 20 31 39 38 39 3a |/* 29 No|v. 1989:|
|00002540| 20 63 68 61 6e 67 65 20 | 76 61 72 69 6f 75 73 20 | change |various |
|00002550| 69 6e 74 20 72 65 74 75 | 72 6e 20 74 79 70 65 73 |int retu|rn types|
|00002560| 20 74 6f 20 6c 6f 6e 67 | 20 66 6f 72 20 66 32 63 | to long| for f2c|
|00002570| 20 2a 2f 0a 2f 2a 20 33 | 30 20 4e 6f 76 2e 20 31 | */./* 3|0 Nov. 1|
|00002580| 39 38 39 3a 20 76 61 72 | 69 6f 75 73 20 74 79 70 |989: var|ious typ|
|00002590| 65 73 20 66 72 6f 6d 20 | 66 32 63 2e 68 20 2a 2f |es from |f2c.h */|
|000025a0| 0a 2f 2a 20 20 36 20 44 | 65 63 2e 20 31 39 38 39 |./* 6 D|ec. 1989|
|000025b0| 3a 20 74 79 70 65 73 20 | 63 6f 72 72 65 63 74 65 |: types |correcte|
|000025c0| 64 20 76 61 72 69 6f 75 | 73 20 70 6c 61 63 65 73 |d variou|s places|
|000025d0| 20 2a 2f 0a 2f 2a 20 31 | 39 20 44 65 63 2e 20 31 | */./* 1|9 Dec. 1|
|000025e0| 39 38 39 3a 20 6d 61 6b | 65 20 69 6f 73 74 61 74 |989: mak|e iostat|
|000025f0| 3d 20 77 6f 72 6b 20 72 | 69 67 68 74 20 66 6f 72 |= work r|ight for|
|00002600| 20 69 6e 74 65 72 6e 61 | 6c 20 49 2f 4f 20 2a 2f | interna|l I/O */|
|00002610| 0a 2f 2a 20 20 38 20 4a | 61 6e 2e 20 31 39 39 30 |./* 8 J|an. 1990|
|00002620| 3a 20 61 64 64 20 72 73 | 6e 65 2c 20 77 73 6e 65 |: add rs|ne, wsne|
|00002630| 20 2d 2d 20 72 6f 75 74 | 69 6e 65 73 20 66 6f 72 | -- rout|ines for|
|00002640| 20 68 61 6e 64 6c 69 6e | 67 20 4e 41 4d 45 4c 49 | handlin|g NAMELI|
|00002650| 53 54 20 2a 2f 0a 2f 2a | 20 32 38 20 4a 61 6e 2e |ST */./*| 28 Jan.|
|00002660| 20 31 39 39 30 3a 20 68 | 61 76 65 20 4e 41 4d 45 | 1990: h|ave NAME|
|00002670| 4c 49 53 54 20 72 65 61 | 64 20 74 72 65 61 74 20 |LIST rea|d treat |
|00002680| 24 20 61 73 20 26 2c 20 | 67 65 6e 65 72 61 6c 20 |$ as &, |general |
|00002690| 77 68 69 74 65 0a 09 09 | 20 73 70 61 63 65 20 61 |white...| space a|
|000026a0| 73 20 62 6c 61 6e 6b 20 | 2a 2f 0a 2f 2a 20 32 37 |s blank |*/./* 27|
|000026b0| 20 4d 61 72 2e 20 31 39 | 39 30 3a 20 63 68 61 6e | Mar. 19|90: chan|
|000026c0| 67 65 20 61 6e 20 3d 20 | 74 6f 20 3d 3d 20 69 6e |ge an = |to == in|
|000026d0| 20 72 64 5f 4c 28 72 64 | 66 6d 74 2e 63 29 20 73 | rd_L(rd|fmt.c) s|
|000026e0| 6f 20 66 6f 72 6d 61 74 | 74 65 64 20 72 65 61 64 |o format|ted read|
|000026f0| 73 0a 09 09 20 6f 66 20 | 6c 6f 67 69 63 61 6c 20 |s... of |logical |
|00002700| 76 61 6c 75 65 73 20 72 | 65 6a 65 63 74 20 6c 65 |values r|eject le|
|00002710| 74 74 65 72 73 20 6f 74 | 68 65 72 20 74 68 61 6e |tters ot|her than|
|00002720| 20 66 46 74 54 3b 0a 09 | 09 20 68 61 76 65 20 6e | fFtT;..|. have n|
|00002730| 6f 77 77 72 69 74 69 6e | 67 20 72 65 73 65 74 20 |owwritin|g reset |
|00002740| 63 66 20 2a 2f 0a 2f 2a | 20 31 34 20 41 75 67 2e |cf */./*| 14 Aug.|
|00002750| 20 31 39 39 30 3a 20 61 | 64 6a 75 73 74 20 6c 72 | 1990: a|djust lr|
|00002760| 65 61 64 2e 63 20 74 6f | 20 74 72 65 61 74 20 74 |ead.c to| treat t|
|00002770| 61 62 73 20 61 73 20 73 | 70 61 63 65 73 20 69 6e |abs as s|paces in|
|00002780| 20 6c 69 73 74 20 69 6e | 70 75 74 20 2a 2f 0a 2f | list in|put */./|
|00002790| 2a 20 31 37 20 41 75 67 | 2e 20 31 39 39 30 3a 20 |* 17 Aug|. 1990: |
|000027a0| 61 64 6a 75 73 74 20 6f | 70 65 6e 2e 63 20 74 6f |adjust o|pen.c to|
|000027b0| 20 72 65 63 6f 67 6e 69 | 7a 65 20 62 6c 61 6e 6b | recogni|ze blank|
|000027c0| 3d 27 5a 2e 2e 2e 27 20 | 61 73 20 77 65 6c 6c 20 |='Z...' |as well |
|000027d0| 61 73 0a 09 09 20 62 6c | 61 6e 6b 3d 27 7a 2e 2e |as... bl|ank='z..|
|000027e0| 2e 27 20 77 68 65 6e 20 | 72 65 6f 70 65 6e 69 6e |.' when |reopenin|
|000027f0| 67 20 61 6e 20 6f 70 65 | 6e 20 66 69 6c 65 20 2a |g an ope|n file *|
|00002800| 2f 0a 2f 2a 20 33 30 20 | 41 75 67 2e 20 31 39 39 |/./* 30 |Aug. 199|
|00002810| 30 3a 20 70 72 65 76 65 | 6e 74 20 65 6d 62 65 64 |0: preve|nt embed|
|00002820| 64 65 64 20 62 6c 61 6e | 6b 73 20 69 6e 20 6c 69 |ded blan|ks in li|
|00002830| 73 74 20 6f 75 74 70 75 | 74 20 6f 66 20 63 6f 6d |st outpu|t of com|
|00002840| 70 6c 65 78 20 76 61 6c | 75 65 73 3b 0a 09 09 20 |plex val|ues;... |
|00002850| 6f 6d 69 74 20 65 78 70 | 6f 6e 65 6e 74 20 66 69 |omit exp|onent fi|
|00002860| 65 6c 64 20 69 6e 20 6c | 69 73 74 20 6f 75 74 70 |eld in l|ist outp|
|00002870| 75 74 20 6f 66 20 76 61 | 6c 75 65 73 20 6f 66 0a |ut of va|lues of.|
|00002880| 09 09 20 6d 61 67 6e 69 | 74 75 64 65 20 62 65 74 |.. magni|tude bet|
|00002890| 77 65 65 6e 20 31 30 20 | 61 6e 64 20 31 65 38 3b |ween 10 |and 1e8;|
|000028a0| 20 70 72 65 76 65 6e 74 | 20 77 72 69 74 69 6e 67 | prevent| writing|
|000028b0| 20 73 74 64 69 6e 0a 09 | 09 20 61 6e 64 20 72 65 | stdin..|. and re|
|000028c0| 61 64 69 6e 67 20 73 74 | 64 6f 75 74 20 6f 72 20 |ading st|dout or |
|000028d0| 73 74 64 65 72 72 3b 20 | 64 6f 6e 27 74 20 63 6c |stderr; |don't cl|
|000028e0| 6f 73 65 20 73 74 64 69 | 6e 2c 20 73 74 64 6f 75 |ose stdi|n, stdou|
|000028f0| 74 2c 0a 09 09 20 6f 72 | 20 73 74 64 65 72 72 20 |t,... or| stderr |
|00002900| 77 68 65 6e 20 72 65 6f | 70 65 6e 69 6e 67 20 75 |when reo|pening u|
|00002910| 6e 69 74 73 20 35 2c 20 | 36 2c 20 30 2e 20 2a 2f |nits 5, |6, 0. */|
|00002920| 0a 2f 2a 20 31 38 20 53 | 65 70 2e 20 31 39 39 30 |./* 18 S|ep. 1990|
|00002930| 3a 20 61 64 64 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |: add co|mponent |
|00002940| 75 64 65 76 20 74 6f 20 | 75 6e 69 74 20 61 6e 64 |udev to |unit and|
|00002950| 20 63 6f 6e 73 69 64 65 | 72 20 6f 6c 64 20 3d 3d | conside|r old ==|
|00002960| 20 6e 65 77 20 66 69 6c | 65 0a 09 09 20 69 66 66 | new fil|e... iff|
|00002970| 20 75 69 6e 6f 64 65 20 | 61 6e 64 20 75 64 65 76 | uinode |and udev|
|00002980| 20 76 61 6c 75 65 73 20 | 61 67 72 65 65 3b 20 75 | values |agree; u|
|00002990| 73 65 20 73 74 61 74 20 | 72 61 74 68 65 72 20 74 |se stat |rather t|
|000029a0| 68 61 6e 0a 09 09 20 61 | 63 63 65 73 73 20 74 6f |han... a|ccess to|
|000029b0| 20 63 68 65 63 6b 20 65 | 78 69 73 74 65 6e 63 65 | check e|xistence|
|000029c0| 20 6f 66 20 66 69 6c 65 | 20 28 77 68 65 6e 20 53 | of file| (when S|
|000029d0| 54 41 54 55 53 3d 27 4f | 4c 44 27 29 2a 2f 0a 2f |TATUS='O|LD')*/./|
|000029e0| 2a 20 32 20 4f 63 74 2e | 20 31 39 39 30 3a 20 20 |* 2 Oct.| 1990: |
|000029f0| 61 64 6a 75 73 74 20 72 | 65 77 69 6e 64 2e 63 20 |adjust r|ewind.c |
|00002a00| 73 6f 20 74 77 6f 20 73 | 75 63 63 65 73 73 69 76 |so two s|uccessiv|
|00002a10| 65 20 72 65 77 69 6e 64 | 73 20 61 66 74 65 72 20 |e rewind|s after |
|00002a20| 61 20 77 72 69 74 65 0a | 09 09 20 64 6f 6e 27 74 |a write.|.. don't|
|00002a30| 20 63 6c 6f 62 62 65 72 | 20 74 68 65 20 66 69 6c | clobber| the fil|
|00002a40| 65 2e 20 2a 2f 0a 2f 2a | 20 39 20 4f 63 74 2e 20 |e. */./*| 9 Oct. |
|00002a50| 31 39 39 30 3a 20 20 61 | 64 64 20 23 69 6e 63 6c |1990: a|dd #incl|
|00002a60| 75 64 65 20 22 66 63 6e | 74 6c 2e 68 22 20 74 6f |ude "fcn|tl.h" to|
|00002a70| 20 65 6e 64 66 69 6c 65 | 2e 63 2c 20 65 72 72 2e | endfile|.c, err.|
|00002a80| 63 2c 20 6f 70 65 6e 2e | 63 3b 0a 09 09 20 61 64 |c, open.|c;... ad|
|00002a90| 6a 75 73 74 20 67 5f 63 | 68 61 72 20 69 6e 20 75 |just g_c|har in u|
|00002aa0| 74 69 6c 2e 63 20 66 6f | 72 20 73 65 67 6d 65 6e |til.c fo|r segmen|
|00002ab0| 74 65 64 20 6d 65 6d 6f | 72 69 65 73 2e 20 2a 2f |ted memo|ries. */|
|00002ac0| 0a 2f 2a 20 31 37 20 4f | 63 74 2e 20 31 39 39 30 |./* 17 O|ct. 1990|
|00002ad0| 3a 20 72 65 70 6c 61 63 | 65 20 61 62 6f 72 74 28 |: replac|e abort(|
|00002ae0| 29 20 61 6e 64 20 5f 63 | 6c 65 61 6e 75 70 28 29 |) and _c|leanup()|
|00002af0| 20 77 69 74 68 20 63 61 | 6c 6c 73 20 6f 6e 0a 09 | with ca|lls on..|
|00002b00| 09 20 73 69 67 5f 64 69 | 65 28 2e 2e 2e 2c 31 29 |. sig_di|e(...,1)|
|00002b10| 20 28 64 65 66 69 6e 65 | 64 20 69 6e 20 6d 61 69 | (define|d in mai|
|00002b20| 6e 2e 63 29 2e 20 2a 2f | 0a 2f 2a 20 35 20 4e 6f |n.c). */|./* 5 No|
|00002b30| 76 2e 20 31 39 39 30 3a | 20 20 63 68 61 6e 67 65 |v. 1990:| change|
|00002b40| 73 20 74 6f 20 6f 70 65 | 6e 2e 63 3a 20 63 6f 6d |s to ope|n.c: com|
|00002b50| 70 6c 61 69 6e 20 69 66 | 20 6e 65 77 3d 20 69 73 |plain if| new= is|
|00002b60| 20 73 70 65 63 69 66 69 | 65 64 20 61 6e 64 20 74 | specifi|ed and t|
|00002b70| 68 65 0a 09 09 20 66 69 | 6c 65 20 61 6c 72 65 61 |he... fi|le alrea|
|00002b80| 64 79 20 65 78 69 73 74 | 73 3b 20 61 6c 6c 6f 77 |dy exist|s; allow|
|00002b90| 20 66 69 6c 65 3d 20 74 | 6f 20 62 65 20 6f 6d 69 | file= t|o be omi|
|00002ba0| 74 74 65 64 20 69 6e 20 | 6f 70 65 6e 20 73 74 6d |tted in |open stm|
|00002bb0| 74 73 0a 09 09 20 61 6e | 64 20 61 6c 6c 6f 77 20 |ts... an|d allow |
|00002bc0| 73 74 61 74 75 73 3d 27 | 72 65 70 6c 61 63 65 27 |status='|replace'|
|00002bd0| 20 28 46 6f 72 74 72 61 | 6e 20 39 30 20 65 78 74 | (Fortra|n 90 ext|
|00002be0| 65 6e 73 69 6f 6e 73 29 | 2e 20 2a 2f 0a 2f 2a 20 |ensions)|. */./* |
|00002bf0| 31 31 20 44 65 63 2e 20 | 31 39 39 30 3a 20 61 64 |11 Dec. |1990: ad|
|00002c00| 6a 75 73 74 6d 65 6e 74 | 73 20 66 6f 72 20 50 4f |justment|s for PO|
|00002c10| 53 49 58 20 2a 2f 0a 69 | 6e 73 74 61 6c 6c 65 64 |SIX */.i|nstalled|
|00002c20| 20 66 32 63 2e 68 20 69 | 6e 20 61 20 73 74 61 6e | f2c.h i|n a stan|
|00002c30| 64 61 72 64 0a 70 6c 61 | 63 65 20 28 61 6e 64 20 |dard.pla|ce (and |
|00002c40| 64 6f 65 73 20 6e 6f 74 | 20 63 61 75 73 65 20 72 |does not| cause r|
|00002c50| 65 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 77 68 65 |ecompila|tion whe|
|00002c60| 6e 20 66 32 63 2e 68 20 | 69 73 20 63 68 61 6e 67 |n f2c.h |is chang|
|00002c70| 65 64 29 3b 0a 66 32 63 | 2e 68 20 63 6f 6d 65 73 |ed);.f2c|.h comes|
|00002c80| 20 77 69 74 68 20 22 61 | 6c 6c 20 66 72 6f 6d 20 | with "a|ll from |
|00002c90| 66 32 63 22 20 28 74 68 | 65 20 73 6f 75 72 63 65 |f2c" (th|e source|
|00002ca0| 20 66 6f 72 20 66 32 63 | 29 20 61 6e 64 20 69 73 | for f2c|) and is|
|00002cb0| 0a 61 76 61 69 6c 61 62 | 6c 65 20 73 65 70 61 72 |.availab|le separ|
|00002cc0| 61 74 65 6c 79 20 28 22 | 66 32 63 2e 68 20 66 72 |ately ("|f2c.h fr|
|00002cd0| 6f 6d 20 66 32 63 22 29 | 2e 0a 00 00 00 00 00 00 |om f2c")|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 66 32 63 2f 6c 69 62 49 | 37 37 2f 62 61 63 6b 73 |f2c/libI|77/backs|
|00002e10| 70 61 63 65 2e 63 00 00 | 00 00 00 00 00 00 00 00 |pace.c..|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00002e70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00002e80| 20 20 20 32 33 34 34 20 | 20 34 37 34 31 31 34 32 | 2344 | 4741142|
|00002e90| 31 37 34 20 20 20 37 37 | 32 31 00 20 00 00 00 00 |174 77|21. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00003010| 0a 23 69 6e 63 6c 75 64 | 65 20 22 66 69 6f 2e 68 |.#includ|e "fio.h|
|00003020| 22 0a 69 6e 74 65 67 65 | 72 20 66 5f 62 61 63 6b |".intege|r f_back|
|00003030| 28 61 29 20 61 6c 69 73 | 74 20 2a 61 3b 0a 7b 09 |(a) alis|t *a;.{.|
|00003040| 75 6e 69 74 20 2a 62 3b | 0a 09 69 6e 74 20 6e 2c |unit *b;|..int n,|
|00003050| 69 3b 0a 09 6c 6f 6e 67 | 20 78 3b 0a 09 63 68 61 |i;..long| x;..cha|
|00003060| 72 20 62 75 66 5b 33 32 | 5d 3b 0a 09 69 66 28 61 |r buf[32|];..if(a|
|00003070| 2d 3e 61 75 6e 69 74 20 | 3e 3d 20 4d 58 55 4e 49 |->aunit |>= MXUNI|
|00003080| 54 20 7c 7c 20 61 2d 3e | 61 75 6e 69 74 20 3c 20 |T || a->|aunit < |
|00003090| 30 29 0a 09 09 65 72 72 | 28 61 2d 3e 61 65 72 72 |0)...err|(a->aerr|
|000030a0| 2c 31 30 31 2c 22 62 61 | 63 6b 73 70 61 63 65 22 |,101,"ba|ckspace"|
|000030b0| 29 0a 09 62 3d 20 26 75 | 6e 69 74 73 5b 61 2d 3e |)..b= &u|nits[a->|
|000030c0| 61 75 6e 69 74 5d 3b 0a | 09 69 66 28 62 2d 3e 75 |aunit];.|.if(b->u|
|000030d0| 73 65 65 6b 3d 3d 30 29 | 20 65 72 72 28 61 2d 3e |seek==0)| err(a->|
|000030e0| 61 65 72 72 2c 31 30 36 | 2c 22 62 61 63 6b 73 70 |aerr,106|,"backsp|
|000030f0| 61 63 65 22 29 0a 09 69 | 66 28 62 2d 3e 75 66 64 |ace")..i|f(b->ufd|
|00003100| 3d 3d 4e 55 4c 4c 29 20 | 7b 0a 09 09 66 6b 5f 6f |==NULL) |{...fk_o|
|00003110| 70 65 6e 28 31 2c 20 31 | 2c 20 61 2d 3e 61 75 6e |pen(1, 1|, a->aun|
|00003120| 69 74 29 3b 0a 09 09 72 | 65 74 75 72 6e 28 30 29 |it);...r|eturn(0)|
|00003130| 3b 0a 09 09 7d 0a 09 69 | 66 28 62 2d 3e 75 65 6e |;...}..i|f(b->uen|
|00003140| 64 3d 3d 31 29 0a 09 7b | 09 62 2d 3e 75 65 6e 64 |d==1)..{|.b->uend|
|00003150| 3d 30 3b 0a 09 09 72 65 | 74 75 72 6e 28 30 29 3b |=0;...re|turn(0);|
|00003160| 0a 09 7d 0a 09 69 66 28 | 62 2d 3e 75 77 72 74 29 |..}..if(|b->uwrt)|
|00003170| 20 7b 0a 09 09 28 76 6f | 69 64 29 20 74 5f 72 75 | {...(vo|id) t_ru|
|00003180| 6e 63 28 61 29 3b 0a 09 | 09 69 66 20 28 6e 6f 77 |nc(a);..|.if (now|
|00003190| 72 65 61 64 69 6e 67 28 | 62 29 29 0a 09 09 09 65 |reading(|b))....e|
|000031a0| 72 72 28 61 2d 3e 61 65 | 72 72 2c 65 72 72 6e 6f |rr(a->ae|rr,errno|
|000031b0| 2c 22 62 61 63 6b 73 70 | 61 63 65 22 29 0a 09 09 |,"backsp|ace")...|
|000031c0| 7d 0a 09 69 66 28 62 2d | 3e 75 72 6c 3e 30 29 0a |}..if(b-|>url>0).|
|000031d0| 09 7b 09 6c 6f 6e 67 20 | 79 3b 0a 09 09 78 3d 66 |.{.long |y;...x=f|
|000031e0| 74 65 6c 6c 28 62 2d 3e | 75 66 64 29 3b 0a 09 09 |tell(b->|ufd);...|
|000031f0| 79 20 3d 20 78 20 25 20 | 62 2d 3e 75 72 6c 3b 0a |y = x % |b->url;.|
|00003200| 09 09 69 66 28 79 20 3d | 3d 20 30 29 20 78 2d 2d |..if(y =|= 0) x--|
|00003210| 3b 0a 09 09 78 20 2f 3d | 20 62 2d 3e 75 72 6c 3b |;...x /=| b->url;|
|00003220| 0a 09 09 78 20 2a 3d 20 | 62 2d 3e 75 72 6c 3b 0a |...x *= |b->url;.|
|00003230| 09 09 28 76 6f 69 64 29 | 20 66 73 65 65 6b 28 62 |..(void)| fseek(b|
|00003240| 2d 3e 75 66 64 2c 78 2c | 53 45 45 4b 5f 53 45 54 |->ufd,x,|SEEK_SET|
|00003250| 29 3b 0a 09 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |);...ret|urn(0);.|
|00003260| 09 7d 0a 0a 09 69 66 28 | 62 2d 3e 75 66 6d 74 3d |.}...if(|b->ufmt=|
|00003270| 3d 30 29 0a 09 7b 09 28 | 76 6f 69 64 29 20 66 73 |=0)..{.(|void) fs|
|00003280| 65 65 6b 28 62 2d 3e 75 | 66 64 2c 2d 28 6c 6f 6e |eek(b->u|fd,-(lon|
|00003290| 67 29 73 69 7a 65 6f 66 | 28 69 6e 74 29 2c 53 45 |g)sizeof|(int),SE|
|000032a0| 45 4b 5f 43 55 52 29 3b | 0a 09 09 28 76 6f 69 64 |EK_CUR);|...(void|
|000032b0| 29 20 66 72 65 61 64 28 | 28 63 68 61 72 20 2a 29 |) fread(|(char *)|
|000032c0| 26 6e 2c 73 69 7a 65 6f | 66 28 69 6e 74 29 2c 31 |&n,sizeo|f(int),1|
|000032d0| 2c 62 2d 3e 75 66 64 29 | 3b 0a 09 09 28 76 6f 69 |,b->ufd)|;...(voi|
|000032e0| 64 29 20 66 73 65 65 6b | 28 62 2d 3e 75 66 64 2c |d) fseek|(b->ufd,|
|000032f0| 2d 28 6c 6f 6e 67 29 6e | 2d 32 2a 73 69 7a 65 6f |-(long)n|-2*sizeo|
|00003300| 66 28 69 6e 74 29 2c 53 | 45 45 4b 5f 43 55 52 29 |f(int),S|EEK_CUR)|
|00003310| 3b 0a 09 09 72 65 74 75 | 72 6e 28 30 29 3b 0a 09 |;...retu|rn(0);..|
|00003320| 7d 0a 09 66 6f 72 28 3b | 3b 29 0a 09 7b 09 6c 6f |}..for(;|;)..{.lo|
|00003330| 6e 67 20 79 3b 0a 09 09 | 79 20 3d 20 78 3d 66 74 |ng y;...|y = x=ft|
|00003340| 65 6c 6c 28 62 2d 3e 75 | 66 64 29 3b 0a 09 09 69 |ell(b->u|fd);...i|
|00003350| 66 28 78 3c 73 69 7a 65 | 6f 66 28 62 75 66 29 29 |f(x<size|of(buf))|
|00003360| 20 78 3d 30 3b 0a 09 09 | 65 6c 73 65 20 78 20 2d | x=0;...|else x -|
|00003370| 3d 20 73 69 7a 65 6f 66 | 28 62 75 66 29 3b 0a 09 |= sizeof|(buf);..|
|00003380| 09 28 76 6f 69 64 29 20 | 66 73 65 65 6b 28 62 2d |.(void) |fseek(b-|
|00003390| 3e 75 66 64 2c 78 2c 53 | 45 45 4b 5f 53 45 54 29 |>ufd,x,S|EEK_SET)|
|000033a0| 3b 0a 09 09 6e 3d 66 72 | 65 61 64 28 62 75 66 2c |;...n=fr|ead(buf,|
|000033b0| 31 2c 28 69 6e 74 29 28 | 79 2d 78 29 2c 20 62 2d |1,(int)(|y-x), b-|
|000033c0| 3e 75 66 64 29 3b 0a 09 | 09 66 6f 72 28 69 3d 6e |>ufd);..|.for(i=n|
|000033d0| 2d 32 3b 69 3e 3d 30 3b | 69 2d 2d 29 0a 09 09 7b |-2;i>=0;|i--)...{|
|000033e0| 0a 09 09 09 69 66 28 62 | 75 66 5b 69 5d 21 3d 27 |....if(b|uf[i]!='|
|000033f0| 5c 6e 27 29 20 63 6f 6e | 74 69 6e 75 65 3b 0a 09 |\n') con|tinue;..|
|00003400| 09 09 28 76 6f 69 64 29 | 20 66 73 65 65 6b 28 62 |..(void)| fseek(b|
|00003410| 2d 3e 75 66 64 2c 28 6c | 6f 6e 67 29 28 69 2b 31 |->ufd,(l|ong)(i+1|
|00003420| 2d 6e 29 2c 53 45 45 4b | 5f 43 55 52 29 3b 0a 09 |-n),SEEK|_CUR);..|
|00003430| 09 09 72 65 74 75 72 6e | 28 30 29 3b 0a 09 09 7d |..return|(0);...}|
|00003440| 0a 09 09 69 66 28 78 3d | 3d 30 29 0a 09 09 09 7b |...if(x=|=0)....{|
|00003450| 0a 09 09 09 28 76 6f 69 | 64 29 20 66 73 65 65 6b |....(voi|d) fseek|
|00003460| 28 62 2d 3e 75 66 64 2c | 20 30 4c 2c 20 53 45 45 |(b->ufd,| 0L, SEE|
|00003470| 4b 5f 53 45 54 29 3b 0a | 09 09 09 72 65 74 75 72 |K_SET);.|...retur|
|00003480| 6e 28 30 29 3b 0a 09 09 | 09 7d 0a 09 09 65 6c 73 |n(0);...|.}...els|
|00003490| 65 20 69 66 28 6e 3c 3d | 30 29 20 65 72 72 28 61 |e if(n<=|0) err(a|
|000034a0| 2d 3e 61 65 72 72 2c 28 | 45 4f 46 29 2c 22 62 61 |->aerr,(|EOF),"ba|
|000034b0| 63 6b 73 70 61 63 65 22 | 29 0a 09 09 28 76 6f 69 |ckspace"|)...(voi|
|000034c0| 64 29 20 66 73 65 65 6b | 28 62 2d 3e 75 66 64 2c |d) fseek|(b->ufd,|
|000034d0| 20 78 2c 20 53 45 45 4b | 5f 53 45 54 29 3b 0a 09 | x, SEEK|_SET);..|
|000034e0| 7d 0a 7d 0a 2c 20 77 72 | 74 66 6d 74 2e 63 20 2a |}.}., wr|tfmt.c *|
|000034f0| 2f 0a 0a 2f 2a 20 32 38 | 20 4e 6f 76 2e 20 31 39 |/../* 28| Nov. 19|
|00003500| 38 39 3a 20 63 6f 72 72 | 65 63 74 69 6f 6e 73 20 |89: corr|ections |
|00003510| 66 6f 72 20 49 45 45 45 | 20 61 6e 64 20 43 72 61 |for IEEE| and Cra|
|00003520| 79 20 61 72 69 74 68 6d | 65 74 69 63 20 2a 2f 0a |y arithm|etic */.|
|00003530| 2f 2a 20 32 39 20 4e 6f | 76 2e 20 31 39 38 39 3a |/* 29 No|v. 1989:|
|00003540| 20 63 68 61 6e 67 65 20 | 76 61 72 69 6f 75 73 20 | change |various |
|00003550| 69 6e 74 20 72 65 74 75 | 72 6e 20 74 79 70 65 73 |int retu|rn types|
|00003560| 20 74 6f 20 6c 6f 6e 67 | 20 66 6f 72 20 66 32 63 | to long| for f2c|
|00003570| 20 2a 2f 0a 2f 2a 20 33 | 30 20 4e 6f 76 2e 20 31 | */./* 3|0 Nov. 1|
|00003580| 39 38 39 3a 20 76 61 72 | 69 6f 75 73 20 74 79 70 |989: var|ious typ|
|00003590| 65 73 20 66 72 6f 6d 20 | 66 32 63 2e 68 20 2a 2f |es from |f2c.h */|
|000035a0| 0a 2f 2a 20 20 36 20 44 | 65 63 2e 20 31 39 38 39 |./* 6 D|ec. 1989|
|000035b0| 3a 20 74 79 70 65 73 20 | 63 6f 72 72 65 63 74 65 |: types |correcte|
|000035c0| 64 20 76 61 72 69 6f 75 | 73 20 70 6c 61 63 65 73 |d variou|s places|
|000035d0| 20 2a 2f 0a 2f 2a 20 31 | 39 20 44 65 63 2e 20 31 | */./* 1|9 Dec. 1|
|000035e0| 39 38 39 3a 20 6d 61 6b | 65 20 69 6f 73 74 61 74 |989: mak|e iostat|
|000035f0| 3d 20 77 6f 72 6b 20 72 | 69 67 68 74 20 66 6f 72 |= work r|ight for|
|00003600| 66 32 63 2f 6c 69 62 49 | 37 37 2f 63 6c 6f 73 65 |f2c/libI|77/close|
|00003610| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00003670| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00003680| 20 20 20 31 36 30 37 20 | 20 34 37 34 31 31 34 32 | 1607 | 4741142|
|00003690| 31 37 35 20 20 20 37 31 | 31 34 00 20 00 00 00 00 |175 71|14. ....|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00003810| 0a 23 69 6e 63 6c 75 64 | 65 20 22 66 69 6f 2e 68 |.#includ|e "fio.h|
|00003820| 22 0a 69 6e 74 65 67 65 | 72 20 66 5f 63 6c 6f 73 |".intege|r f_clos|
|00003830| 28 61 29 20 63 6c 6c 69 | 73 74 20 2a 61 3b 0a 7b |(a) clli|st *a;.{|
|00003840| 09 75 6e 69 74 20 2a 62 | 3b 0a 09 69 66 28 61 2d |.unit *b|;..if(a-|
|00003850| 3e 63 75 6e 69 74 20 3e | 3d 20 4d 58 55 4e 49 54 |>cunit >|= MXUNIT|
|00003860| 29 20 72 65 74 75 72 6e | 28 30 29 3b 0a 09 62 3d |) return|(0);..b=|
|00003870| 20 26 75 6e 69 74 73 5b | 61 2d 3e 63 75 6e 69 74 | &units[|a->cunit|
|00003880| 5d 3b 0a 09 69 66 28 62 | 2d 3e 75 66 64 3d 3d 4e |];..if(b|->ufd==N|
|00003890| 55 4c 4c 29 0a 09 09 67 | 6f 74 6f 20 64 6f 6e 65 |ULL)...g|oto done|
|000038a0| 3b 0a 09 69 66 20 28 21 | 61 2d 3e 63 73 74 61 29 |;..if (!|a->csta)|
|000038b0| 0a 09 09 69 66 20 28 62 | 2d 3e 75 73 63 72 74 63 |...if (b|->uscrtc|
|000038c0| 68 20 3d 3d 20 31 29 0a | 09 09 09 67 6f 74 6f 20 |h == 1).|...goto |
|000038d0| 64 65 6c 65 74 65 3b 0a | 09 09 65 6c 73 65 0a 09 |delete;.|..else..|
|000038e0| 09 09 67 6f 74 6f 20 6b | 65 65 70 3b 0a 09 73 77 |..goto k|eep;..sw|
|000038f0| 69 74 63 68 28 2a 61 2d | 3e 63 73 74 61 29 20 7b |itch(*a-|>csta) {|
|00003900| 0a 09 09 64 65 66 61 75 | 6c 74 3a 0a 09 20 09 6b |...defau|lt:.. .k|
|00003910| 65 65 70 3a 0a 09 09 63 | 61 73 65 20 27 6b 27 3a |eep:...c|ase 'k':|
|00003920| 0a 09 09 63 61 73 65 20 | 27 4b 27 3a 0a 09 09 09 |...case |'K':....|
|00003930| 69 66 28 62 2d 3e 75 77 | 72 74 20 3d 3d 20 31 29 |if(b->uw|rt == 1)|
|00003940| 0a 09 09 09 09 28 76 6f | 69 64 29 20 74 5f 72 75 |.....(vo|id) t_ru|
|00003950| 6e 63 28 28 61 6c 69 73 | 74 20 2a 29 61 29 3b 0a |nc((alis|t *)a);.|
|00003960| 09 09 09 69 66 28 62 2d | 3e 75 66 6e 6d 29 20 7b |...if(b-|>ufnm) {|
|00003970| 0a 09 09 09 09 28 76 6f | 69 64 29 20 66 63 6c 6f |.....(vo|id) fclo|
|00003980| 73 65 28 62 2d 3e 75 66 | 64 29 3b 0a 09 09 09 09 |se(b->uf|d);.....|
|00003990| 66 72 65 65 28 62 2d 3e | 75 66 6e 6d 29 3b 0a 09 |free(b->|ufnm);..|
|000039a0| 09 09 09 7d 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |...}....|break;..|
|000039b0| 09 63 61 73 65 20 27 64 | 27 3a 0a 09 09 63 61 73 |.case 'd|':...cas|
|000039c0| 65 20 27 44 27 3a 0a 09 | 09 64 65 6c 65 74 65 3a |e 'D':..|.delete:|
|000039d0| 0a 09 09 09 69 66 28 62 | 2d 3e 75 66 6e 6d 29 20 |....if(b|->ufnm) |
|000039e0| 7b 0a 09 09 09 09 28 76 | 6f 69 64 29 20 66 63 6c |{.....(v|oid) fcl|
|000039f0| 6f 73 65 28 62 2d 3e 75 | 66 64 29 3b 0a 09 09 09 |ose(b->u|fd);....|
|00003a00| 09 28 76 6f 69 64 29 20 | 75 6e 6c 69 6e 6b 28 62 |.(void) |unlink(b|
|00003a10| 2d 3e 75 66 6e 6d 29 3b | 20 2f 2a 53 59 53 44 45 |->ufnm);| /*SYSDE|
|00003a20| 50 2a 2f 0a 09 09 09 09 | 66 72 65 65 28 62 2d 3e |P*/.....|free(b->|
|00003a30| 75 66 6e 6d 29 3b 0a 09 | 09 09 09 7d 0a 09 09 7d |ufnm);..|...}...}|
|00003a40| 0a 09 62 2d 3e 75 66 64 | 3d 4e 55 4c 4c 3b 0a 20 |..b->ufd|=NULL;. |
|00003a50| 64 6f 6e 65 3a 0a 09 62 | 2d 3e 75 65 6e 64 3d 30 |done:..b|->uend=0|
|00003a60| 3b 0a 09 62 2d 3e 75 66 | 6e 6d 3d 4e 55 4c 4c 3b |;..b->uf|nm=NULL;|
|00003a70| 0a 09 72 65 74 75 72 6e | 28 30 29 3b 0a 09 7d 0a |..return|(0);..}.|
|00003a80| 20 76 6f 69 64 0a 66 5f | 65 78 69 74 28 29 0a 7b | void.f_|exit().{|
|00003a90| 09 69 6e 74 20 69 3b 0a | 09 73 74 61 74 69 63 20 |.int i;.|.static |
|00003aa0| 63 6c 6c 69 73 74 20 78 | 78 3b 0a 09 69 66 20 28 |cllist x|x;..if (|
|00003ab0| 21 78 78 2e 63 65 72 72 | 29 20 7b 0a 09 09 78 78 |!xx.cerr|) {...xx|
|00003ac0| 2e 63 65 72 72 3d 31 3b | 0a 09 09 78 78 2e 63 73 |.cerr=1;|...xx.cs|
|00003ad0| 74 61 3d 4e 55 4c 4c 3b | 0a 09 09 66 6f 72 28 69 |ta=NULL;|...for(i|
|00003ae0| 3d 30 3b 69 3c 4d 58 55 | 4e 49 54 3b 69 2b 2b 29 |=0;i<MXU|NIT;i++)|
|00003af0| 0a 09 09 7b 0a 09 09 09 | 78 78 2e 63 75 6e 69 74 |...{....|xx.cunit|
|00003b00| 3d 69 3b 0a 09 09 09 28 | 76 6f 69 64 29 20 66 5f |=i;....(|void) f_|
|00003b10| 63 6c 6f 73 28 26 78 78 | 29 3b 0a 09 09 7d 0a 09 |clos(&xx|);...}..|
|00003b20| 7d 0a 7d 0a 66 6c 75 73 | 68 5f 28 29 0a 7b 09 69 |}.}.flus|h_().{.i|
|00003b30| 6e 74 20 69 3b 0a 09 66 | 6f 72 28 69 3d 30 3b 69 |nt i;..f|or(i=0;i|
|00003b40| 3c 4d 58 55 4e 49 54 3b | 69 2b 2b 29 0a 09 09 69 |<MXUNIT;|i++)...i|
|00003b50| 66 28 75 6e 69 74 73 5b | 69 5d 2e 75 66 64 20 21 |f(units[|i].ufd !|
|00003b60| 3d 20 4e 55 4c 4c 29 20 | 28 76 6f 69 64 29 20 66 |= NULL) |(void) f|
|00003b70| 66 6c 75 73 68 28 75 6e | 69 74 73 5b 69 5d 2e 75 |flush(un|its[i].u|
|00003b80| 66 64 29 3b 0a 7d 0a 20 | 66 73 65 65 6b 28 62 2d |fd);.}. |fseek(b-|
|00003b90| 3e 75 66 64 2c 78 2c 53 | 45 45 4b 5f 53 45 54 29 |>ufd,x,S|EEK_SET)|
|00003ba0| 3b 0a 09 09 6e 3d 66 72 | 65 61 64 28 62 75 66 2c |;...n=fr|ead(buf,|
|00003bb0| 31 2c 28 69 6e 74 29 28 | 79 2d 78 29 2c 20 62 2d |1,(int)(|y-x), b-|
|00003bc0| 3e 75 66 64 29 3b 0a 09 | 09 66 6f 72 28 69 3d 6e |>ufd);..|.for(i=n|
|00003bd0| 2d 32 3b 69 3e 3d 30 3b | 69 2d 2d 29 0a 09 09 7b |-2;i>=0;|i--)...{|
|00003be0| 0a 09 09 09 69 66 28 62 | 75 66 5b 69 5d 21 3d 27 |....if(b|uf[i]!='|
|00003bf0| 5c 6e 27 29 20 63 6f 6e | 74 69 6e 75 65 3b 0a 09 |\n') con|tinue;..|
|00003c00| 66 32 63 2f 6c 69 62 49 | 37 37 2f 64 66 65 2e 63 |f2c/libI|77/dfe.c|
|00003c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00003c70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00003c80| 20 20 20 34 36 33 37 20 | 20 34 37 34 31 31 34 32 | 4637 | 4741142|
|00003c90| 31 37 35 20 20 20 36 35 | 35 33 00 20 00 00 00 00 |175 65|53. ....|
|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| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00003e10| 0a 23 69 6e 63 6c 75 64 | 65 20 22 66 69 6f 2e 68 |.#includ|e "fio.h|
|00003e20| 22 0a 23 69 6e 63 6c 75 | 64 65 20 22 66 6d 74 2e |".#inclu|de "fmt.|
|00003e30| 68 22 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 72 64 |h".exter|n int rd|
|00003e40| 5f 65 64 28 29 2c 72 64 | 5f 6e 65 64 28 29 2c 79 |_ed(),rd|_ned(),y|
|00003e50| 5f 67 65 74 63 28 29 2c | 79 5f 70 75 74 63 28 29 |_getc(),|y_putc()|
|00003e60| 2c 79 5f 65 72 72 28 29 | 3b 0a 65 78 74 65 72 6e |,y_err()|;.extern|
|00003e70| 20 69 6e 74 20 79 5f 72 | 65 76 28 29 2c 20 79 5f | int y_r|ev(), y_|
|00003e80| 72 73 6b 28 29 2c 20 79 | 5f 6e 65 77 72 65 63 28 |rsk(), y|_newrec(|
|00003e90| 29 3b 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 77 5f |);.exter|n int w_|
|00003ea0| 65 64 28 29 2c 77 5f 6e | 65 64 28 29 3b 0a 69 6e |ed(),w_n|ed();.in|
|00003eb0| 74 65 67 65 72 20 73 5f | 72 64 66 65 28 61 29 20 |teger s_|rdfe(a) |
|00003ec0| 63 69 6c 69 73 74 20 2a | 61 3b 0a 7b 0a 09 69 6e |cilist *|a;.{..in|
|00003ed0| 74 20 6e 3b 0a 09 69 66 | 28 21 69 6e 69 74 29 20 |t n;..if|(!init) |
|00003ee0| 66 5f 69 6e 69 74 28 29 | 3b 0a 09 69 66 28 6e 3d |f_init()|;..if(n=|
|00003ef0| 63 5f 64 66 65 28 61 29 | 29 72 65 74 75 72 6e 28 |c_dfe(a)|)return(|
|00003f00| 6e 29 3b 0a 09 72 65 61 | 64 69 6e 67 3d 31 3b 0a |n);..rea|ding=1;.|
|00003f10| 09 69 66 28 63 75 72 75 | 6e 69 74 2d 3e 75 77 72 |.if(curu|nit->uwr|
|00003f20| 74 20 26 26 20 6e 6f 77 | 72 65 61 64 69 6e 67 28 |t && now|reading(|
|00003f30| 63 75 72 75 6e 69 74 29 | 29 0a 09 09 65 72 72 28 |curunit)|)...err(|
|00003f40| 61 2d 3e 63 69 65 72 72 | 2c 65 72 72 6e 6f 2c 22 |a->cierr|,errno,"|
|00003f50| 72 65 61 64 20 73 74 61 | 72 74 22 29 3b 0a 09 67 |read sta|rt");..g|
|00003f60| 65 74 6e 20 3d 20 79 5f | 67 65 74 63 3b 0a 09 64 |etn = y_|getc;..d|
|00003f70| 6f 65 64 20 3d 20 72 64 | 5f 65 64 3b 0a 09 64 6f |oed = rd|_ed;..do|
|00003f80| 6e 65 64 20 3d 20 72 64 | 5f 6e 65 64 3b 0a 09 64 |ned = rd|_ned;..d|
|00003f90| 6f 72 65 76 65 72 74 20 | 3d 20 64 6f 6e 65 77 72 |orevert |= donewr|
|00003fa0| 65 63 20 3d 20 79 5f 65 | 72 72 3b 0a 09 64 6f 65 |ec = y_e|rr;..doe|
|00003fb0| 6e 64 20 3d 20 79 5f 72 | 73 6b 3b 0a 09 69 66 28 |nd = y_r|sk;..if(|
|00003fc0| 70 61 72 73 5f 66 28 66 | 6d 74 62 75 66 29 3c 30 |pars_f(f|mtbuf)<0|
|00003fd0| 29 0a 09 09 65 72 72 28 | 61 2d 3e 63 69 65 72 72 |)...err(|a->cierr|
|00003fe0| 2c 31 30 30 2c 22 72 65 | 61 64 20 73 74 61 72 74 |,100,"re|ad start|
|00003ff0| 22 29 3b 0a 09 66 6d 74 | 5f 62 67 28 29 3b 0a 09 |");..fmt|_bg();..|
|00004000| 72 65 74 75 72 6e 28 30 | 29 3b 0a 7d 0a 69 6e 74 |return(0|);.}.int|
|00004010| 65 67 65 72 20 73 5f 77 | 64 66 65 28 61 29 20 63 |eger s_w|dfe(a) c|
|00004020| 69 6c 69 73 74 20 2a 61 | 3b 0a 7b 0a 09 69 6e 74 |ilist *a|;.{..int|
|00004030| 20 6e 3b 0a 09 69 66 28 | 21 69 6e 69 74 29 20 66 | n;..if(|!init) f|
|00004040| 5f 69 6e 69 74 28 29 3b | 0a 09 69 66 28 6e 3d 63 |_init();|..if(n=c|
|00004050| 5f 64 66 65 28 61 29 29 | 20 72 65 74 75 72 6e 28 |_dfe(a))| return(|
|00004060| 6e 29 3b 0a 09 72 65 61 | 64 69 6e 67 3d 30 3b 0a |n);..rea|ding=0;.|
|00004070| 09 69 66 28 63 75 72 75 | 6e 69 74 2d 3e 75 77 72 |.if(curu|nit->uwr|
|00004080| 74 20 21 3d 20 31 20 26 | 26 20 6e 6f 77 77 72 69 |t != 1 &|& nowwri|
|00004090| 74 69 6e 67 28 63 75 72 | 75 6e 69 74 29 29 0a 09 |ting(cur|unit))..|
|000040a0| 09 65 72 72 28 61 2d 3e | 63 69 65 72 72 2c 65 72 |.err(a->|cierr,er|
|000040b0| 72 6e 6f 2c 22 73 74 61 | 72 74 77 72 74 22 29 3b |rno,"sta|rtwrt");|
|000040c0| 0a 09 70 75 74 6e 20 3d | 20 79 5f 70 75 74 63 3b |..putn =| y_putc;|
|000040d0| 0a 09 64 6f 65 64 20 3d | 20 77 5f 65 64 3b 0a 09 |..doed =| w_ed;..|
|000040e0| 64 6f 6e 65 64 3d 20 77 | 5f 6e 65 64 3b 0a 09 64 |doned= w|_ned;..d|
|000040f0| 6f 72 65 76 65 72 74 20 | 3d 20 79 5f 65 72 72 3b |orevert |= y_err;|
|00004100| 0a 09 64 6f 6e 65 77 72 | 65 63 20 3d 20 79 5f 6e |..donewr|ec = y_n|
|00004110| 65 77 72 65 63 3b 0a 09 | 64 6f 65 6e 64 20 3d 20 |ewrec;..|doend = |
|00004120| 79 5f 72 65 76 3b 0a 09 | 69 66 28 70 61 72 73 5f |y_rev;..|if(pars_|
|00004130| 66 28 66 6d 74 62 75 66 | 29 3c 30 29 0a 09 09 65 |f(fmtbuf|)<0)...e|
|00004140| 72 72 28 61 2d 3e 63 69 | 65 72 72 2c 31 30 30 2c |rr(a->ci|err,100,|
|00004150| 22 73 74 61 72 74 77 72 | 74 22 29 3b 0a 09 66 6d |"startwr|t");..fm|
|00004160| 74 5f 62 67 28 29 3b 0a | 09 72 65 74 75 72 6e 28 |t_bg();.|.return(|
|00004170| 30 29 3b 0a 7d 0a 69 6e | 74 65 67 65 72 20 65 5f |0);.}.in|teger e_|
|00004180| 72 64 66 65 28 29 0a 7b | 0a 09 28 76 6f 69 64 29 |rdfe().{|..(void)|
|00004190| 20 65 6e 5f 66 69 6f 28 | 29 3b 0a 09 72 65 74 75 | en_fio(|);..retu|
|000041a0| 72 6e 28 30 29 3b 0a 7d | 0a 69 6e 74 65 67 65 72 |rn(0);.}|.integer|
|000041b0| 20 65 5f 77 64 66 65 28 | 29 0a 7b 0a 09 28 76 6f | e_wdfe(|).{..(vo|
|000041c0| 69 64 29 20 65 6e 5f 66 | 69 6f 28 29 3b 0a 09 72 |id) en_f|io();..r|
|000041d0| 65 74 75 72 6e 28 30 29 | 3b 0a 7d 0a 63 5f 64 66 |eturn(0)|;.}.c_df|
|000041e0| 65 28 61 29 20 63 69 6c | 69 73 74 20 2a 61 3b 0a |e(a) cil|ist *a;.|
|000041f0| 7b 0a 09 73 65 71 75 65 | 6e 74 69 61 6c 3d 30 3b |{..seque|ntial=0;|
|00004200| 0a 09 66 6f 72 6d 61 74 | 74 65 64 3d 65 78 74 65 |..format|ted=exte|
|00004210| 72 6e 61 6c 3d 31 3b 0a | 09 65 6c 69 73 74 3d 61 |rnal=1;.|.elist=a|
|00004220| 3b 0a 09 63 75 72 73 6f | 72 3d 73 63 61 6c 65 3d |;..curso|r=scale=|
|00004230| 72 65 63 70 6f 73 3d 30 | 3b 0a 09 69 66 28 61 2d |recpos=0|;..if(a-|
|00004240| 3e 63 69 75 6e 69 74 3e | 4d 58 55 4e 49 54 20 7c |>ciunit>|MXUNIT ||
|00004250| 7c 20 61 2d 3e 63 69 75 | 6e 69 74 3c 30 29 0a 09 || a->ciu|nit<0)..|
|00004260| 09 65 72 72 28 61 2d 3e | 63 69 65 72 72 2c 31 30 |.err(a->|cierr,10|
|00004270| 31 2c 22 73 74 61 72 74 | 63 68 6b 22 29 3b 0a 09 |1,"start|chk");..|
|00004280| 63 75 72 75 6e 69 74 20 | 3d 20 26 75 6e 69 74 73 |curunit |= &units|
|00004290| 5b 61 2d 3e 63 69 75 6e | 69 74 5d 3b 0a 09 69 66 |[a->ciun|it];..if|
|000042a0| 28 63 75 72 75 6e 69 74 | 2d 3e 75 66 64 3d 3d 4e |(curunit|->ufd==N|
|000042b0| 55 4c 4c 20 26 26 20 66 | 6b 5f 6f 70 65 6e 28 44 |ULL && f|k_open(D|
|000042c0| 49 52 2c 46 4d 54 2c 61 | 2d 3e 63 69 75 6e 69 74 |IR,FMT,a|->ciunit|
|000042d0| 29 29 0a 09 09 65 72 72 | 28 61 2d 3e 63 69 65 72 |))...err|(a->cier|
|000042e0| 72 2c 31 30 34 2c 22 64 | 66 65 22 29 3b 0a 09 63 |r,104,"d|fe");..c|
|000042f0| 66 3d 63 75 72 75 6e 69 | 74 2d 3e 75 66 64 3b 0a |f=curuni|t->ufd;.|
|00004300| 09 69 66 28 21 63 75 72 | 75 6e 69 74 2d 3e 75 66 |.if(!cur|unit->uf|
|00004310| 6d 74 29 20 65 72 72 28 | 61 2d 3e 63 69 65 72 72 |mt) err(|a->cierr|
|00004320| 2c 31 30 32 2c 22 64 66 | 65 22 29 0a 09 69 66 28 |,102,"df|e")..if(|
|00004330| 21 63 75 72 75 6e 69 74 | 2d 3e 75 73 65 65 6b 29 |!curunit|->useek)|
|00004340| 20 65 72 72 28 61 2d 3e | 63 69 65 72 72 2c 31 30 | err(a->|cierr,10|
|00004350| 34 2c 22 64 66 65 22 29 | 0a 09 66 6d 74 62 75 66 |4,"dfe")|..fmtbuf|
|00004360| 3d 61 2d 3e 63 69 66 6d | 74 3b 0a 09 28 76 6f 69 |=a->cifm|t;..(voi|
|00004370| 64 29 20 66 73 65 65 6b | 28 63 66 2c 28 6c 6f 6e |d) fseek|(cf,(lon|
|00004380| 67 29 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 20 2a |g)curuni|t->url *|
|00004390| 20 28 61 2d 3e 63 69 72 | 65 63 2d 31 29 2c 53 45 | (a->cir|ec-1),SE|
|000043a0| 45 4b 5f 53 45 54 29 3b | 0a 09 63 75 72 75 6e 69 |EK_SET);|..curuni|
|000043b0| 74 2d 3e 75 65 6e 64 20 | 3d 20 30 3b 0a 09 72 65 |t->uend |= 0;..re|
|000043c0| 74 75 72 6e 28 30 29 3b | 0a 7d 0a 79 5f 72 73 6b |turn(0);|.}.y_rsk|
|000043d0| 28 29 0a 7b 0a 09 69 66 | 28 63 75 72 75 6e 69 74 |().{..if|(curunit|
|000043e0| 2d 3e 75 65 6e 64 20 7c | 7c 20 63 75 72 75 6e 69 |->uend ||| curuni|
|000043f0| 74 2d 3e 75 72 6c 20 3c | 3d 20 72 65 63 70 6f 73 |t->url <|= recpos|
|00004400| 0a 09 09 7c 7c 20 63 75 | 72 75 6e 69 74 2d 3e 75 |...|| cu|runit->u|
|00004410| 72 6c 20 3d 3d 20 31 29 | 20 72 65 74 75 72 6e 20 |rl == 1)| return |
|00004420| 30 3b 0a 09 64 6f 20 7b | 0a 09 09 67 65 74 63 28 |0;..do {|...getc(|
|00004430| 63 66 29 3b 0a 09 7d 20 | 77 68 69 6c 65 28 2b 2b |cf);..} |while(++|
|00004440| 72 65 63 70 6f 73 20 3c | 20 63 75 72 75 6e 69 74 |recpos <| curunit|
|00004450| 2d 3e 75 72 6c 29 3b 0a | 09 72 65 74 75 72 6e 20 |->url);.|.return |
|00004460| 30 3b 0a 7d 0a 79 5f 67 | 65 74 63 28 29 0a 7b 0a |0;.}.y_g|etc().{.|
|00004470| 09 69 6e 74 20 63 68 3b | 0a 09 69 66 28 63 75 72 |.int ch;|..if(cur|
|00004480| 75 6e 69 74 2d 3e 75 65 | 6e 64 29 20 72 65 74 75 |unit->ue|nd) retu|
|00004490| 72 6e 28 2d 31 29 3b 0a | 09 69 66 28 28 63 68 3d |rn(-1);.|.if((ch=|
|000044a0| 67 65 74 63 28 63 66 29 | 29 21 3d 45 4f 46 29 0a |getc(cf)|)!=EOF).|
|000044b0| 09 7b 0a 09 09 72 65 63 | 70 6f 73 2b 2b 3b 0a 09 |.{...rec|pos++;..|
|000044c0| 09 69 66 28 63 75 72 75 | 6e 69 74 2d 3e 75 72 6c |.if(curu|nit->url|
|000044d0| 3e 3d 72 65 63 70 6f 73 | 20 7c 7c 0a 09 09 09 63 |>=recpos| ||....c|
|000044e0| 75 72 75 6e 69 74 2d 3e | 75 72 6c 3d 3d 31 29 0a |urunit->|url==1).|
|000044f0| 09 09 09 72 65 74 75 72 | 6e 28 63 68 29 3b 0a 09 |...retur|n(ch);..|
|00004500| 09 65 6c 73 65 09 72 65 | 74 75 72 6e 28 27 20 27 |.else.re|turn(' '|
|00004510| 29 3b 0a 09 7d 0a 09 69 | 66 28 66 65 6f 66 28 63 |);..}..i|f(feof(c|
|00004520| 66 29 29 0a 09 7b 0a 09 | 09 63 75 72 75 6e 69 74 |f))..{..|.curunit|
|00004530| 2d 3e 75 65 6e 64 3d 31 | 3b 0a 09 09 65 72 72 6e |->uend=1|;...errn|
|00004540| 6f 3d 30 3b 0a 09 09 72 | 65 74 75 72 6e 28 2d 31 |o=0;...r|eturn(-1|
|00004550| 29 3b 0a 09 7d 0a 09 65 | 72 72 28 65 6c 69 73 74 |);..}..e|rr(elist|
|00004560| 2d 3e 63 69 65 72 72 2c | 65 72 72 6e 6f 2c 22 72 |->cierr,|errno,"r|
|00004570| 65 61 64 69 6e 67 64 22 | 29 3b 0a 7d 0a 79 5f 70 |eadingd"|);.}.y_p|
|00004580| 75 74 63 28 63 29 0a 7b | 0a 09 72 65 63 70 6f 73 |utc(c).{|..recpos|
|00004590| 2b 2b 3b 0a 09 69 66 28 | 72 65 63 70 6f 73 20 3c |++;..if(|recpos <|
|000045a0| 3d 20 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 20 7c |= curuni|t->url ||
|000045b0| 7c 20 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 3d 3d || curuni|t->url==|
|000045c0| 31 29 0a 09 09 70 75 74 | 63 28 63 2c 63 66 29 3b |1)...put|c(c,cf);|
|000045d0| 0a 09 65 6c 73 65 0a 09 | 09 65 72 72 28 65 6c 69 |..else..|.err(eli|
|000045e0| 73 74 2d 3e 63 69 65 72 | 72 2c 31 31 30 2c 22 64 |st->cier|r,110,"d|
|000045f0| 6f 75 74 22 29 3b 0a 09 | 72 65 74 75 72 6e 28 30 |out");..|return(0|
|00004600| 29 3b 0a 7d 0a 79 5f 72 | 65 76 28 29 0a 7b 09 2f |);.}.y_r|ev().{./|
|00004610| 2a 77 68 61 74 20 61 62 | 6f 75 74 20 77 6f 72 6b |*what ab|out work|
|00004620| 20 64 6f 6e 65 3f 2a 2f | 0a 09 69 66 28 63 75 72 | done?*/|..if(cur|
|00004630| 75 6e 69 74 2d 3e 75 72 | 6c 3d 3d 31 20 7c 7c 20 |unit->ur|l==1 || |
|00004640| 72 65 63 70 6f 73 3d 3d | 63 75 72 75 6e 69 74 2d |recpos==|curunit-|
|00004650| 3e 75 72 6c 29 0a 09 09 | 72 65 74 75 72 6e 28 30 |>url)...|return(0|
|00004660| 29 3b 0a 09 77 68 69 6c | 65 28 72 65 63 70 6f 73 |);..whil|e(recpos|
|00004670| 3c 63 75 72 75 6e 69 74 | 2d 3e 75 72 6c 29 0a 09 |<curunit|->url)..|
|00004680| 09 28 2a 70 75 74 6e 29 | 28 27 20 27 29 3b 0a 09 |.(*putn)|(' ');..|
|00004690| 72 65 63 70 6f 73 3d 30 | 3b 0a 09 72 65 74 75 72 |recpos=0|;..retur|
|000046a0| 6e 28 30 29 3b 0a 7d 0a | 79 5f 65 72 72 28 29 0a |n(0);.}.|y_err().|
|000046b0| 7b 0a 09 65 72 72 28 65 | 6c 69 73 74 2d 3e 63 69 |{..err(e|list->ci|
|000046c0| 65 72 72 2c 20 31 31 30 | 2c 20 22 64 66 65 22 29 |err, 110|, "dfe")|
|000046d0| 3b 0a 7d 0a 0a 79 5f 6e | 65 77 72 65 63 28 29 0a |;.}..y_n|ewrec().|
|000046e0| 7b 0a 09 69 66 28 63 75 | 72 75 6e 69 74 2d 3e 75 |{..if(cu|runit->u|
|000046f0| 72 6c 20 3d 3d 20 31 20 | 7c 7c 20 72 65 63 70 6f |rl == 1 ||| recpo|
|00004700| 73 20 3d 3d 20 63 75 72 | 75 6e 69 74 2d 3e 75 72 |s == cur|unit->ur|
|00004710| 6c 29 20 7b 0a 09 09 68 | 69 77 61 74 65 72 20 3d |l) {...h|iwater =|
|00004720| 20 72 65 63 70 6f 73 20 | 3d 20 63 75 72 73 6f 72 | recpos |= cursor|
|00004730| 20 3d 20 30 3b 0a 09 09 | 72 65 74 75 72 6e 28 31 | = 0;...|return(1|
|00004740| 29 3b 0a 09 7d 0a 09 69 | 66 28 68 69 77 61 74 65 |);..}..i|f(hiwate|
|00004750| 72 20 3e 20 72 65 63 70 | 6f 73 29 0a 09 09 72 65 |r > recp|os)...re|
|00004760| 63 70 6f 73 20 3d 20 68 | 69 77 61 74 65 72 3b 0a |cpos = h|iwater;.|
|00004770| 09 79 5f 72 65 76 28 29 | 3b 0a 09 68 69 77 61 74 |.y_rev()|;..hiwat|
|00004780| 65 72 20 3d 20 63 75 72 | 73 6f 72 20 3d 20 30 3b |er = cur|sor = 0;|
|00004790| 0a 09 72 65 74 75 72 6e | 28 31 29 3b 0a 7d 0a 20 |..return|(1);.}. |
|000047a0| 61 64 6a 75 73 74 20 6f | 70 65 6e 2e 63 20 74 6f |adjust o|pen.c to|
|000047b0| 20 72 65 63 6f 67 6e 69 | 7a 65 20 62 6c 61 6e 6b | recogni|ze blank|
|000047c0| 3d 27 5a 2e 2e 2e 27 20 | 61 73 20 77 65 6c 6c 20 |='Z...' |as well |
|000047d0| 61 73 0a 09 09 20 62 6c | 61 6e 6b 3d 27 7a 2e 2e |as... bl|ank='z..|
|000047e0| 2e 27 20 77 68 65 6e 20 | 72 65 6f 70 65 6e 69 6e |.' when |reopenin|
|000047f0| 67 20 61 6e 20 6f 70 65 | 6e 20 66 69 6c 65 20 2a |g an ope|n file *|
|00004800| 66 32 63 2f 6c 69 62 49 | 37 37 2f 64 6f 6c 69 6f |f2c/libI|77/dolio|
|00004810| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00004870| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00004880| 20 20 20 20 32 35 33 20 | 20 34 37 34 31 31 34 32 | 253 | 4741142|
|00004890| 31 37 35 20 20 20 37 30 | 37 31 00 20 00 00 00 00 |175 70|71. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00004a10| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 28 2a 6c 69 |.extern |int (*li|
|00004a20| 6f 70 72 6f 63 29 28 29 | 3b 0a 0a 69 6e 74 65 67 |oproc)()|;..integ|
|00004a30| 65 72 20 64 6f 5f 6c 69 | 6f 28 74 79 70 65 2c 6e |er do_li|o(type,n|
|00004a40| 75 6d 62 65 72 2c 70 74 | 72 2c 6c 65 6e 29 20 66 |umber,pt|r,len) f|
|00004a50| 74 6e 69 6e 74 20 2a 6e | 75 6d 62 65 72 2c 2a 74 |tnint *n|umber,*t|
|00004a60| 79 70 65 3b 20 63 68 61 | 72 20 2a 70 74 72 3b 20 |ype; cha|r *ptr; |
|00004a70| 66 74 6e 6c 65 6e 20 6c | 65 6e 3b 0a 7b 0a 09 72 |ftnlen l|en;.{..r|
|00004a80| 65 74 75 72 6e 28 28 2a | 6c 69 6f 70 72 6f 63 29 |eturn((*|lioproc)|
|00004a90| 28 6e 75 6d 62 65 72 2c | 70 74 72 2c 6c 65 6e 2c |(number,|ptr,len,|
|00004aa0| 2a 74 79 70 65 29 29 3b | 0a 7d 0a 18 00 00 f0 33 |*type));|.}.....3|
|00004ab0| 00 14 00 04 66 70 2e 68 | 00 00 00 00 00 00 01 28 |....fp.h|.......(|
|00004ac0| 00 00 f0 34 00 14 00 05 | 69 69 6f 2e 63 00 00 00 |...4....|iio.c...|
|00004ad0| 00 00 01 38 00 00 f0 35 | 00 14 00 06 69 6c 6e 77 |...8...5|....ilnw|
|00004ae0| 2e 63 00 00 00 00 01 4c | 00 00 f0 36 00 18 00 09 |.c.....L|...6....|
|00004af0| 69 6e 71 75 69 72 65 2e | 63 00 00 00 00 00 01 5c |inquire.|c......\|
|00004b00| 00 00 f0 37 00 14 00 05 | 6c 69 6f 2e 68 00 00 00 |...7....|lio.h...|
|00004b10| 00 00 01 6c 00 00 f0 38 | 00 14 00 07 6c 72 65 61 |...l...8|....lrea|
|00004b20| 64 2e 63 00 00 00 01 80 | 00 00 f0 39 00 18 00 08 |d.c.....|...9....|
|00004b30| 6c 77 72 69 74 65 2e 63 | 00 00 00 00 00 00 01 94 |lwrite.c|........|
|00004b40| 00 00 f0 3a 00 18 00 08 | 6d 61 6b 65 66 69 6c 65 |...:....|makefile|
|00004b50| 00 00 00 00 00 00 01 a4 | 00 00 f0 3b 00 14 00 06 |........|...;....|
|00004b60| 6f 70 65 6e 2e 63 00 00 | 00 00 01 b4 00 00 f0 3c |open.c..|.......<|
|00004b70| 00 14 00 07 72 64 66 6d | 74 2e 63 00 00 00 01 c8 |....rdfm|t.c.....|
|00004b80| 00 00 f0 3d 00 18 00 08 | 72 65 77 69 6e 64 2e 63 |...=....|rewind.c|
|00004b90| 00 00 00 00 00 00 01 d8 | 00 00 f0 3e 00 14 00 06 |........|...>....|
|00004ba0| 72 73 66 65 2e 63 00 c0 | 00 00 01 e8 00 00 f0 3f |rsfe.c..|.......?|
|00004bb0| 00 14 00 06 72 73 6c 69 | 2e 63 00 00 00 00 02 00 |....rsli|.c......|
|00004bc0| 00 00 f0 7d 00 14 00 06 | 72 73 6e 65 2e 63 00 e8 |...}....|rsne.c..|
|00004bd0| 00 00 02 10 00 00 f0 7e | 00 14 00 05 73 66 65 2e |.......~|....sfe.|
|00004be0| 63 00 00 00 00 00 02 20 | 00 00 f0 7f 00 14 00 05 |c...... |........|
|00004bf0| 73 75 65 2e 63 00 00 00 | 00 00 02 34 00 00 f0 80 |sue.c...|...4....|
|00004c00| 66 32 63 2f 6c 69 62 49 | 37 37 2f 64 75 65 2e 63 |f2c/libI|77/due.c|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00004c70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00004c80| 20 20 20 32 32 30 35 20 | 20 34 37 34 31 31 34 32 | 2205 | 4741142|
|00004c90| 31 37 36 20 20 20 36 35 | 36 30 00 20 00 00 00 00 |176 65|60. ....|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00004e10| 0a 23 69 6e 63 6c 75 64 | 65 20 22 66 69 6f 2e 68 |.#includ|e "fio.h|
|00004e20| 22 0a 69 6e 74 65 67 65 | 72 20 73 5f 72 64 75 65 |".intege|r s_rdue|
|00004e30| 28 61 29 20 63 69 6c 69 | 73 74 20 2a 61 3b 0a 7b |(a) cili|st *a;.{|
|00004e40| 0a 09 69 6e 74 20 6e 3b | 0a 09 69 66 28 6e 3d 63 |..int n;|..if(n=c|
|00004e50| 5f 64 75 65 28 61 29 29 | 20 72 65 74 75 72 6e 28 |_due(a))| return(|
|00004e60| 6e 29 3b 0a 09 72 65 61 | 64 69 6e 67 3d 31 3b 0a |n);..rea|ding=1;.|
|00004e70| 09 69 66 28 63 75 72 75 | 6e 69 74 2d 3e 75 77 72 |.if(curu|nit->uwr|
|00004e80| 74 20 26 26 20 6e 6f 77 | 72 65 61 64 69 6e 67 28 |t && now|reading(|
|00004e90| 63 75 72 75 6e 69 74 29 | 29 0a 09 09 65 72 72 28 |curunit)|)...err(|
|00004ea0| 61 2d 3e 63 69 65 72 72 | 2c 65 72 72 6e 6f 2c 22 |a->cierr|,errno,"|
|00004eb0| 72 65 61 64 20 73 74 61 | 72 74 22 29 3b 0a 09 72 |read sta|rt");..r|
|00004ec0| 65 74 75 72 6e 28 30 29 | 3b 0a 7d 0a 69 6e 74 65 |eturn(0)|;.}.inte|
|00004ed0| 67 65 72 20 73 5f 77 64 | 75 65 28 61 29 20 63 69 |ger s_wd|ue(a) ci|
|00004ee0| 6c 69 73 74 20 2a 61 3b | 0a 7b 0a 09 69 6e 74 20 |list *a;|.{..int |
|00004ef0| 6e 3b 0a 09 69 66 28 6e | 3d 63 5f 64 75 65 28 61 |n;..if(n|=c_due(a|
|00004f00| 29 29 20 72 65 74 75 72 | 6e 28 6e 29 3b 0a 09 72 |)) retur|n(n);..r|
|00004f10| 65 61 64 69 6e 67 3d 30 | 3b 0a 09 69 66 28 63 75 |eading=0|;..if(cu|
|00004f20| 72 75 6e 69 74 2d 3e 75 | 77 72 74 20 21 3d 20 31 |runit->u|wrt != 1|
|00004f30| 20 26 26 20 6e 6f 77 77 | 72 69 74 69 6e 67 28 63 | && noww|riting(c|
|00004f40| 75 72 75 6e 69 74 29 29 | 0a 09 09 65 72 72 28 61 |urunit))|...err(a|
|00004f50| 2d 3e 63 69 65 72 72 2c | 65 72 72 6e 6f 2c 22 77 |->cierr,|errno,"w|
|00004f60| 72 69 74 65 20 73 74 61 | 72 74 22 29 3b 0a 09 72 |rite sta|rt");..r|
|00004f70| 65 74 75 72 6e 28 30 29 | 3b 0a 7d 0a 63 5f 64 75 |eturn(0)|;.}.c_du|
|00004f80| 65 28 61 29 20 63 69 6c | 69 73 74 20 2a 61 3b 0a |e(a) cil|ist *a;.|
|00004f90| 7b 0a 09 69 66 28 21 69 | 6e 69 74 29 20 66 5f 69 |{..if(!i|nit) f_i|
|00004fa0| 6e 69 74 28 29 3b 0a 09 | 69 66 28 61 2d 3e 63 69 |nit();..|if(a->ci|
|00004fb0| 75 6e 69 74 3e 3d 4d 58 | 55 4e 49 54 20 7c 7c 20 |unit>=MX|UNIT || |
|00004fc0| 61 2d 3e 63 69 75 6e 69 | 74 3c 30 29 0a 09 09 65 |a->ciuni|t<0)...e|
|00004fd0| 72 72 28 61 2d 3e 63 69 | 65 72 72 2c 31 30 31 2c |rr(a->ci|err,101,|
|00004fe0| 22 73 74 61 72 74 69 6f | 22 29 3b 0a 09 72 65 63 |"startio|");..rec|
|00004ff0| 70 6f 73 3d 73 65 71 75 | 65 6e 74 69 61 6c 3d 66 |pos=sequ|ential=f|
|00005000| 6f 72 6d 61 74 74 65 64 | 3d 30 3b 0a 09 65 78 74 |ormatted|=0;..ext|
|00005010| 65 72 6e 61 6c 3d 31 3b | 0a 09 63 75 72 75 6e 69 |ernal=1;|..curuni|
|00005020| 74 20 3d 20 26 75 6e 69 | 74 73 5b 61 2d 3e 63 69 |t = &uni|ts[a->ci|
|00005030| 75 6e 69 74 5d 3b 0a 09 | 65 6c 69 73 74 3d 61 3b |unit];..|elist=a;|
|00005040| 0a 09 69 66 28 63 75 72 | 75 6e 69 74 2d 3e 75 66 |..if(cur|unit->uf|
|00005050| 64 3d 3d 4e 55 4c 4c 20 | 26 26 20 66 6b 5f 6f 70 |d==NULL |&& fk_op|
|00005060| 65 6e 28 44 49 52 2c 55 | 4e 46 2c 61 2d 3e 63 69 |en(DIR,U|NF,a->ci|
|00005070| 75 6e 69 74 29 20 29 20 | 65 72 72 28 61 2d 3e 63 |unit) ) |err(a->c|
|00005080| 69 65 72 72 2c 31 30 34 | 2c 22 64 75 65 22 29 3b |ierr,104|,"due");|
|00005090| 0a 09 63 66 3d 63 75 72 | 75 6e 69 74 2d 3e 75 66 |..cf=cur|unit->uf|
|000050a0| 64 3b 0a 09 69 66 28 63 | 75 72 75 6e 69 74 2d 3e |d;..if(c|urunit->|
|000050b0| 75 66 6d 74 29 20 65 72 | 72 28 61 2d 3e 63 69 65 |ufmt) er|r(a->cie|
|000050c0| 72 72 2c 31 30 32 2c 22 | 63 64 75 65 22 29 0a 09 |rr,102,"|cdue")..|
|000050d0| 69 66 28 21 63 75 72 75 | 6e 69 74 2d 3e 75 73 65 |if(!curu|nit->use|
|000050e0| 65 6b 29 20 65 72 72 28 | 61 2d 3e 63 69 65 72 72 |ek) err(|a->cierr|
|000050f0| 2c 31 30 34 2c 22 63 64 | 75 65 22 29 0a 09 69 66 |,104,"cd|ue")..if|
|00005100| 28 63 75 72 75 6e 69 74 | 2d 3e 75 66 64 3d 3d 4e |(curunit|->ufd==N|
|00005110| 55 4c 4c 29 20 65 72 72 | 28 61 2d 3e 63 69 65 72 |ULL) err|(a->cier|
|00005120| 72 2c 31 31 34 2c 22 63 | 64 75 65 22 29 0a 09 28 |r,114,"c|due")..(|
|00005130| 76 6f 69 64 29 20 66 73 | 65 65 6b 28 63 66 2c 28 |void) fs|eek(cf,(|
|00005140| 6c 6f 6e 67 29 28 61 2d | 3e 63 69 72 65 63 2d 31 |long)(a-|>cirec-1|
|00005150| 29 2a 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 2c 53 |)*curuni|t->url,S|
|00005160| 45 45 4b 5f 53 45 54 29 | 3b 0a 09 63 75 72 75 6e |EEK_SET)|;..curun|
|00005170| 69 74 2d 3e 75 65 6e 64 | 20 3d 20 30 3b 0a 09 72 |it->uend| = 0;..r|
|00005180| 65 74 75 72 6e 28 30 29 | 3b 0a 7d 0a 69 6e 74 65 |eturn(0)|;.}.inte|
|00005190| 67 65 72 20 65 5f 72 64 | 75 65 28 29 0a 7b 0a 09 |ger e_rd|ue().{..|
|000051a0| 69 66 28 63 75 72 75 6e | 69 74 2d 3e 75 72 6c 3d |if(curun|it->url=|
|000051b0| 3d 31 20 7c 7c 20 72 65 | 63 70 6f 73 3d 3d 63 75 |=1 || re|cpos==cu|
|000051c0| 72 75 6e 69 74 2d 3e 75 | 72 6c 29 0a 09 09 72 65 |runit->u|rl)...re|
|000051d0| 74 75 72 6e 28 30 29 3b | 0a 09 28 76 6f 69 64 29 |turn(0);|..(void)|
|000051e0| 20 66 73 65 65 6b 28 63 | 66 2c 28 6c 6f 6e 67 29 | fseek(c|f,(long)|
|000051f0| 28 63 75 72 75 6e 69 74 | 2d 3e 75 72 6c 2d 72 65 |(curunit|->url-re|
|00005200| 63 70 6f 73 29 2c 53 45 | 45 4b 5f 43 55 52 29 3b |cpos),SE|EK_CUR);|
|00005210| 0a 09 69 66 28 66 74 65 | 6c 6c 28 63 66 29 25 63 |..if(fte|ll(cf)%c|
|00005220| 75 72 75 6e 69 74 2d 3e | 75 72 6c 29 0a 09 09 65 |urunit->|url)...e|
|00005230| 72 72 28 65 6c 69 73 74 | 2d 3e 63 69 65 72 72 2c |rr(elist|->cierr,|
|00005240| 32 30 30 2c 22 73 79 73 | 65 72 72 22 29 3b 0a 09 |200,"sys|err");..|
|00005250| 72 65 74 75 72 6e 28 30 | 29 3b 0a 7d 0a 69 6e 74 |return(0|);.}.int|
|00005260| 65 67 65 72 20 65 5f 77 | 64 75 65 28 29 0a 7b 0a |eger e_w|due().{.|
|00005270| 09 72 65 74 75 72 6e 28 | 65 5f 72 64 75 65 28 29 |.return(|e_rdue()|
|00005280| 29 3b 0a 7d 0a 3e 75 65 | 6e 64 29 20 72 65 74 75 |);.}.>ue|nd) retu|
|00005290| 72 6e 28 2d 31 29 3b 0a | 09 69 66 28 28 63 68 3d |rn(-1);.|.if((ch=|
|000052a0| 67 65 74 63 28 63 66 29 | 29 21 3d 45 4f 46 29 0a |getc(cf)|)!=EOF).|
|000052b0| 09 7b 0a 09 09 72 65 63 | 70 6f 73 2b 2b 3b 0a 09 |.{...rec|pos++;..|
|000052c0| 09 69 66 28 63 75 72 75 | 6e 69 74 2d 3e 75 72 6c |.if(curu|nit->url|
|000052d0| 3e 3d 72 65 63 70 6f 73 | 20 7c 7c 0a 09 09 09 63 |>=recpos| ||....c|
|000052e0| 75 72 75 6e 69 74 2d 3e | 75 72 6c 3d 3d 31 29 0a |urunit->|url==1).|
|000052f0| 09 09 09 72 65 74 75 72 | 6e 28 63 68 29 3b 0a 09 |...retur|n(ch);..|
|00005300| 09 65 6c 73 65 09 72 65 | 74 75 72 6e 28 27 20 27 |.else.re|turn(' '|
|00005310| 29 3b 0a 09 7d 0a 09 69 | 66 28 66 65 6f 66 28 63 |);..}..i|f(feof(c|
|00005320| 66 29 29 0a 09 7b 0a 09 | 09 63 75 72 75 6e 69 74 |f))..{..|.curunit|
|00005330| 2d 3e 75 65 6e 64 3d 31 | 3b 0a 09 09 65 72 72 6e |->uend=1|;...errn|
|00005340| 6f 3d 30 3b 0a 09 09 72 | 65 74 75 72 6e 28 2d 31 |o=0;...r|eturn(-1|
|00005350| 29 3b 0a 09 7d 0a 09 65 | 72 72 28 65 6c 69 73 74 |);..}..e|rr(elist|
|00005360| 2d 3e 63 69 65 72 72 2c | 65 72 72 6e 6f 2c 22 72 |->cierr,|errno,"r|
|00005370| 65 61 64 69 6e 67 64 22 | 29 3b 0a 7d 0a 79 5f 70 |eadingd"|);.}.y_p|
|00005380| 75 74 63 28 63 29 0a 7b | 0a 09 72 65 63 70 6f 73 |utc(c).{|..recpos|
|00005390| 2b 2b 3b 0a 09 69 66 28 | 72 65 63 70 6f 73 20 3c |++;..if(|recpos <|
|000053a0| 3d 20 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 20 7c |= curuni|t->url ||
|000053b0| 7c 20 63 75 72 75 6e 69 | 74 2d 3e 75 72 6c 3d 3d || curuni|t->url==|
|000053c0| 31 29 0a 09 09 70 75 74 | 63 28 63 2c 63 66 29 3b |1)...put|c(c,cf);|
|000053d0| 0a 09 65 6c 73 65 0a 09 | 09 65 72 72 28 65 6c 69 |..else..|.err(eli|
|000053e0| 73 74 2d 3e 63 69 65 72 | 72 2c 31 31 30 2c 22 64 |st->cier|r,110,"d|
|000053f0| 6f 75 74 22 29 3b 0a 09 | 72 65 74 75 72 6e 28 30 |out");..|return(0|
|00005400| 66 32 63 2f 6c 69 62 49 | 37 37 2f 65 6e 64 66 69 |f2c/libI|77/endfi|
|00005410| 6c 65 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |le.c....|........|
|00005420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00005470| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00005480| 20 20 20 33 30 33 35 20 | 20 34 37 34 31 31 34 32 | 3035 | 4741142|
|00005490| 31 37 36 20 20 20 37 34 | 31 33 00 20 00 00 00 00 |176 74|13. ....|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 23 69 6e 63 6c 75 64 65 | 20 22 66 32 63 2e 68 22 |#include| "f2c.h"|
|00005610| 0a 23 69 6e 63 6c 75 64 | 65 20 22 66 69 6f 2e 68 |.#includ|e "fio.h|
|00005620| 22 0a 23 69 6e 63 6c 75 | 64 65 20 22 73 79 73 2f |".#inclu|de "sys/|
|00005630| 74 79 70 65 73 2e 68 22 | 0a 23 69 6e 63 6c 75 64 |types.h"|.#includ|
|00005640| 65 20 22 66 63 6e 74 6c | 2e 68 22 0a 23 69 66 6e |e "fcntl|.h".#ifn|
|00005650| 64 65 66 20 4f 5f 52 44 | 4f 4e 4c 59 0a 23 64 65 |def O_RD|ONLY.#de|
|00005660| 66 69 6e 65 20 4f 5f 52 | 44 4f 4e 4c 59 20 30 0a |fine O_R|DONLY 0.|
|00005670| 23 65 6e 64 69 66 0a 0a | 65 78 74 65 72 6e 20 63 |#endif..|extern c|
|00005680| 68 61 72 20 2a 6d 6b 74 | 65 6d 70 28 29 2c 20 2a |har *mkt|emp(), *|
|00005690| 73 74 72 63 70 79 28 29 | 3b 0a 0a 69 6e 74 65 67 |strcpy()|;..integ|
|000056a0| 65 72 20 66 5f 65 6e 64 | 28 61 29 20 61 6c 69 73 |er f_end|(a) alis|
|000056b0| 74 20 2a 61 3b 0a 7b 0a | 09 75 6e 69 74 20 2a 62 |t *a;.{.|.unit *b|
|000056c0| 3b 0a 09 69 66 28 61 2d | 3e 61 75 6e 69 74 3e 3d |;..if(a-|>aunit>=|
|000056d0| 4d 58 55 4e 49 54 20 7c | 7c 20 61 2d 3e 61 75 6e |MXUNIT ||| a->aun|
|000056e0| 69 74 3c 30 29 20 65 72 | 72 28 61 2d 3e 61 65 72 |it<0) er|r(a->aer|
|000056f0| 72 2c 31 30 31 2c 22 65 | 6e 64 66 69 6c 65 22 29 |r,101,"e|ndfile")|
|00005700| 3b 0a 09 62 20 3d 20 26 | 75 6e 69 74 73 5b 61 2d |;..b = &|units[a-|
|00005710| 3e 61 75 6e 69 74 5d 3b | 0a 09 69 66 28 62 2d 3e |>aunit];|..if(b->|
|00005720| 75 66 64 3d 3d 4e 55 4c | 4c 29 20 7b 0a 09 09 63 |ufd==NUL|L) {...c|
|00005730| 68 61 72 20 6e 62 75 66 | 5b 31 30 5d 3b 0a 09 09 |har nbuf|[10];...|
|00005740| 28 76 6f 69 64 29 20 73 | 70 72 69 6e 74 66 28 6e |(void) s|printf(n|
|00005750| 62 75 66 2c 22 66 6f 72 | 74 2e 25 6c 64 22 2c 61 |buf,"for|t.%ld",a|
|00005760| 2d 3e 61 75 6e 69 74 29 | 3b 0a 09 09 63 6c 6f 73 |->aunit)|;...clos|
|00005770| 65 28 63 72 65 61 74 28 | 6e 62 75 66 2c 20 30 36 |e(creat(|nbuf, 06|
|00005780| 36 36 29 29 3b 0a 09 09 | 72 65 74 75 72 6e 28 30 |66));...|return(0|
|00005790| 29 3b 0a 09 09 7d 0a 09 | 62 2d 3e 75 65 6e 64 3d |);...}..|b->uend=|
|000057a0| 31 3b 0a 09 72 65 74 75 | 72 6e 28 62 2d 3e 75 73 |1;..retu|rn(b->us|
|000057b0| 65 65 6b 20 3f 20 74 5f | 72 75 6e 63 28 61 29 20 |eek ? t_|runc(a) |
|000057c0| 3a 20 30 29 3b 0a 7d 0a | 0a 20 73 74 61 74 69 63 |: 0);.}.|. static|
|000057d0| 20 69 6e 74 0a 63 6f 70 | 79 28 66 72 6f 6d 2c 20 | int.cop|y(from, |
|000057e0| 6c 65 6e 2c 20 74 6f 29 | 0a 20 63 68 61 72 20 2a |len, to)|. char *|
|000057f0| 66 72 6f 6d 2c 20 2a 74 | 6f 3b 0a 20 72 65 67 69 |from, *t|o;. regi|
|00005800| 73 74 65 72 20 6c 6f 6e | 67 20 6c 65 6e 3b 0a 7b |ster lon|g len;.{|
|00005810| 0a 09 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 6e |..regist|er int n|
|00005820| 3b 0a 09 69 6e 74 20 6b | 2c 20 72 63 20 3d 20 30 |;..int k|, rc = 0|
|00005830| 2c 20 74 6d 70 3b 0a 09 | 63 68 61 72 20 62 75 66 |, tmp;..|char buf|
|00005840| 5b 42 55 46 53 49 5a 5d | 3b 0a 0a 09 69 66 20 28 |[BUFSIZ]|;...if (|
|00005850| 28 6b 20 3d 20 6f 70 65 | 6e 28 66 72 6f 6d 2c 20 |(k = ope|n(from, |
|00005860| 4f 5f 52 44 4f 4e 4c 59 | 29 29 20 3c 20 30 29 0a |O_RDONLY|)) < 0).|
|00005870| 09 09 72 65 74 75 72 6e | 20 31 3b 0a 09 69 66 20 |..return| 1;..if |
|00005880| 28 28 74 6d 70 20 3d 20 | 63 72 65 61 74 28 74 6f |((tmp = |creat(to|
|00005890| 2c 30 36 36 36 29 29 20 | 3c 20 30 29 0a 09 09 72 |,0666)) |< 0)...r|
|000058a0| 65 74 75 72 6e 20 31 3b | 0a 09 77 68 69 6c 65 28 |eturn 1;|..while(|
|000058b0| 28 6e 20 3d 20 72 65 61 | 64 28 6b 2c 20 62 75 66 |(n = rea|d(k, buf|
|000058c0| 2c 20 6c 65 6e 20 3e 20 | 42 55 46 53 49 5a 20 3f |, len > |BUFSIZ ?|
|000058d0| 20 42 55 46 53 49 5a 20 | 3a 20 28 69 6e 74 29 6c | BUFSIZ |: (int)l|
|000058e0| 65 6e 29 29 20 3e 20 30 | 29 20 7b 0a 09 09 69 66 |en)) > 0|) {...if|
|000058f0| 20 28 77 72 69 74 65 28 | 74 6d 70 2c 20 62 75 66 | (write(|tmp, buf|
|00005900| 2c 20 6e 29 20 21 3d 20 | 6e 29 0a 09 09 09 7b 20 |, n) != |n)....{ |
|00005910| 72 63 20 3d 20 31 3b 20 | 62 72 65 61 6b 3b 20 7d |rc = 1; |break; }|
|00005920| 0a 09 09 69 66 20 28 28 | 6c 65 6e 20 2d 3d 20 6e |...if ((|len -= n|
|00005930| 29 20 3c 3d 20 30 29 0a | 09 09 09 62 72 65 61 6b |) <= 0).|...break|
|00005940| 3b 0a 09 09 7d 0a 09 63 | 6c 6f 73 65 28 6b 29 3b |;...}..c|lose(k);|
|00005950| 0a 09 63 6c 6f 73 65 28 | 74 6d 70 29 3b 0a 09 72 |..close(|tmp);..r|
|00005960| 65 74 75 72 6e 20 6e 20 | 3c 20 30 20 3f 20 31 20 |eturn n |< 0 ? 1 |
|00005970| 3a 20 72 63 3b 0a 09 7d | 0a 0a 74 5f 72 75 6e 63 |: rc;..}|..t_runc|
|00005980| 28 61 29 20 61 6c 69 73 | 74 20 2a 61 3b 0a 7b 0a |(a) alis|t *a;.{.|
|00005990| 09 63 68 61 72 20 6e 6d | 5b 31 36 5d 3b 0a 09 6c |.char nm|[16];..l|
|000059a0| 6f 6e 67 20 6c 6f 63 2c | 20 6c 65 6e 3b 0a 09 75 |ong loc,| len;..u|
|000059b0| 6e 69 74 20 2a 62 3b 0a | 09 69 6e 74 20 72 63 20 |nit *b;.|.int rc |
|000059c0| 3d 20 30 3b 0a 0a 09 62 | 20 3d 20 26 75 6e 69 74 |= 0;...b| = &unit|
|000059d0| 73 5b 61 2d 3e 61 75 6e | 69 74 5d 3b 0a 09 69 66 |s[a->aun|it];..if|
|000059e0| 28 62 2d 3e 75 72 6c 29 | 20 72 65 74 75 72 6e 28 |(b->url)| return(|
|000059f0| 30 29 3b 09 2f 2a 64 6f | 6e 27 74 20 74 72 75 6e |0);./*do|n't trun|
|00005a00| 63 61 74 65 20 64 69 72 | 65 63 74 20 66 69 6c 65 |cate dir|ect file|
|00005a10| 73 2a 2f 0a 09 6c 6f 63 | 3d 66 74 65 6c 6c 28 62 |s*/..loc|=ftell(b|
|00005a20| 2d 3e 75 66 64 29 3b 0a | 09 28 76 6f 69 64 29 20 |->ufd);.|.(void) |
|00005a30| 66 73 65 65 6b 28 62 2d | 3e 75 66 64 2c 30 4c 2c |fseek(b-|>ufd,0L,|
|00005a40| 53 45 45 4b 5f 45 4e 44 | 29 3b 0a 09 6c 65 6e 3d |SEEK_END|);..len=|
|00005a50| 66 74 65 6c 6c 28 62 2d | 3e 75 66 64 29 3b 0a 09 |ftell(b-|>ufd);..|
|00005a60| 69 66 20 28 6c 6f 63 20 | 3e 3d 20 6c 65 6e 20 7c |if (loc |>= len ||
|00005a70| 7c 20 62 2d 3e 75 73 65 | 65 6b 20 3d 3d 20 30 20 || b->use|ek == 0 |
|00005a80| 7c 7c 20 62 2d 3e 75 66 | 6e 6d 20 3d 3d 20 4e 55 ||| b->uf|nm == NU|
|00005a90| 4c 4c 29 0a 09 09 72 65 | 74 75 72 6e 28 30 29 3b |LL)...re|turn(0);|
|00005aa0| 0a 09 72 65 77 69 6e 64 | 28 62 2d 3e 75 66 64 29 |..rewind|(b->ufd)|
|00005ab0| 3b 09 2f 2a 20 65 6d 70 | 74 79 20 62 75 66 66 65 |;./* emp|ty buffe|
|00005ac0| 72 20 2a 2f 0a 09 69 66 | 20 28 21 6c 6f 63 29 20 |r */..if| (!loc) |
|00005ad0| 7b 0a 09 09 69 66 20 28 | 63 6c 6f 73 65 28 63 72 |{...if (|close(cr|
|00005ae0| 65 61 74 28 62 2d 3e 75 | 66 6e 6d 2c 30 36 36 36 |eat(b->u|fnm,0666|
|00005af0| 29 29 29 0a 09 09 09 7b | 20 72 63 20 3d 20 31 3b |)))....{| rc = 1;|
|00005b00| 20 67 6f 74 6f 20 64 6f | 6e 65 3b 20 7d 0a 09 09 | goto do|ne; }...|
|00005b10| 69 66 20 28 62 2d 3e 75 | 77 72 74 29 0a 09 09 09 |if (b->u|wrt)....|
|00005b20| 62 2d 3e 75 77 72 74 20 | 3d 20 31 3b 0a 09 09 72 |b->uwrt |= 1;...r|
|00005b30| 65 74 75 72 6e 20 30 3b | 0a 09 09 7d 0a 09 28 76 |eturn 0;|...}..(v|
|00005b40| 6f 69 64 29 20 73 74 72 | 63 70 79 28 6e 6d 2c 22 |oid) str|cpy(nm,"|
|00005b50| 74 6d 70 2e 46 58 58 58 | 58 58 58 22 29 3b 0a 09 |tmp.FXXX|XXX");..|
|00005b60| 28 76 6f 69 64 29 20 6d | 6b 74 65 6d 70 28 6e 6d |(void) m|ktemp(nm|
|00005b70| 29 3b 0a 09 69 66 20 28 | 63 6f 70 79 28 62 2d 3e |);..if (|copy(b->|
|00005b80| 75 66 6e 6d 2c 20 6c 6f | 63 2c 20 6e 6d 29 0a 09 |ufnm, lo|c, nm)..|
|00005b90| 20 7c 7c 20 63 6f 70 79 | 28 6e 6d 2c 20 6c 6f 63 | || copy|(nm, loc|
|00005ba0| 2c 20 62 2d 3e 75 66 6e | 6d 29 29 0a 09 09 72 63 |, b->ufn|m))...rc|
|00005bb0| 20 3d 20 31 3b 0a 09 75 | 6e 6c 69 6e 6b 28 6e 6d | = 1;..u|nlink(nm|
|00005bc0| 29 3b 0a 64 6f 6e 65 3a | 0a 09 66 73 65 65 6b 28 |);.done:|..fseek(|
|00005bd0| 62 2d 3e 75 66 64 2c 20 | 6c 6f 63 2c 20 53 45 45 |b->ufd, |loc, SEE|
|00005be0| 4b 5f 53 45 54 29 3b 0a | 09 69 66 20 28 72 63 29 |K_SET);.|.if (rc)|
|00005bf0| 0a 09 09 65 72 72 28 61 | 2d 3e 61 65 72 72 2c 31 |...err(a|->aerr,1|
|00005c00| 31 31 2c 22 65 6e 64 66 | 69 6c 65 22 29 3b 0a 09 |11,"endf|ile");..|
|00005c10| 72 65 74 75 72 6e 20 30 | 3b 0a 09 7d 0a 6f 72 6b |return 0|;..}.ork|
|00005c20| 20 64 6f 6e 65 3f 2a 2f | 0a 09 69 66 28 63 75 72 | done?*/|..if(cur|
|00005c30| 75 6e 69 74 2d 3e 75 72 | 6c 3d 3d 31 20 7c 7c 20 |unit->ur|l==1 || |
|00005c40| 72 65 63 70 6f 73 3d 3d | 63 75 72 75 6e 69 74 2d |recpos==|curunit-|
|00005c50| 3e 75 72 6c 29 0a 09 09 | 72 65 74 75 72 6e 28 30 |>url)...|return(0|
|00005c60| 29 3b 0a 09 77 68 69 6c | 65 28 72 65 63 70 6f 73 |);..whil|e(recpos|
|00005c70| 3c 63 75 72 75 6e 69 74 | 2d 3e 75 72 6c 29 0a 09 |<curunit|->url)..|
|00005c80| 09 28 2a 70 75 74 6e 29 | 28 27 20 27 29 3b 0a 09 |.(*putn)|(' ');..|
|00005c90| 72 65 63 70 6f 73 3d 30 | 3b 0a 09 72 65 74 75 72 |recpos=0|;..retur|
|00005ca0| 6e 28 30 29 3b 0a 7d 0a | 79 5f 65 72 72 28 29 0a |n(0);.}.|y_err().|
|00005cb0| 7b 0a 09 65 72 72 28 65 | 6c 69 73 74 2d 3e 63 69 |{..err(e|list->ci|
|00005cc0| 65 72 72 2c 20 31 31 30 | 2c 20 22 64 66 65 22 29 |err, 110|, "dfe")|
|00005cd0| 3b 0a 7d 0a 0a 79 5f 6e | 65 77 72 65 63 28 29 0a |;.}..y_n|ewrec().|
|00005ce0| 7b 0a 09 69 66 28 63 75 | 72 75 6e 69 74 2d 3e 75 |{..if(cu|runit->u|
|00005cf0| 72 6c 20 3d 3d 20 31 20 | 7c 7c 20 72 65 63 70 6f |rl == 1 ||| recpo|
|00005d00| 73 20 3d 3d 20 63 75 72 | 75 6e 69 74 2d 3e 75 72 |s == cur|unit->ur|
|00005d10| 6c 29 20 7b 0a 09 09 68 | 69 77 61 74 65 72 20 3d |l) {...h|iwater =|
|00005d20| 20 72 65 63 70 6f 73 20 | 3d 20 63 75 72 73 6f 72 | recpos |= cursor|
|00005d30| 20 3d 20 30 3b 0a 09 09 | 72 65 74 75 72 6e 28 31 | = 0;...|return(1|
|00005d40| 29 3b 0a 09 7d 0a 09 69 | 66 28 68 69 77 61 74 65 |);..}..i|f(hiwate|
|00005d50| 72 20 3e 20 72 65 63 70 | 6f 73 29 0a 09 09 72 65 |r > recp|os)...re|
|00005d60| 63 70 6f 73 20 3d 20 68 | 69 77 61 74 65 72 3b 0a |cpos = h|iwater;.|
|00005d70| 09 79 5f 72 65 76 28 29 | 3b 0a 09 68 69 77 61 74 |.y_rev()|;..hiwat|
|00005d80| 65 72 20 3d 20 63 75 72 | 73 6f 72 20 3d 20 30 3b |er = cur|sor = 0;|
|00005d90| 0a 09 72 65 74 75 72 6e | 28 31 29 3b 0a 7d 0a 20 |..return|(1);.}. |
|00005da0| 61 64 6a 75 73 74 20 6f | 70 65 6e 2e 63 20 74 6f |adjust o|pen.c to|
|00005db0| 20 72 65 63 6f 67 6e 69 | 7a 65 20 62 6c 61 6e 6b | recogni|ze blank|
|00005dc0| 3d 27 5a 2e 2e 2e 27 20 | 61 73 20 77 65 6c 6c 20 |='Z...' |as well |
|00005dd0| 61 73 0a 09 09 20 62 6c | 61 6e 6b 3d 27 7a 2e 2e |as... bl|ank='z..|
|00005de0| 2e 27 20 77 68 65 6e 20 | 72 65 6f 70 65 6e 69 6e |.' when |reopenin|
|00005df0| 67 20 61 6e 20 6f 70 65 | 6e 20 66 69 6c 65 20 2a |g an ope|n file *|
|00005e00| 66 32 63 2f 6c 69 62 49 | 37 37 2f 65 72 72 2e 63 |f2c/libI|77/err.c|
|00005e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 31 |.... 6|40 . 1|
|00005e70| 35 33 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |53 . 1|44 . |
|00005e80| 20 20 31 32 31 31 36 20 | 20 34 37 34 31 31 34 32 | 12116 | 4741142|
|00005e90| 31 37 37 20 20 20 36 36 | 31 36 00 20 00 00 00 00 |177 66|16. ....|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 23 69 6e 63 6c 75 64 65 | 20 22 73 79 73 2f 74 79 |#include| "sys/ty|
|00006010| 70 65 73 2e 68 22 0a 23 | 69 66 6e 64 65 66 20 4d |pes.h".#|ifndef M|
|00006020| 53 44 4f 53 0a 23 69 6e | 63 6c 75 64 65 20 22 73 |SDOS.#in|clude "s|
|00006030| 79 73 2f 73 74 61 74 2e | 68 22 0a 23 65 6e 64 69 |ys/stat.|h".#endi|
|00006040| 66 0a 23 69 6e 63 6c 75 | 64 65 20 22 66 32 63 2e |f.#inclu|de "f2c.|
|00006050| 68 22 0a 23 69 6e 63 6c | 75 64 65 20 22 66 69 6f |h".#incl|ude "fio|
|00006060| 2e 68 22 0a 23 69 6e 63 | 6c 75 64 65 20 22 66 63 |.h".#inc|lude "fc|
|00006070| 6e 74 6c 2e 68 22 0a 23 | 69 66 6e 64 65 66 20 4f |ntl.h".#|ifndef O|
|00006080| 5f 57 52 4f 4e 4c 59 0a | 23 64 65 66 69 6e 65 20 |_WRONLY.|#define |
|00006090| 4f 5f 57 52 4f 4e 4c 59 | 20 31 0a 23 65 6e 64 69 |O_WRONLY| 1.#endi|
|000060a0| 66 0a 0a 65 78 74 65 72 | 6e 20 46 49 4c 45 20 2a |f..exter|n FILE *|
|000060b0| 66 64 6f 70 65 6e 28 29 | 3b 0a 0a 2f 2a 67 6c 6f |fdopen()|;../*glo|
|000060c0| 62 61 6c 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2a |bal defi|nitions*|
|000060d0| 2f 0a 75 6e 69 74 20 75 | 6e 69 74 73 5b 4d 58 55 |/.unit u|nits[MXU|
|000060e0| 4e 49 54 5d 3b 09 2f 2a | 75 6e 69 74 20 74 61 62 |NIT];./*|unit tab|
|000060f0| 6c 65 2a 2f 0a 66 6c 61 | 67 20 69 6e 69 74 3b 09 |le*/.fla|g init;.|
|00006100| 2f 2a 30 20 6f 6e 20 65 | 6e 74 72 79 2c 20 31 20 |/*0 on e|ntry, 1 |
|00006110| 61 66 74 65 72 20 69 6e | 69 74 69 61 6c 69 7a 61 |after in|itializa|
|00006120| 74 69 6f 6e 73 2a 2f 0a | 63 69 6c 69 73 74 20 2a |tions*/.|cilist *|
|00006130| 65 6c 69 73 74 3b 09 2f | 2a 61 63 74 69 76 65 20 |elist;./|*active |
|00006140| 65 78 74 65 72 6e 61 6c | 20 69 6f 20 6c 69 73 74 |external| io list|
|00006150| 2a 2f 0a 66 6c 61 67 20 | 72 65 61 64 69 6e 67 3b |*/.flag |reading;|
|00006160| 09 2f 2a 31 20 69 66 20 | 72 65 61 64 69 6e 67 2c |./*1 if |reading,|
|00006170| 20 30 20 69 66 20 77 72 | 69 74 69 6e 67 2a 2f 0a | 0 if wr|iting*/.|
|00006180| 66 6c 61 67 20 63 70 6c | 75 73 2c 63 62 6c 61 6e |flag cpl|us,cblan|
|00006190| 6b 3b 0a 63 68 61 72 20 | 2a 66 6d 74 62 75 66 3b |k;.char |*fmtbuf;|
|000061a0| 0a 66 6c 61 67 20 65 78 | 74 65 72 6e 61 6c 3b 09 |.flag ex|ternal;.|
|000061b0| 2f 2a 31 20 69 66 20 65 | 78 74 65 72 6e 61 6c 20 |/*1 if e|xternal |
|000061c0| 69 6f 2c 20 30 20 69 66 | 20 69 6e 74 65 72 6e 61 |io, 0 if| interna|
|000061d0| 6c 20 2a 2f 0a 69 6e 74 | 20 28 2a 64 6f 65 64 29 |l */.int| (*doed)|
|000061e0| 28 29 2c 28 2a 64 6f 6e | 65 64 29 28 29 3b 0a 69 |(),(*don|ed)();.i|
|000061f0| 6e 74 20 28 2a 64 6f 65 | 6e 64 29 28 29 2c 28 2a |nt (*doe|nd)(),(*|
|00006200| 64 6f 6e 65 77 72 65 63 | 29 28 29 2c 28 2a 64 6f |donewrec|)(),(*do|
|00006210| 72 65 76 65 72 74 29 28 | 29 3b 0a 66 6c 61 67 20 |revert)(|);.flag |
|00006220| 73 65 71 75 65 6e 74 69 | 61 6c 3b 09 2f 2a 31 20 |sequenti|al;./*1 |
|00006230| 69 66 20 73 65 71 75 65 | 6e 74 69 61 6c 20 69 6f |if seque|ntial io|
|00006240| 2c 20 30 20 69 66 20 64 | 69 72 65 63 74 2a 2f 0a |, 0 if d|irect*/.|
|00006250| 66 6c 61 67 20 66 6f 72 | 6d 61 74 74 65 64 3b 09 |flag for|matted;.|
|00006260| 2f 2a 31 20 69 66 20 66 | 6f 72 6d 61 74 74 65 64 |/*1 if f|ormatted|
|00006270| 20 69 6f 2c 20 30 20 69 | 66 20 75 6e 66 6f 72 6d | io, 0 i|f unform|
|00006280| 61 74 74 65 64 2a 2f 0a | 69 6e 74 20 28 2a 67 65 |atted*/.|int (*ge|
|00006290| 74 6e 29 28 29 2c 28 2a | 70 75 74 6e 29 28 29 3b |tn)(),(*|putn)();|
|000062a0| 09 2f 2a 66 6f 72 20 66 | 6f 72 6d 61 74 74 65 64 |./*for f|ormatted|
|000062b0| 20 69 6f 2a 2f 0a 46 49 | 4c 45 20 2a 63 66 3b 09 | io*/.FI|LE *cf;.|
|000062c0| 2f 2a 63 75 72 72 65 6e | 74 20 66 69 6c 65 2a 2f |/*curren|t file*/|
|000062d0| 0a 75 6e 69 74 20 2a 63 | 75 72 75 6e 69 74 3b 09 |.unit *c|urunit;.|
|000062e0| 2f 2a 63 75 72 72 65 6e | 74 20 75 6e 69 74 2a 2f |/*curren|t unit*/|
|000062f0| 0a 69 6e 74 20 72 65 63 | 70 6f 73 3b 09 2f 2a 70 |.int rec|pos;./*p|
|00006300| 6c 61 63 65 20 69 6e 20 | 63 75 72 72 65 6e 74 20 |lace in |current |
|00006310| 72 65 63 6f 72 64 2a 2f | 0a 69 6e 74 20 63 75 72 |record*/|.int cur|
|00006320| 73 6f 72 2c 73 63 61 6c | 65 3b 0a 0a 2f 2a 65 72 |sor,scal|e;../*er|
|00006330| 72 6f 72 20 6d 65 73 73 | 61 67 65 73 2a 2f 0a 63 |ror mess|ages*/.c|
|00006340| 68 61 72 20 2a 46 5f 65 | 72 72 5b 5d 20 3d 0a 7b |har *F_e|rr[] =.{|
|00006350| 0a 09 22 65 72 72 6f 72 | 20 69 6e 20 66 6f 72 6d |.."error| in form|
|00006360| 61 74 22 2c 09 09 09 09 | 2f 2a 20 31 30 30 20 2a |at",....|/* 100 *|
|00006370| 2f 0a 09 22 69 6c 6c 65 | 67 61 6c 20 75 6e 69 74 |/.."ille|gal unit|
|00006380| 20 6e 75 6d 62 65 72 22 | 2c 09 09 09 09 2f 2a 20 | number"|,..../* |
|00006390| 31 30 31 20 2a 2f 0a 09 | 22 66 6f 72 6d 61 74 74 |101 */..|"formatt|
|000063a0| 65 64 20 69 6f 20 6e 6f | 74 20 61 6c 6c 6f 77 65 |ed io no|t allowe|
|000063b0| 64 22 2c 09 09 09 2f 2a | 20 31 30 32 20 2a 2f 0a |d",.../*| 102 */.|
|000063c0| 09 22 75 6e 66 6f 72 6d | 61 74 74 65 64 20 69 6f |."unform|atted io|
|000063d0| 20 6e 6f 74 20 61 6c 6c | 6f 77 65 64 22 2c 09 09 | not all|owed",..|
|000063e0| 09 2f 2a 20 31 30 33 20 | 2a 2f 0a 09 22 64 69 72 |./* 103 |*/.."dir|
|000063f0| 65 63 74 20 69 6f 20 6e | 6f 74 20 61 6c 6c 6f 77 |ect io n|ot allow|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.