home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail text
| default
| |
99%
| file
| makefile script text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 30 38 69 31 30 |Subject:| v08i10|
|00000010| 30 3a 20 20 41 4e 53 49 | 20 74 61 70 65 20 70 72 |0: ANSI| tape pr|
|00000020| 6f 67 72 61 6d 2c 20 50 | 61 72 74 30 32 2f 30 32 |ogram, P|art02/02|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 6d 6f 64 |.Newsgro|ups: mod|
|00000040| 2e 73 6f 75 72 63 65 73 | 0a 41 70 70 72 6f 76 65 |.sources|.Approve|
|00000050| 64 3a 20 6d 69 72 72 6f | 72 21 72 73 0a 0a 53 75 |d: mirro|r!rs..Su|
|00000060| 62 6d 69 74 74 65 64 20 | 62 79 3a 20 44 61 76 69 |bmitted |by: Davi|
|00000070| 64 20 53 2e 20 48 61 79 | 65 73 20 3c 73 75 6e 64 |d S. Hay|es <sund|
|00000080| 63 21 68 71 64 61 2d 61 | 69 21 6d 65 72 6c 69 6e |c!hqda-a|i!merlin|
|00000090| 3e 0a 4d 6f 64 2e 73 6f | 75 72 63 65 73 3a 20 56 |>.Mod.so|urces: V|
|000000a0| 6f 6c 75 6d 65 20 38 2c | 20 49 73 73 75 65 20 31 |olume 8,| Issue 1|
|000000b0| 30 30 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |00.Archi|ve-name:|
|000000c0| 20 61 6e 73 69 74 61 70 | 65 2f 50 61 72 74 30 32 | ansitap|e/Part02|
|000000d0| 0a 0a 20 20 20 20 20 54 | 68 69 73 20 69 73 20 74 |.. T|his is t|
|000000e0| 68 65 20 73 65 63 6f 6e | 64 20 70 61 72 74 20 6f |he secon|d part o|
|000000f0| 66 20 41 6e 73 69 74 61 | 70 65 2e 20 20 49 74 20 |f Ansita|pe. It |
|00000100| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6d 61 6b |contains| the mak|
|00000110| 65 66 69 6c 65 2c 0a 74 | 68 65 20 6d 61 6e 75 61 |efile,.t|he manua|
|00000120| 6c 20 70 61 67 65 73 2c | 20 61 6e 64 20 6d 69 73 |l pages,| and mis|
|00000130| 63 65 6c 6c 61 6e 65 6f | 75 73 20 73 6d 61 6c 6c |cellaneo|us small|
|00000140| 20 66 69 6c 65 73 2e 20 | 20 54 68 65 20 70 72 6f | files. | The pro|
|00000150| 67 72 61 6d 20 69 74 73 | 65 6c 66 20 69 73 0a 63 |gram its|elf is.c|
|00000160| 6f 6e 74 61 69 6e 65 64 | 20 69 6e 20 74 68 65 20 |ontained| in the |
|00000170| 66 69 72 73 74 20 6d 65 | 73 73 61 67 65 2e 0a 0a |first me|ssage...|
|00000180| 5b 20 20 49 20 6c 65 66 | 74 20 74 68 69 73 20 69 |[ I lef|t this i|
|00000190| 6e 20 69 74 73 20 6f 72 | 69 67 69 6e 61 6c 20 77 |n its or|iginal w|
|000001a0| 72 61 70 70 65 72 20 62 | 65 63 61 75 73 65 20 69 |rapper b|ecause i|
|000001b0| 74 20 77 6f 75 6c 64 6e | 27 74 20 66 69 74 20 69 |t wouldn|'t fit i|
|000001c0| 6e 0a 20 20 20 6f 6e 65 | 20 70 69 65 63 65 2c 20 |n. one| piece, |
|000001d0| 73 6f 20 49 20 64 69 64 | 6e 27 74 20 74 61 6d 70 |so I did|n't tamp|
|000001e0| 65 72 2e 2e 2e 20 2d 2d | 72 24 20 20 5d 0a 0a 23 |er... --|r$ ]..#|
|000001f0| 21 2f 62 69 6e 2f 73 68 | 0a 23 20 54 68 69 73 20 |!/bin/sh|.# This |
|00000200| 69 73 20 61 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |is a she|ll archi|
|00000210| 76 65 2e 20 20 52 65 6d | 6f 76 65 20 61 6e 79 74 |ve. Rem|ove anyt|
|00000220| 68 69 6e 67 20 62 65 66 | 6f 72 65 20 74 68 69 73 |hing bef|ore this|
|00000230| 20 6c 69 6e 65 2c 20 74 | 68 65 6e 0a 23 20 75 6e | line, t|hen.# un|
|00000240| 70 61 63 6b 20 69 74 20 | 62 79 20 73 61 76 69 6e |pack it |by savin|
|00000250| 67 20 69 74 20 69 6e 20 | 61 20 66 69 6c 65 20 61 |g it in |a file a|
|00000260| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|00000270| 6c 65 22 2e 20 20 28 46 | 69 6c 65 73 0a 23 20 75 |le". (F|iles.# u|
|00000280| 6e 70 61 63 6b 65 64 20 | 77 69 6c 6c 20 62 65 20 |npacked |will be |
|00000290| 6f 77 6e 65 64 20 62 79 | 20 79 6f 75 20 61 6e 64 |owned by| you and|
|000002a0| 20 68 61 76 65 20 64 65 | 66 61 75 6c 74 20 70 65 | have de|fault pe|
|000002b0| 72 6d 69 73 73 69 6f 6e | 73 2e 29 0a 23 0a 23 20 |rmission|s.).#.# |
|000002c0| 54 68 69 73 20 61 72 63 | 68 69 76 65 20 63 6f 6e |This arc|hive con|
|000002d0| 74 61 69 6e 73 3a 0a 23 | 20 4d 61 6b 65 66 69 6c |tains:.#| Makefil|
|000002e0| 65 20 61 6e 73 69 74 61 | 70 65 2e 68 20 74 61 62 |e ansita|pe.h tab|
|000002f0| 6c 65 73 2e 63 20 61 6e | 73 69 74 61 70 65 2e 31 |les.c an|sitape.1|
|00000300| 20 61 6e 73 69 74 61 70 | 65 2e 35 2e 74 62 6c 0a | ansitap|e.5.tbl.|
|00000310| 65 63 68 6f 20 78 20 2d | 20 4d 61 6b 65 66 69 6c |echo x -| Makefil|
|00000320| 65 0a 63 61 74 20 3e 20 | 22 4d 61 6b 65 66 69 6c |e.cat > |"Makefil|
|00000330| 65 22 20 3c 3c 20 27 2f | 2f 45 2a 4f 2a 46 20 4d |e" << '/|/E*O*F M|
|00000340| 61 6b 65 66 69 6c 65 2f | 2f 27 0a 23 20 4d 61 6b |akefile/|/'.# Mak|
|00000350| 65 66 69 6c 65 20 66 6f | 72 20 41 4e 53 49 54 41 |efile fo|r ANSITA|
|00000360| 50 45 0a 23 0a 23 20 54 | 68 69 73 20 70 72 6f 67 |PE.#.# T|his prog|
|00000370| 72 61 6d 20 63 72 65 61 | 74 65 73 2c 20 72 65 61 |ram crea|tes, rea|
|00000380| 64 73 2c 20 77 72 69 74 | 65 73 2c 20 61 6e 64 20 |ds, writ|es, and |
|00000390| 74 61 6b 65 73 20 64 69 | 72 65 63 74 6f 72 79 20 |takes di|rectory |
|000003a0| 6c 69 73 74 69 6e 67 73 | 20 6f 66 0a 23 20 41 4e |listings| of.# AN|
|000003b0| 53 49 2d 66 6f 72 6d 61 | 74 74 65 64 20 74 61 70 |SI-forma|tted tap|
|000003c0| 65 73 2e 20 0a 23 0a 23 | 20 54 68 69 73 20 70 72 |es. .#.#| This pr|
|000003d0| 6f 67 72 61 6d 20 77 61 | 73 20 64 65 76 65 6c 6f |ogram wa|s develo|
|000003e0| 70 65 64 20 61 74 20 0a | 23 0a 23 20 48 51 44 41 |ped at .|#.# HQDA|
|000003f0| 20 41 72 6d 79 20 41 72 | 74 69 66 69 63 69 61 6c | Army Ar|tificial|
|00000400| 20 49 6e 74 65 6c 6c 69 | 67 65 6e 63 65 20 43 65 | Intelli|gence Ce|
|00000410| 6e 74 65 72 0a 23 20 50 | 65 6e 74 61 67 6f 6e 20 |nter.# P|entagon |
|00000420| 41 74 74 6e 3a 20 44 41 | 43 53 2d 44 4d 41 0a 23 |Attn: DA|CS-DMA.#|
|00000430| 20 57 61 73 68 69 6e 67 | 74 6f 6e 2c 20 44 43 20 | Washing|ton, DC |
|00000440| 20 32 30 33 31 30 2d 30 | 32 30 30 20 0a 23 0a 23 | 20310-0|200 .#.#|
|00000450| 20 50 68 6f 6e 65 3a 20 | 28 32 30 32 29 20 36 39 | Phone: |(202) 69|
|00000460| 34 2d 36 39 30 30 0a 23 | 20 45 2d 6d 61 69 6c 3a |4-6900.#| E-mail:|
|00000470| 0a 23 09 41 72 70 61 3a | 09 09 6d 65 72 6c 69 6e |.#.Arpa:|..merlin|
|00000480| 25 68 71 64 61 2d 61 69 | 2e 75 75 63 70 40 73 6d |%hqda-ai|.uucp@sm|
|00000490| 6f 6b 65 2e 62 72 6c 2e | 61 72 70 61 0a 23 09 09 |oke.brl.|arpa.#..|
|000004a0| 61 6c 74 65 72 6e 61 74 | 65 09 64 73 68 61 79 65 |alternat|e.dshaye|
|000004b0| 73 40 73 6d 6f 6b 65 2e | 62 72 6c 2e 61 72 70 61 |s@smoke.|brl.arpa|
|000004c0| 0a 23 09 55 55 43 50 3a | 09 09 2e 2e 2e 21 73 65 |.#.UUCP:|.....!se|
|000004d0| 69 73 6d 6f 21 73 75 6e | 64 63 21 68 71 64 61 2d |ismo!sun|dc!hqda-|
|000004e0| 61 69 21 6d 65 72 6c 69 | 6e 0a 23 0a 23 20 53 75 |ai!merli|n.#.# Su|
|000004f0| 70 70 6f 72 74 3f 20 20 | 59 6f 75 20 77 61 6e 74 |pport? |You want|
|00000500| 20 73 75 70 70 6f 72 74 | 3f 20 20 57 68 61 74 20 | support|? What |
|00000510| 64 6f 20 49 20 6c 6f 6f | 6b 20 6c 69 6b 65 2c 20 |do I loo|k like, |
|00000520| 61 20 73 6f 66 74 77 61 | 72 65 20 68 6f 75 73 65 |a softwa|re house|
|00000530| 3f 0a 23 20 4d 61 69 6c | 20 6d 65 20 79 6f 75 72 |?.# Mail| me your|
|00000540| 20 67 72 69 70 65 73 2c | 20 63 6f 6d 6d 65 6e 74 | gripes,| comment|
|00000550| 73 2c 20 61 6e 64 20 62 | 75 67 73 2c 20 61 6e 64 |s, and b|ugs, and|
|00000560| 20 49 27 6c 6c 20 74 72 | 79 20 74 6f 20 6b 65 65 | I'll tr|y to kee|
|00000570| 70 0a 23 20 75 70 20 77 | 69 74 68 20 74 68 65 6d |p.# up w|ith them|
|00000580| 2e 0a 23 0a 23 20 54 48 | 49 53 20 50 52 4f 47 52 |..#.# TH|IS PROGR|
|00000590| 41 4d 20 49 53 20 49 4e | 20 54 48 45 20 50 55 42 |AM IS IN| THE PUB|
|000005a0| 4c 49 43 20 44 4f 4d 41 | 49 4e 2e 0a 0a 0a 0a 23 |LIC DOMA|IN.....#|
|000005b0| 20 44 65 66 69 6e 65 20 | 41 54 20 4d 4f 53 54 20 | Define |AT MOST |
|000005c0| 4f 4e 45 20 6f 66 20 74 | 68 65 20 66 6f 6c 6c 6f |ONE of t|he follo|
|000005d0| 77 69 6e 67 0a 23 20 44 | 65 66 69 6e 65 20 74 68 |wing.# D|efine th|
|000005e0| 69 73 20 69 66 20 79 6f | 75 20 77 61 6e 74 20 64 |is if yo|u want d|
|000005f0| 65 62 75 67 67 69 6e 67 | 2e 0a 23 43 43 4f 50 54 |ebugging|..#CCOPT|
|00000600| 09 3d 20 2d 67 0a 23 20 | 44 65 66 69 6e 65 20 74 |.= -g.# |Define t|
|00000610| 68 69 73 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |his if y|ou want |
|00000620| 63 6f 6d 70 69 6c 65 72 | 20 6f 70 74 69 6d 69 7a |compiler| optimiz|
|00000630| 61 74 69 6f 6e 73 2e 0a | 43 43 4f 50 54 09 3d 20 |ations..|CCOPT.= |
|00000640| 2d 4f 0a 0a 0a 23 20 44 | 65 66 69 6e 65 20 74 68 |-O...# D|efine th|
|00000650| 69 73 20 69 66 20 79 6f | 75 20 77 61 6e 74 20 74 |is if yo|u want t|
|00000660| 6f 20 68 61 6e 64 6c 65 | 20 49 42 4d 20 45 42 43 |o handle| IBM EBC|
|00000670| 44 49 43 20 74 61 70 65 | 73 2e 0a 49 42 4d 09 3d |DIC tape|s..IBM.=|
|00000680| 20 2d 44 45 42 43 44 49 | 43 0a 0a 0a 23 20 44 65 | -DEBCDI|C...# De|
|00000690| 66 69 6e 65 20 74 68 69 | 73 20 74 6f 20 62 65 20 |fine thi|s to be |
|000006a0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 73 69 7a 65 |the maxi|mum size|
|000006b0| 20 6f 66 20 61 20 66 69 | 6c 65 20 79 6f 75 20 61 | of a fi|le you a|
|000006c0| 72 65 20 77 69 6c 6c 69 | 6e 67 20 74 6f 0a 23 20 |re willi|ng to.# |
|000006d0| 72 65 61 64 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |read to |determin|
|000006e0| 65 20 74 68 65 20 72 65 | 63 6f 72 64 20 6c 65 6e |e the re|cord len|
|000006f0| 67 74 68 2e 20 20 46 69 | 6c 65 73 20 73 6d 61 6c |gth. Fi|les smal|
|00000700| 6c 65 72 20 74 68 61 6e | 20 74 68 69 73 0a 23 20 |ler than| this.# |
|00000710| 61 72 65 20 72 65 61 64 | 20 74 77 69 63 65 3a 20 |are read| twice: |
|00000720| 20 6f 6e 63 65 20 74 6f | 20 66 69 6e 64 20 74 68 | once to| find th|
|00000730| 65 20 6d 61 78 20 72 65 | 63 6f 72 64 20 6c 65 6e |e max re|cord len|
|00000740| 67 74 68 2c 20 61 6e 64 | 20 74 68 65 20 73 65 63 |gth, and| the sec|
|00000750| 6f 6e 64 0a 23 20 74 69 | 6d 65 20 77 68 65 6e 20 |ond.# ti|me when |
|00000760| 77 72 69 74 69 6e 67 20 | 74 68 65 20 74 61 70 65 |writing |the tape|
|00000770| 2e 20 20 46 69 6c 65 73 | 20 6c 61 72 67 65 72 20 |. Files| larger |
|00000780| 74 68 61 6e 20 74 68 69 | 73 20 6a 75 73 74 20 61 |than thi|s just a|
|00000790| 73 73 75 6d 65 0a 23 20 | 74 68 61 74 20 74 68 65 |ssume.# |that the|
|000007a0| 20 72 65 63 6f 72 64 6c | 65 6e 67 74 68 20 3d 3d | recordl|ength ==|
|000007b0| 20 62 6c 6f 63 6b 6c 65 | 6e 67 74 68 2e 20 20 50 | blockle|ngth. P|
|000007c0| 72 6f 62 61 62 6c 79 20 | 6e 6f 74 20 61 20 67 72 |robably |not a gr|
|000007d0| 65 61 74 0a 23 20 61 73 | 73 75 6d 70 74 69 6f 6e |eat.# as|sumption|
|000007e0| 2c 20 62 75 74 20 77 65 | 20 68 61 76 65 20 74 6f |, but we| have to|
|000007f0| 20 61 73 73 75 6d 65 20 | 73 6f 6d 65 74 68 69 6e | assume |somethin|
|00000800| 67 2e 0a 23 0a 23 20 49 | 66 20 74 68 69 73 20 69 |g..#.# I|f this i|
|00000810| 73 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 2c 20 74 |s not de|fined, t|
|00000820| 68 65 20 61 6e 73 69 74 | 61 70 65 2e 63 20 75 73 |he ansit|ape.c us|
|00000830| 65 73 20 31 30 30 4b 20 | 62 79 20 64 65 66 61 75 |es 100K |by defau|
|00000840| 6c 74 2e 0a 23 52 45 41 | 44 4d 41 58 09 3d 20 31 |lt..#REA|DMAX.= 1|
|00000850| 30 30 30 30 30 0a 0a 0a | 23 20 54 68 69 73 20 69 |00000...|# This i|
|00000860| 73 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |s the di|rectory |
|00000870| 77 68 65 72 65 20 61 6e | 73 69 74 61 70 65 20 77 |where an|sitape w|
|00000880| 69 6c 6c 20 67 6f 2e 0a | 42 49 4e 09 3d 20 2f 75 |ill go..|BIN.= /u|
|00000890| 73 72 2f 6c 6f 63 61 6c | 2f 62 69 6e 0a 0a 0a 23 |sr/local|/bin...#|
|000008a0| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 64 69 72 | This is| the dir|
|000008b0| 65 63 74 6f 72 79 20 77 | 68 65 72 65 20 79 6f 75 |ectory w|here you|
|000008c0| 20 70 75 74 20 79 6f 75 | 72 0a 23 20 75 6e 66 6f | put you|r.# unfo|
|000008d0| 72 6d 61 74 74 65 64 20 | 6d 61 6e 75 61 6c 20 70 |rmatted |manual p|
|000008e0| 61 67 65 73 20 66 6f 72 | 20 63 6f 6d 6d 61 6e 64 |ages for| command|
|000008f0| 73 2e 0a 43 4d 44 4d 41 | 4e 09 3d 20 2f 75 73 72 |s..CMDMA|N.= /usr|
|00000900| 2f 6d 61 6e 2f 6d 61 6e | 31 0a 0a 23 20 54 68 69 |/man/man|1..# Thi|
|00000910| 73 20 69 73 20 74 68 65 | 20 64 69 72 65 63 74 6f |s is the| directo|
|00000920| 72 79 20 77 68 65 72 65 | 20 79 6f 75 20 70 75 74 |ry where| you put|
|00000930| 20 79 6f 75 72 0a 23 20 | 75 6e 66 6f 72 6d 61 74 | your.# |unformat|
|00000940| 74 65 64 20 6d 61 6e 75 | 61 6c 20 70 61 67 65 73 |ted manu|al pages|
|00000950| 20 66 6f 72 20 66 69 6c | 65 20 66 6f 72 6d 61 74 | for fil|e format|
|00000960| 73 2e 0a 46 49 4c 45 4d | 41 4e 09 3d 20 2f 75 73 |s..FILEM|AN.= /us|
|00000970| 72 2f 6d 61 6e 2f 6d 61 | 6e 35 0a 0a 23 20 54 68 |r/man/ma|n5..# Th|
|00000980| 69 73 20 69 73 20 74 68 | 65 20 64 69 72 65 63 74 |is is th|e direct|
|00000990| 6f 72 79 20 77 68 65 72 | 65 20 79 6f 75 20 70 75 |ory wher|e you pu|
|000009a0| 74 20 79 6f 75 72 0a 23 | 20 46 4f 52 4d 41 54 54 |t your.#| FORMATT|
|000009b0| 45 44 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 20 |ED manua|l pages |
|000009c0| 66 6f 72 20 66 69 6c 65 | 20 66 6f 72 6d 61 74 73 |for file| formats|
|000009d0| 2e 0a 23 20 44 65 66 69 | 6e 65 20 74 68 69 73 20 |..# Defi|ne this |
|000009e0| 74 6f 20 62 65 20 2f 74 | 6d 70 20 69 66 20 79 6f |to be /t|mp if yo|
|000009f0| 75 20 64 6f 6e 27 74 20 | 6b 65 65 70 0a 23 20 66 |u don't |keep.# f|
|00000a00| 6f 72 6d 61 74 74 65 64 | 20 63 6f 70 69 65 73 20 |ormatted| copies |
|00000a10| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 66 6f 72 6d |of the f|ile form|
|00000a20| 61 74 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 2e |at manua|l pages.|
|00000a30| 0a 23 20 43 72 6f 6e 20 | 73 68 6f 75 6c 64 20 63 |.# Cron |should c|
|00000a40| 6c 65 61 6e 20 69 74 20 | 6f 75 74 20 65 76 65 6e |lean it |out even|
|00000a50| 74 75 61 6c 6c 79 2e 0a | 46 49 4c 45 43 41 54 09 |tually..|FILECAT.|
|00000a60| 3d 20 2f 75 73 72 2f 6d | 61 6e 2f 63 61 74 35 0a |= /usr/m|an/cat5.|
|00000a70| 0a 0a 61 6c 6c 3a 20 61 | 6e 73 69 74 61 70 65 20 |..all: a|nsitape |
|00000a80| 6d 61 6e 0a 0a 61 6e 73 | 69 74 61 70 65 3a 20 61 |man..ans|itape: a|
|00000a90| 6e 73 69 74 61 70 65 2e | 63 20 61 6e 73 69 74 61 |nsitape.|c ansita|
|00000aa0| 70 65 2e 68 20 74 61 62 | 6c 65 73 2e 6f 0a 09 63 |pe.h tab|les.o..c|
|00000ab0| 63 20 24 7b 43 43 4f 50 | 54 7d 20 2d 6f 20 61 6e |c ${CCOP|T} -o an|
|00000ac0| 73 69 74 61 70 65 20 24 | 7b 49 42 4d 7d 20 24 7b |sitape $|{IBM} ${|
|00000ad0| 52 45 41 44 4d 41 58 7d | 20 61 6e 73 69 74 61 70 |READMAX}| ansitap|
|00000ae0| 65 2e 63 20 74 61 62 6c | 65 73 2e 6f 0a 09 6d 76 |e.c tabl|es.o..mv|
|00000af0| 20 61 6e 73 69 74 61 70 | 65 20 24 7b 42 49 4e 7d | ansitap|e ${BIN}|
|00000b00| 0a 0a 74 61 62 6c 65 73 | 2e 6f 3a 20 74 61 62 6c |..tables|.o: tabl|
|00000b10| 65 73 2e 63 0a 0a 6d 61 | 6e 3a 20 6d 61 6e 31 20 |es.c..ma|n: man1 |
|00000b20| 6d 61 6e 35 0a 0a 6d 61 | 6e 31 3a 20 61 6e 73 69 |man5..ma|n1: ansi|
|00000b30| 74 61 70 65 2e 31 0a 09 | 63 70 20 61 6e 73 69 74 |tape.1..|cp ansit|
|00000b40| 61 70 65 2e 31 20 24 7b | 43 4d 44 4d 41 4e 7d 0a |ape.1 ${|CMDMAN}.|
|00000b50| 0a 6d 61 6e 35 3a 20 61 | 6e 73 69 74 61 70 65 2e |.man5: a|nsitape.|
|00000b60| 35 2e 74 62 6c 0a 09 74 | 62 6c 20 61 6e 73 69 74 |5.tbl..t|bl ansit|
|00000b70| 61 70 65 2e 35 2e 74 62 | 6c 20 3e 20 24 7b 46 49 |ape.5.tb|l > ${FI|
|00000b80| 4c 45 4d 41 4e 7d 2f 61 | 6e 73 69 74 61 70 65 2e |LEMAN}/a|nsitape.|
|00000b90| 35 0a 09 74 62 6c 20 61 | 6e 73 69 74 61 70 65 2e |5..tbl a|nsitape.|
|00000ba0| 35 2e 74 62 6c 20 7c 20 | 6e 72 6f 66 66 20 2d 6d |5.tbl | |nroff -m|
|00000bb0| 61 6e 20 7c 20 63 6f 6c | 63 72 74 20 3e 20 24 7b |an | col|crt > ${|
|00000bc0| 46 49 4c 45 43 41 54 7d | 2f 61 6e 73 69 74 61 70 |FILECAT}|/ansitap|
|00000bd0| 65 2e 35 0a 2f 2f 45 2a | 4f 2a 46 20 4d 61 6b 65 |e.5.//E*|O*F Make|
|00000be0| 66 69 6c 65 2f 2f 0a 0a | 65 63 68 6f 20 78 20 2d |file//..|echo x -|
|00000bf0| 20 61 6e 73 69 74 61 70 | 65 2e 68 0a 63 61 74 20 | ansitap|e.h.cat |
|00000c00| 3e 20 22 61 6e 73 69 74 | 61 70 65 2e 68 22 20 3c |> "ansit|ape.h" <|
|00000c10| 3c 20 27 2f 2f 45 2a 4f | 2a 46 20 61 6e 73 69 74 |< '//E*O|*F ansit|
|00000c20| 61 70 65 2e 68 2f 2f 27 | 0a 0a 2f 2a 0a 20 2a 20 |ape.h//'|../*. * |
|00000c30| 54 68 69 73 20 66 69 6c | 65 20 63 6f 6e 74 61 69 |This fil|e contai|
|00000c40| 6e 73 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |ns the d|efinitio|
|00000c50| 6e 73 20 6f 66 20 74 68 | 65 20 74 61 70 65 20 63 |ns of th|e tape c|
|00000c60| 6f 6e 74 72 6f 6c 20 72 | 65 63 6f 72 64 73 2e 20 |ontrol r|ecords. |
|00000c70| 54 68 69 73 0a 20 2a 20 | 69 73 20 74 6f 20 62 65 |This. * |is to be|
|00000c80| 20 75 73 65 64 20 77 68 | 65 6e 20 64 65 76 65 6c | used wh|en devel|
|00000c90| 6f 70 69 6e 67 20 61 20 | 70 72 6f 67 72 61 6d 20 |oping a |program |
|00000ca0| 74 6f 20 77 6f 72 6b 20 | 77 69 74 68 20 41 4e 53 |to work |with ANS|
|00000cb0| 49 20 73 74 61 6e 64 61 | 72 64 0a 20 2a 20 6c 61 |I standa|rd. * la|
|00000cc0| 62 65 6c 6c 65 64 20 74 | 61 70 65 73 2e 20 0a 20 |belled t|apes. . |
|00000cd0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 41 63 74 75 61 6c |*/../*. |* Actual|
|00000ce0| 6c 79 2c 20 74 68 65 73 | 65 20 73 68 6f 75 6c 64 |ly, thes|e should|
|00000cf0| 20 62 65 20 75 70 70 65 | 72 20 63 61 73 65 2e 20 | be uppe|r case. |
|00000d00| 20 54 68 65 20 61 6e 73 | 69 74 61 70 65 20 70 72 | The ans|itape pr|
|00000d10| 6f 67 72 61 6d 20 64 6f | 65 73 6e 27 74 0a 20 2a |ogram do|esn't. *|
|00000d20| 20 63 6f 6e 76 65 72 74 | 20 74 68 69 6e 67 73 20 | convert| things |
|00000d30| 74 6f 20 75 70 70 65 72 | 20 63 61 73 65 20 75 6e |to upper| case un|
|00000d40| 74 69 6c 20 74 68 65 20 | 68 65 61 64 65 72 73 20 |til the |headers |
|00000d50| 61 72 65 20 6d 61 64 65 | 20 2d 2d 20 74 68 65 20 |are made| -- the |
|00000d60| 74 61 70 65 0a 20 2a 20 | 63 6f 6e 74 72 6f 6c 20 |tape. * |control |
|00000d70| 62 6c 6f 63 6b 20 68 61 | 73 20 65 76 65 72 79 74 |block ha|s everyt|
|00000d80| 68 69 6e 67 20 69 6e 20 | 6c 6f 77 65 72 20 63 61 |hing in |lower ca|
|00000d90| 73 65 2e 20 20 46 6f 72 | 20 74 68 65 20 73 61 6b |se. For| the sak|
|00000da0| 65 20 6f 66 20 65 61 73 | 79 0a 20 2a 20 63 6f 6d |e of eas|y. * com|
|00000db0| 70 61 72 69 73 6f 6e 73 | 2c 20 77 65 20 64 65 66 |parisons|, we def|
|00000dc0| 69 6e 65 20 74 68 65 6d | 20 68 65 72 65 20 61 73 |ine them| here as|
|00000dd0| 20 6c 6f 77 65 72 20 63 | 61 73 65 2e 20 0a 20 2a | lower c|ase. . *|
|00000de0| 2f 0a 0a 23 64 65 66 69 | 6e 65 20 4e 4f 50 52 4f |/..#defi|ne NOPRO|
|00000df0| 54 45 43 54 20 27 20 27 | 09 09 2f 2a 20 73 70 61 |TECT ' '|../* spa|
|00000e00| 63 65 20 69 66 20 6e 6f | 20 70 72 6f 74 65 63 74 |ce if no| protect|
|00000e10| 69 6f 6e 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 52 |ion */.#|define R|
|00000e20| 45 43 5f 46 49 58 45 44 | 20 27 66 27 09 09 2f 2a |EC_FIXED| 'f'../*|
|00000e30| 20 52 65 63 6f 72 64 73 | 20 61 72 65 20 61 6c 6c | Records| are all|
|00000e40| 20 66 69 78 65 64 20 6c | 65 6e 67 74 68 20 2a 2f | fixed l|ength */|
|00000e50| 0a 23 64 65 66 69 6e 65 | 20 52 45 43 5f 56 41 52 |.#define| REC_VAR|
|00000e60| 49 41 42 4c 45 20 27 64 | 27 09 2f 2a 20 52 65 63 |IABLE 'd|'./* Rec|
|00000e70| 6f 72 64 73 20 61 72 65 | 20 70 72 65 63 65 65 64 |ords are| preceed|
|00000e80| 65 64 20 62 79 20 61 20 | 34 2d 64 69 67 69 74 0a |ed by a |4-digit.|
|00000e90| 09 09 09 09 20 2a 20 7a | 65 72 6f 2d 66 69 6c 6c |.... * z|ero-fill|
|00000ea0| 65 64 20 63 6f 75 6e 74 | 20 6f 66 20 74 68 65 69 |ed count| of thei|
|00000eb0| 72 20 6c 65 6e 67 74 68 | 2c 0a 09 09 09 09 20 2a |r length|,..... *|
|00000ec0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 74 68 65 20 34 | includi|ng the 4|
|00000ed0| 20 64 69 67 69 74 73 20 | 74 68 65 6d 73 65 6c 76 | digits |themselv|
|00000ee0| 65 73 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 49 42 |es */.#d|efine IB|
|00000ef0| 4d 5f 56 41 52 49 41 42 | 4c 45 20 27 76 27 09 2f |M_VARIAB|LE 'v'./|
|00000f00| 2a 20 49 42 4d 27 73 20 | 76 65 72 73 69 6f 6e 20 |* IBM's |version |
|00000f10| 6f 66 20 41 4e 53 49 20 | 44 20 66 6f 72 6d 61 74 |of ANSI |D format|
|00000f20| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 43 43 5f 46 | */.#def|ine CC_F|
|00000f30| 4f 52 54 52 41 4e 20 27 | 61 27 09 09 2f 2a 20 46 |ORTRAN '|a'../* F|
|00000f40| 69 72 73 74 20 63 68 61 | 72 20 6f 66 20 72 65 63 |irst cha|r of rec|
|00000f50| 20 69 73 20 66 2d 37 37 | 20 63 61 72 72 69 61 67 | is f-77| carriag|
|00000f60| 65 0a 09 09 09 09 20 2a | 20 63 6f 6e 74 72 6f 6c |e..... *| control|
|00000f70| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 43 43 5f 45 | */.#def|ine CC_E|
|00000f80| 4d 42 45 44 44 45 44 20 | 27 6d 27 09 09 2f 2a 20 |MBEDDED |'m'../* |
|00000f90| 43 61 72 72 69 61 67 65 | 20 63 6f 6e 74 72 6f 6c |Carriage| control|
|00000fa0| 20 69 73 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 | is part| of the |
|00000fb0| 64 61 74 61 0a 09 09 09 | 09 20 2a 20 63 6f 6e 74 |data....|. * cont|
|00000fc0| 61 69 6e 65 64 20 69 6e | 20 65 61 63 68 20 72 65 |ained in| each re|
|00000fd0| 63 6f 72 64 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |cord */.|#define |
|00000fe0| 43 43 5f 49 4d 50 4c 49 | 45 44 20 27 20 27 09 09 |CC_IMPLI|ED ' '..|
|00000ff0| 2f 2a 20 45 61 63 68 20 | 72 65 63 6f 72 64 20 67 |/* Each |record g|
|00001000| 6f 65 73 20 6f 6e 20 61 | 20 73 65 70 61 72 61 74 |oes on a| separat|
|00001010| 65 20 6c 69 6e 65 0a 09 | 09 09 09 20 2a 20 77 68 |e line..|... * wh|
|00001020| 65 6e 20 70 72 69 6e 74 | 65 64 20 2a 2f 0a 0a 2f |en print|ed */../|
|00001030| 2a 0a 20 2a 20 56 4f 4c | 55 4d 45 20 31 20 44 65 |*. * VOL|UME 1 De|
|00001040| 73 63 72 69 62 65 73 20 | 74 68 65 20 6f 77 6e 65 |scribes |the owne|
|00001050| 72 20 6f 66 20 61 6e 64 | 20 61 63 63 65 73 73 20 |r of and| access |
|00001060| 74 6f 20 74 68 65 20 76 | 6f 6c 75 6d 65 2e 20 0a |to the v|olume. .|
|00001070| 20 2a 2f 0a 0a 73 74 72 | 75 63 74 20 61 6e 73 69 | */..str|uct ansi|
|00001080| 5f 76 6f 6c 31 20 7b 0a | 20 20 20 20 63 68 61 72 |_vol1 {.| char|
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 65 61 64 | | head|
|000010a0| 65 72 5b 34 5d 3b 09 2f | 2a 20 56 4f 4c 31 20 2a |er[4];./|* VOL1 *|
|000010b0| 2f 0a 20 20 20 20 63 68 | 61 72 20 20 20 20 20 20 |/. ch|ar |
|000010c0| 20 20 20 20 20 20 6c 61 | 62 65 6c 5b 36 5d 3b 09 | la|bel[6];.|
|000010d0| 2f 2a 20 76 6f 6c 75 6d | 65 20 6e 61 6d 65 2c 20 |/* volum|e name, |
|000010e0| 41 2d 5a 30 2d 39 20 2a | 2f 0a 20 20 20 20 63 68 |A-Z0-9 *|/. ch|
|000010f0| 61 72 20 20 20 20 20 20 | 20 20 20 20 20 20 61 63 |ar | ac|
|00001100| 63 65 73 73 3b 09 2f 2a | 20 61 63 63 65 73 73 20 |cess;./*| access |
|00001110| 63 6f 64 65 20 2a 2f 0a | 20 20 20 20 63 68 61 72 |code */.| char|
|00001120| 20 20 20 20 20 20 20 20 | 20 20 20 20 5f 5f 69 67 | | __ig|
|00001130| 6e 6f 72 65 64 31 5b 32 | 30 5d 3b 09 2f 2a 20 72 |nored1[2|0];./* r|
|00001140| 65 73 65 72 76 65 64 2c | 20 73 70 61 63 65 20 66 |eserved,| space f|
|00001150| 69 6c 6c 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |ill */. | char |
|00001160| 20 20 20 20 20 20 20 20 | 20 20 20 5f 5f 69 67 6e | | __ign|
|00001170| 6f 72 65 64 32 5b 36 5d | 3b 09 2f 2a 20 72 65 73 |ored2[6]|;./* res|
|00001180| 65 72 76 65 64 2c 20 73 | 70 61 63 65 20 66 69 6c |erved, s|pace fil|
|00001190| 6c 20 2a 2f 0a 20 20 20 | 20 63 68 61 72 20 20 20 |l */. | char |
|000011a0| 20 20 20 20 20 20 20 20 | 20 6f 77 6e 65 72 5b 31 | | owner[1|
|000011b0| 34 5d 3b 09 2f 2a 20 75 | 73 65 72 20 6e 61 6d 65 |4];./* u|ser name|
|000011c0| 20 2a 2f 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 | */. |char |
|000011d0| 20 20 20 20 20 20 20 20 | 5f 5f 69 67 6e 6f 72 65 | |__ignore|
|000011e0| 64 33 5b 32 38 5d 3b 09 | 2f 2a 20 72 65 73 65 72 |d3[28];.|/* reser|
|000011f0| 76 65 64 2c 20 73 70 61 | 63 65 20 66 69 6c 6c 20 |ved, spa|ce fill |
|00001200| 2a 2f 0a 20 20 20 20 63 | 68 61 72 20 20 20 20 20 |*/. c|har |
|00001210| 20 20 20 20 20 20 20 61 | 6e 73 69 5f 6c 65 76 65 | a|nsi_leve|
|00001220| 6c 3b 09 2f 2a 20 61 6e | 73 69 20 73 74 61 6e 64 |l;./* an|si stand|
|00001230| 61 72 64 20 6c 65 76 65 | 6c 2c 20 61 6c 77 61 79 |ard leve|l, alway|
|00001240| 73 20 33 20 2a 2f 0a 7d | 3b 0a 0a 2f 2a 0a 20 2a |s 3 */.}|;../*. *|
|00001250| 20 56 4f 4c 55 4d 45 20 | 32 20 6f 70 74 69 6f 6e | VOLUME |2 option|
|00001260| 61 6c 2c 20 69 67 6e 6f | 72 65 64 20 62 79 20 74 |al, igno|red by t|
|00001270| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2e 20 0a 20 |his soft|ware. . |
|00001280| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 48 45 41 44 45 52 |*/../*. |* HEADER|
|00001290| 20 31 20 42 65 67 69 6e | 73 20 62 61 73 69 63 20 | 1 Begin|s basic |
|000012a0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 6f 66 20 61 |descript|ion of a|
|000012b0| 20 74 61 70 65 20 66 69 | 6c 65 2e 20 0a 20 2a 2f | tape fi|le. . */|
|000012c0| 0a 0a 73 74 72 75 63 74 | 20 61 6e 73 69 5f 68 64 |..struct| ansi_hd|
|000012d0| 72 31 20 7b 0a 20 20 20 | 20 63 68 61 72 20 20 20 |r1 {. | char |
|000012e0| 20 20 20 20 20 20 20 20 | 20 68 65 61 64 65 72 5b | | header[|
|000012f0| 34 5d 3b 09 2f 2a 20 48 | 44 52 31 20 2a 2f 0a 20 |4];./* H|DR1 */. |
|00001300| 20 20 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 | char | |
|00001310| 20 20 20 6e 61 6d 65 5b | 31 37 5d 3b 09 2f 2a 20 | name[|17];./* |
|00001320| 72 69 67 68 74 6d 6f 73 | 74 20 31 37 20 63 68 61 |rightmos|t 17 cha|
|00001330| 72 61 63 74 65 72 73 20 | 6f 66 20 66 69 6c 65 6e |racters |of filen|
|00001340| 61 6d 65 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |ame */. | char |
|00001350| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 6c 65 73 | | files|
|00001360| 65 74 5b 36 5d 3b 09 2f | 2a 20 73 68 6f 75 6c 64 |et[6];./|* should|
|00001370| 20 62 65 20 73 61 6d 65 | 20 61 73 20 76 6f 6c 75 | be same| as volu|
|00001380| 6d 65 20 69 64 20 6f 66 | 20 31 73 74 0a 09 09 09 |me id of| 1st....|
|00001390| 09 20 2a 20 74 61 70 65 | 20 2a 2f 0a 20 20 20 20 |. * tape| */. |
|000013a0| 63 68 61 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |char | |
|000013b0| 76 6f 6c 75 6d 65 5f 6e | 75 6d 5b 34 5d 3b 09 2f |volume_n|um[4];./|
|000013c0| 2a 20 6e 75 6d 62 65 72 | 20 6f 66 20 76 6f 6c 75 |* number| of volu|
|000013d0| 6d 65 20 69 6e 20 73 65 | 74 20 2a 2f 0a 20 20 20 |me in se|t */. |
|000013e0| 20 63 68 61 72 20 20 20 | 20 20 20 20 20 20 20 20 | char | |
|000013f0| 20 66 69 6c 65 5f 6e 75 | 6d 5b 34 5d 3b 2f 2a 20 | file_nu|m[4];/* |
|00001400| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 6c 65 20 6f |number o|f file o|
|00001410| 6e 20 74 61 70 65 20 2a | 2f 0a 20 20 20 20 63 68 |n tape *|/. ch|
|00001420| 61 72 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 |ar | ge|
|00001430| 6e 5b 34 5d 3b 09 2f 2a | 20 67 65 6e 65 72 61 74 |n[4];./*| generat|
|00001440| 69 6f 6e 20 6e 75 6d 62 | 65 72 20 2a 2f 0a 20 20 |ion numb|er */. |
|00001450| 20 20 63 68 61 72 20 20 | 20 20 20 20 20 20 20 20 | char | |
|00001460| 20 20 67 65 6e 76 65 72 | 5b 32 5d 3b 09 2f 2a 20 | genver|[2];./* |
|00001470| 67 65 6e 65 72 61 74 69 | 6f 6e 20 76 65 72 73 69 |generati|on versi|
|00001480| 6f 6e 20 6e 75 6d 62 65 | 72 20 2a 2f 0a 20 20 20 |on numbe|r */. |
|00001490| 20 63 68 61 72 20 20 20 | 20 20 20 20 20 20 20 20 | char | |
|000014a0| 20 63 72 65 61 74 65 64 | 5b 36 5d 3b 09 2f 2a 20 | created|[6];./* |
|000014b0| 64 61 74 65 20 6f 66 20 | 63 72 65 61 74 69 6f 6e |date of |creation|
|000014c0| 2c 20 22 62 59 59 44 44 | 44 22 20 2a 2f 0a 20 20 |, "bYYDD|D" */. |
|000014d0| 20 20 63 68 61 72 20 20 | 20 20 20 20 20 20 20 20 | char | |
|000014e0| 20 20 65 78 70 69 72 65 | 73 5b 36 5d 3b 09 2f 2a | expire|s[6];./*|
|000014f0| 20 65 78 70 69 72 61 74 | 69 6f 6e 20 64 61 74 65 | expirat|ion date|
|00001500| 20 22 62 59 59 44 44 44 | 22 20 2a 2f 0a 20 20 20 | "bYYDDD|" */. |
|00001510| 20 63 68 61 72 20 20 20 | 20 20 20 20 20 20 20 20 | char | |
|00001520| 20 61 63 63 65 73 73 3b | 09 2f 2a 20 70 72 6f 74 | access;|./* prot|
|00001530| 65 63 74 69 6f 6e 2c 20 | 73 70 61 63 65 20 3d 20 |ection, |space = |
|00001540| 75 6e 70 72 6f 74 65 63 | 74 65 64 20 2a 2f 0a 20 |unprotec|ted */. |
|00001550| 20 20 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 | char | |
|00001560| 20 20 20 62 6c 6f 63 6b | 63 6f 75 6e 74 5b 36 5d | block|count[6]|
|00001570| 3b 09 2f 2a 20 7a 65 72 | 6f 20 69 6e 20 68 65 61 |;./* zer|o in hea|
|00001580| 64 65 72 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |der */. | char |
|00001590| 20 20 20 20 20 20 20 20 | 20 20 20 74 61 70 65 73 | | tapes|
|000015a0| 79 73 5b 31 33 5d 3b 2f | 2a 20 6e 61 6d 65 20 6f |ys[13];/|* name o|
|000015b0| 66 20 73 6f 66 74 77 61 | 72 65 20 63 72 65 61 74 |f softwa|re creat|
|000015c0| 69 6e 67 20 74 61 70 65 | 20 2a 2f 0a 20 20 20 20 |ing tape| */. |
|000015d0| 63 68 61 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |char | |
|000015e0| 5f 5f 69 67 6e 6f 72 65 | 64 5b 37 5d 3b 09 2f 2a |__ignore|d[7];./*|
|000015f0| 20 72 65 73 65 72 76 65 | 64 2c 20 73 70 61 63 65 | reserve|d, space|
|00001600| 20 66 69 6c 6c 20 2a 2f | 0a 7d 3b 0a 0a 2f 2a 0a | fill */|.};../*.|
|00001610| 20 2a 20 48 45 41 44 45 | 52 20 32 20 52 65 63 6f | * HEADE|R 2 Reco|
|00001620| 72 64 20 66 6f 72 6d 61 | 74 2c 20 72 65 63 6f 72 |rd forma|t, recor|
|00001630| 64 20 73 69 7a 65 2c 20 | 62 6c 6f 63 6b 20 73 69 |d size, |block si|
|00001640| 7a 65 2e 20 0a 20 2a 2f | 0a 0a 73 74 72 75 63 74 |ze. . */|..struct|
|00001650| 20 61 6e 73 69 5f 68 64 | 72 32 20 7b 0a 20 20 20 | ansi_hd|r2 {. |
|00001660| 20 63 68 61 72 20 20 20 | 20 20 20 20 20 20 20 20 | char | |
|00001670| 20 68 65 61 64 65 72 5b | 34 5d 3b 09 2f 2a 20 48 | header[|4];./* H|
|00001680| 44 52 32 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |DR2 */. | char |
|00001690| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 63 66 6d | | recfm|
|000016a0| 74 3b 09 2f 2a 20 72 65 | 63 6f 72 64 20 66 6f 72 |t;./* re|cord for|
|000016b0| 6d 61 74 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |mat */. | char |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 62 6c 6f 63 6b | | block|
|000016d0| 6c 65 6e 5b 35 5d 3b 2f | 2a 20 66 69 6c 65 20 74 |len[5];/|* file t|
|000016e0| 61 70 65 20 62 6c 6f 63 | 6b 20 6c 65 6e 67 74 68 |ape bloc|k length|
|000016f0| 20 2a 2f 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 | */. |char |
|00001700| 20 20 20 20 20 20 20 20 | 72 65 63 6c 65 6e 5b 35 | |reclen[5|
|00001710| 5d 3b 09 2f 2a 20 66 69 | 6c 65 20 6c 6f 67 69 63 |];./* fi|le logic|
|00001720| 61 6c 20 72 65 63 6f 72 | 64 20 6c 65 6e 67 74 68 |al recor|d length|
|00001730| 20 2a 2f 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 | */. |char |
|00001740| 20 20 20 20 20 20 20 20 | 64 65 6e 73 69 74 79 3b | |density;|
|00001750| 09 2f 2a 20 64 65 6e 73 | 69 74 79 2f 72 65 63 6f |./* dens|ity/reco|
|00001760| 72 64 69 6e 67 20 6d 6f | 64 65 2e 20 53 68 6f 75 |rding mo|de. Shou|
|00001770| 6c 64 20 62 65 20 32 0a | 09 09 09 09 20 2a 20 66 |ld be 2.|.... * f|
|00001780| 6f 72 20 38 30 30 20 62 | 70 69 2c 20 33 20 66 6f |or 800 b|pi, 3 fo|
|00001790| 72 20 31 36 30 30 20 62 | 70 69 2e 20 2a 2f 0a 20 |r 1600 b|pi. */. |
|000017a0| 20 20 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 | char | |
|000017b0| 20 20 20 76 6f 6c 5f 73 | 77 69 74 63 68 3b 09 2f | vol_s|witch;./|
|000017c0| 2a 20 30 2c 20 6f 72 20 | 31 20 69 66 20 74 68 69 |* 0, or |1 if thi|
|000017d0| 73 20 66 69 6c 65 20 77 | 61 73 20 63 6f 6e 74 69 |s file w|as conti|
|000017e0| 6e 75 65 64 20 2a 2f 0a | 20 20 20 20 63 68 61 72 |nued */.| char|
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6a 6f 62 5b | | job[|
|00001800| 31 37 5d 3b 09 2f 2a 20 | 6a 6f 62 20 6e 61 6d 65 |17];./* |job name|
|00001810| 20 28 38 29 2c 20 2f 2c | 20 6a 6f 62 20 73 74 65 | (8), /,| job ste|
|00001820| 70 20 28 38 29 20 6f 66 | 0a 09 09 09 09 20 2a 20 |p (8) of|..... * |
|00001830| 63 72 65 61 74 6f 72 20 | 2a 2f 0a 20 20 20 20 63 |creator |*/. c|
|00001840| 68 61 72 20 20 20 20 20 | 20 20 20 20 20 20 20 72 |har | r|
|00001850| 65 63 6f 72 64 69 6e 67 | 5b 32 5d 3b 09 2f 2a 20 |ecording|[2];./* |
|00001860| 70 61 72 69 74 79 2f 63 | 6f 6e 76 65 72 73 69 6f |parity/c|onversio|
|00001870| 6e 2c 20 73 70 61 63 65 | 0a 09 09 09 09 09 20 2a |n, space|...... *|
|00001880| 20 66 69 6c 6c 20 2a 2f | 0a 20 20 20 20 63 68 61 | fill */|. cha|
|00001890| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 72 |r | car|
|000018a0| 72 69 61 67 65 5f 63 6f | 6e 74 72 6f 6c 3b 0a 20 |riage_co|ntrol;. |
|000018b0| 20 20 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 | char | |
|000018c0| 20 20 20 61 6c 69 67 6e | 6d 65 6e 74 3b 09 2f 2a | align|ment;./*|
|000018d0| 20 72 65 73 65 72 76 65 | 64 2c 20 73 70 61 63 65 | reserve|d, space|
|000018e0| 20 66 69 6c 6c 20 2a 2f | 0a 20 20 20 20 63 68 61 | fill */|. cha|
|000018f0| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 62 6c 6f |r | blo|
|00001900| 63 6b 65 64 5f 72 65 63 | 6f 72 64 73 3b 09 2f 2a |cked_rec|ords;./*|
|00001910| 20 27 42 27 20 69 66 20 | 72 65 63 6f 72 64 73 20 | 'B' if |records |
|00001920| 61 72 65 20 62 6c 6f 63 | 6b 65 64 20 2a 2f 0a 20 |are bloc|ked */. |
|00001930| 20 20 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 | char | |
|00001940| 20 20 20 5f 5f 69 67 6e | 6f 72 65 64 32 5b 31 31 | __ign|ored2[11|
|00001950| 5d 3b 0a 20 20 20 20 63 | 68 61 72 20 20 20 20 20 |];. c|har |
|00001960| 20 20 20 20 20 20 20 62 | 6c 6f 63 6b 5f 6f 66 66 | b|lock_off|
|00001970| 73 65 74 5b 32 5d 3b 09 | 2f 2a 20 69 6e 67 6f 72 |set[2];.|/* ingor|
|00001980| 65 20 31 73 74 20 6e 20 | 63 68 61 72 20 6f 66 20 |e 1st n |char of |
|00001990| 65 61 63 68 0a 09 09 09 | 09 09 20 2a 20 62 6c 6f |each....|.. * blo|
|000019a0| 63 6b 20 2a 2f 0a 20 20 | 20 20 63 68 61 72 20 20 |ck */. | char |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 5f 5f 69 67 6e 6f | | __igno|
|000019c0| 72 65 64 33 5b 32 38 5d | 3b 0a 7d 3b 0a 0a 2f 2a |red3[28]|;.};../*|
|000019d0| 0a 20 2a 20 48 45 41 44 | 45 52 20 33 20 54 68 69 |. * HEAD|ER 3 Thi|
|000019e0| 73 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 62 75 6e |s contai|ns a bun|
|000019f0| 63 68 20 6f 66 20 72 6d | 73 2d 64 65 70 65 6e 64 |ch of rm|s-depend|
|00001a00| 65 6e 74 20 64 61 74 61 | 2e 20 20 57 65 20 77 69 |ent data|. We wi|
|00001a10| 6c 6c 0a 20 2a 20 69 67 | 6e 6f 72 65 20 69 74 20 |ll. * ig|nore it |
|00001a20| 66 6f 72 20 6e 6f 77 2c | 20 61 6e 64 20 68 6f 70 |for now,| and hop|
|00001a30| 65 20 74 68 61 74 20 69 | 74 20 64 6f 65 73 6e 74 |e that i|t doesnt|
|00001a40| 20 73 63 72 65 77 20 75 | 70 20 56 4d 53 20 74 6f | screw u|p VMS to|
|00001a50| 6f 20 62 61 64 6c 79 2e | 20 0a 20 2a 2f 0a 0a 73 |o badly.| . */..s|
|00001a60| 74 72 75 63 74 20 61 6e | 73 69 5f 68 64 72 33 20 |truct an|si_hdr3 |
|00001a70| 7b 0a 20 20 20 20 63 68 | 61 72 20 20 20 20 20 20 |{. ch|ar |
|00001a80| 20 20 20 20 20 20 68 65 | 61 64 65 72 5b 34 5d 3b | he|ader[4];|
|00001a90| 09 2f 2a 20 48 44 52 33 | 20 2a 2f 0a 20 20 20 20 |./* HDR3| */. |
|00001aa0| 63 68 61 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |char | |
|00001ab0| 6f 73 5f 72 65 73 65 72 | 76 65 64 5b 37 36 5d 3b |os_reser|ved[76];|
|00001ac0| 09 2f 2a 20 72 65 73 65 | 72 76 65 64 20 74 6f 20 |./* rese|rved to |
|00001ad0| 4f 53 2c 20 73 70 61 63 | 65 20 66 69 6c 6c 20 2a |OS, spac|e fill *|
|00001ae0| 2f 0a 7d 3b 0a 0a 2f 2a | 0a 20 2a 20 48 45 41 44 |/.};../*|. * HEAD|
|00001af0| 45 52 20 34 20 54 68 69 | 73 20 69 73 20 74 68 65 |ER 4 Thi|s is the|
|00001b00| 20 72 65 73 74 20 6f 66 | 20 74 68 65 20 66 69 6c | rest of| the fil|
|00001b10| 65 6e 61 6d 65 20 69 66 | 20 69 74 73 20 6c 6f 6e |ename if| its lon|
|00001b20| 67 65 72 20 74 68 61 6e | 20 31 37 0a 20 2a 20 63 |ger than| 17. * c|
|00001b30| 68 61 72 61 63 74 65 72 | 73 2e 20 20 57 65 20 73 |haracter|s. We s|
|00001b40| 68 6f 75 6c 64 20 68 61 | 76 65 20 6e 6f 20 74 72 |hould ha|ve no tr|
|00001b50| 6f 75 62 6c 65 20 66 69 | 74 74 69 6e 67 20 55 4e |ouble fi|tting UN|
|00001b60| 49 58 20 66 69 6c 65 6e | 61 6d 65 73 20 69 6e 74 |IX filen|ames int|
|00001b70| 6f 0a 20 2a 20 74 68 69 | 73 2e 20 0a 20 2a 2f 0a |o. * thi|s. . */.|
|00001b80| 0a 73 74 72 75 63 74 20 | 61 6e 73 69 5f 68 64 72 |.struct |ansi_hdr|
|00001b90| 34 20 7b 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 |4 {. |char |
|00001ba0| 20 20 20 20 20 20 20 20 | 68 65 61 64 65 72 5b 34 | |header[4|
|00001bb0| 5d 3b 09 2f 2a 20 48 44 | 52 34 20 2a 2f 0a 20 20 |];./* HD|R4 */. |
|00001bc0| 20 20 63 68 61 72 20 20 | 20 20 20 20 20 20 20 20 | char | |
|00001bd0| 20 20 6e 61 6d 65 32 5b | 36 33 5d 3b 09 2f 2a 20 | name2[|63];./* |
|00001be0| 6c 65 66 74 6d 6f 73 74 | 20 63 68 61 72 2c 20 69 |leftmost| char, i|
|00001bf0| 66 20 6e 61 6d 65 20 69 | 73 20 6d 6f 72 65 20 74 |f name i|s more t|
|00001c00| 68 61 6e 0a 09 09 09 09 | 20 2a 20 31 37 20 63 68 |han.....| * 17 ch|
|00001c10| 61 72 61 63 74 65 72 73 | 20 6c 6f 6e 67 2e 20 2a |aracters| long. *|
|00001c20| 2f 0a 20 20 20 20 63 68 | 61 72 20 20 20 20 20 20 |/. ch|ar |
|00001c30| 20 20 20 20 20 20 75 6e | 6b 6e 6f 77 6e 5b 32 5d | un|known[2]|
|00001c40| 3b 09 2f 2a 20 66 69 6c | 6c 20 77 69 74 68 20 30 |;./* fil|l with 0|
|00001c50| 30 20 2a 2f 0a 20 20 20 | 20 63 68 61 72 20 20 20 |0 */. | char |
|00001c60| 20 20 20 20 20 20 20 20 | 20 5f 5f 69 67 6e 6f 72 | | __ignor|
|00001c70| 65 64 5b 31 31 5d 3b 0a | 7d 3b 0a 0a 0a 2f 2a 0a |ed[11];.|};.../*.|
|00001c80| 20 2a 20 46 4f 52 4d 41 | 54 20 4e 4f 54 45 53 20 | * FORMA|T NOTES |
|00001c90| 0a 20 2a 0a 20 2a 20 31 | 2e 20 20 54 68 65 20 74 |. *. * 1|. The t|
|00001ca0| 61 70 65 20 61 6c 77 61 | 79 73 20 73 74 61 72 74 |ape alwa|ys start|
|00001cb0| 73 20 77 69 74 68 20 61 | 20 56 4f 4c 31 20 72 65 |s with a| VOL1 re|
|00001cc0| 63 6f 72 64 2e 20 20 4f | 74 68 65 72 20 76 6f 6c |cord. O|ther vol|
|00001cd0| 75 6d 65 20 72 65 63 6f | 72 64 73 0a 20 2a 20 61 |ume reco|rds. * a|
|00001ce0| 72 65 20 6f 70 74 69 6f | 6e 61 6c 2e 20 20 57 65 |re optio|nal. We|
|00001cf0| 20 69 67 6e 6f 72 65 20 | 74 68 65 6d 2c 20 61 6e | ignore |them, an|
|00001d00| 64 20 64 6f 20 6e 6f 74 | 20 67 65 6e 65 72 61 74 |d do not| generat|
|00001d10| 65 20 74 68 65 6d 20 6f | 6e 20 6f 75 74 70 75 74 |e them o|n output|
|00001d20| 2e 20 0a 20 2a 0a 20 2a | 20 32 2e 20 20 45 61 63 |. . *. *| 2. Eac|
|00001d30| 68 20 66 69 6c 65 20 73 | 74 61 72 74 73 20 77 69 |h file s|tarts wi|
|00001d40| 74 68 20 61 20 73 65 74 | 20 6f 66 20 48 44 52 6e |th a set| of HDRn|
|00001d50| 20 72 65 63 6f 72 64 73 | 2e 20 20 54 68 65 20 68 | records|. The h|
|00001d60| 65 61 64 65 72 73 20 61 | 72 65 0a 20 2a 20 66 6f |eaders a|re. * fo|
|00001d70| 6c 6c 6f 77 65 64 20 62 | 79 20 61 20 74 61 70 65 |llowed b|y a tape|
|00001d80| 20 6d 61 72 6b 2e 20 0a | 20 2a 0a 20 2a 20 33 2e | mark. .| *. * 3.|
|00001d90| 20 20 54 68 65 20 64 61 | 74 61 20 69 73 20 77 72 | The da|ta is wr|
|00001da0| 69 74 74 65 6e 20 74 6f | 20 74 68 65 20 74 61 70 |itten to| the tap|
|00001db0| 65 20 69 6e 20 66 69 78 | 65 64 2d 6c 65 6e 67 74 |e in fix|ed-lengt|
|00001dc0| 68 20 62 6c 6f 63 6b 73 | 2e 20 20 56 61 6c 69 64 |h blocks|. Valid|
|00001dd0| 20 41 4e 53 49 0a 20 2a | 20 62 6c 6f 63 6b 20 6c | ANSI. *| block l|
|00001de0| 65 6e 67 74 68 73 20 61 | 72 65 20 31 38 20 74 6f |engths a|re 18 to|
|00001df0| 20 32 30 34 38 20 62 79 | 74 65 73 2c 20 61 6c 74 | 2048 by|tes, alt|
|00001e00| 68 6f 75 67 68 20 56 4d | 53 20 77 69 6c 6c 20 73 |hough VM|S will s|
|00001e10| 75 70 70 6f 72 74 20 6c | 6f 6e 67 65 72 0a 20 2a |upport l|onger. *|
|00001e20| 20 62 6c 6f 63 6b 73 2e | 20 54 68 65 20 62 6c 6f | blocks.| The blo|
|00001e30| 63 6b 20 64 6f 65 73 20 | 6e 6f 74 20 68 61 76 65 |ck does |not have|
|00001e40| 20 74 6f 20 62 65 20 66 | 75 6c 6c 2e 20 20 49 66 | to be f|ull. If|
|00001e50| 20 74 68 65 20 62 6c 6f | 63 6b 20 69 73 20 6e 6f | the blo|ck is no|
|00001e60| 74 0a 20 2a 20 63 6f 6d | 70 6c 65 74 65 6c 79 20 |t. * com|pletely |
|00001e70| 66 69 6c 6c 65 64 2c 20 | 74 68 65 20 72 65 6d 61 |filled, |the rema|
|00001e80| 69 6e 64 65 72 20 6f 66 | 20 74 68 65 20 62 6c 6f |inder of| the blo|
|00001e90| 63 6b 20 69 73 20 70 61 | 64 64 65 64 20 77 69 74 |ck is pa|dded wit|
|00001ea0| 68 0a 20 2a 20 63 69 72 | 63 75 6d 66 6c 65 78 20 |h. * cir|cumflex |
|00001eb0| 28 5e 29 20 63 68 61 72 | 61 63 74 65 72 73 2e 20 |(^) char|acters. |
|00001ec0| 20 54 68 65 20 66 69 6c | 65 20 69 73 20 66 6f 6c | The fil|e is fol|
|00001ed0| 6c 6f 77 65 64 20 62 79 | 20 61 20 74 61 70 65 20 |lowed by| a tape |
|00001ee0| 6d 61 72 6b 2e 20 0a 20 | 2a 0a 20 2a 20 34 2e 20 |mark. . |*. * 4. |
|00001ef0| 20 54 72 61 69 6c 69 6e | 67 20 72 65 63 6f 72 64 | Trailin|g record|
|00001f00| 73 20 61 72 65 20 77 72 | 69 74 74 65 6e 2e 20 20 |s are wr|itten. |
|00001f10| 45 69 74 68 65 72 20 45 | 4f 46 20 6f 72 20 45 4f |Either E|OF or EO|
|00001f20| 56 20 72 65 63 6f 72 64 | 73 20 6d 61 79 20 62 65 |V record|s may be|
|00001f30| 0a 20 2a 20 75 73 65 64 | 2e 20 54 68 65 20 72 65 |. * used|. The re|
|00001f40| 63 6f 72 64 20 66 6f 72 | 6d 61 74 73 20 61 72 65 |cord for|mats are|
|00001f50| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 65 | the sam|e as the|
|00001f60| 20 48 44 52 20 72 65 63 | 6f 72 64 73 2c 20 65 78 | HDR rec|ords, ex|
|00001f70| 70 65 63 74 3a 20 0a 20 | 2a 0a 20 2a 20 61 2e 20 |pect: . |*. * a. |
|00001f80| 74 68 65 20 22 48 44 52 | 22 20 69 73 20 72 65 70 |the "HDR|" is rep|
|00001f90| 6c 61 63 65 64 20 62 79 | 20 22 45 4f 46 22 20 6f |laced by| "EOF" o|
|00001fa0| 72 20 22 45 4f 56 22 2e | 20 0a 20 2a 0a 20 2a 20 |r "EOV".| . *. * |
|00001fb0| 62 2e 20 74 68 65 20 62 | 6c 6f 63 6b 63 6f 75 6e |b. the b|lockcoun|
|00001fc0| 74 20 66 69 65 6c 64 20 | 69 6e 20 45 4f 46 31 2f |t field |in EOF1/|
|00001fd0| 45 4f 56 31 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |EOV1 con|tains th|
|00001fe0| 65 20 61 63 74 75 61 6c | 20 6e 75 6d 62 65 72 20 |e actual| number |
|00001ff0| 6f 66 0a 20 2a 20 70 68 | 79 73 69 63 61 6c 20 74 |of. * ph|ysical t|
|00002000| 61 70 65 20 62 6c 6f 63 | 6b 73 20 77 72 69 74 74 |ape bloc|ks writt|
|00002010| 65 6e 20 69 6e 20 74 68 | 65 20 70 72 65 63 65 64 |en in th|e preced|
|00002020| 69 6e 67 20 66 69 6c 65 | 20 73 65 63 74 69 6f 6e |ing file| section|
|00002030| 2e 20 20 49 6e 20 74 68 | 65 0a 20 2a 20 48 44 52 |. In th|e. * HDR|
|00002040| 31 20 72 65 63 6f 72 64 | 2c 20 74 68 65 20 62 6c |1 record|, the bl|
|00002050| 6f 63 6b 63 6f 75 6e 74 | 20 69 73 20 30 30 30 30 |ockcount| is 0000|
|00002060| 30 30 2e 20 0a 20 2a 0a | 20 2a 20 35 2e 20 20 41 |00. . *.| * 5. A|
|00002070| 20 74 61 70 65 20 66 69 | 6c 65 20 6d 61 79 20 65 | tape fi|le may e|
|00002080| 78 74 65 6e 64 20 61 63 | 72 6f 73 73 20 61 20 76 |xtend ac|ross a v|
|00002090| 6f 6c 75 6d 65 20 62 6f | 75 6e 64 61 72 79 2e 20 |olume bo|undary. |
|000020a0| 20 49 66 20 69 74 20 64 | 6f 65 73 2c 20 45 4f 56 | If it d|oes, EOV|
|000020b0| 0a 20 2a 20 6c 61 62 65 | 6c 73 20 61 72 65 20 75 |. * labe|ls are u|
|000020c0| 73 65 64 2c 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |sed, ind|icating |
|000020d0| 74 68 61 74 20 61 6e 6f | 74 68 65 72 20 74 61 70 |that ano|ther tap|
|000020e0| 65 20 6d 75 73 74 20 62 | 65 20 72 65 61 64 2e 20 |e must b|e read. |
|000020f0| 20 49 66 20 74 68 65 0a | 20 2a 20 66 69 6c 65 20 | If the.| * file |
|00002100| 65 6e 64 73 20 68 65 72 | 65 2c 20 61 6e 20 45 4f |ends her|e, an EO|
|00002110| 46 20 6c 61 62 65 6c 20 | 69 73 20 75 73 65 64 2e |F label |is used.|
|00002120| 20 0a 20 2a 0a 20 2a 20 | 36 2e 20 20 41 66 74 65 | . *. * |6. Afte|
|00002130| 72 20 74 68 65 20 45 4f | 46 20 72 65 63 6f 72 64 |r the EO|F record|
|00002140| 73 2c 20 61 20 74 61 70 | 65 20 6d 61 72 6b 20 69 |s, a tap|e mark i|
|00002150| 73 20 77 72 69 74 74 65 | 6e 2e 20 20 54 68 69 73 |s writte|n. This|
|00002160| 20 73 65 70 61 72 61 74 | 65 73 20 74 68 65 0a 20 | separat|es the. |
|00002170| 2a 20 74 72 61 69 6c 65 | 72 73 20 66 72 6f 6d 20 |* traile|rs from |
|00002180| 74 68 65 20 68 65 61 64 | 65 72 73 20 66 6f 72 20 |the head|ers for |
|00002190| 74 68 65 20 6e 65 78 74 | 20 66 69 6c 65 2e 20 20 |the next| file. |
|000021a0| 41 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |At the e|nd of th|
|000021b0| 65 0a 20 2a 20 74 61 70 | 65 2c 20 74 77 6f 20 74 |e. * tap|e, two t|
|000021c0| 61 70 65 20 6d 61 72 6b | 73 20 61 72 65 20 77 72 |ape mark|s are wr|
|000021d0| 69 74 74 65 6e 2e 20 0a | 20 2a 2f 0a 2f 2f 45 2a |itten. .| */.//E*|
|000021e0| 4f 2a 46 20 61 6e 73 69 | 74 61 70 65 2e 68 2f 2f |O*F ansi|tape.h//|
|000021f0| 0a 0a 65 63 68 6f 20 78 | 20 2d 20 74 61 62 6c 65 |..echo x| - table|
|00002200| 73 2e 63 0a 63 61 74 20 | 3e 20 22 74 61 62 6c 65 |s.c.cat |> "table|
|00002210| 73 2e 63 22 20 3c 3c 20 | 27 2f 2f 45 2a 4f 2a 46 |s.c" << |'//E*O*F|
|00002220| 20 74 61 62 6c 65 73 2e | 63 2f 2f 27 0a 2f 2a 20 | tables.|c//'./* |
|00002230| 4d 61 70 70 69 6e 67 20 | 6f 66 20 45 42 43 44 49 |Mapping |of EBCDI|
|00002240| 43 20 63 6f 64 65 73 20 | 74 6f 20 41 53 43 49 49 |C codes |to ASCII|
|00002250| 20 65 71 75 69 76 61 6c | 65 6e 74 73 2e 20 2a 2f | equival|ents. */|
|00002260| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 20 20 20 |.static |char |
|00002270| 20 74 6f 5f 61 73 63 69 | 69 5f 74 61 62 6c 65 5b | to_asci|i_table[|
|00002280| 32 35 36 5d 20 3d 20 7b | 0a 09 09 09 09 20 20 20 |256] = {|..... |
|00002290| 20 20 20 20 27 5c 30 30 | 30 27 2c 20 27 5c 30 30 | '\00|0', '\00|
|000022a0| 31 27 2c 20 27 5c 30 30 | 32 27 2c 20 27 5c 30 30 |1', '\00|2', '\00|
|000022b0| 33 27 2c 0a 09 09 09 09 | 20 20 20 20 20 20 20 27 |3',.....| '|
|000022c0| 5c 32 33 34 27 2c 20 27 | 5c 30 31 31 27 2c 20 27 |\234', '|\011', '|
|000022d0| 5c 32 30 36 27 2c 20 27 | 5c 31 37 37 27 2c 0a 09 |\206', '|\177',..|
|000022e0| 09 09 09 20 20 20 20 20 | 20 20 27 5c 32 32 37 27 |... | '\227'|
|000022f0| 2c 20 27 5c 32 31 35 27 | 2c 20 27 5c 32 31 36 27 |, '\215'|, '\216'|
|00002300| 2c 20 27 5c 30 31 33 27 | 2c 0a 09 09 09 09 20 20 |, '\013'|,..... |
|00002310| 20 20 20 20 20 27 5c 30 | 31 34 27 2c 20 27 5c 30 | '\0|14', '\0|
|00002320| 31 35 27 2c 20 27 5c 30 | 31 36 27 2c 20 27 5c 30 |15', '\0|16', '\0|
|00002330| 31 37 27 2c 0a 09 09 09 | 09 20 20 20 20 20 20 20 |17',....|. |
|00002340| 27 5c 30 32 30 27 2c 20 | 27 5c 30 32 31 27 2c 20 |'\020', |'\021', |
|00002350| 27 5c 30 32 32 27 2c 20 | 27 5c 30 32 33 27 2c 0a |'\022', |'\023',.|
|00002360| 09 09 09 09 20 20 20 20 | 20 20 20 27 5c 32 33 35 |.... | '\235|
|00002370| 27 2c 20 27 5c 32 30 35 | 27 2c 20 27 5c 30 31 30 |', '\205|', '\010|
|00002380| 27 2c 20 27 5c 32 30 37 | 27 2c 0a 09 09 09 09 20 |', '\207|',..... |
|00002390| 20 20 20 20 20 20 27 5c | 30 33 30 27 2c 20 27 5c | '\|030', '\|
|000023a0| 30 33 31 27 2c 20 27 5c | 32 32 32 27 2c 20 27 5c |031', '\|222', '\|
|000023b0| 32 31 37 27 2c 0a 09 09 | 09 09 20 20 20 20 20 20 |217',...|.. |
|000023c0| 20 27 5c 30 33 34 27 2c | 20 27 5c 30 33 35 27 2c | '\034',| '\035',|
|000023d0| 20 27 5c 30 33 36 27 2c | 20 27 5c 30 33 37 27 2c | '\036',| '\037',|
|000023e0| 0a 09 09 09 09 20 20 20 | 20 20 20 20 27 5c 32 30 |..... | '\20|
|000023f0| 30 27 2c 20 27 5c 32 30 | 31 27 2c 20 27 5c 32 30 |0', '\20|1', '\20|
|00002400| 32 27 2c 20 27 5c 32 30 | 33 27 2c 0a 09 09 09 09 |2', '\20|3',.....|
|00002410| 20 20 20 20 20 20 20 27 | 5c 32 30 34 27 2c 20 27 | '|\204', '|
|00002420| 5c 30 31 32 27 2c 20 27 | 5c 30 32 37 27 2c 20 27 |\012', '|\027', '|
|00002430| 5c 30 33 33 27 2c 0a 09 | 09 09 09 20 20 20 20 20 |\033',..|... |
|00002440| 20 20 27 5c 32 31 30 27 | 2c 20 27 5c 32 31 31 27 | '\210'|, '\211'|
|00002450| 2c 20 27 5c 32 31 32 27 | 2c 20 27 5c 32 31 33 27 |, '\212'|, '\213'|
|00002460| 2c 0a 09 09 09 09 20 20 | 20 20 20 20 20 27 5c 32 |,..... | '\2|
|00002470| 31 34 27 2c 20 27 5c 30 | 30 35 27 2c 20 27 5c 30 |14', '\0|05', '\0|
|00002480| 30 36 27 2c 20 27 5c 30 | 30 37 27 2c 0a 09 09 09 |06', '\0|07',....|
|00002490| 09 20 20 20 20 20 20 20 | 27 5c 32 32 30 27 2c 20 |. |'\220', |
|000024a0| 27 5c 32 32 31 27 2c 20 | 27 5c 30 32 36 27 2c 20 |'\221', |'\026', |
|000024b0| 27 5c 32 32 33 27 2c 0a | 09 09 09 09 20 20 20 20 |'\223',.|.... |
|000024c0| 20 20 20 27 5c 32 32 34 | 27 2c 20 27 5c 32 32 35 | '\224|', '\225|
|000024d0| 27 2c 20 27 5c 32 32 36 | 27 2c 20 27 5c 30 30 34 |', '\226|', '\004|
|000024e0| 27 2c 0a 09 09 09 09 20 | 20 20 20 20 20 20 27 5c |',..... | '\|
|000024f0| 32 33 30 27 2c 20 27 5c | 32 33 31 27 2c 20 27 5c |230', '\|231', '\|
|00002500| 32 33 32 27 2c 20 27 5c | 32 33 33 27 2c 0a 09 09 |232', '\|233',...|
|00002510| 09 09 20 20 20 20 20 20 | 20 27 5c 30 32 34 27 2c |.. | '\024',|
|00002520| 20 27 5c 30 32 35 27 2c | 20 27 5c 32 33 36 27 2c | '\025',| '\236',|
|00002530| 20 27 5c 30 33 32 27 2c | 0a 09 09 09 09 20 20 20 | '\032',|..... |
|00002540| 20 20 20 20 27 5c 30 34 | 30 27 2c 20 27 5c 32 34 | '\04|0', '\24|
|00002550| 30 27 2c 20 27 5c 32 34 | 31 27 2c 20 27 5c 32 34 |0', '\24|1', '\24|
|00002560| 32 27 2c 0a 09 09 09 09 | 20 20 20 20 20 20 20 27 |2',.....| '|
|00002570| 5c 32 34 33 27 2c 20 27 | 5c 32 34 34 27 2c 20 27 |\243', '|\244', '|
|00002580| 5c 32 34 35 27 2c 20 27 | 5c 32 34 36 27 2c 0a 09 |\245', '|\246',..|
|00002590| 09 09 09 20 20 20 20 20 | 20 20 27 5c 32 34 37 27 |... | '\247'|
|000025a0| 2c 20 27 5c 32 35 30 27 | 2c 20 27 5c 31 33 33 27 |, '\250'|, '\133'|
|000025b0| 2c 20 27 5c 30 35 36 27 | 2c 0a 09 09 09 09 20 20 |, '\056'|,..... |
|000025c0| 20 20 20 20 20 27 5c 30 | 37 34 27 2c 20 27 5c 30 | '\0|74', '\0|
|000025d0| 35 30 27 2c 20 27 5c 30 | 35 33 27 2c 20 27 5c 30 |50', '\0|53', '\0|
|000025e0| 34 31 27 2c 0a 09 09 09 | 09 20 20 20 20 20 20 20 |41',....|. |
|000025f0| 27 5c 30 34 36 27 2c 20 | 27 5c 32 35 31 27 2c 20 |'\046', |'\251', |
|00002600| 27 5c 32 35 32 27 2c 20 | 27 5c 32 35 33 27 2c 0a |'\252', |'\253',.|
|00002610| 09 09 09 09 20 20 20 20 | 20 20 20 27 5c 32 35 34 |.... | '\254|
|00002620| 27 2c 20 27 5c 32 35 35 | 27 2c 20 27 5c 32 35 36 |', '\255|', '\256|
|00002630| 27 2c 20 27 5c 32 35 37 | 27 2c 0a 09 09 09 09 20 |', '\257|',..... |
|00002640| 20 20 20 20 20 20 27 5c | 32 36 30 27 2c 20 27 5c | '\|260', '\|
|00002650| 32 36 31 27 2c 20 27 5c | 31 33 35 27 2c 20 27 5c |261', '\|135', '\|
|00002660| 30 34 34 27 2c 0a 09 09 | 09 09 20 20 20 20 20 20 |044',...|.. |
|00002670| 20 27 5c 30 35 32 27 2c | 20 27 5c 30 35 31 27 2c | '\052',| '\051',|
|00002680| 20 27 5c 30 37 33 27 2c | 20 27 5c 31 33 36 27 2c | '\073',| '\136',|
|00002690| 0a 09 09 09 09 20 20 20 | 20 20 20 20 27 5c 30 35 |..... | '\05|
|000026a0| 35 27 2c 20 27 5c 30 35 | 37 27 2c 20 27 5c 32 36 |5', '\05|7', '\26|
|000026b0| 32 27 2c 20 27 5c 32 36 | 33 27 2c 0a 09 09 09 09 |2', '\26|3',.....|
|000026c0| 20 20 20 20 20 20 20 27 | 5c 32 36 34 27 2c 20 27 | '|\264', '|
|000026d0| 5c 32 36 35 27 2c 20 27 | 5c 32 36 36 27 2c 20 27 |\265', '|\266', '|
|000026e0| 5c 32 36 37 27 2c 0a 09 | 09 09 09 20 20 20 20 20 |\267',..|... |
|000026f0| 20 20 27 5c 32 37 30 27 | 2c 20 27 5c 32 37 31 27 | '\270'|, '\271'|
|00002700| 2c 20 27 5c 31 37 34 27 | 2c 20 27 5c 30 35 34 27 |, '\174'|, '\054'|
|00002710| 2c 0a 09 09 09 09 20 20 | 20 20 20 20 20 27 5c 30 |,..... | '\0|
|00002720| 34 35 27 2c 20 27 5c 31 | 33 37 27 2c 20 27 5c 30 |45', '\1|37', '\0|
|00002730| 37 36 27 2c 20 27 5c 30 | 37 37 27 2c 0a 09 09 09 |76', '\0|77',....|
|00002740| 09 20 20 20 20 20 20 20 | 27 5c 32 37 32 27 2c 20 |. |'\272', |
|00002750| 27 5c 32 37 33 27 2c 20 | 27 5c 32 37 34 27 2c 20 |'\273', |'\274', |
|00002760| 27 5c 32 37 35 27 2c 0a | 09 09 09 09 20 20 20 20 |'\275',.|.... |
|00002770| 20 20 20 27 5c 32 37 36 | 27 2c 20 27 5c 32 37 37 | '\276|', '\277|
|00002780| 27 2c 20 27 5c 33 30 30 | 27 2c 20 27 5c 33 30 31 |', '\300|', '\301|
|00002790| 27 2c 0a 09 09 09 09 20 | 20 20 20 20 20 20 27 5c |',..... | '\|
|000027a0| 33 30 32 27 2c 20 27 5c | 31 34 30 27 2c 20 27 5c |302', '\|140', '\|
|000027b0| 30 37 32 27 2c 20 27 5c | 30 34 33 27 2c 0a 09 09 |072', '\|043',...|
|000027c0| 09 09 20 20 20 20 20 20 | 20 27 5c 31 30 30 27 2c |.. | '\100',|
|000027d0| 20 27 5c 30 34 37 27 2c | 20 27 5c 30 37 35 27 2c | '\047',| '\075',|
|000027e0| 20 27 5c 30 34 32 27 2c | 0a 09 09 09 09 20 20 20 | '\042',|..... |
|000027f0| 20 20 20 20 27 5c 33 30 | 33 27 2c 20 27 5c 31 34 | '\30|3', '\14|
|00002800| 31 27 2c 20 27 5c 31 34 | 32 27 2c 20 27 5c 31 34 |1', '\14|2', '\14|
|00002810| 33 27 2c 0a 09 09 09 09 | 20 20 20 20 20 20 20 27 |3',.....| '|
|00002820| 5c 31 34 34 27 2c 20 27 | 5c 31 34 35 27 2c 20 27 |\144', '|\145', '|
|00002830| 5c 31 34 36 27 2c 20 27 | 5c 31 34 37 27 2c 0a 09 |\146', '|\147',..|
|00002840| 09 09 09 20 20 20 20 20 | 20 20 27 5c 31 35 30 27 |... | '\150'|
|00002850| 2c 20 27 5c 31 35 31 27 | 2c 20 27 5c 33 30 34 27 |, '\151'|, '\304'|
|00002860| 2c 20 27 5c 33 30 35 27 | 2c 0a 09 09 09 09 20 20 |, '\305'|,..... |
|00002870| 20 20 20 20 20 27 5c 33 | 30 36 27 2c 20 27 5c 33 | '\3|06', '\3|
|00002880| 30 37 27 2c 20 27 5c 33 | 31 30 27 2c 20 27 5c 33 |07', '\3|10', '\3|
|00002890| 31 31 27 2c 0a 09 09 09 | 09 20 20 20 20 20 20 20 |11',....|. |
|000028a0| 27 5c 33 31 32 27 2c 20 | 27 5c 31 35 32 27 2c 20 |'\312', |'\152', |
|000028b0| 27 5c 31 35 33 27 2c 20 | 27 5c 31 35 34 27 2c 0a |'\153', |'\154',.|
|000028c0| 09 09 09 09 20 20 20 20 | 20 20 20 27 5c 31 35 35 |.... | '\155|
|000028d0| 27 2c 20 27 5c 31 35 36 | 27 2c 20 27 5c 31 35 37 |', '\156|', '\157|
|000028e0| 27 2c 20 27 5c 31 36 30 | 27 2c 0a 09 09 09 09 20 |', '\160|',..... |
|000028f0| 20 20 20 20 20 20 27 5c | 31 36 31 27 2c 20 27 5c | '\|161', '\|
|00002900| 31 36 32 27 2c 20 27 5c | 33 31 33 27 2c 20 27 5c |162', '\|313', '\|
|00002910| 33 31 34 27 2c 0a 09 09 | 09 09 20 20 20 20 20 20 |314',...|.. |
|00002920| 20 27 5c 33 31 35 27 2c | 20 27 5c 33 31 36 27 2c | '\315',| '\316',|
|00002930| 20 27 5c 33 31 37 27 2c | 20 27 5c 33 32 30 27 2c | '\317',| '\320',|
|00002940| 0a 09 09 09 09 20 20 20 | 20 20 20 20 27 5c 33 32 |..... | '\32|
|00002950| 31 27 2c 20 27 5c 31 37 | 36 27 2c 20 27 5c 31 36 |1', '\17|6', '\16|
|00002960| 33 27 2c 20 27 5c 31 36 | 34 27 2c 0a 09 09 09 09 |3', '\16|4',.....|
|00002970| 20 20 20 20 20 20 20 27 | 5c 31 36 35 27 2c 20 27 | '|\165', '|
|00002980| 5c 31 36 36 27 2c 20 27 | 5c 31 36 37 27 2c 20 27 |\166', '|\167', '|
|00002990| 5c 31 37 30 27 2c 0a 09 | 09 09 09 20 20 20 20 20 |\170',..|... |
|000029a0| 20 20 27 5c 31 37 31 27 | 2c 20 27 5c 31 37 32 27 | '\171'|, '\172'|
|000029b0| 2c 20 27 5c 33 32 32 27 | 2c 20 27 5c 33 32 33 27 |, '\322'|, '\323'|
|000029c0| 2c 0a 09 09 09 09 20 20 | 20 20 20 20 20 27 5c 33 |,..... | '\3|
|000029d0| 32 34 27 2c 20 27 5c 33 | 32 35 27 2c 20 27 5c 33 |24', '\3|25', '\3|
|000029e0| 32 36 27 2c 20 27 5c 33 | 32 37 27 2c 0a 09 09 09 |26', '\3|27',....|
|000029f0| 09 20 20 20 20 20 20 20 | 27 5c 33 33 30 27 2c 20 |. |'\330', |
|00002a00| 27 5c 33 33 31 27 2c 20 | 27 5c 33 33 32 27 2c 20 |'\331', |'\332', |
|00002a10| 27 5c 33 33 33 27 2c 0a | 09 09 09 09 20 20 20 20 |'\333',.|.... |
|00002a20| 20 20 20 27 5c 33 33 34 | 27 2c 20 27 5c 33 33 35 | '\334|', '\335|
|00002a30| 27 2c 20 27 5c 33 33 36 | 27 2c 20 27 5c 33 33 37 |', '\336|', '\337|
|00002a40| 27 2c 0a 09 09 09 09 20 | 20 20 20 20 20 20 27 5c |',..... | '\|
|00002a50| 33 34 30 27 2c 20 27 5c | 33 34 31 27 2c 20 27 5c |340', '\|341', '\|
|00002a60| 33 34 32 27 2c 20 27 5c | 33 34 33 27 2c 0a 09 09 |342', '\|343',...|
|00002a70| 09 09 20 20 20 20 20 20 | 20 27 5c 33 34 34 27 2c |.. | '\344',|
|00002a80| 20 27 5c 33 34 35 27 2c | 20 27 5c 33 34 36 27 2c | '\345',| '\346',|
|00002a90| 20 27 5c 33 34 37 27 2c | 0a 09 09 09 09 20 20 20 | '\347',|..... |
|00002aa0| 20 20 20 20 27 5c 31 37 | 33 27 2c 20 27 5c 31 30 | '\17|3', '\10|
|00002ab0| 31 27 2c 20 27 5c 31 30 | 32 27 2c 20 27 5c 31 30 |1', '\10|2', '\10|
|00002ac0| 33 27 2c 0a 09 09 09 09 | 20 20 20 20 20 20 20 27 |3',.....| '|
|00002ad0| 5c 31 30 34 27 2c 20 27 | 5c 31 30 35 27 2c 20 27 |\104', '|\105', '|
|00002ae0| 5c 31 30 36 27 2c 20 27 | 5c 31 30 37 27 2c 0a 09 |\106', '|\107',..|
|00002af0| 09 09 09 20 20 20 20 20 | 20 20 27 5c 31 31 30 27 |... | '\110'|
|00002b00| 2c 20 27 5c 31 31 31 27 | 2c 20 27 5c 33 35 30 27 |, '\111'|, '\350'|
|00002b10| 2c 20 27 5c 33 35 31 27 | 2c 0a 09 09 09 09 20 20 |, '\351'|,..... |
|00002b20| 20 20 20 20 20 27 5c 33 | 35 32 27 2c 20 27 5c 33 | '\3|52', '\3|
|00002b30| 35 33 27 2c 20 27 5c 33 | 35 34 27 2c 20 27 5c 33 |53', '\3|54', '\3|
|00002b40| 35 35 27 2c 0a 09 09 09 | 09 20 20 20 20 20 20 20 |55',....|. |
|00002b50| 27 5c 31 37 35 27 2c 20 | 27 5c 31 31 32 27 2c 20 |'\175', |'\112', |
|00002b60| 27 5c 31 31 33 27 2c 20 | 27 5c 31 31 34 27 2c 0a |'\113', |'\114',.|
|00002b70| 09 09 09 09 20 20 20 20 | 20 20 20 27 5c 31 31 35 |.... | '\115|
|00002b80| 27 2c 20 27 5c 31 31 36 | 27 2c 20 27 5c 31 31 37 |', '\116|', '\117|
|00002b90| 27 2c 20 27 5c 31 32 30 | 27 2c 0a 09 09 09 09 20 |', '\120|',..... |
|00002ba0| 20 20 20 20 20 20 27 5c | 31 32 31 27 2c 20 27 5c | '\|121', '\|
|00002bb0| 31 32 32 27 2c 20 27 5c | 33 35 36 27 2c 20 27 5c |122', '\|356', '\|
|00002bc0| 33 35 37 27 2c 0a 09 09 | 09 09 20 20 20 20 20 20 |357',...|.. |
|00002bd0| 20 27 5c 33 36 30 27 2c | 20 27 5c 33 36 31 27 2c | '\360',| '\361',|
|00002be0| 20 27 5c 33 36 32 27 2c | 20 27 5c 33 36 33 27 2c | '\362',| '\363',|
|00002bf0| 0a 09 09 09 09 20 20 20 | 20 20 20 20 27 5c 31 33 |..... | '\13|
|00002c00| 34 27 2c 20 27 5c 32 33 | 37 27 2c 20 27 5c 31 32 |4', '\23|7', '\12|
|00002c10| 33 27 2c 20 27 5c 31 32 | 34 27 2c 0a 09 09 09 09 |3', '\12|4',.....|
|00002c20| 20 20 20 20 20 20 20 27 | 5c 31 32 35 27 2c 20 27 | '|\125', '|
|00002c30| 5c 31 32 36 27 2c 20 27 | 5c 31 32 37 27 2c 20 27 |\126', '|\127', '|
|00002c40| 5c 31 33 30 27 2c 0a 09 | 09 09 09 20 20 20 20 20 |\130',..|... |
|00002c50| 20 20 27 5c 31 33 31 27 | 2c 20 27 5c 31 33 32 27 | '\131'|, '\132'|
|00002c60| 2c 20 27 5c 33 36 34 27 | 2c 20 27 5c 33 36 35 27 |, '\364'|, '\365'|
|00002c70| 2c 0a 09 09 09 09 20 20 | 20 20 20 20 20 27 5c 33 |,..... | '\3|
|00002c80| 36 36 27 2c 20 27 5c 33 | 36 37 27 2c 20 27 5c 33 |66', '\3|67', '\3|
|00002c90| 37 30 27 2c 20 27 5c 33 | 37 31 27 2c 0a 09 09 09 |70', '\3|71',....|
|00002ca0| 09 20 20 20 20 20 20 20 | 27 5c 30 36 30 27 2c 20 |. |'\060', |
|00002cb0| 27 5c 30 36 31 27 2c 20 | 27 5c 30 36 32 27 2c 20 |'\061', |'\062', |
|00002cc0| 27 5c 30 36 33 27 2c 0a | 09 09 09 09 20 20 20 20 |'\063',.|.... |
|00002cd0| 20 20 20 27 5c 30 36 34 | 27 2c 20 27 5c 30 36 35 | '\064|', '\065|
|00002ce0| 27 2c 20 27 5c 30 36 36 | 27 2c 20 27 5c 30 36 37 |', '\066|', '\067|
|00002cf0| 27 2c 0a 09 09 09 09 20 | 20 20 20 20 20 20 27 5c |',..... | '\|
|00002d00| 30 37 30 27 2c 20 27 5c | 30 37 31 27 2c 20 27 5c |070', '\|071', '\|
|00002d10| 33 37 32 27 2c 20 27 5c | 33 37 33 27 2c 0a 09 09 |372', '\|373',...|
|00002d20| 09 09 20 20 20 20 20 20 | 20 27 5c 33 37 34 27 2c |.. | '\374',|
|00002d30| 20 27 5c 33 37 35 27 2c | 20 27 5c 33 37 36 27 2c | '\375',| '\376',|
|00002d40| 20 27 5c 33 37 37 27 0a | 7d 3b 0a 0a 0a 2f 2a 20 | '\377'.|};.../* |
|00002d50| 4d 61 70 70 69 6e 67 20 | 6f 66 20 41 53 43 49 49 |Mapping |of ASCII|
|00002d60| 20 63 6f 64 65 73 20 74 | 6f 20 45 42 43 44 49 43 | codes t|o EBCDIC|
|00002d70| 20 65 71 75 69 76 61 6c | 65 6e 74 73 2e 20 2a 2f | equival|ents. */|
|00002d80| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 20 20 20 |.static |char |
|00002d90| 20 74 6f 5f 65 62 63 64 | 69 63 5f 74 61 62 6c 65 | to_ebcd|ic_table|
|00002da0| 5b 32 35 36 5d 20 3d 20 | 7b 0a 09 09 09 09 09 27 |[256] = |{......'|
|00002db0| 5c 30 30 30 27 2c 20 27 | 5c 30 30 31 27 2c 20 27 |\000', '|\001', '|
|00002dc0| 5c 30 30 32 27 2c 20 27 | 5c 30 30 33 27 2c 0a 09 |\002', '|\003',..|
|00002dd0| 09 09 09 09 27 5c 30 36 | 37 27 2c 20 27 5c 30 35 |....'\06|7', '\05|
|00002de0| 35 27 2c 20 27 5c 30 35 | 36 27 2c 20 27 5c 30 35 |5', '\05|6', '\05|
|00002df0| 37 27 2c 0a 09 09 09 09 | 09 27 5c 30 32 36 27 2c |7',.....|.'\026',|
|00002e00| 20 27 5c 30 30 35 27 2c | 20 27 5c 30 34 35 27 2c | '\005',| '\045',|
|00002e10| 20 27 5c 30 31 33 27 2c | 0a 09 09 09 09 09 27 5c | '\013',|......'\|
|00002e20| 30 31 34 27 2c 20 27 5c | 30 31 35 27 2c 20 27 5c |014', '\|015', '\|
|00002e30| 30 31 36 27 2c 20 27 5c | 30 31 37 27 2c 0a 09 09 |016', '\|017',...|
|00002e40| 09 09 09 27 5c 30 32 30 | 27 2c 20 27 5c 30 32 31 |...'\020|', '\021|
|00002e50| 27 2c 20 27 5c 30 32 32 | 27 2c 20 27 5c 30 32 33 |', '\022|', '\023|
|00002e60| 27 2c 0a 09 09 09 09 09 | 27 5c 30 37 34 27 2c 20 |',......|'\074', |
|00002e70| 27 5c 30 37 35 27 2c 20 | 27 5c 30 36 32 27 2c 20 |'\075', |'\062', |
|00002e80| 27 5c 30 34 36 27 2c 0a | 09 09 09 09 09 27 5c 30 |'\046',.|.....'\0|
|00002e90| 33 30 27 2c 20 27 5c 30 | 33 31 27 2c 20 27 5c 30 |30', '\0|31', '\0|
|00002ea0| 37 37 27 2c 20 27 5c 30 | 34 37 27 2c 0a 09 09 09 |77', '\0|47',....|
|00002eb0| 09 09 27 5c 30 33 34 27 | 2c 20 27 5c 30 33 35 27 |..'\034'|, '\035'|
|00002ec0| 2c 20 27 5c 30 33 36 27 | 2c 20 27 5c 30 33 37 27 |, '\036'|, '\037'|
|00002ed0| 2c 0a 09 09 09 09 09 27 | 5c 31 30 30 27 2c 20 27 |,......'|\100', '|
|00002ee0| 5c 31 31 37 27 2c 20 27 | 5c 31 37 37 27 2c 20 27 |\117', '|\177', '|
|00002ef0| 5c 31 37 33 27 2c 0a 09 | 09 09 09 09 27 5c 31 33 |\173',..|....'\13|
|00002f00| 33 27 2c 20 27 5c 31 35 | 34 27 2c 20 27 5c 31 32 |3', '\15|4', '\12|
|00002f10| 30 27 2c 20 27 5c 31 37 | 35 27 2c 0a 09 09 09 09 |0', '\17|5',.....|
|00002f20| 09 27 5c 31 31 35 27 2c | 20 27 5c 31 33 35 27 2c |.'\115',| '\135',|
|00002f30| 20 27 5c 31 33 34 27 2c | 20 27 5c 31 31 36 27 2c | '\134',| '\116',|
|00002f40| 0a 09 09 09 09 09 27 5c | 31 35 33 27 2c 20 27 5c |......'\|153', '\|
|00002f50| 31 34 30 27 2c 20 27 5c | 31 31 33 27 2c 20 27 5c |140', '\|113', '\|
|00002f60| 31 34 31 27 2c 0a 09 09 | 09 09 09 27 5c 33 36 30 |141',...|...'\360|
|00002f70| 27 2c 20 27 5c 33 36 31 | 27 2c 20 27 5c 33 36 32 |', '\361|', '\362|
|00002f80| 27 2c 20 27 5c 33 36 33 | 27 2c 0a 09 09 09 09 09 |', '\363|',......|
|00002f90| 27 5c 33 36 34 27 2c 20 | 27 5c 33 36 35 27 2c 20 |'\364', |'\365', |
|00002fa0| 27 5c 33 36 36 27 2c 20 | 27 5c 33 36 37 27 2c 0a |'\366', |'\367',.|
|00002fb0| 09 09 09 09 09 27 5c 33 | 37 30 27 2c 20 27 5c 33 |.....'\3|70', '\3|
|00002fc0| 37 31 27 2c 20 27 5c 31 | 37 32 27 2c 20 27 5c 31 |71', '\1|72', '\1|
|00002fd0| 33 36 27 2c 0a 09 09 09 | 09 09 27 5c 31 31 34 27 |36',....|..'\114'|
|00002fe0| 2c 20 27 5c 31 37 36 27 | 2c 20 27 5c 31 35 36 27 |, '\176'|, '\156'|
|00002ff0| 2c 20 27 5c 31 35 37 27 | 2c 0a 09 09 09 09 09 27 |, '\157'|,......'|
|00003000| 5c 31 37 34 27 2c 20 27 | 5c 33 30 31 27 2c 20 27 |\174', '|\301', '|
|00003010| 5c 33 30 32 27 2c 20 27 | 5c 33 30 33 27 2c 0a 09 |\302', '|\303',..|
|00003020| 09 09 09 09 27 5c 33 30 | 34 27 2c 20 27 5c 33 30 |....'\30|4', '\30|
|00003030| 35 27 2c 20 27 5c 33 30 | 36 27 2c 20 27 5c 33 30 |5', '\30|6', '\30|
|00003040| 37 27 2c 0a 09 09 09 09 | 09 27 5c 33 31 30 27 2c |7',.....|.'\310',|
|00003050| 20 27 5c 33 31 31 27 2c | 20 27 5c 33 32 31 27 2c | '\311',| '\321',|
|00003060| 20 27 5c 33 32 32 27 2c | 0a 09 09 09 09 09 27 5c | '\322',|......'\|
|00003070| 33 32 33 27 2c 20 27 5c | 33 32 34 27 2c 20 27 5c |323', '\|324', '\|
|00003080| 33 32 35 27 2c 20 27 5c | 33 32 36 27 2c 0a 09 09 |325', '\|326',...|
|00003090| 09 09 09 27 5c 33 32 37 | 27 2c 20 27 5c 33 33 30 |...'\327|', '\330|
|000030a0| 27 2c 20 27 5c 33 33 31 | 27 2c 20 27 5c 33 34 32 |', '\331|', '\342|
|000030b0| 27 2c 0a 09 09 09 09 09 | 27 5c 33 34 33 27 2c 20 |',......|'\343', |
|000030c0| 27 5c 33 34 34 27 2c 20 | 27 5c 33 34 35 27 2c 20 |'\344', |'\345', |
|000030d0| 27 5c 33 34 36 27 2c 0a | 09 09 09 09 09 27 5c 33 |'\346',.|.....'\3|
|000030e0| 34 37 27 2c 20 27 5c 33 | 35 30 27 2c 20 27 5c 33 |47', '\3|50', '\3|
|000030f0| 35 31 27 2c 20 27 5c 31 | 31 32 27 2c 0a 09 09 09 |51', '\1|12',....|
|00003100| 09 09 27 5c 33 34 30 27 | 2c 20 27 5c 31 33 32 27 |..'\340'|, '\132'|
|00003110| 2c 20 27 5c 31 33 37 27 | 2c 20 27 5c 31 35 35 27 |, '\137'|, '\155'|
|00003120| 2c 0a 09 09 09 09 09 27 | 5c 31 37 31 27 2c 20 27 |,......'|\171', '|
|00003130| 5c 32 30 31 27 2c 20 27 | 5c 32 30 32 27 2c 20 27 |\201', '|\202', '|
|00003140| 5c 32 30 33 27 2c 0a 09 | 09 09 09 09 27 5c 32 30 |\203',..|....'\20|
|00003150| 34 27 2c 20 27 5c 32 30 | 35 27 2c 20 27 5c 32 30 |4', '\20|5', '\20|
|00003160| 36 27 2c 20 27 5c 32 30 | 37 27 2c 0a 09 09 09 09 |6', '\20|7',.....|
|00003170| 09 27 5c 32 31 30 27 2c | 20 27 5c 32 31 31 27 2c |.'\210',| '\211',|
|00003180| 20 27 5c 32 32 31 27 2c | 20 27 5c 32 32 32 27 2c | '\221',| '\222',|
|00003190| 0a 09 09 09 09 09 27 5c | 32 32 33 27 2c 20 27 5c |......'\|223', '\|
|000031a0| 32 32 34 27 2c 20 27 5c | 32 32 35 27 2c 20 27 5c |224', '\|225', '\|
|000031b0| 32 32 36 27 2c 0a 09 09 | 09 09 09 27 5c 32 32 37 |226',...|...'\227|
|000031c0| 27 2c 20 27 5c 32 33 30 | 27 2c 20 27 5c 32 33 31 |', '\230|', '\231|
|000031d0| 27 2c 20 27 5c 32 34 32 | 27 2c 0a 09 09 09 09 09 |', '\242|',......|
|000031e0| 27 5c 32 34 33 27 2c 20 | 27 5c 32 34 34 27 2c 20 |'\243', |'\244', |
|000031f0| 27 5c 32 34 35 27 2c 20 | 27 5c 32 34 36 27 2c 0a |'\245', |'\246',.|
|00003200| 09 09 09 09 09 27 5c 32 | 34 37 27 2c 20 27 5c 32 |.....'\2|47', '\2|
|00003210| 35 30 27 2c 20 27 5c 32 | 35 31 27 2c 20 27 5c 33 |50', '\2|51', '\3|
|00003220| 30 30 27 2c 0a 09 09 09 | 09 09 27 5c 31 35 32 27 |00',....|..'\152'|
|00003230| 2c 20 27 5c 33 32 30 27 | 2c 20 27 5c 32 34 31 27 |, '\320'|, '\241'|
|00003240| 2c 20 27 5c 30 30 37 27 | 2c 0a 09 09 09 09 09 27 |, '\007'|,......'|
|00003250| 5c 30 34 30 27 2c 20 27 | 5c 30 34 31 27 2c 20 27 |\040', '|\041', '|
|00003260| 5c 30 34 32 27 2c 20 27 | 5c 30 34 33 27 2c 0a 09 |\042', '|\043',..|
|00003270| 09 09 09 09 27 5c 30 34 | 34 27 2c 20 27 5c 30 32 |....'\04|4', '\02|
|00003280| 35 27 2c 20 27 5c 30 30 | 36 27 2c 20 27 5c 30 32 |5', '\00|6', '\02|
|00003290| 37 27 2c 0a 09 09 09 09 | 09 27 5c 30 35 30 27 2c |7',.....|.'\050',|
|000032a0| 20 27 5c 30 35 31 27 2c | 20 27 5c 30 35 32 27 2c | '\051',| '\052',|
|000032b0| 20 27 5c 30 35 33 27 2c | 0a 09 09 09 09 09 27 5c | '\053',|......'\|
|000032c0| 30 35 34 27 2c 20 27 5c | 30 31 31 27 2c 20 27 5c |054', '\|011', '\|
|000032d0| 30 31 32 27 2c 20 27 5c | 30 33 33 27 2c 0a 09 09 |012', '\|033',...|
|000032e0| 09 09 09 27 5c 30 36 30 | 27 2c 20 27 5c 30 36 31 |...'\060|', '\061|
|000032f0| 27 2c 20 27 5c 30 33 32 | 27 2c 20 27 5c 30 36 33 |', '\032|', '\063|
|00003300| 27 2c 0a 09 09 09 09 09 | 27 5c 30 36 34 27 2c 20 |',......|'\064', |
|00003310| 27 5c 30 36 35 27 2c 20 | 27 5c 30 36 36 27 2c 20 |'\065', |'\066', |
|00003320| 27 5c 30 31 30 27 2c 0a | 09 09 09 09 09 27 5c 30 |'\010',.|.....'\0|
|00003330| 37 30 27 2c 20 27 5c 30 | 37 31 27 2c 20 27 5c 30 |70', '\0|71', '\0|
|00003340| 37 32 27 2c 20 27 5c 30 | 37 33 27 2c 0a 09 09 09 |72', '\0|73',....|
|00003350| 09 09 27 5c 30 30 34 27 | 2c 20 27 5c 30 32 34 27 |..'\004'|, '\024'|
|00003360| 2c 20 27 5c 30 37 36 27 | 2c 20 27 5c 33 34 31 27 |, '\076'|, '\341'|
|00003370| 2c 0a 09 09 09 09 09 27 | 5c 31 30 31 27 2c 20 27 |,......'|\101', '|
|00003380| 5c 31 30 32 27 2c 20 27 | 5c 31 30 33 27 2c 20 27 |\102', '|\103', '|
|00003390| 5c 31 30 34 27 2c 0a 09 | 09 09 09 09 27 5c 31 30 |\104',..|....'\10|
|000033a0| 35 27 2c 20 27 5c 31 30 | 36 27 2c 20 27 5c 31 30 |5', '\10|6', '\10|
|000033b0| 37 27 2c 20 27 5c 31 31 | 30 27 2c 0a 09 09 09 09 |7', '\11|0',.....|
|000033c0| 09 27 5c 31 31 31 27 2c | 20 27 5c 31 32 31 27 2c |.'\111',| '\121',|
|000033d0| 20 27 5c 31 32 32 27 2c | 20 27 5c 31 32 33 27 2c | '\122',| '\123',|
|000033e0| 0a 09 09 09 09 09 27 5c | 31 32 34 27 2c 20 27 5c |......'\|124', '\|
|000033f0| 31 32 35 27 2c 20 27 5c | 31 32 36 27 2c 20 27 5c |125', '\|126', '\|
|00003400| 31 32 37 27 2c 0a 09 09 | 09 09 09 27 5c 31 33 30 |127',...|...'\130|
|00003410| 27 2c 20 27 5c 31 33 31 | 27 2c 20 27 5c 31 34 32 |', '\131|', '\142|
|00003420| 27 2c 20 27 5c 31 34 33 | 27 2c 0a 09 09 09 09 09 |', '\143|',......|
|00003430| 27 5c 31 34 34 27 2c 20 | 27 5c 31 34 35 27 2c 20 |'\144', |'\145', |
|00003440| 27 5c 31 34 36 27 2c 20 | 27 5c 31 34 37 27 2c 0a |'\146', |'\147',.|
|00003450| 09 09 09 09 09 27 5c 31 | 35 30 27 2c 20 27 5c 31 |.....'\1|50', '\1|
|00003460| 35 31 27 2c 20 27 5c 31 | 36 30 27 2c 20 27 5c 31 |51', '\1|60', '\1|
|00003470| 36 31 27 2c 0a 09 09 09 | 09 09 27 5c 31 36 32 27 |61',....|..'\162'|
|00003480| 2c 20 27 5c 31 36 33 27 | 2c 20 27 5c 31 36 34 27 |, '\163'|, '\164'|
|00003490| 2c 20 27 5c 31 36 35 27 | 2c 0a 09 09 09 09 09 27 |, '\165'|,......'|
|000034a0| 5c 31 36 36 27 2c 20 27 | 5c 31 36 37 27 2c 20 27 |\166', '|\167', '|
|000034b0| 5c 31 37 30 27 2c 20 27 | 5c 32 30 30 27 2c 0a 09 |\170', '|\200',..|
|000034c0| 09 09 09 09 27 5c 32 31 | 32 27 2c 20 27 5c 32 31 |....'\21|2', '\21|
|000034d0| 33 27 2c 20 27 5c 32 31 | 34 27 2c 20 27 5c 32 31 |3', '\21|4', '\21|
|000034e0| 35 27 2c 0a 09 09 09 09 | 09 27 5c 32 31 36 27 2c |5',.....|.'\216',|
|000034f0| 20 27 5c 32 31 37 27 2c | 20 27 5c 32 32 30 27 2c | '\217',| '\220',|
|00003500| 20 27 5c 32 33 32 27 2c | 0a 09 09 09 09 09 27 5c | '\232',|......'\|
|00003510| 32 33 33 27 2c 20 27 5c | 32 33 34 27 2c 20 27 5c |233', '\|234', '\|
|00003520| 32 33 35 27 2c 20 27 5c | 32 33 36 27 2c 0a 09 09 |235', '\|236',...|
|00003530| 09 09 09 27 5c 32 33 37 | 27 2c 20 27 5c 32 34 30 |...'\237|', '\240|
|00003540| 27 2c 20 27 5c 32 35 32 | 27 2c 20 27 5c 32 35 33 |', '\252|', '\253|
|00003550| 27 2c 0a 09 09 09 09 09 | 27 5c 32 35 34 27 2c 20 |',......|'\254', |
|00003560| 27 5c 32 35 35 27 2c 20 | 27 5c 32 35 36 27 2c 20 |'\255', |'\256', |
|00003570| 27 5c 32 35 37 27 2c 0a | 09 09 09 09 09 27 5c 32 |'\257',.|.....'\2|
|00003580| 36 30 27 2c 20 27 5c 32 | 36 31 27 2c 20 27 5c 32 |60', '\2|61', '\2|
|00003590| 36 32 27 2c 20 27 5c 32 | 36 33 27 2c 0a 09 09 09 |62', '\2|63',....|
|000035a0| 09 09 27 5c 32 36 34 27 | 2c 20 27 5c 32 36 35 27 |..'\264'|, '\265'|
|000035b0| 2c 20 27 5c 32 36 36 27 | 2c 20 27 5c 32 36 37 27 |, '\266'|, '\267'|
|000035c0| 2c 0a 09 09 09 09 09 27 | 5c 32 37 30 27 2c 20 27 |,......'|\270', '|
|000035d0| 5c 32 37 31 27 2c 20 27 | 5c 32 37 32 27 2c 20 27 |\271', '|\272', '|
|000035e0| 5c 32 37 33 27 2c 0a 09 | 09 09 09 09 27 5c 32 37 |\273',..|....'\27|
|000035f0| 34 27 2c 20 27 5c 32 37 | 35 27 2c 20 27 5c 32 37 |4', '\27|5', '\27|
|00003600| 36 27 2c 20 27 5c 32 37 | 37 27 2c 0a 09 09 09 09 |6', '\27|7',.....|
|00003610| 09 27 5c 33 31 32 27 2c | 20 27 5c 33 31 33 27 2c |.'\312',| '\313',|
|00003620| 20 27 5c 33 31 34 27 2c | 20 27 5c 33 31 35 27 2c | '\314',| '\315',|
|00003630| 0a 09 09 09 09 09 27 5c | 33 31 36 27 2c 20 27 5c |......'\|316', '\|
|00003640| 33 31 37 27 2c 20 27 5c | 33 33 32 27 2c 20 27 5c |317', '\|332', '\|
|00003650| 33 33 33 27 2c 0a 09 09 | 09 09 09 27 5c 33 33 34 |333',...|...'\334|
|00003660| 27 2c 20 27 5c 33 33 35 | 27 2c 20 27 5c 33 33 36 |', '\335|', '\336|
|00003670| 27 2c 20 27 5c 33 33 37 | 27 2c 0a 09 09 09 09 09 |', '\337|',......|
|00003680| 27 5c 33 35 32 27 2c 20 | 27 5c 33 35 33 27 2c 20 |'\352', |'\353', |
|00003690| 27 5c 33 35 34 27 2c 20 | 27 5c 33 35 35 27 2c 0a |'\354', |'\355',.|
|000036a0| 09 09 09 09 09 27 5c 33 | 35 36 27 2c 20 27 5c 33 |.....'\3|56', '\3|
|000036b0| 35 37 27 2c 20 27 5c 33 | 37 32 27 2c 20 27 5c 33 |57', '\3|72', '\3|
|000036c0| 37 33 27 2c 0a 09 09 09 | 09 09 27 5c 33 37 34 27 |73',....|..'\374'|
|000036d0| 2c 20 27 5c 33 37 35 27 | 2c 20 27 5c 33 37 36 27 |, '\375'|, '\376'|
|000036e0| 2c 20 27 5c 33 37 37 27 | 0a 7d 3b 0a 0a 0a 74 6f |, '\377'|.};...to|
|000036f0| 5f 65 62 63 64 69 63 28 | 73 6f 75 72 63 65 2c 20 |_ebcdic(|source, |
|00003700| 64 65 73 74 2c 20 63 6f | 75 6e 74 29 0a 20 20 20 |dest, co|unt). |
|00003710| 20 63 68 61 72 20 20 20 | 20 20 20 20 20 20 20 20 | char | |
|00003720| 2a 73 6f 75 72 63 65 2c | 0a 20 20 20 20 20 20 20 |*source,|. |
|00003730| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 64 65 73 | | *des|
|00003740| 74 3b 0a 20 20 20 20 69 | 6e 74 20 20 20 20 20 20 |t;. i|nt |
|00003750| 20 20 20 20 20 20 20 63 | 6f 75 6e 74 3b 0a 7b 0a | c|ount;.{.|
|00003760| 20 20 20 20 66 6f 72 20 | 28 3b 20 63 6f 75 6e 74 | for |(; count|
|00003770| 2d 2d 3b 29 0a 09 2a 28 | 64 65 73 74 2b 2b 29 20 |--;)..*(|dest++) |
|00003780| 3d 20 74 6f 5f 65 62 63 | 64 69 63 5f 74 61 62 6c |= to_ebc|dic_tabl|
|00003790| 65 5b 30 33 37 37 20 26 | 20 2a 28 73 6f 75 72 63 |e[0377 &| *(sourc|
|000037a0| 65 2b 2b 29 5d 3b 0a 7d | 0a 0a 0a 74 6f 5f 61 73 |e++)];.}|...to_as|
|000037b0| 63 69 69 28 73 6f 75 72 | 63 65 2c 20 64 65 73 74 |cii(sour|ce, dest|
|000037c0| 2c 20 63 6f 75 6e 74 29 | 0a 20 20 20 20 63 68 61 |, count)|. cha|
|000037d0| 72 20 20 20 20 20 20 20 | 20 20 20 20 2a 73 6f 75 |r | *sou|
|000037e0| 72 63 65 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |rce,. | |
|000037f0| 20 20 20 20 20 20 20 20 | 2a 64 65 73 74 3b 0a 20 | |*dest;. |
|00003800| 20 20 20 69 6e 74 20 20 | 20 20 20 20 20 20 20 20 | int | |
|00003810| 20 20 20 63 6f 75 6e 74 | 3b 0a 7b 0a 20 20 20 20 | count|;.{. |
|00003820| 66 6f 72 20 28 3b 20 63 | 6f 75 6e 74 2d 2d 3b 29 |for (; c|ount--;)|
|00003830| 0a 09 2a 28 64 65 73 74 | 2b 2b 29 20 3d 20 74 6f |..*(dest|++) = to|
|00003840| 5f 61 73 63 69 69 5f 74 | 61 62 6c 65 5b 30 33 37 |_ascii_t|able[037|
|00003850| 37 20 26 20 2a 28 73 6f | 75 72 63 65 2b 2b 29 5d |7 & *(so|urce++)]|
|00003860| 3b 0a 7d 0a 2f 2f 45 2a | 4f 2a 46 20 74 61 62 6c |;.}.//E*|O*F tabl|
|00003870| 65 73 2e 63 2f 2f 0a 0a | 65 63 68 6f 20 78 20 2d |es.c//..|echo x -|
|00003880| 20 61 6e 73 69 74 61 70 | 65 2e 31 0a 63 61 74 20 | ansitap|e.1.cat |
|00003890| 3e 20 22 61 6e 73 69 74 | 61 70 65 2e 31 22 20 3c |> "ansit|ape.1" <|
|000038a0| 3c 20 27 2f 2f 45 2a 4f | 2a 46 20 61 6e 73 69 74 |< '//E*O|*F ansit|
|000038b0| 61 70 65 2e 31 2f 2f 27 | 0a 2e 54 48 20 41 4e 53 |ape.1//'|..TH ANS|
|000038c0| 49 54 41 50 45 20 31 20 | 22 32 33 20 4a 75 6e 65 |ITAPE 1 |"23 June|
|000038d0| 20 31 39 38 36 22 20 41 | 49 43 65 6e 74 65 72 20 | 1986" A|ICenter |
|000038e0| 4d 65 72 6c 69 6e 0a 2e | 5c 22 40 28 23 29 61 6e |Merlin..|\"@(#)an|
|000038f0| 73 69 74 61 70 65 2e 31 | 20 32 2e 30 20 38 36 2f |sitape.1| 2.0 86/|
|00003900| 30 37 2f 30 38 20 41 49 | 43 65 6e 74 65 72 3b 20 |07/08 AI|Center; |
|00003910| 62 79 20 44 61 76 69 64 | 20 53 2e 20 48 61 79 65 |by David| S. Haye|
|00003920| 73 0a 2e 53 48 20 4e 41 | 4d 45 0a 61 6e 73 69 74 |s..SH NA|ME.ansit|
|00003930| 61 70 65 20 5c 2d 20 41 | 4e 53 49 2d 73 74 61 6e |ape \- A|NSI-stan|
|00003940| 64 61 72 64 20 6d 61 67 | 74 61 70 65 20 6c 61 62 |dard mag|tape lab|
|00003950| 65 6c 20 70 72 6f 67 72 | 61 6d 0a 2e 53 48 20 53 |el progr|am..SH S|
|00003960| 59 4e 4f 50 53 49 53 0a | 5c 66 49 61 6e 73 69 74 |YNOPSIS.|\fIansit|
|00003970| 61 70 65 20 5c 66 50 74 | 78 72 63 5c 5b 76 71 66 |ape \fPt|xrc\[vqf|
|00003980| 61 65 69 33 5c 5d 0a 5c | 5b 5c 6d 74 3d 5c 66 49 |aei3\].\|[\mt=\fI|
|00003990| 64 65 76 69 63 65 5c 66 | 50 5c 5d 0a 2e 52 53 20 |device\f|P\]..RS |
|000039a0| 2b 30 2e 35 69 0a 2e 62 | 72 0a 5c 5b 76 6f 3d 5c |+0.5i..b|r.\[vo=\|
|000039b0| 66 49 76 6f 6c 75 6d 65 | 2d 6e 61 6d 65 5c 66 50 |fIvolume|-name\fP|
|000039c0| 5c 5d 0a 5c 5b 72 73 3d | 5c 5b 20 72 20 7c 20 5c |\].\[rs=|\[ r | \|
|000039d0| 66 49 72 65 63 6f 72 64 | 73 69 7a 65 5c 66 50 20 |fIrecord|size\fP |
|000039e0| 5c 5d 5c 5d 0a 5c 5b 62 | 73 3d 5c 66 49 62 6c 6f |\]\].\[b|s=\fIblo|
|000039f0| 63 6b 73 69 7a 65 5c 66 | 50 5d 0a 2e 62 72 0a 5c |cksize\f|P]..br.\|
|00003a00| 5b 72 66 3d 5c 5b 20 76 | 20 7c 20 66 20 5c 5d 5c |[rf=\[ v| | f \]\|
|00003a10| 5d 0a 5c 5b 63 63 3d 5c | 5b 20 69 20 7c 20 66 20 |].\[cc=\|[ i | f |
|00003a20| 7c 20 65 20 5c 5d 5c 5d | 0a 2e 62 72 0a 5c 66 49 || e \]\]|..br.\fI|
|00003a30| 66 69 6c 65 6e 61 6d 65 | 31 20 66 69 6c 65 6e 61 |filename|1 filena|
|00003a40| 6d 65 32 5c 66 52 20 2e | 20 2e 20 2e 0a 2e 52 45 |me2\fR .| . ...RE|
|00003a50| 20 2d 30 2e 35 69 0a 2e | 53 48 20 44 45 53 43 52 | -0.5i..|SH DESCR|
|00003a60| 49 50 54 49 4f 4e 0a 2e | 4c 50 0a 5c 66 49 41 6e |IPTION..|LP.\fIAn|
|00003a70| 73 69 74 61 70 65 5c 66 | 50 20 72 65 61 64 73 2c |sitape\f|P reads,|
|00003a80| 20 77 72 69 74 65 73 2c | 20 61 6e 64 20 63 72 65 | writes,| and cre|
|00003a90| 61 74 65 73 20 6d 61 67 | 74 61 70 65 73 20 63 6f |ates mag|tapes co|
|00003aa0| 6e 66 6f 72 6d 69 6e 67 | 20 74 6f 0a 74 68 65 20 |nforming| to.the |
|00003ab0| 41 4e 53 49 20 73 74 61 | 6e 64 61 72 64 20 66 6f |ANSI sta|ndard fo|
|00003ac0| 72 20 6d 61 67 74 61 70 | 65 20 6c 61 62 65 6c 6c |r magtap|e labell|
|00003ad0| 69 6e 67 2e 20 20 50 72 | 69 6d 61 72 69 6c 79 2c |ing. Pr|imarily,|
|00003ae0| 20 74 68 69 73 20 69 73 | 20 75 73 65 66 75 6c 0a | this is| useful.|
|00003af0| 74 6f 20 65 78 63 68 61 | 6e 67 65 20 74 61 70 65 |to excha|nge tape|
|00003b00| 73 20 77 69 74 68 20 56 | 41 58 2f 56 4d 53 2c 20 |s with V|AX/VMS, |
|00003b10| 77 68 69 63 68 20 6d 61 | 6b 65 73 20 74 68 69 73 |which ma|kes this|
|00003b20| 20 6b 69 6e 64 20 6f 66 | 20 74 61 70 65 20 62 79 | kind of| tape by|
|00003b30| 20 64 65 66 61 75 6c 74 | 2e 0a 2e 4c 50 0a 5c 66 | default|...LP.\f|
|00003b40| 49 41 6e 73 69 74 61 70 | 65 5c 66 50 20 69 73 20 |IAnsitap|e\fP is |
|00003b50| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 61 20 |controll|ed by a |
|00003b60| 66 75 6e 63 74 69 6f 6e | 20 6b 65 79 20 6c 65 74 |function| key let|
|00003b70| 74 65 72 0a 2e 42 52 20 | 22 28 74 2c 20 78 2c 20 |ter..BR |"(t, x, |
|00003b80| 63 2c 20 6f 72 20 72 29 | 22 20 2e 0a 56 61 72 69 |c, or r)|" ..Vari|
|00003b90| 6f 75 73 20 6f 70 74 69 | 6f 6e 73 20 6d 6f 64 69 |ous opti|ons modi|
|00003ba0| 66 79 20 74 68 65 20 66 | 6f 72 6d 61 74 20 6f 66 |fy the f|ormat of|
|00003bb0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 74 61 70 65 | the out|put tape|
|00003bc0| 2e 0a 2e 53 48 20 22 57 | 72 69 74 69 6e 67 20 41 |...SH "W|riting A|
|00003bd0| 4e 53 49 20 54 61 70 65 | 73 22 0a 2e 50 50 0a 54 |NSI Tape|s"..PP.T|
|00003be0| 68 65 20 6c 69 73 74 20 | 6f 66 20 66 69 6c 65 73 |he list |of files|
|00003bf0| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | on the |command |
|00003c00| 6c 69 6e 65 20 69 73 20 | 77 72 69 74 74 65 6e 20 |line is |written |
|00003c10| 74 6f 20 74 68 65 20 74 | 61 70 65 2e 0a 41 20 66 |to the t|ape..A f|
|00003c20| 75 6c 6c 20 55 6e 69 78 | 20 70 61 74 68 6e 61 6d |ull Unix| pathnam|
|00003c30| 65 20 6d 61 79 20 62 65 | 20 73 70 65 63 69 66 69 |e may be| specifi|
|00003c40| 65 64 2c 20 68 6f 77 65 | 76 65 72 2c 20 6f 6e 6c |ed, howe|ver, onl|
|00003c50| 79 20 74 68 65 20 6c 61 | 73 74 0a 70 61 74 68 6e |y the la|st.pathn|
|00003c60| 61 6d 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 28 65 |ame comp|onent (e|
|00003c70| 76 65 72 79 74 68 69 6e | 67 20 61 66 74 65 72 20 |verythin|g after |
|00003c80| 74 68 65 20 6c 61 73 74 | 20 2f 29 20 69 73 20 75 |the last| /) is u|
|00003c90| 73 65 64 20 61 73 0a 74 | 68 65 20 66 69 6c 65 6e |sed as.t|he filen|
|00003ca0| 61 6d 65 20 6f 6e 20 74 | 68 65 20 74 61 70 65 2e |ame on t|he tape.|
|00003cb0| 0a 2e 50 50 0a 4e 6f 72 | 6d 61 6c 6c 79 2c 20 72 |..PP.Nor|mally, r|
|00003cc0| 65 67 75 6c 61 72 20 74 | 65 78 74 20 66 69 6c 65 |egular t|ext file|
|00003cd0| 73 20 61 72 65 20 74 6f | 20 62 65 20 65 78 63 68 |s are to| be exch|
|00003ce0| 61 6e 67 65 64 2e 0a 2e | 49 20 61 6e 73 69 74 61 |anged...|I ansita|
|00003cf0| 70 65 0a 72 65 61 64 73 | 20 74 68 65 20 66 69 6c |pe.reads| the fil|
|00003d00| 65 73 20 6f 6e 65 20 6c | 69 6e 65 20 61 74 20 61 |es one l|ine at a|
|00003d10| 20 74 69 6d 65 20 61 6e | 64 20 74 72 61 6e 73 66 | time an|d transf|
|00003d20| 65 72 73 20 74 68 65 6d | 20 74 6f 20 74 68 65 20 |ers them| to the |
|00003d30| 74 61 70 65 2e 0a 54 68 | 65 20 6e 65 77 6c 69 6e |tape..Th|e newlin|
|00003d40| 65 20 63 68 61 72 61 63 | 74 65 72 20 61 74 20 74 |e charac|ter at t|
|00003d50| 68 65 20 65 6e 64 20 6f | 66 20 65 61 63 68 20 6c |he end o|f each l|
|00003d60| 69 6e 65 20 69 73 20 72 | 65 6d 6f 76 65 64 2c 20 |ine is r|emoved, |
|00003d70| 61 6e 64 20 74 68 65 0a | 66 69 6c 65 20 69 73 20 |and the.|file is |
|00003d80| 77 72 69 74 74 65 6e 20 | 69 6e 20 61 20 76 61 72 |written |in a var|
|00003d90| 69 61 62 6c 65 2d 6c 65 | 6e 67 74 68 20 72 65 63 |iable-le|ngth rec|
|00003da0| 6f 72 64 20 66 6f 72 6d | 61 74 2e 20 20 0a 56 61 |ord form|at. .Va|
|00003db0| 72 69 61 62 6c 65 2d 66 | 6f 72 6d 61 74 20 66 69 |riable-f|ormat fi|
|00003dc0| 6c 65 73 20 68 61 76 65 | 20 74 68 65 20 6c 65 6e |les have| the len|
|00003dd0| 67 74 68 20 6f 66 20 74 | 68 65 20 6c 6f 6e 67 65 |gth of t|he longe|
|00003de0| 73 74 20 72 65 63 6f 72 | 64 0a 73 70 65 63 69 66 |st recor|d.specif|
|00003df0| 69 65 64 20 69 6e 20 61 | 20 66 69 6c 65 20 68 65 |ied in a| file he|
|00003e00| 61 64 65 72 2e 0a 54 68 | 65 72 65 66 6f 72 65 2c |ader..Th|erefore,|
|00003e10| 0a 2e 49 20 61 6e 73 69 | 74 61 70 65 0a 77 69 6c |..I ansi|tape.wil|
|00003e20| 6c 20 72 65 61 64 20 65 | 61 63 68 20 69 6e 70 75 |l read e|ach inpu|
|00003e30| 74 20 66 69 6c 65 20 66 | 72 6f 6d 20 64 69 73 6b |t file f|rom disk|
|00003e40| 20 62 65 66 6f 72 65 20 | 69 74 20 67 6f 65 73 20 | before |it goes |
|00003e50| 6f 6e 20 74 6f 20 74 61 | 70 65 2c 0a 74 6f 20 64 |on to ta|pe,.to d|
|00003e60| 65 74 65 72 6d 69 6e 65 | 20 74 68 65 20 6d 61 78 |etermine| the max|
|00003e70| 69 6d 75 6d 20 72 65 63 | 6f 72 64 20 73 69 7a 65 |imum rec|ord size|
|00003e80| 2e 20 20 54 68 65 20 72 | 65 61 64 20 69 73 20 73 |. The r|ead is s|
|00003e90| 6b 69 70 70 65 64 20 69 | 66 0a 74 68 65 20 66 69 |kipped i|f.the fi|
|00003ea0| 6c 65 20 69 73 20 6d 6f | 72 65 20 74 68 61 6e 20 |le is mo|re than |
|00003eb0| 31 30 30 2c 30 30 30 20 | 62 79 74 65 73 20 6c 6f |100,000 |bytes lo|
|00003ec0| 6e 67 2e 0a 54 68 65 20 | 64 65 66 61 75 6c 74 20 |ng..The |default |
|00003ed0| 63 61 72 72 69 61 67 65 | 20 63 6f 6e 74 72 6f 6c |carriage| control|
|00003ee0| 20 28 69 6d 70 6c 69 65 | 64 29 0a 69 6e 73 74 72 | (implie|d).instr|
|00003ef0| 75 63 74 73 20 74 68 65 | 20 6f 74 68 65 72 20 68 |ucts the| other h|
|00003f00| 6f 73 74 20 74 6f 20 72 | 65 73 74 6f 72 65 20 74 |ost to r|estore t|
|00003f10| 68 65 0a 6e 65 77 6c 69 | 6e 65 20 63 68 61 72 61 |he.newli|ne chara|
|00003f20| 63 74 65 72 20 62 65 66 | 6f 72 65 20 70 72 69 6e |cter bef|ore prin|
|00003f30| 74 69 6e 67 20 74 68 65 | 20 72 65 63 6f 72 64 2e |ting the| record.|
|00003f40| 0a 2e 50 50 0a 49 66 20 | 5c 66 49 61 6e 73 69 74 |..PP.If |\fIansit|
|00003f50| 61 70 65 5c 66 50 20 74 | 68 69 6e 6b 73 20 74 68 |ape\fP t|hinks th|
|00003f60| 61 74 20 74 68 65 20 69 | 6e 70 75 74 20 66 69 6c |at the i|nput fil|
|00003f70| 65 20 69 73 20 61 20 55 | 6e 69 78 20 74 65 78 74 |e is a U|nix text|
|00003f80| 20 66 69 6c 65 0a 28 46 | 6f 72 74 72 61 6e 20 6f | file.(F|ortran o|
|00003f90| 72 20 69 6d 70 6c 69 65 | 64 20 63 61 72 72 69 61 |r implie|d carria|
|00003fa0| 67 65 20 63 6f 6e 74 72 | 6f 6c 29 2c 20 69 74 20 |ge contr|ol), it |
|00003fb0| 77 69 6c 6c 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |will aut|omatical|
|00003fc0| 6c 79 20 73 74 72 69 70 | 20 74 68 65 0a 74 68 65 |ly strip| the.the|
|00003fd0| 20 55 6e 69 78 20 6e 65 | 77 6c 69 6e 65 20 66 72 | Unix ne|wline fr|
|00003fe0| 6f 6d 20 74 68 65 20 65 | 6e 64 20 6f 66 20 65 61 |om the e|nd of ea|
|00003ff0| 63 68 20 72 65 63 6f 72 | 64 2e 20 20 4e 6f 20 73 |ch recor|d. No s|
|00004000| 74 72 69 70 20 69 73 20 | 64 6f 6e 65 20 77 69 74 |trip is |done wit|
|00004010| 68 0a 65 6d 62 65 64 64 | 65 64 20 63 61 72 72 69 |h.embedd|ed carri|
|00004020| 61 67 65 20 63 6f 6e 74 | 72 6f 6c 20 66 69 6c 65 |age cont|rol file|
|00004030| 73 2c 20 6f 72 20 77 69 | 74 68 20 61 6e 79 20 66 |s, or wi|th any f|
|00004040| 69 6c 65 20 75 73 69 6e | 67 20 61 20 66 69 78 65 |ile usin|g a fixe|
|00004050| 64 2d 6c 65 6e 67 74 68 | 0a 72 65 63 6f 72 64 20 |d-length|.record |
|00004060| 66 6f 72 6d 61 74 2e 0a | 2e 50 50 0a 46 6f 72 20 |format..|.PP.For |
|00004070| 62 69 6e 61 72 79 20 66 | 69 6c 65 73 2c 20 66 69 |binary f|iles, fi|
|00004080| 78 65 64 2d 6c 65 6e 67 | 74 68 20 72 65 63 6f 72 |xed-leng|th recor|
|00004090| 64 73 20 73 68 6f 75 6c | 64 20 62 65 20 75 73 65 |ds shoul|d be use|
|000040a0| 64 2e 20 20 56 41 58 2f | 56 4d 53 20 6e 6f 72 6d |d. VAX/|VMS norm|
|000040b0| 61 6c 6c 79 0a 75 73 65 | 73 20 61 20 72 65 63 6f |ally.use|s a reco|
|000040c0| 72 64 20 6c 65 6e 67 74 | 68 20 6f 66 20 35 31 32 |rd lengt|h of 512|
|000040d0| 20 62 79 74 65 73 20 66 | 6f 72 20 74 68 69 6e 67 | bytes f|or thing|
|000040e0| 73 20 6c 69 6b 65 20 64 | 69 72 65 63 74 6f 72 69 |s like d|irectori|
|000040f0| 65 73 20 61 6e 64 0a 65 | 78 65 63 75 74 61 62 6c |es and.e|xecutabl|
|00004100| 65 20 66 69 6c 65 73 2c | 20 62 75 74 20 64 61 74 |e files,| but dat|
|00004110| 61 20 66 69 6c 65 73 20 | 6d 61 79 20 68 61 76 65 |a files |may have|
|00004120| 20 61 6e 79 20 72 65 63 | 6f 72 64 20 6c 65 6e 67 | any rec|ord leng|
|00004130| 74 68 2e 0a 42 69 6e 61 | 72 79 20 66 69 6c 65 73 |th..Bina|ry files|
|00004140| 20 73 68 6f 75 6c 64 20 | 62 65 20 66 6c 61 67 67 | should |be flagg|
|00004150| 65 64 20 66 6f 72 20 65 | 6d 62 65 64 64 65 64 20 |ed for e|mbedded |
|00004160| 28 5c 66 49 72 66 3d 65 | 5c 66 50 29 20 63 61 72 |(\fIrf=e|\fP) car|
|00004170| 72 69 61 67 65 0a 63 6f | 6e 74 72 6f 6c 2e 0a 2e |riage.co|ntrol...|
|00004180| 73 70 0a 2e 53 48 20 22 | 52 65 61 64 69 6e 67 20 |sp..SH "|Reading |
|00004190| 41 4e 53 49 20 54 61 70 | 65 73 22 0a 2e 50 50 0a |ANSI Tap|es"..PP.|
|000041a0| 57 68 65 6e 20 72 65 61 | 64 69 6e 67 2c 20 74 68 |When rea|ding, th|
|000041b0| 65 20 69 6e 70 75 74 20 | 66 69 6c 65 20 6c 69 73 |e input |file lis|
|000041c0| 74 20 69 73 20 70 72 65 | 73 75 6d 65 64 20 74 6f |t is pre|sumed to|
|000041d0| 20 62 65 20 74 68 65 20 | 6e 61 6d 65 73 0a 6f 66 | be the |names.of|
|000041e0| 20 66 69 6c 65 73 20 74 | 6f 20 62 65 20 65 78 74 | files t|o be ext|
|000041f0| 72 61 63 74 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |racted f|rom the |
|00004200| 74 61 70 65 2e 20 20 54 | 68 65 20 73 68 65 6c 6c |tape. T|he shell|
|00004210| 20 77 69 6c 64 63 61 72 | 64 0a 63 68 61 72 61 63 | wildcar|d.charac|
|00004220| 74 65 72 73 20 61 73 74 | 65 72 69 73 6b 20 28 2a |ters ast|erisk (*|
|00004230| 29 20 61 6e 64 20 71 75 | 65 73 74 69 6f 6e 2d 6d |) and qu|estion-m|
|00004240| 61 72 6b 20 28 3f 29 20 | 6d 61 79 20 62 65 20 75 |ark (?) |may be u|
|00004250| 73 65 64 2e 0a 4f 66 20 | 63 6f 75 72 73 65 2c 20 |sed..Of |course, |
|00004260| 74 68 65 79 20 6d 75 73 | 74 20 62 65 20 71 75 6f |they mus|t be quo|
|00004270| 74 65 64 20 74 6f 20 70 | 72 65 76 65 6e 74 20 74 |ted to p|revent t|
|00004280| 68 65 20 73 68 65 6c 6c | 20 66 72 6f 6d 0a 69 6e |he shell| from.in|
|00004290| 74 65 72 70 72 65 74 69 | 6e 67 20 74 68 65 6d 20 |terpreti|ng them |
|000042a0| 62 65 66 6f 72 65 0a 2e | 49 20 61 6e 73 69 74 61 |before..|I ansita|
|000042b0| 70 65 0a 73 65 65 73 20 | 74 68 65 6d 2e 0a 2e 50 |pe.sees |them...P|
|000042c0| 50 0a 4e 6f 6e 65 20 6f | 66 20 74 68 65 20 6f 70 |P.None o|f the op|
|000042d0| 74 69 6f 6e 73 20 66 6f | 72 20 72 65 63 6f 72 64 |tions fo|r record|
|000042e0| 20 66 6f 72 6d 61 74 20 | 6f 72 20 63 61 72 72 69 | format |or carri|
|000042f0| 61 67 65 20 63 6f 6e 74 | 72 6f 6c 20 6e 65 65 64 |age cont|rol need|
|00004300| 0a 62 65 20 73 70 65 63 | 69 66 69 65 64 20 77 68 |.be spec|ified wh|
|00004310| 65 6e 20 72 65 61 64 69 | 6e 67 20 66 69 6c 65 73 |en readi|ng files|
|00004320| 2e 0a 2e 49 20 41 6e 73 | 69 74 61 70 65 0a 77 69 |...I Ans|itape.wi|
|00004330| 6c 6c 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ll autom|atically|
|00004340| 20 70 69 63 6b 20 75 70 | 20 74 68 69 73 20 69 6e | pick up| this in|
|00004350| 66 6f 72 6d 61 74 69 6f | 6e 20 66 72 6f 6d 20 74 |formatio|n from t|
|00004360| 68 65 20 68 65 61 64 65 | 72 0a 72 65 63 6f 72 64 |he heade|r.record|
|00004370| 73 20 6f 6e 20 74 68 65 | 20 74 61 70 65 2c 20 61 |s on the| tape, a|
|00004380| 6e 64 20 64 6f 20 74 68 | 65 20 72 69 67 68 74 20 |nd do th|e right |
|00004390| 74 68 69 6e 67 2e 20 20 | 49 66 20 79 6f 75 20 63 |thing. |If you c|
|000043a0| 61 6e 27 74 20 67 65 74 | 0a 6a 75 73 74 20 77 68 |an't get|.just wh|
|000043b0| 61 74 20 79 6f 75 20 77 | 61 6e 74 20 66 72 6f 6d |at you w|ant from|
|000043c0| 0a 2e 49 52 20 61 6e 73 | 69 74 61 70 65 20 2c 0a |..IR ans|itape ,.|
|000043d0| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 66 69 |the resu|lting fi|
|000043e0| 6c 65 73 20 6d 61 79 20 | 62 65 20 72 75 6e 20 74 |les may |be run t|
|000043f0| 68 72 6f 75 67 68 20 0a | 2e 49 52 20 64 64 28 31 |hrough .|.IR dd(1|
|00004400| 29 20 2e 0a 2e 73 70 0a | 2e 53 48 20 22 46 55 4e |) ...sp.|.SH "FUN|
|00004410| 43 54 49 4f 4e 20 4c 45 | 54 54 45 52 53 22 0a 2e |CTION LE|TTERS"..|
|00004420| 50 50 0a 54 68 65 73 65 | 20 66 75 6e 63 74 69 6f |PP.These| functio|
|00004430| 6e 20 6c 65 74 74 65 72 | 73 20 64 65 73 63 72 69 |n letter|s descri|
|00004440| 62 65 20 74 68 65 20 6f | 76 65 72 61 6c 6c 20 6f |be the o|verall o|
|00004450| 70 65 72 61 74 69 6f 6e | 20 64 65 73 69 72 65 64 |peration| desired|
|00004460| 2e 0a 4f 6e 65 20 6f 66 | 20 74 68 65 6d 20 6d 75 |..One of| them mu|
|00004470| 73 74 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |st be sp|ecified |
|00004480| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 61 72 67 |in the f|irst arg|
|00004490| 75 6d 65 6e 74 20 74 6f | 0a 2e 49 52 20 61 6e 73 |ument to|..IR ans|
|000044a0| 69 74 61 70 65 20 2e 0a | 46 6f 72 20 6c 65 78 69 |itape ..|For lexi|
|000044b0| 63 61 6c 6c 79 20 72 69 | 67 6f 72 6f 75 73 20 55 |cally ri|gorous U|
|000044c0| 6e 69 78 20 66 61 6e 73 | 2c 20 61 20 6d 69 6e 75 |nix fans|, a minu|
|000044d0| 73 20 73 69 67 6e 20 28 | 2d 29 20 69 73 20 61 6c |s sign (|-) is al|
|000044e0| 6c 6f 77 65 64 2c 0a 62 | 75 74 20 6f 70 74 69 6f |lowed,.b|ut optio|
|000044f0| 6e 61 6c 2c 20 74 6f 20 | 69 6e 74 72 6f 64 75 63 |nal, to |introduc|
|00004500| 65 20 74 68 65 20 66 69 | 72 73 74 20 6b 65 79 77 |e the fi|rst keyw|
|00004510| 6f 72 64 20 6f 70 74 69 | 6f 6e 20 73 65 74 2e 0a |ord opti|on set..|
|00004520| 2e 54 50 20 36 0a 2e 49 | 20 72 0a 57 72 69 74 65 |.TP 6..I| r.Write|
|00004530| 20 74 68 65 20 6e 61 6d | 65 64 20 66 69 6c 65 73 | the nam|ed files|
|00004540| 20 6f 6e 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | on the |end of t|
|00004550| 68 65 20 74 61 70 65 2e | 20 20 54 68 69 73 20 72 |he tape.| This r|
|00004560| 65 71 75 69 72 65 73 20 | 74 68 61 74 0a 74 68 65 |equires |that.the|
|00004570| 20 74 61 70 65 20 68 61 | 76 65 20 62 65 65 6e 20 | tape ha|ve been |
|00004580| 70 72 65 76 69 6f 75 73 | 6c 79 20 69 6e 69 74 69 |previous|ly initi|
|00004590| 61 6c 69 7a 65 64 20 77 | 69 74 68 20 61 6e 20 41 |alized w|ith an A|
|000045a0| 4e 53 49 20 76 6f 6c 75 | 6d 65 20 68 65 61 64 65 |NSI volu|me heade|
|000045b0| 72 2e 0a 2e 54 50 20 36 | 0a 2e 49 20 63 0a 43 72 |r...TP 6|..I c.Cr|
|000045c0| 65 61 74 65 20 61 20 6e | 65 77 20 6d 61 67 74 61 |eate a n|ew magta|
|000045d0| 70 65 2e 20 20 54 68 65 | 20 74 61 70 65 20 69 73 |pe. The| tape is|
|000045e0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 20 77 69 74 | initial|ized wit|
|000045f0| 68 20 61 20 6e 65 77 20 | 41 4e 53 49 20 76 6f 6c |h a new |ANSI vol|
|00004600| 75 6d 65 20 68 65 61 64 | 65 72 2e 0a 41 6c 6c 20 |ume head|er..All |
|00004610| 66 69 6c 65 73 20 70 72 | 65 76 69 6f 75 73 6c 79 |files pr|eviously|
|00004620| 20 6f 6e 20 74 68 65 20 | 74 61 70 65 20 61 72 65 | on the |tape are|
|00004630| 20 64 65 73 74 72 6f 79 | 65 64 2e 0a 54 68 69 73 | destroy|ed..This|
|00004640| 20 6f 70 74 69 6f 6e 20 | 69 6d 70 6c 69 65 73 20 | option |implies |
|00004650| 5c 66 49 72 5c 66 50 2e | 0a 2e 54 50 20 36 0a 2e |\fIr\fP.|..TP 6..|
|00004660| 49 20 78 0a 45 78 74 72 | 61 63 74 20 61 6c 6c 20 |I x.Extr|act all |
|00004670| 66 69 6c 65 73 20 66 72 | 6f 6d 20 74 68 65 20 74 |files fr|om the t|
|00004680| 61 70 65 2e 20 20 46 69 | 6c 65 73 20 61 72 65 20 |ape. Fi|les are |
|00004690| 70 6c 61 63 65 64 20 69 | 6e 20 74 68 65 20 63 75 |placed i|n the cu|
|000046a0| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2e |rrent di|rectory.|
|000046b0| 0a 50 72 6f 74 65 63 74 | 69 6f 6e 20 69 73 20 72 |.Protect|ion is r|
|000046c0| 2f 77 20 74 6f 20 65 76 | 65 72 79 6f 6e 65 2c 20 |/w to ev|eryone, |
|000046d0| 6d 6f 64 69 66 69 65 64 | 20 62 79 20 74 68 65 20 |modified| by the |
|000046e0| 63 75 72 72 65 6e 74 20 | 5c 66 49 75 6d 61 73 6b |current |\fIumask|
|000046f0| 28 32 29 5c 66 50 2e 0a | 2e 54 50 20 36 0a 2e 49 |(2)\fP..|.TP 6..I|
|00004700| 20 74 0a 4c 69 73 74 20 | 61 6c 6c 20 6f 66 20 74 | t.List |all of t|
|00004710| 68 65 20 6e 61 6d 65 73 | 20 6f 6e 20 74 68 65 20 |he names| on the |
|00004720| 74 61 70 65 2e 0a 2e 73 | 70 0a 2e 53 48 20 22 4d |tape...s|p..SH "M|
|00004730| 4f 44 49 46 49 45 52 20 | 4b 45 59 20 4c 45 54 54 |ODIFIER |KEY LETT|
|00004740| 45 52 53 22 0a 2e 50 50 | 0a 54 68 65 73 65 20 6b |ERS"..PP|.These k|
|00004750| 65 79 20 6c 65 74 74 65 | 72 73 20 61 72 65 20 70 |ey lette|rs are p|
|00004760| 61 72 74 20 6f 66 20 74 | 68 65 20 66 69 72 73 74 |art of t|he first|
|00004770| 20 61 72 67 75 6d 65 6e | 74 20 74 6f 20 0a 2e 49 | argumen|t to ..I|
|00004780| 52 20 61 6e 73 69 74 61 | 70 65 20 2e 0a 2e 54 50 |R ansita|pe ...TP|
|00004790| 20 36 0a 2e 49 20 76 0a | 4e 6f 72 6d 61 6c 6c 79 | 6..I v.|Normally|
|000047a0| 20 5c 66 49 61 6e 73 69 | 74 61 70 65 5c 66 50 20 | \fIansi|tape\fP |
|000047b0| 64 6f 65 73 20 69 74 73 | 20 77 6f 72 6b 20 73 69 |does its| work si|
|000047c0| 6c 65 6e 74 6c 79 3b 20 | 74 68 65 20 5c 66 49 76 |lently; |the \fIv|
|000047d0| 5c 66 50 20 28 76 65 72 | 62 6f 73 65 29 20 6f 70 |\fP (ver|bose) op|
|000047e0| 74 69 6f 6e 20 0a 64 69 | 73 70 6c 61 79 73 20 74 |tion .di|splays t|
|000047f0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 65 61 63 68 20 |he name |of each |
|00004800| 66 69 6c 65 20 5c 66 49 | 61 6e 73 69 74 61 70 65 |file \fI|ansitape|
|00004810| 5c 66 50 20 74 72 65 61 | 74 73 2c 20 70 72 65 63 |\fP trea|ts, prec|
|00004820| 65 64 65 64 20 62 79 20 | 74 68 65 20 66 75 6e 63 |eded by |the func|
|00004830| 74 69 6f 6e 0a 6c 65 74 | 74 65 72 2e 20 20 49 74 |tion.let|ter. It|
|00004840| 20 61 6c 73 6f 20 64 69 | 73 70 6c 61 79 73 20 74 | also di|splays t|
|00004850| 68 65 20 76 6f 6c 75 6d | 65 20 6e 61 6d 65 20 6f |he volum|e name o|
|00004860| 66 20 65 61 63 68 20 74 | 61 70 65 20 61 73 20 69 |f each t|ape as i|
|00004870| 74 20 69 73 20 6d 6f 75 | 6e 74 65 64 2e 0a 57 68 |t is mou|nted..Wh|
|00004880| 65 6e 20 75 73 65 64 20 | 77 69 74 68 20 74 68 65 |en used |with the|
|00004890| 20 5c 66 49 74 5c 66 50 | 20 6f 70 74 69 6f 6e 2c | \fIt\fP| option,|
|000048a0| 0a 5c 66 49 61 6e 73 69 | 74 61 70 65 5c 66 50 20 |.\fIansi|tape\fP |
|000048b0| 64 69 73 70 6c 61 79 73 | 20 74 68 65 20 6e 75 6d |displays| the num|
|000048c0| 62 65 72 20 6f 66 20 74 | 61 70 65 20 62 6c 6f 63 |ber of t|ape bloc|
|000048d0| 6b 73 0a 75 73 65 64 20 | 62 79 20 65 61 63 68 20 |ks.used |by each |
|000048e0| 66 69 6c 65 2c 20 74 68 | 65 20 72 65 63 6f 72 64 |file, th|e record|
|000048f0| 20 66 6f 72 6d 61 74 2c | 20 61 6e 64 20 74 68 65 | format,| and the|
|00004900| 20 63 61 72 72 69 61 67 | 65 20 63 6f 6e 74 72 6f | carriag|e contro|
|00004910| 6c 20 6f 70 74 69 6f 6e | 2e 0a 2e 54 50 20 36 0a |l option|...TP 6.|
|00004920| 2e 49 20 71 0a 51 75 65 | 72 79 20 62 65 66 6f 72 |.I q.Que|ry befor|
|00004930| 65 20 77 72 69 74 69 6e | 67 20 61 6e 79 74 68 69 |e writin|g anythi|
|00004940| 6e 67 2e 20 20 4f 6e 20 | 77 72 69 74 65 20 28 63 |ng. On |write (c|
|00004950| 20 6f 72 20 72 20 6f 70 | 74 69 6f 6e 73 29 2c 20 | or r op|tions), |
|00004960| 74 68 69 73 0a 63 61 75 | 73 65 73 20 5c 66 49 61 |this.cau|ses \fIa|
|00004970| 6e 73 69 74 61 70 65 5c | 66 50 20 74 6f 20 61 73 |nsitape\|fP to as|
|00004980| 6b 20 62 65 66 6f 72 65 | 20 77 72 69 74 69 6e 67 |k before| writing|
|00004990| 20 74 6f 20 74 68 65 20 | 74 61 70 65 2e 20 20 4f | to the |tape. O|
|000049a0| 6e 20 65 78 74 72 61 63 | 74 0a 6f 70 65 72 61 74 |n extrac|t.operat|
|000049b0| 69 6f 6e 73 2c 20 5c 66 | 49 61 6e 73 69 74 61 70 |ions, \f|Iansitap|
|000049c0| 65 5c 66 50 20 64 69 73 | 70 6c 61 79 73 20 74 68 |e\fP dis|plays th|
|000049d0| 65 0a 55 6e 69 78 20 70 | 61 74 68 6e 61 6d 65 2c |e.Unix p|athname,|
|000049e0| 20 61 6e 64 20 61 73 6b | 73 20 69 66 20 69 74 20 | and ask|s if it |
|000049f0| 73 68 6f 75 6c 64 20 65 | 78 74 72 61 63 74 20 74 |should e|xtract t|
|00004a00| 68 65 20 66 69 6c 65 2e | 20 20 41 6e 79 20 72 65 |he file.| Any re|
|00004a10| 73 70 6f 6e 73 65 0a 73 | 74 61 72 74 69 6e 67 20 |sponse.s|tarting |
|00004a20| 77 69 74 68 20 61 20 27 | 79 27 20 6f 72 20 27 59 |with a '|y' or 'Y|
|00004a30| 27 20 6d 65 61 6e 73 20 | 79 65 73 2c 20 61 6e 79 |' means |yes, any|
|00004a40| 20 6f 74 68 65 72 20 72 | 65 73 70 6f 6e 73 65 20 | other r|esponse |
|00004a50| 28 69 6e 63 6c 75 64 69 | 6e 67 0a 61 6e 20 65 6d |(includi|ng.an em|
|00004a60| 70 74 79 20 6c 69 6e 65 | 29 20 6d 65 61 6e 73 20 |pty line|) means |
|00004a70| 6e 6f 2e 0a 2e 54 50 20 | 36 0a 2e 49 20 66 0a 46 |no...TP |6..I f.F|
|00004a80| 69 6c 65 20 49 2f 4f 20 | 69 73 20 64 6f 6e 65 20 |ile I/O |is done |
|00004a90| 74 6f 20 73 74 61 6e 64 | 61 72 64 20 69 2f 6f 20 |to stand|ard i/o |
|00004aa0| 69 6e 73 74 65 61 64 2e | 20 20 46 6f 72 20 65 78 |instead.| For ex|
|00004ab0| 61 6d 70 6c 65 2c 20 77 | 68 65 6e 20 77 72 69 74 |ample, w|hen writ|
|00004ac0| 69 6e 67 20 61 0a 74 61 | 70 65 20 66 69 6c 65 20 |ing a.ta|pe file |
|00004ad0| 74 68 61 74 20 69 73 20 | 74 6f 20 63 6f 6e 74 61 |that is |to conta|
|00004ae0| 69 6e 20 61 20 6c 69 6e | 74 20 6c 69 73 74 69 6e |in a lin|t listin|
|00004af0| 67 2c 20 77 65 20 63 6f | 75 6c 64 20 73 70 65 63 |g, we co|uld spec|
|00004b00| 69 66 79 0a 2e 73 70 0a | 09 6c 69 6e 74 20 78 79 |ify..sp.|.lint xy|
|00004b10| 7a 2e 63 20 7c 20 61 6e | 73 69 74 61 70 65 20 72 |z.c | an|sitape r|
|00004b20| 66 20 78 79 7a 2e 6c 69 | 6e 74 0a 2e 73 70 0a 69 |f xyz.li|nt..sp.i|
|00004b30| 6e 73 74 65 61 64 20 6f | 66 0a 2e 73 70 0a 09 6c |nstead o|f..sp..l|
|00004b40| 69 6e 74 20 78 79 7a 2e | 63 20 3e 20 2f 74 6d 70 |int xyz.|c > /tmp|
|00004b50| 2f 78 79 7a 2e 6c 69 6e | 74 0a 2e 62 72 0a 09 61 |/xyz.lin|t..br..a|
|00004b60| 6e 73 69 74 61 70 65 20 | 72 20 2f 74 6d 70 2f 78 |nsitape |r /tmp/x|
|00004b70| 79 7a 2e 6c 69 6e 74 0a | 2e 62 72 0a 09 72 6d 20 |yz.lint.|.br..rm |
|00004b80| 2f 74 6d 70 2f 78 79 7a | 2e 6c 69 6e 74 0a 2e 73 |/tmp/xyz|.lint..s|
|00004b90| 70 0a 57 68 65 6e 20 72 | 65 61 64 69 6e 67 2c 20 |p.When r|eading, |
|00004ba0| 74 68 69 73 20 6f 70 74 | 69 6f 6e 20 63 61 75 73 |this opt|ion caus|
|00004bb0| 65 73 20 74 68 65 20 65 | 78 74 72 61 63 74 65 64 |es the e|xtracted|
|00004bc0| 20 66 69 6c 65 73 20 74 | 6f 20 62 65 20 73 65 6e | files t|o be sen|
|00004bd0| 74 20 74 6f 0a 73 74 64 | 6f 75 74 20 69 6e 73 74 |t to.std|out inst|
|00004be0| 65 61 64 20 6f 66 20 61 | 20 64 69 73 6b 20 66 69 |ead of a| disk fi|
|00004bf0| 6c 65 2e 0a 2e 54 50 20 | 36 0a 2e 49 20 61 0a 54 |le...TP |6..I a.T|
|00004c00| 68 65 20 74 61 70 65 20 | 73 68 6f 75 6c 64 20 62 |he tape |should b|
|00004c10| 65 20 72 65 61 64 20 6f | 72 20 77 72 69 74 74 65 |e read o|r writte|
|00004c20| 6e 20 77 69 74 68 20 74 | 68 65 20 41 53 43 49 49 |n with t|he ASCII|
|00004c30| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 2e 20 | charact|er set. |
|00004c40| 20 54 68 69 73 0a 69 73 | 20 74 68 65 20 64 65 66 | This.is| the def|
|00004c50| 61 75 6c 74 2e 0a 2e 54 | 50 20 36 0a 2e 49 20 65 |ault...T|P 6..I e|
|00004c60| 0a 54 68 65 20 74 61 70 | 65 20 73 68 6f 75 6c 64 |.The tap|e should|
|00004c70| 20 62 65 20 77 72 69 74 | 74 65 6e 20 77 69 74 68 | be writ|ten with|
|00004c80| 20 74 68 65 20 45 42 43 | 44 49 43 20 63 68 61 72 | the EBC|DIC char|
|00004c90| 61 63 74 65 72 20 73 65 | 74 2e 20 20 54 68 65 0a |acter se|t. The.|
|00004ca0| 6d 61 70 70 69 6e 67 20 | 69 73 20 74 68 65 20 73 |mapping |is the s|
|00004cb0| 61 6d 65 20 6f 6e 65 20 | 75 73 65 64 20 62 79 20 |ame one |used by |
|00004cc0| 74 68 65 20 0a 2e 49 20 | 64 64 28 31 29 0a 70 72 |the ..I |dd(1).pr|
|00004cd0| 6f 67 72 61 6d 20 77 69 | 74 68 0a 2e 49 52 20 63 |ogram wi|th..IR c|
|00004ce0| 6f 6e 76 3d 65 62 63 64 | 69 63 20 2e 0a 54 68 69 |onv=ebcd|ic ..Thi|
|00004cf0| 73 20 6f 70 74 69 6f 6e | 20 69 73 20 61 75 74 6f |s option| is auto|
|00004d00| 6d 61 74 69 63 61 6c 6c | 79 20 65 6e 61 62 6c 65 |maticall|y enable|
|00004d10| 64 20 69 66 20 49 42 4d | 2d 66 6f 72 6d 61 74 20 |d if IBM|-format |
|00004d20| 6c 61 62 65 6c 73 20 61 | 72 65 20 73 65 6c 65 63 |labels a|re selec|
|00004d30| 74 65 64 2e 0a 2e 54 50 | 20 36 0a 2e 49 20 69 0a |ted...TP| 6..I i.|
|00004d40| 55 73 65 20 49 42 4d 2d | 66 6f 72 6d 61 74 20 74 |Use IBM-|format t|
|00004d50| 61 70 65 20 6c 61 62 65 | 6c 73 2e 20 20 54 68 65 |ape labe|ls. The|
|00004d60| 20 49 42 4d 20 66 6f 72 | 6d 61 74 20 69 73 20 76 | IBM for|mat is v|
|00004d70| 65 72 79 20 73 69 6d 69 | 6c 61 72 2c 20 62 75 74 |ery simi|lar, but|
|00004d80| 0a 6e 6f 74 20 69 64 65 | 6e 74 69 63 61 6c 2c 20 |.not ide|ntical, |
|00004d90| 74 6f 20 74 68 65 20 41 | 4e 53 49 20 73 74 61 6e |to the A|NSI stan|
|00004da0| 64 61 72 64 2e 20 20 54 | 68 65 20 6d 61 6a 6f 72 |dard. T|he major|
|00004db0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 69 73 20 74 | differe|nce is t|
|00004dc0| 68 61 74 0a 74 68 65 20 | 74 61 70 65 20 77 69 6c |hat.the |tape wil|
|00004dd0| 6c 20 63 6f 6e 74 61 69 | 6e 20 6e 6f 20 48 44 52 |l contai|n no HDR|
|00004de0| 33 20 6f 72 20 48 44 52 | 34 20 72 65 63 6f 72 64 |3 or HDR|4 record|
|00004df0| 73 2c 20 74 68 75 73 20 | 72 65 73 74 72 69 63 74 |s, thus |restrict|
|00004e00| 69 6e 67 20 74 68 65 0a | 6e 61 6d 65 20 6f 66 20 |ing the.|name of |
|00004e10| 74 68 65 20 66 69 6c 65 | 73 20 6f 6e 20 74 68 65 |the file|s on the|
|00004e20| 20 74 61 70 65 20 74 6f | 20 31 37 20 63 68 61 72 | tape to| 17 char|
|00004e30| 61 63 74 65 72 73 2e 20 | 20 54 68 69 73 20 6f 70 |acters. | This op|
|00004e40| 74 69 6f 6e 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |tion aut|omatical|
|00004e50| 6c 79 0a 73 65 6c 65 63 | 74 73 20 74 68 65 20 45 |ly.selec|ts the E|
|00004e60| 42 43 44 49 43 20 63 68 | 61 72 61 63 74 65 72 20 |BCDIC ch|aracter |
|00004e70| 73 65 74 20 66 6f 72 20 | 6f 75 74 70 75 74 2e 20 |set for |output. |
|00004e80| 20 54 6f 20 6d 61 6b 65 | 20 61 6e 20 49 42 4d 2d | To make| an IBM-|
|00004e90| 66 6f 72 6d 61 74 0a 6c | 61 62 65 6c 20 6f 6e 20 |format.l|abel on |
|00004ea0| 61 20 74 61 70 65 20 75 | 73 69 6e 67 20 74 68 65 |a tape u|sing the|
|00004eb0| 20 41 53 43 49 49 20 63 | 68 61 72 61 63 74 65 72 | ASCII c|haracter|
|00004ec0| 20 73 65 74 20 28 77 68 | 79 3f 29 2c 20 75 73 65 | set (wh|y?), use|
|00004ed0| 20 74 68 65 0a 6f 70 74 | 69 6f 6e 20 73 65 71 75 | the.opt|ion sequ|
|00004ee0| 65 6e 63 65 0a 2e 49 52 | 20 69 61 20 2e 0a 2e 54 |ence..IR| ia ...T|
|00004ef0| 50 20 36 0a 2e 49 20 33 | 0a 44 6f 20 6e 6f 74 20 |P 6..I 3|.Do not |
|00004f00| 77 72 69 74 65 20 48 44 | 52 33 20 6f 72 20 48 44 |write HD|R3 or HD|
|00004f10| 52 34 20 6c 61 62 65 6c | 73 2e 20 20 54 68 65 20 |R4 label|s. The |
|00004f20| 48 44 52 33 20 6c 61 62 | 65 6c 20 69 73 20 72 65 |HDR3 lab|el is re|
|00004f30| 73 65 72 76 65 64 20 66 | 6f 72 0a 74 68 65 20 75 |served f|or.the u|
|00004f40| 73 65 20 6f 66 20 74 68 | 65 20 6f 70 65 72 61 74 |se of th|e operat|
|00004f50| 69 6e 67 20 73 79 73 74 | 65 6d 20 74 68 61 74 20 |ing syst|em that |
|00004f60| 63 72 65 61 74 65 64 20 | 74 68 65 20 66 69 6c 65 |created |the file|
|00004f70| 2e 20 20 48 44 52 34 20 | 69 73 20 66 6f 72 0a 6f |. HDR4 |is for.o|
|00004f80| 76 65 72 66 6c 6f 77 20 | 6f 66 20 66 69 6c 65 6e |verflow |of filen|
|00004f90| 61 6d 65 73 20 74 68 61 | 74 20 61 72 65 20 6c 6f |ames tha|t are lo|
|00004fa0| 6e 67 65 72 20 74 68 61 | 6e 20 74 68 65 20 31 37 |nger tha|n the 17|
|00004fb0| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 6c 6c 6f | charact|ers allo|
|00004fc0| 63 61 74 65 64 0a 69 6e | 20 74 68 65 20 48 44 52 |cated.in| the HDR|
|00004fd0| 31 20 6c 61 62 65 6c 2e | 20 20 4e 6f 74 20 61 6c |1 label.| Not al|
|00004fe0| 6c 20 73 79 73 74 65 6d | 73 20 70 72 6f 63 65 73 |l system|s proces|
|00004ff0| 73 20 74 68 65 73 65 20 | 6c 61 62 65 6c 73 20 63 |s these |labels c|
|00005000| 6f 72 72 65 63 74 6c 79 | 2c 20 6f 72 0a 65 76 65 |orrectly|, or.eve|
|00005010| 6e 20 69 67 6e 6f 72 65 | 20 74 68 65 6d 20 63 6f |n ignore| them co|
|00005020| 72 72 65 63 74 6c 79 2e | 20 20 54 68 69 73 20 73 |rrectly.| This s|
|00005030| 77 69 74 63 68 20 73 75 | 70 70 72 65 73 73 65 73 |witch su|ppresses|
|00005040| 20 74 68 65 20 48 44 52 | 33 20 61 6e 64 20 48 44 | the HDR|3 and HD|
|00005050| 52 34 0a 6c 61 62 65 6c | 73 20 77 68 65 6e 20 74 |R4.label|s when t|
|00005060| 68 65 20 74 61 70 65 20 | 69 73 20 74 6f 20 62 65 |he tape |is to be|
|00005070| 20 74 72 61 6e 73 66 65 | 72 65 64 20 74 6f 20 61 | transfe|red to a|
|00005080| 20 73 79 73 74 65 6d 20 | 74 68 61 74 20 77 6f 75 | system |that wou|
|00005090| 6c 64 0a 63 68 6f 6b 65 | 20 6f 6e 20 74 68 65 6d |ld.choke| on them|
|000050a0| 2e 0a 2e 53 48 20 22 46 | 55 4e 43 54 49 4f 4e 20 |...SH "F|UNCTION |
|000050b0| 4d 4f 44 49 46 49 45 52 | 53 22 0a 2e 50 50 0a 45 |MODIFIER|S"..PP.E|
|000050c0| 61 63 68 20 6f 66 20 74 | 68 65 73 65 20 6f 70 74 |ach of t|hese opt|
|000050d0| 69 6f 6e 73 20 73 68 6f | 75 6c 64 20 62 65 20 67 |ions sho|uld be g|
|000050e0| 69 76 65 6e 20 61 73 20 | 61 20 73 65 70 61 72 61 |iven as |a separa|
|000050f0| 74 65 20 61 72 67 75 6d | 65 6e 74 20 74 6f 0a 2e |te argum|ent to..|
|00005100| 49 52 20 61 6e 73 69 74 | 61 70 65 20 2e 0a 4d 75 |IR ansit|ape ..Mu|
|00005110| 6c 74 69 70 6c 65 20 6f | 70 74 69 6f 6e 73 20 6d |ltiple o|ptions m|
|00005120| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 2e |ay be sp|ecified.|
|00005130| 20 20 54 68 65 79 20 6d | 75 73 74 20 61 70 70 65 | They m|ust appe|
|00005140| 61 72 20 61 73 20 61 66 | 74 65 72 20 74 68 65 0a |ar as af|ter the.|
|00005150| 6b 65 79 2d 6c 65 74 74 | 65 72 20 6f 70 74 69 6f |key-lett|er optio|
|00005160| 6e 73 20 61 62 6f 76 65 | 2c 20 61 6e 64 20 62 65 |ns above|, and be|
|00005170| 66 6f 72 65 20 61 6e 79 | 20 66 69 6c 65 6e 61 6d |fore any| filenam|
|00005180| 65 20 61 72 67 75 6d 65 | 6e 74 73 2e 0a 2e 54 50 |e argume|nts...TP|
|00005190| 20 36 0a 2e 49 52 20 6d | 74 3d 20 64 65 76 69 63 | 6..IR m|t= devic|
|000051a0| 65 0a 53 65 6c 65 63 74 | 20 61 6e 20 61 6c 74 65 |e.Select| an alte|
|000051b0| 72 6e 61 74 65 20 64 72 | 69 76 65 20 6f 6e 20 77 |rnate dr|ive on w|
|000051c0| 68 69 63 68 20 74 68 65 | 20 74 61 70 65 20 69 73 |hich the| tape is|
|000051d0| 20 6d 6f 75 6e 74 65 64 | 2e 0a 54 68 65 20 64 65 | mounted|..The de|
|000051e0| 66 61 75 6c 74 20 69 73 | 20 0a 2e 49 52 20 2f 64 |fault is| ..IR /d|
|000051f0| 65 76 2f 72 6d 74 38 20 | 2e 0a 2e 54 50 20 36 0a |ev/rmt8 |...TP 6.|
|00005200| 2e 49 52 20 76 6f 3d 20 | 76 6f 6c 75 6d 65 2d 6e |.IR vo= |volume-n|
|00005210| 61 6d 65 0a 53 70 65 63 | 69 66 79 20 74 68 65 20 |ame.Spec|ify the |
|00005220| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 6f 75 74 70 |name of |the outp|
|00005230| 75 74 20 76 6f 6c 75 6d | 65 2e 20 20 4e 6f 72 6d |ut volum|e. Norm|
|00005240| 61 6c 6c 79 2c 20 74 68 | 69 73 20 64 65 66 61 75 |ally, th|is defau|
|00005250| 6c 74 73 0a 74 6f 20 74 | 68 65 20 66 69 72 73 74 |lts.to t|he first|
|00005260| 20 73 69 78 20 63 68 61 | 72 61 63 74 65 72 73 20 | six cha|racters |
|00005270| 6f 66 20 79 6f 75 72 20 | 6c 6f 67 69 6e 20 6e 61 |of your |login na|
|00005280| 6d 65 2e 20 20 54 68 65 | 20 73 74 72 69 6e 67 20 |me. The| string |
|00005290| 27 55 4e 49 58 27 0a 69 | 73 20 75 73 65 64 20 61 |'UNIX'.i|s used a|
|000052a0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 69 66 |s the de|fault if|
|000052b0| 20 5c 66 49 61 6e 73 69 | 74 61 70 65 5c 66 50 20 | \fIansi|tape\fP |
|000052c0| 63 61 6e 6e 6f 74 20 64 | 65 74 65 72 6d 69 6e 65 |cannot d|etermine|
|000052d0| 20 79 6f 75 72 20 6c 6f | 67 69 6e 20 6e 61 6d 65 | your lo|gin name|
|000052e0| 2e 0a 2e 54 50 20 36 0a | 2e 49 52 20 72 73 3d 20 |...TP 6.|.IR rs= |
|000052f0| 72 65 63 6f 72 64 73 69 | 7a 65 0a 53 70 65 63 69 |recordsi|ze.Speci|
|00005300| 66 79 20 74 68 65 20 6f | 75 74 70 75 74 20 72 65 |fy the o|utput re|
|00005310| 63 6f 72 64 73 69 7a 65 | 20 69 6e 20 62 79 74 65 |cordsize| in byte|
|00005320| 73 2e 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |s. This| is the |
|00005330| 6d 61 78 69 6d 75 6d 20 | 73 69 7a 65 0a 69 6e 20 |maximum |size.in |
|00005340| 74 68 65 20 63 61 73 65 | 20 6f 66 20 76 61 72 69 |the case| of vari|
|00005350| 61 62 6c 65 2d 66 6f 72 | 6d 61 74 20 66 69 6c 65 |able-for|mat file|
|00005360| 73 2e 20 20 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |s. This| option |
|00005370| 61 6c 73 6f 20 74 75 72 | 6e 73 20 6f 6e 0a 74 68 |also tur|ns on.th|
|00005380| 65 20 66 69 78 65 64 2d | 72 65 63 6f 72 64 2d 66 |e fixed-|record-f|
|00005390| 6f 72 6d 61 74 20 6f 70 | 74 69 6f 6e 2e 20 20 54 |ormat op|tion. T|
|000053a0| 68 75 73 2c 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |hus, if |you want|
|000053b0| 20 74 6f 20 68 61 76 65 | 20 76 61 72 69 61 62 6c | to have| variabl|
|000053c0| 65 0a 72 65 63 6f 72 64 | 20 73 69 7a 65 73 20 77 |e.record| sizes w|
|000053d0| 69 74 68 20 61 20 73 6d | 61 6c 6c 65 72 20 6d 61 |ith a sm|aller ma|
|000053e0| 78 69 6d 75 6d 2c 20 79 | 6f 75 20 6d 75 73 74 20 |ximum, y|ou must |
|000053f0| 73 70 65 63 69 66 79 0a | 2e 73 70 0a 2e 63 65 20 |specify.|.sp..ce |
|00005400| 0a 2e 49 52 20 72 73 3d | 20 22 72 65 63 6f 72 64 |..IR rs=| "record|
|00005410| 73 69 7a 65 20 22 20 72 | 66 3d 76 0a 2e 73 70 0a |size " r|f=v..sp.|
|00005420| 57 68 65 6e 20 74 68 65 | 20 72 65 63 6f 72 64 73 |When the| records|
|00005430| 69 7a 65 20 69 73 20 6d | 61 6e 75 61 6c 6c 79 20 |ize is m|anually |
|00005440| 67 69 76 65 6e 2c 20 0a | 2e 49 20 61 6e 73 69 74 |given, .|.I ansit|
|00005450| 61 70 65 0a 64 6f 65 73 | 20 6e 6f 74 20 72 65 61 |ape.does| not rea|
|00005460| 64 20 64 69 73 6b 20 66 | 69 6c 65 73 20 74 6f 20 |d disk f|iles to |
|00005470| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 6d 61 |determin|e the ma|
|00005480| 78 69 6d 75 6d 20 72 65 | 63 6f 72 64 20 6c 65 6e |ximum re|cord len|
|00005490| 67 74 68 2e 0a 2e 54 50 | 20 36 0a 2e 49 20 72 73 |gth...TP| 6..I rs|
|000054a0| 3d 72 0a 54 68 69 73 20 | 69 73 20 61 20 76 61 72 |=r.This |is a var|
|000054b0| 69 61 6e 74 20 6f 66 20 | 74 68 65 20 0a 2e 49 20 |iant of |the ..I |
|000054c0| 72 73 3d 0a 6f 70 74 69 | 6f 6e 2e 20 20 54 68 69 |rs=.opti|on. Thi|
|000054d0| 73 20 63 61 75 73 65 73 | 20 0a 2e 49 20 61 6e 73 |s causes| ..I ans|
|000054e0| 69 74 61 70 65 0a 74 6f | 20 72 65 61 64 20 61 6c |itape.to| read al|
|000054f0| 6c 20 64 69 73 6b 20 66 | 69 6c 65 73 20 66 6f 72 |l disk f|iles for|
|00005500| 20 72 65 63 6f 72 64 73 | 69 7a 65 2c 20 72 65 67 | records|ize, reg|
|00005510| 61 72 64 6c 65 73 73 20 | 6f 66 20 74 68 65 69 72 |ardless |of their|
|00005520| 20 73 69 7a 65 2e 0a 4e | 6f 72 6d 61 6c 6c 79 2c | size..N|ormally,|
|00005530| 20 66 69 6c 65 73 20 6c | 61 72 67 65 72 20 74 68 | files l|arger th|
|00005540| 61 6e 20 31 30 30 4b 20 | 62 79 74 65 73 20 61 72 |an 100K |bytes ar|
|00005550| 65 20 6e 6f 74 20 73 63 | 61 6e 6e 65 64 20 66 6f |e not sc|anned fo|
|00005560| 72 20 72 65 63 6f 72 64 | 73 69 7a 65 2e 0a 55 73 |r record|size..Us|
|00005570| 69 6e 67 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |ing this| option |
|00005580| 61 6c 73 6f 20 69 6d 70 | 6c 69 65 73 20 76 61 72 |also imp|lies var|
|00005590| 69 61 62 6c 65 2d 6c 65 | 6e 67 74 68 20 72 65 63 |iable-le|ngth rec|
|000055a0| 6f 72 64 73 2e 0a 2e 54 | 50 20 36 0a 2e 49 52 20 |ords...T|P 6..IR |
|000055b0| 62 73 3d 20 62 6c 6f 63 | 6b 73 69 7a 65 0a 53 70 |bs= bloc|ksize.Sp|
|000055c0| 65 63 69 66 79 20 74 68 | 65 20 6f 75 74 70 75 74 |ecify th|e output|
|000055d0| 20 62 6c 6f 63 6b 73 69 | 7a 65 2c 20 69 6e 20 62 | blocksi|ze, in b|
|000055e0| 79 74 65 73 2e 20 20 41 | 73 20 6d 61 6e 79 20 72 |ytes. A|s many r|
|000055f0| 65 63 6f 72 64 73 20 61 | 73 20 77 69 6c 6c 0a 66 |ecords a|s will.f|
|00005600| 69 74 20 61 72 65 20 63 | 72 61 6d 6d 65 64 20 69 |it are c|rammed i|
|00005610| 6e 74 6f 20 65 61 63 68 | 20 70 68 79 73 69 63 61 |nto each| physica|
|00005620| 6c 20 74 61 70 65 20 62 | 6c 6f 63 6b 2e 20 20 41 |l tape b|lock. A|
|00005630| 4e 53 49 20 73 74 61 6e | 64 61 72 64 73 0a 6c 69 |NSI stan|dards.li|
|00005640| 6d 69 74 20 74 68 69 73 | 20 74 6f 20 32 30 34 38 |mit this| to 2048|
|00005650| 20 62 79 74 65 73 20 28 | 74 68 65 20 64 65 66 61 | bytes (|the defa|
|00005660| 75 6c 74 29 2c 20 62 75 | 74 20 79 6f 75 20 6d 61 |ult), bu|t you ma|
|00005670| 79 20 73 70 65 63 69 66 | 79 20 6d 6f 72 65 0a 6f |y specif|y more.o|
|00005680| 72 20 6c 65 73 73 2e 20 | 20 42 65 20 61 64 76 69 |r less. | Be advi|
|00005690| 73 65 64 20 74 68 61 74 | 20 73 70 65 63 69 66 79 |sed that| specify|
|000056a0| 69 6e 67 20 6d 6f 72 65 | 20 6d 61 79 20 70 72 65 |ing more| may pre|
|000056b0| 76 65 6e 74 20 73 6f 6d | 65 0a 73 79 73 74 65 6d |vent som|e.system|
|000056c0| 73 20 66 72 6f 6d 20 72 | 65 61 64 69 6e 67 20 74 |s from r|eading t|
|000056d0| 68 65 20 74 61 70 65 2e | 0a 2e 54 50 20 36 0a 2e |he tape.|..TP 6..|
|000056e0| 49 20 72 66 3d 76 0a 52 | 65 63 6f 72 64 20 66 6f |I rf=v.R|ecord fo|
|000056f0| 72 6d 61 74 20 69 73 20 | 76 61 72 69 61 62 6c 65 |rmat is |variable|
|00005700| 2d 6c 65 6e 67 74 68 2e | 20 20 49 6e 20 6f 74 68 |-length.| In oth|
|00005710| 65 72 20 77 6f 72 64 73 | 2c 20 74 68 65 79 20 61 |er words|, they a|
|00005720| 72 65 0a 74 65 78 74 20 | 66 69 6c 65 73 2e 20 20 |re.text |files. |
|00005730| 54 68 69 73 20 69 73 20 | 74 68 65 20 64 65 66 61 |This is |the defa|
|00005740| 75 6c 74 2c 20 61 6e 64 | 20 73 68 6f 75 6c 64 20 |ult, and| should |
|00005750| 62 65 20 6c 65 66 74 20 | 61 6c 6f 6e 65 20 75 6e |be left |alone un|
|00005760| 6c 65 73 73 0a 79 6f 75 | 20 72 65 61 6c 6c 79 20 |less.you| really |
|00005770| 6b 6e 6f 77 20 77 68 61 | 74 20 79 6f 75 27 72 65 |know wha|t you're|
|00005780| 20 64 6f 69 6e 67 2e 0a | 2e 54 50 20 36 0a 2e 49 | doing..|.TP 6..I|
|00005790| 20 72 66 3d 66 0a 52 65 | 63 6f 72 64 20 66 6f 72 | rf=f.Re|cord for|
|000057a0| 6d 61 74 20 69 73 20 66 | 69 78 65 64 2d 6c 65 6e |mat is f|ixed-len|
|000057b0| 67 74 68 2e 20 20 54 68 | 69 73 20 69 73 20 75 73 |gth. Th|is is us|
|000057c0| 75 61 6c 6c 79 0a 61 20 | 62 61 64 20 63 68 6f 69 |ually.a |bad choi|
|000057d0| 63 65 2c 20 61 6e 64 20 | 73 68 6f 75 6c 64 20 62 |ce, and |should b|
|000057e0| 65 20 72 65 73 65 72 76 | 65 64 20 66 6f 72 20 62 |e reserv|ed for b|
|000057f0| 69 6e 61 72 79 20 66 69 | 6c 65 73 2e 20 20 54 68 |inary fi|les. Th|
|00005800| 69 73 20 61 6c 73 6f 0a | 74 75 72 6e 73 20 6f 66 |is also.|turns of|
|00005810| 66 20 74 68 65 20 6e 65 | 77 6c 69 6e 65 20 73 74 |f the ne|wline st|
|00005820| 72 69 70 20 75 73 75 61 | 6c 6c 79 20 64 6f 6e 65 |rip usua|lly done|
|00005830| 20 66 6f 72 20 55 6e 69 | 78 20 74 65 78 74 20 66 | for Uni|x text f|
|00005840| 69 6c 65 73 2e 0a 2e 54 | 50 20 36 0a 2e 49 20 63 |iles...T|P 6..I c|
|00005850| 63 3d 69 0a 43 61 72 72 | 69 61 67 65 20 63 6f 6e |c=i.Carr|iage con|
|00005860| 74 72 6f 6c 20 69 6d 70 | 6c 69 65 64 20 28 64 65 |trol imp|lied (de|
|00005870| 66 61 75 6c 74 29 2e 0a | 55 6e 6c 69 6b 65 20 55 |fault)..|Unlike U|
|00005880| 6e 69 78 20 74 65 78 74 | 20 66 69 6c 65 73 2c 20 |nix text| files, |
|00005890| 77 68 65 72 65 20 72 65 | 63 6f 72 64 73 20 61 72 |where re|cords ar|
|000058a0| 65 20 64 65 6c 69 6d 69 | 74 65 64 20 62 79 20 61 |e delimi|ted by a|
|000058b0| 20 6e 65 77 6c 69 6e 65 | 20 63 68 61 72 61 63 74 | newline| charact|
|000058c0| 65 72 2c 0a 41 4e 53 49 | 20 66 69 6c 65 73 20 64 |er,.ANSI| files d|
|000058d0| 6f 20 6e 6f 74 20 6e 6f | 72 6d 61 6c 6c 79 20 69 |o not no|rmally i|
|000058e0| 6e 63 6c 75 64 65 20 74 | 68 65 20 6e 65 77 6c 69 |nclude t|he newli|
|000058f0| 6e 65 20 61 73 20 70 61 | 72 74 20 6f 66 20 74 68 |ne as pa|rt of th|
|00005900| 65 20 72 65 63 6f 72 64 | 2e 0a 49 6e 73 74 65 61 |e record|..Instea|
|00005910| 64 2c 20 61 20 6e 65 77 | 6c 69 6e 65 20 69 73 20 |d, a new|line is |
|00005920| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 61 64 |automati|cally ad|
|00005930| 64 65 64 20 74 6f 20 74 | 68 65 20 72 65 63 6f 72 |ded to t|he recor|
|00005940| 64 20 77 68 65 6e 65 76 | 65 72 20 69 74 20 69 73 |d whenev|er it is|
|00005950| 0a 73 65 6e 74 20 74 6f | 20 61 20 70 72 69 6e 74 |.sent to| a print|
|00005960| 69 6e 67 20 64 65 76 69 | 63 65 2e 0a 2e 54 50 20 |ing devi|ce...TP |
|00005970| 36 0a 2e 49 20 63 63 3d | 66 0a 43 61 72 72 69 61 |6..I cc=|f.Carria|
|00005980| 67 65 20 63 6f 6e 74 72 | 6f 6c 20 46 6f 72 74 72 |ge contr|ol Fortr|
|00005990| 61 6e 2e 0a 45 61 63 68 | 20 6c 69 6e 65 20 69 73 |an..Each| line is|
|000059a0| 20 65 78 70 65 63 74 65 | 64 20 74 6f 20 73 74 61 | expecte|d to sta|
|000059b0| 72 74 20 77 69 74 68 20 | 61 20 46 6f 72 74 72 61 |rt with |a Fortra|
|000059c0| 6e 20 63 61 72 72 69 61 | 67 65 2d 63 6f 6e 74 72 |n carria|ge-contr|
|000059d0| 6f 6c 0a 63 68 61 72 61 | 63 74 65 72 2e 20 20 5c |ol.chara|cter. \|
|000059e0| 66 49 41 6e 73 69 74 61 | 70 65 5c 66 50 20 64 6f |fIAnsita|pe\fP do|
|000059f0| 65 73 20 6e 6f 74 20 69 | 6e 73 65 72 74 20 74 68 |es not i|nsert th|
|00005a00| 65 73 65 20 63 68 61 72 | 61 63 74 65 72 73 0a 61 |ese char|acters.a|
|00005a10| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 2c 20 69 74 |utomatic|ally, it|
|00005a20| 20 6d 65 72 65 6c 79 20 | 6d 61 72 6b 73 20 74 68 | merely |marks th|
|00005a30| 65 20 66 69 6c 65 20 61 | 73 20 68 61 76 69 6e 67 |e file a|s having|
|00005a40| 20 74 68 65 6d 2e 0a 54 | 68 69 73 20 69 73 20 6f | them..T|his is o|
|00005a50| 66 20 6c 69 6d 69 74 65 | 64 20 75 73 65 66 75 6c |f limite|d useful|
|00005a60| 6e 65 73 73 2e 20 20 28 | 47 6f 6f 64 20 6f 70 70 |ness. (|Good opp|
|00005a70| 6f 72 74 75 6e 69 74 79 | 20 66 6f 72 20 61 6e 6f |ortunity| for ano|
|00005a80| 74 68 65 72 0a 61 6d 62 | 69 74 69 6f 75 73 20 68 |ther.amb|itious h|
|00005a90| 61 63 6b 65 72 2e 29 0a | 2e 54 50 20 36 0a 2e 49 |acker.).|.TP 6..I|
|00005aa0| 20 63 63 3d 65 0a 43 61 | 72 72 69 61 67 65 20 63 | cc=e.Ca|rriage c|
|00005ab0| 6f 6e 74 72 6f 6c 20 69 | 73 20 65 6d 62 65 64 64 |ontrol i|s embedd|
|00005ac0| 65 64 2e 20 20 43 61 72 | 72 69 61 67 65 20 63 6f |ed. Car|riage co|
|00005ad0| 6e 74 72 6f 6c 0a 63 68 | 61 72 61 63 74 65 72 73 |ntrol.ch|aracters|
|00005ae0| 20 28 69 66 20 61 6e 79 | 29 20 61 72 65 20 61 20 | (if any|) are a |
|00005af0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 64 61 74 61 |part of |the data|
|00005b00| 20 72 65 63 6f 72 64 73 | 2e 20 20 54 68 69 73 20 | records|. This |
|00005b10| 69 73 20 75 73 75 61 6c | 6c 79 20 75 73 65 64 20 |is usual|ly used |
|00005b20| 69 6e 0a 74 68 65 20 63 | 61 73 65 20 6f 66 20 62 |in.the c|ase of b|
|00005b30| 69 6e 61 72 79 20 64 61 | 74 61 20 66 69 6c 65 73 |inary da|ta files|
|00005b40| 2e 0a 2e 54 50 20 36 0a | 2e 53 48 20 46 49 4c 45 |...TP 6.|.SH FILE|
|00005b50| 53 0a 2f 64 65 76 2f 72 | 6d 74 3f 09 68 61 6c 66 |S./dev/r|mt?.half|
|00005b60| 2d 69 6e 63 68 20 6d 61 | 67 6e 65 74 69 63 20 74 |-inch ma|gnetic t|
|00005b70| 61 70 65 20 69 6e 74 65 | 72 66 61 63 65 0a 2e 62 |ape inte|rface..b|
|00005b80| 72 0a 2f 64 65 76 2f 72 | 61 72 3f 09 71 75 61 72 |r./dev/r|ar?.quar|
|00005b90| 74 65 72 2d 69 6e 63 68 | 20 6d 61 67 6e 65 74 69 |ter-inch| magneti|
|00005ba0| 63 20 74 61 70 65 20 69 | 6e 74 65 72 66 61 63 65 |c tape i|nterface|
|00005bb0| 0a 2e 62 72 0a 2f 64 65 | 76 2f 72 73 74 3f 09 53 |..br./de|v/rst?.S|
|00005bc0| 43 53 49 20 74 61 70 65 | 20 69 6e 74 65 72 66 61 |CSI tape| interfa|
|00005bd0| 63 65 0a 2e 53 48 20 22 | 53 45 45 20 41 4c 53 4f |ce..SH "|SEE ALSO|
|00005be0| 22 0a 64 64 28 31 29 2c | 20 75 6d 61 73 6b 28 32 |".dd(1),| umask(2|
|00005bf0| 29 2c 20 6d 74 69 6f 28 | 34 29 2c 20 74 70 28 35 |), mtio(|4), tp(5|
|00005c00| 29 0a 2e 53 48 20 41 55 | 54 48 4f 52 0a 44 61 76 |)..SH AU|THOR.Dav|
|00005c10| 69 64 20 53 2e 20 48 61 | 79 65 73 2c 20 53 69 74 |id S. Ha|yes, Sit|
|00005c20| 65 20 4d 61 6e 61 67 65 | 72 2c 20 55 53 20 41 72 |e Manage|r, US Ar|
|00005c30| 6d 79 20 41 72 74 69 66 | 69 63 69 61 6c 20 49 6e |my Artif|icial In|
|00005c40| 74 65 6c 6c 69 67 65 6e | 63 65 20 43 65 6e 74 65 |telligen|ce Cente|
|00005c50| 72 2e 0a 4f 72 69 67 69 | 6e 61 6c 6c 79 20 64 65 |r..Origi|nally de|
|00005c60| 76 65 6c 6f 70 65 64 20 | 4a 75 6e 65 20 31 39 38 |veloped |June 198|
|00005c70| 36 2e 0a 52 65 76 69 73 | 65 64 20 41 75 67 75 73 |6..Revis|ed Augus|
|00005c80| 74 20 31 39 38 36 2e 20 | 20 54 68 69 73 20 73 6f |t 1986. | This so|
|00005c90| 66 74 77 61 72 65 20 69 | 73 20 69 6e 20 74 68 65 |ftware i|s in the|
|00005ca0| 20 70 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 2e 0a | public |domain..|
|00005cb0| 2e 53 48 20 42 55 47 53 | 0a 2e 4c 50 0a 54 68 65 |.SH BUGS|..LP.The|
|00005cc0| 0a 2e 49 20 72 0a 28 77 | 72 69 74 65 29 20 6f 70 |..I r.(w|rite) op|
|00005cd0| 74 69 6f 6e 20 63 61 6e | 6e 6f 74 20 62 65 20 75 |tion can|not be u|
|00005ce0| 73 65 64 20 77 69 74 68 | 20 71 75 61 72 74 65 72 |sed with| quarter|
|00005cf0| 2d 69 6e 63 68 20 61 72 | 63 68 69 76 65 20 74 61 |-inch ar|chive ta|
|00005d00| 70 65 73 2c 0a 73 69 6e | 63 65 20 74 68 65 73 65 |pes,.sin|ce these|
|00005d10| 20 74 61 70 65 20 64 72 | 69 76 65 73 20 63 61 6e | tape dr|ives can|
|00005d20| 6e 6f 74 20 62 61 63 6b | 73 70 61 63 65 2e 0a 2e |not back|space...|
|00005d30| 4c 50 0a 54 68 65 72 65 | 20 69 73 20 6e 6f 20 77 |LP.There| is no w|
|00005d40| 61 79 20 74 6f 20 61 73 | 6b 20 66 6f 72 20 74 68 |ay to as|k for th|
|00005d50| 65 0a 2e 49 52 20 6e 20 | 2d 74 68 0a 6f 63 63 75 |e..IR n |-th.occu|
|00005d60| 72 72 65 6e 63 65 20 6f | 66 20 61 20 66 69 6c 65 |rrence o|f a file|
|00005d70| 2e 0a 2e 4c 50 0a 54 61 | 70 65 20 65 72 72 6f 72 |...LP.Ta|pe error|
|00005d80| 73 20 61 72 65 20 68 61 | 6e 64 6c 65 64 20 75 6e |s are ha|ndled un|
|00005d90| 67 72 61 63 65 66 75 6c | 6c 79 2e 0a 2e 4c 50 0a |graceful|ly...LP.|
|00005da0| 46 69 6c 65 73 20 77 69 | 74 68 20 6e 61 6d 65 73 |Files wi|th names|
|00005db0| 20 6c 6f 6e 67 65 72 20 | 74 68 61 6e 20 38 30 20 | longer |than 80 |
|00005dc0| 63 68 61 72 61 63 74 65 | 72 73 20 68 61 76 65 20 |characte|rs have |
|00005dd0| 74 68 65 20 6e 61 6d 65 | 20 74 72 75 6e 63 61 74 |the name| truncat|
|00005de0| 65 64 2e 0a 54 68 69 73 | 20 69 73 20 61 20 6c 69 |ed..This| is a li|
|00005df0| 6d 69 74 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |mitation| of the |
|00005e00| 41 4e 53 49 20 6c 61 62 | 65 6c 6c 69 6e 67 20 73 |ANSI lab|elling s|
|00005e10| 74 61 6e 64 61 72 64 2e | 20 20 49 66 20 74 68 65 |tandard.| If the|
|00005e20| 20 74 61 70 65 20 69 73 | 0a 6d 61 64 65 20 77 69 | tape is|.made wi|
|00005e30| 74 68 6f 75 74 20 48 44 | 52 33 20 61 6e 64 20 48 |thout HD|R3 and H|
|00005e40| 44 52 34 20 6c 61 62 65 | 6c 73 20 28 5c 66 49 33 |DR4 labe|ls (\fI3|
|00005e50| 5c 66 50 20 6f 72 20 5c | 66 49 69 5c 66 50 20 73 |\fP or \|fIi\fP s|
|00005e60| 77 69 74 63 68 29 2c 20 | 74 68 65 0a 6e 61 6d 65 |witch), |the.name|
|00005e70| 20 69 73 20 6c 69 6d 69 | 74 65 64 20 74 6f 20 31 | is limi|ted to 1|
|00005e80| 37 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 2e 4c |7 charac|ters...L|
|00005e90| 50 0a 4d 75 6c 74 69 2d | 76 6f 6c 75 6d 65 20 74 |P.Multi-|volume t|
|00005ea0| 61 70 65 20 73 65 74 73 | 20 63 61 6e 6e 6f 74 20 |ape sets| cannot |
|00005eb0| 79 65 74 20 62 65 20 67 | 65 6e 65 72 61 74 65 64 |yet be g|enerated|
|00005ec0| 2e 0a 2e 49 20 61 6e 73 | 69 74 61 70 65 0a 77 69 |...I ans|itape.wi|
|00005ed0| 6c 6c 20 72 65 61 64 20 | 74 68 65 6d 20 6a 75 73 |ll read |them jus|
|00005ee0| 74 20 66 69 6e 65 2c 20 | 62 75 74 20 69 74 20 77 |t fine, |but it w|
|00005ef0| 6f 6e 27 74 20 77 72 69 | 74 65 20 74 68 65 6d 2e |on't wri|te them.|
|00005f00| 0a 55 6e 69 78 20 70 72 | 6f 76 69 64 65 73 20 6e |.Unix pr|ovides n|
|00005f10| 6f 20 64 65 76 69 63 65 | 2d 69 6e 64 65 70 65 6e |o device|-indepen|
|00005f20| 64 65 6e 74 20 77 61 79 | 20 74 6f 20 64 65 74 65 |dent way| to dete|
|00005f30| 63 74 0a 61 20 70 68 79 | 73 69 63 61 6c 20 65 6e |ct.a phy|sical en|
|00005f40| 64 2d 6f 66 2d 74 61 70 | 65 2e 20 20 49 74 20 77 |d-of-tap|e. It w|
|00005f50| 61 73 20 64 65 63 69 64 | 65 64 20 74 68 61 74 20 |as decid|ed that |
|00005f60| 61 20 32 34 30 30 2d 66 | 6f 6f 74 0a 6c 69 6d 69 |a 2400-f|oot.limi|
|00005f70| 74 61 74 69 6f 6e 20 77 | 61 73 20 70 72 65 66 65 |tation w|as prefe|
|00005f80| 72 72 61 62 6c 65 20 74 | 6f 20 64 65 76 69 63 65 |rrable t|o device|
|00005f90| 2d 64 65 70 65 6e 64 65 | 6e 63 65 2e 0a 2e 54 50 |-depende|nce...TP|
|00005fa0| 20 36 0a 4e 6f 74 65 20 | 74 6f 20 53 79 73 74 65 | 6.Note |to Syste|
|00005fb0| 6d 73 20 50 72 6f 67 72 | 61 6d 6d 65 72 73 3a 0a |ms Progr|ammers:.|
|00005fc0| 2e 49 20 61 6e 73 69 74 | 61 70 65 0a 75 73 65 73 |.I ansit|ape.uses|
|00005fd0| 20 61 20 62 6f 6f 6c 65 | 61 6e 20 66 75 6e 63 74 | a boole|an funct|
|00005fe0| 69 6f 6e 0a 2e 49 20 28 | 65 6f 74 29 0a 74 6f 20 |ion..I (|eot).to |
|00005ff0| 64 65 74 65 72 6d 69 6e | 65 20 77 68 65 6e 20 74 |determin|e when t|
|00006000| 68 65 20 74 61 70 65 20 | 64 72 69 76 65 0a 68 61 |he tape |drive.ha|
|00006010| 73 20 68 69 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |s hit th|e end of|
|00006020| 20 66 69 6c 65 2e 20 20 | 49 74 20 69 73 20 63 61 | file. |It is ca|
|00006030| 6c 6c 65 64 20 65 76 65 | 72 79 20 74 69 6d 65 20 |lled eve|ry time |
|00006040| 61 20 62 6c 6f 63 6b 0a | 6f 66 20 64 61 74 61 20 |a block.|of data |
|00006050| 69 73 20 77 72 69 74 74 | 65 6e 20 74 6f 20 74 68 |is writt|en to th|
|00006060| 65 20 74 61 70 65 2e 20 | 20 49 66 20 74 68 69 73 |e tape. | If this|
|00006070| 20 66 75 6e 63 74 69 6f | 6e 20 65 76 65 72 20 72 | functio|n ever r|
|00006080| 65 74 75 72 6e 73 0a 54 | 52 55 45 20 28 61 20 64 |eturns.T|RUE (a d|
|00006090| 65 66 69 6e 65 64 20 63 | 6f 6e 73 74 61 6e 74 29 |efined c|onstant)|
|000060a0| 2c 20 61 6e 20 61 75 74 | 6f 6d 61 74 69 63 20 76 |, an aut|omatic v|
|000060b0| 6f 6c 75 6d 65 20 73 77 | 69 74 63 68 20 6f 63 63 |olume sw|itch occ|
|000060c0| 75 72 73 2e 0a 54 68 65 | 20 70 65 72 74 69 6e 65 |urs..The| pertine|
|000060d0| 6e 74 20 64 65 76 69 63 | 65 20 72 65 67 69 73 74 |nt devic|e regist|
|000060e0| 65 72 73 20 61 72 65 20 | 6f 62 74 61 69 6e 65 64 |ers are |obtained|
|000060f0| 20 62 79 20 61 20 4d 54 | 49 4f 43 47 45 54 0a 69 | by a MT|IOCGET.i|
|00006100| 6f 63 74 6c 20 73 79 73 | 74 65 6d 20 63 61 6c 6c |octl sys|tem call|
|00006110| 2e 20 20 54 68 65 20 72 | 65 67 69 73 74 65 72 73 |. The r|egisters|
|00006120| 20 61 72 65 20 64 65 73 | 63 72 69 62 65 64 20 69 | are des|cribed i|
|00006130| 6e 0a 2e 49 20 2f 73 79 | 73 2f 73 75 6e 64 65 76 |n..I /sy|s/sundev|
|00006140| 2f 74 6d 72 65 67 2e 68 | 0a 28 53 75 6e 20 73 79 |/tmreg.h|.(Sun sy|
|00006150| 73 74 65 6d 20 77 69 74 | 68 20 54 61 70 65 4d 61 |stem wit|h TapeMa|
|00006160| 73 74 65 72 20 63 6f 6e | 74 72 6f 6c 6c 65 72 29 |ster con|troller)|
|00006170| 2e 20 20 49 66 20 79 6f | 75 0a 68 61 76 65 20 61 |. If yo|u.have a|
|00006180| 20 56 41 58 2c 20 74 68 | 65 20 66 69 6c 65 6e 61 | VAX, th|e filena|
|00006190| 6d 65 20 77 69 6c 6c 20 | 62 65 20 73 6c 69 67 68 |me will |be sligh|
|000061a0| 74 6c 79 20 64 69 66 66 | 65 72 65 6e 74 2e 0a 53 |tly diff|erent..S|
|000061b0| 75 6e 20 4d 69 63 72 6f | 73 79 73 74 65 6d 73 20 |un Micro|systems |
|000061c0| 73 75 70 70 6c 69 65 73 | 20 74 68 69 73 20 66 69 |supplies| this fi|
|000061d0| 6c 65 20 65 76 65 6e 20 | 77 69 74 68 20 62 69 6e |le even |with bin|
|000061e0| 61 72 79 2d 6f 6e 6c 79 | 0a 64 69 73 74 72 69 62 |ary-only|.distrib|
|000061f0| 75 74 69 6f 6e 73 2e 0a | 2f 2f 45 2a 4f 2a 46 20 |utions..|//E*O*F |
|00006200| 61 6e 73 69 74 61 70 65 | 2e 31 2f 2f 0a 0a 65 63 |ansitape|.1//..ec|
|00006210| 68 6f 20 78 20 2d 20 61 | 6e 73 69 74 61 70 65 2e |ho x - a|nsitape.|
|00006220| 35 2e 74 62 6c 0a 63 61 | 74 20 3e 20 22 61 6e 73 |5.tbl.ca|t > "ans|
|00006230| 69 74 61 70 65 2e 35 2e | 74 62 6c 22 20 3c 3c 20 |itape.5.|tbl" << |
|00006240| 27 2f 2f 45 2a 4f 2a 46 | 20 61 6e 73 69 74 61 70 |'//E*O*F| ansitap|
|00006250| 65 2e 35 2e 74 62 6c 2f | 2f 27 0a 2e 54 48 20 41 |e.5.tbl/|/'..TH A|
|00006260| 4e 53 49 54 41 50 45 20 | 35 20 20 22 38 20 41 75 |NSITAPE |5 "8 Au|
|00006270| 67 75 73 74 20 31 39 38 | 36 22 0a 2e 53 48 20 4e |gust 198|6"..SH N|
|00006280| 41 4d 45 0a 61 6e 73 69 | 74 61 70 65 20 2d 20 41 |AME.ansi|tape - A|
|00006290| 4e 53 49 20 73 74 61 6e | 64 61 72 64 20 6d 61 67 |NSI stan|dard mag|
|000062a0| 74 61 70 65 20 6c 61 62 | 65 6c 73 0a 2e 53 48 20 |tape lab|els..SH |
|000062b0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 2e 50 50 0a |DESCRIPT|ION..PP.|
|000062c0| 41 6e 20 41 4e 53 49 2d | 6c 61 62 65 6c 6c 65 64 |An ANSI-|labelled|
|000062d0| 20 74 61 70 65 20 73 74 | 61 72 74 73 20 77 69 74 | tape st|arts wit|
|000062e0| 68 20 61 20 76 6f 6c 75 | 6d 65 20 68 65 61 64 65 |h a volu|me heade|
|000062f0| 72 2e 0a 54 68 69 73 20 | 68 65 61 64 65 72 20 73 |r..This |header s|
|00006300| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 76 6f 6c |pecifies| the vol|
|00006310| 75 6d 65 20 6e 61 6d 65 | 20 61 6e 64 20 70 72 6f |ume name| and pro|
|00006320| 74 65 63 74 69 6f 6e 2c | 0a 74 68 65 20 6f 77 6e |tection,|.the own|
|00006330| 65 72 20 6f 66 20 74 68 | 65 20 76 6f 6c 75 6d 65 |er of th|e volume|
|00006340| 2c 20 61 6e 64 20 74 68 | 65 20 41 4e 53 49 20 6c |, and th|e ANSI l|
|00006350| 61 62 65 6c 20 73 74 61 | 6e 64 61 72 64 20 6c 65 |abel sta|ndard le|
|00006360| 76 65 6c 0a 74 68 61 74 | 20 74 68 65 20 74 61 70 |vel.that| the tap|
|00006370| 65 20 63 6f 6e 66 6f 72 | 6d 73 20 74 6f 2e 0a 2e |e confor|ms to...|
|00006380| 50 50 0a 45 76 65 72 79 | 20 66 69 6c 65 20 6f 6e |PP.Every| file on|
|00006390| 20 74 68 65 20 74 61 70 | 65 20 68 61 73 20 61 20 | the tap|e has a |
|000063a0| 68 65 61 64 65 72 2c 20 | 73 6f 6d 65 20 64 61 74 |header, |some dat|
|000063b0| 61 20 62 6c 6f 63 6b 73 | 2c 20 61 6e 64 0a 61 20 |a blocks|, and.a |
|000063c0| 74 72 61 69 6c 65 72 2e | 20 20 41 20 74 61 70 65 |trailer.| A tape|
|000063d0| 20 6d 61 72 6b 20 66 6f | 6c 6c 6f 77 73 20 65 61 | mark fo|llows ea|
|000063e0| 63 68 20 6f 66 20 74 68 | 65 73 65 20 65 6c 65 6d |ch of th|ese elem|
|000063f0| 65 6e 74 73 2e 0a 41 74 | 20 74 68 65 20 65 6e 64 |ents..At| the end|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.