DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: m

⟦990795729⟧

    Length: 3263 (0xcbf)
    Names: »mkstr.1«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat1/mkstr.1« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e   ┆ u_ a_ l             User Comman┆
0x040…060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6b 73 74 72 28 31 29 0a 0a 0a 0a   ┆ds                  mkstr(1)    ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x080…0a0 20 20 6d 6b 73 74 72 20 2d 20 63 72 65 61 74 65 20 61 6e 20 65 72 72 6f 72 20 6d 65 73 73 61 67   ┆  mkstr - create an error messag┆
0x0a0…0c0 65 20 66 69 6c 65 20 62 79 20 6d 61 73 73 61 67 69 6e 67 20 43 20 73 6f 75 72 63 65 0a 0a 53 08   ┆e file by massaging C source  S ┆
0x0c0…0e0 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08   ┆S S SY Y Y YN N N NT T T TA A A ┆
0x0e0…100 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 6d 08 6d 08 6d 08 6d 6b 08 6b 08 6b 08 6b 73 08 73 08   ┆AX X X X      m m m mk k k ks s ┆
0x100…120 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 20 5b 20 2d 08 2d 08 2d 08 2d 20 5d 20 6d 65   ┆s st t t tr r r r [ - - - - ] me┆
0x120…140 73 73 61 67 65 66 69 6c 65 20 70 72 65 66 69 78 20 66 69 6c 65 20 2e 2e 2e 0a 0a 44 08 44 08 44   ┆ssagefile prefix file ...  D D D┆
0x140…160 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08   ┆ DE E E ES S S SC C C CR R R RI ┆
0x160…180 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08   ┆I I IP P P PT T T TI I I IO O O ┆
0x180…1a0 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 6d 5f 08 6b 5f 08 73 5f 08 74 5f 08 72 20 69 73   ┆ON N N N      _ m_ k_ s_ t_ r is┆
0x1a0…1c0 20 75 73 65 64 20 74 6f 20 63 72 65 61 74 65 20 66 69 6c 65 73 20 6f 66 20 65 72 72 6f 72 20 6d   ┆ used to create files of error m┆
0x1c0…1e0 65 73 73 61 67 65 73 2e 20 20 49 74 73 20 75 73 65 0a 20 20 20 20 20 63 61 6e 20 6d 61 6b 65 20   ┆essages.  Its use      can make ┆
0x1e0…200 70 72 6f 67 72 61 6d 73 20 77 69 74 68 20 6c 61 72 67 65 20 6e 75 6d 62 65 72 73 20 6f 66 20 65   ┆programs with large numbers of e┆
0x200…220 72 72 6f 72 20 64 69 61 67 6e 6f 73 74 69 63 73 0a 20 20 20 20 20 6d 75 63 68 20 73 6d 61 6c 6c   ┆rror diagnostics      much small┆
0x220…240 65 72 2c 20 61 6e 64 20 72 65 64 75 63 65 20 73 79 73 74 65 6d 20 6f 76 65 72 68 65 61 64 20 69   ┆er, and reduce system overhead i┆
0x240…260 6e 20 72 75 6e 6e 69 6e 67 20 74 68 65 20 70 72 6f 2d 0a 20 20 20 20 20 67 72 61 6d 20 61 73 20   ┆n running the pro-      gram as ┆
0x260…280 74 68 65 20 65 72 72 6f 72 20 6d 65 73 73 61 67 65 73 20 64 6f 20 6e 6f 74 20 68 61 76 65 20 74   ┆the error messages do not have t┆
0x280…2a0 6f 20 62 65 20 63 6f 6e 73 74 61 6e 74 6c 79 0a 20 20 20 20 20 73 77 61 70 70 65 64 20 69 6e 20   ┆o be constantly      swapped in ┆
0x2a0…2c0 61 6e 64 20 6f 75 74 2e 20 20 55 6e 6c 65 73 73 20 6d 61 6e 79 20 64 75 70 6c 69 63 61 74 65 20   ┆and out.  Unless many duplicate ┆
0x2c0…2e0 73 74 72 69 6e 67 73 20 65 78 69 73 74 2c 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 0a 20 20   ┆strings exist, c c c cc c c c   ┆
0x2e0…300 20 20 20 2d 08 2d 08 2d 08 2d 52 08 52 08 52 08 52 31 08 31 08 31 08 31 20 77 6f 72 6b 73 20 62   ┆   - - - -R R R R1 1 1 1 works b┆
0x300…320 65 74 74 65 72 20 74 68 61 6e 20 5f 08 6d 5f 08 6b 5f 08 73 5f 08 74 5f 08 72 2e 0a 0a 20 20 20   ┆etter than _ m_ k_ s_ t_ r.     ┆
0x320…340 20 20 5f 08 6d 5f 08 6b 5f 08 73 5f 08 74 5f 08 72 20 77 69 6c 6c 20 70 72 6f 63 65 73 73 20 65   ┆  _ m_ k_ s_ t_ r will process e┆
0x340…360 61 63 68 20 6f 66 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 5f 08 66 5f 08 69 5f 08 6c 5f 08   ┆ach of the specified _ f_ i_ l_ ┆
0x360…380 65 5f 08 73 2c 20 70 6c 61 63 69 6e 67 20 61 0a 20 20 20 20 20 6d 61 73 73 61 67 65 64 20 76 65   ┆e_ s, placing a      massaged ve┆
0x380…3a0 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 69 6e 70 75 74 20 66 69 6c 65 20 69 6e 20 61 20 66 69 6c   ┆rsion of the input file in a fil┆
0x3a0…3c0 65 20 77 68 6f 73 65 20 6e 61 6d 65 20 63 6f 6e 2d 0a 20 20 20 20 20 73 69 73 74 73 20 6f 66 20   ┆e whose name con-      sists of ┆
0x3c0…3e0 74 68 65 20 73 70 65 63 69 66 69 65 64 20 5f 08 70 5f 08 72 5f 08 65 5f 08 66 5f 08 69 5f 08 78   ┆the specified _ p_ r_ e_ f_ i_ x┆
0x3e0…400 20 61 6e 64 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 6e 61 6d 65 2e 20 20 41 20 74 79 70 2d 0a   ┆ and the original name.  A typ- ┆
0x400…420 20 20 20 20 20 69 63 61 6c 20 75 73 61 67 65 20 6f 66 20 5f 08 6d 5f 08 6b 5f 08 73 5f 08 74 5f   ┆     ical usage of _ m_ k_ s_ t_┆
0x420…440 08 72 20 77 6f 75 6c 64 20 62 65 0a 0a 20 20 20 20 20 20 20 20 20 20 6d 6b 73 74 72 20 70 69 73   ┆ r would be            mkstr pis┆
0x440…460 74 72 69 6e 67 73 20 78 78 20 2a 2e 63 0a 0a 20 20 20 20 20 54 68 69 73 20 63 6f 6d 6d 61 6e 64   ┆trings xx *.c       This command┆
0x460…480 20 77 6f 75 6c 64 20 63 61 75 73 65 20 61 6c 6c 20 74 68 65 20 65 72 72 6f 72 20 6d 65 73 73 61   ┆ would cause all the error messa┆
0x480…4a0 67 65 73 20 66 72 6f 6d 20 74 68 65 20 43 0a 20 20 20 20 20 73 6f 75 72 63 65 20 66 69 6c 65 73   ┆ges from the C      source files┆
0x4a0…4c0 20 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 20 74 6f 20 62 65 20   ┆ in the current directory to be ┆
0x4c0…4e0 70 6c 61 63 65 64 20 69 6e 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 20 5f 08 70 5f 08 69 5f 08   ┆placed in the      file _ p_ i_ ┆
0x4e0…500 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 5f 08 73 20 61 6e 64 20 70 72 6f 63 65 73 73 65   ┆s_ t_ r_ i_ n_ g_ s and processe┆
0x500…520 64 20 63 6f 70 69 65 73 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f 72 20 74 68 65 73 65   ┆d copies of the source for these┆
0x520…540 0a 20 20 20 20 20 66 69 6c 65 73 20 74 6f 20 62 65 20 70 6c 61 63 65 64 20 69 6e 20 66 69 6c 65   ┆      files to be placed in file┆
0x540…560 73 20 77 68 6f 73 65 20 6e 61 6d 65 73 20 61 72 65 20 70 72 65 66 69 78 65 64 20 77 69 74 68 0a   ┆s whose names are prefixed with ┆
0x560…580 20 20 20 20 20 5f 08 78 5f 08 78 2e 0a 0a 20 20 20 20 20 54 6f 20 70 72 6f 63 65 73 73 20 74 68   ┆     _ x_ x.       To process th┆
0x580…5a0 65 20 65 72 72 6f 72 20 6d 65 73 73 61 67 65 73 20 69 6e 20 74 68 65 20 73 6f 75 72 63 65 20 74   ┆e error messages in the source t┆
0x5a0…5c0 6f 20 74 68 65 20 6d 65 73 73 61 67 65 0a 20 20 20 20 20 66 69 6c 65 2c 20 5f 08 6d 5f 08 6b 5f   ┆o the message      file, _ m_ k_┆
0x5c0…5e0 08 73 5f 08 74 5f 08 72 20 6b 65 79 73 20 6f 6e 20 74 68 65 20 73 74 72 69 6e 67 20 60 65 72 72   ┆ s_ t_ r keys on the string `err┆
0x5e0…600 6f 72 28 22 27 20 69 6e 20 74 68 65 20 69 6e 70 75 74 0a 20 20 20 20 20 73 74 72 65 61 6d 2e 20   ┆or("' in the input      stream. ┆
0x600…620 20 45 61 63 68 20 74 69 6d 65 20 69 74 20 6f 63 63 75 72 73 2c 20 74 68 65 20 43 20 73 74 72 69   ┆ Each time it occurs, the C stri┆
0x620…640 6e 67 20 73 74 61 72 74 69 6e 67 20 61 74 20 74 68 65 0a 20 20 20 20 20 60 22 27 20 69 73 20 70   ┆ng starting at the      `"' is p┆
0x640…660 6c 61 63 65 64 20 69 6e 20 74 68 65 20 6d 65 73 73 61 67 65 20 66 69 6c 65 20 66 6f 6c 6c 6f 77   ┆laced in the message file follow┆
0x660…680 65 64 20 62 79 20 61 20 6e 75 6c 6c 20 63 68 61 72 61 63 2d 0a 20 20 20 20 20 74 65 72 20 61 6e   ┆ed by a null charac-      ter an┆
0x680…6a0 64 20 61 20 6e 65 77 2d 6c 69 6e 65 20 63 68 61 72 61 63 74 65 72 3b 20 74 68 65 20 6e 75 6c 6c   ┆d a new-line character; the null┆
0x6a0…6c0 20 63 68 61 72 61 63 74 65 72 20 74 65 72 6d 69 6e 61 74 65 73 0a 20 20 20 20 20 74 68 65 20 6d   ┆ character terminates      the m┆
0x6c0…6e0 65 73 73 61 67 65 20 73 6f 20 69 74 20 63 61 6e 20 62 65 20 65 61 73 69 6c 79 20 75 73 65 64 20   ┆essage so it can be easily used ┆
0x6e0…700 77 68 65 6e 20 72 65 74 72 69 65 76 65 64 2c 20 74 68 65 0a 20 20 20 20 20 6e 65 77 2d 6c 69 6e   ┆when retrieved, the      new-lin┆
0x700…720 65 20 63 68 61 72 61 63 74 65 72 20 6d 61 6b 65 73 20 69 74 20 70 6f 73 73 69 62 6c 65 20 74 6f   ┆e character makes it possible to┆
0x720…740 20 73 65 6e 73 69 62 6c 79 20 5f 08 63 5f 08 61 5f 08 74 20 74 68 65 0a 20 20 20 20 20 65 72 72   ┆ sensibly _ c_ a_ t the      err┆
0x740…760 6f 72 20 6d 65 73 73 61 67 65 20 66 69 6c 65 20 74 6f 20 73 65 65 20 69 74 73 20 63 6f 6e 74 65   ┆or message file to see its conte┆
0x760…780 6e 74 73 2e 20 20 54 68 65 20 6d 61 73 73 61 67 65 64 20 63 6f 70 79 0a 20 20 20 20 20 6f 66 20   ┆nts.  The massaged copy      of ┆
0x780…7a0 74 68 65 20 69 6e 70 75 74 20 66 69 6c 65 20 74 68 65 6e 20 63 6f 6e 74 61 69 6e 73 20 61 6e 20   ┆the input file then contains an ┆
0x7a0…7c0 5f 08 6c 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 70 6f 69 6e 74 65 72 20 69 6e 74 6f 20 74 68 65   ┆_ l_ s_ e_ e_ k pointer into the┆
0x7c0…7e0 0a 20 20 20 20 20 66 69 6c 65 2c 20 77 68 69 63 68 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f   ┆      file, which can be used to┆
0x7e0…800 20 72 65 74 72 69 65 76 65 20 74 68 65 20 6d 65 73 73 61 67 65 2c 20 74 68 61 74 20 69 73 3a 0a   ┆ retrieve the message, that is: ┆
0x800…820 0a 0a 20 20 20 20 20 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08   ┆            c c c ch h h ha a a ┆
0x820…840 61 72 08 72 08 72 08 72 20 65 66 69 6c 6e 61 6d 65 5b 5d 20 3d 20 20 22 2f 75 73 72 2f 6c 69 62   ┆ar r r r efilname[] =  "/usr/lib┆
0x840…860 2f 70 69 5f 73 74 72 69 6e 67 73 22 3b 0a 20 20 20 20 20 20 20 20 20 20 69 08 69 08 69 08 69 6e   ┆/pi_strings";           i i i in┆
0x860…880 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 20 65 66 69 6c 20 3d 20 2d 31 3b 0a 0a 20 20 20 20 20   ┆ n n nt t t t  efil = -1;       ┆
0x880…8a0 20 20 20 20 20 65 72 72 6f 72 28 61 31 2c 20 61 32 2c 20 61 33 2c 20 61 34 29 0a 20 20 20 20 20   ┆     error(a1, a2, a3, a4)      ┆
0x8a0…8c0 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68   ┆     {                c c c ch h┆
0x8c0…8e0 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 62 75 66 5b 32 35 36 5d 3b 0a 0a 20 20   ┆ h ha a a ar r r r buf[256];    ┆
0x8e0…900 20 20 20 20 20 20 20 20 20 20 20 20 20 69 08 69 08 69 08 69 66 08 66 08 66 08 66 20 28 65 66 69   ┆             i i i if f f f (efi┆
0x900…920 6c 20 3c 20 30 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 66 69   ┆l < 0) {                     efi┆
0x920…940 6c 20 3d 20 6f 70 65 6e 28 65 66 69 6c 6e 61 6d 65 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 20   ┆l = open(efilname, 0);          ┆
0x940…960 20 20 20 20 20 20 20 20 20 20 20 69 08 69 08 69 08 69 66 08 66 08 66 08 66 20 28 65 66 69 6c 20   ┆           i i i if f f f (efil ┆
0x960…980 3c 20 30 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 6f 6f 70 73 3a 0a 20 20 20 20 20 20 20 20 20   ┆< 0) {           oops:          ┆
0x980…9a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 65 72 72 6f 72 28 65 66 69 6c 6e 61 6d 65 29   ┆                perror(efilname)┆
0x9a0…9c0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 69 74 28   ┆;                          exit(┆
0x9c0…9e0 31 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20   ┆1);                     }       ┆
0x9e0…a00 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 08 69 08 69 08   ┆         }                i i i ┆
0xa00…a20 69 66 08 66 08 66 08 66 20 28 6c 73 65 65 6b 28 65 66 69 6c 2c 20 28 6c 6f 6e 67 29 20 61 31 2c   ┆if f f f (lseek(efil, (long) a1,┆
0xa20…a40 20 30 29 20 7c 7c 20 72 65 61 64 28 65 66 69 6c 2c 20 62 75 66 2c 20 32 35 36 29 20 3c 3d 20 30   ┆ 0) || read(efil, buf, 256) <= 0┆
0xa40…a60 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 08 67 08 67 08 67 6f 08 6f   ┆)                     g g g go o┆
0xa60…a80 08 6f 08 6f 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 20 6f 6f 70 73 3b 0a 20 20 20 20 20 20 20   ┆ o ot t t to o o o oops;        ┆
0xa80…aa0 20 20 20 20 20 20 20 20 70 72 69 6e 74 66 28 62 75 66 2c 20 61 32 2c 20 61 33 2c 20 61 34 29 3b   ┆        printf(buf, a2, a3, a4);┆
0xaa0…ac0 0a 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 54 68 65 20 6f 70 74   ┆           }             The opt┆
0xac0…ae0 69 6f 6e 61 6c 20 2d 08 2d 08 2d 08 2d 20 63 61 75 73 65 73 20 74 68 65 20 65 72 72 6f 72 20 6d   ┆ional - - - - causes the error m┆
0xae0…b00 65 73 73 61 67 65 73 20 74 6f 20 62 65 20 70 6c 61 63 65 64 20 61 74 20 74 68 65 0a 20 20 20 20   ┆essages to be placed at the     ┆
0xb00…b20 20 65 6e 64 20 6f 66 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 6d 65 73 73 61 67 65 20 66 69   ┆ end of the specified message fi┆
0xb20…b40 6c 65 20 66 6f 72 20 72 65 63 6f 6d 70 69 6c 69 6e 67 20 70 61 72 74 20 6f 66 20 61 0a 20 20 20   ┆le for recompiling part of a    ┆
0xb40…b60 20 20 6c 61 72 67 65 20 5f 08 6d 5f 08 6b 5f 08 73 5f 08 74 5f 08 72 65 64 20 70 72 6f 67 72 61   ┆  large _ m_ k_ s_ t_ red progra┆
0xb60…b80 6d 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08   ┆m.  S S S SE E E EE E E E A A A ┆
0xb80…ba0 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72   ┆AL L L LS S S SO O O O      User┆
0xba0…bc0 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 78 73 74 72 0a 0a 4c 08 4c 08 4c 08 4c 49 08 49   ┆ Commands (1):  xstr  L L L LI I┆
0xbc0…be0 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54 08 54 41 08 41 08 41 08 41   ┆ I IM M M MI I I IT T T TA A A A┆
0xbe0…c00 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 53 08 53 08   ┆T T T TI I I IO O O ON N N NS S ┆
0xc00…c20 53 08 53 0a 20 20 20 20 20 4f 6e 6c 79 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 66 69   ┆S S      Only the name of the fi┆
0xc20…c40 6c 65 20 74 6f 20 62 65 20 70 72 6f 63 65 73 73 65 64 20 73 68 6f 75 6c 64 20 62 65 0a 20 20 20   ┆le to be processed should be    ┆
0xc40…c60 20 20 72 65 71 75 69 72 65 64 2e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20   ┆  required.  March 1989         ┆
0xc60…c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 55 73   ┆                           TX Us┆
0xc80…ca0 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆er's Reference                  ┆
0xca0…cbf 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a      ┆                               ┆