|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: l
Length: 5353 (0x14e9)
Names: »ldopen.3x«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/ldopen.3x«
└─⟦this⟧ »./usr/man/cat3/ldopen.3x«
0x0000…0020 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 0a ┆ ┆
[…0x1…]
0x0040…0060 0a 0a 0a 0a 0a 0a 0a 0a 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 ┆ N N N NA A A AM M M ME E┆
0x0060…0080 08 45 08 45 0a 20 20 20 20 20 6c 64 6f 70 65 6e 2c 20 6c 64 61 6f 70 65 6e 20 2d 20 6f 70 65 6e ┆ E E ldopen, ldaopen - open┆
0x0080…00a0 20 61 20 63 6f 6d 6d 6f 6e 20 6f 62 6a 65 63 74 20 66 69 6c 65 20 66 6f 72 20 72 65 61 64 69 6e ┆ a common object file for readin┆
0x00a0…00c0 67 0a 0a 53 08 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 ┆g S S S SY Y Y YN N N NT T T TA┆
0x00c0…00e0 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 ┆ A A AX X X X # # # #i i i ┆
0x00e0…0100 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 ┆in n n nc c c cl l l lu u u ud d┆
0x0100…0120 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 74 08 74 08 ┆ d de e e e < < < <s s s st t t ┆
0x0120…0140 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e 08 2e 68 08 68 ┆td d d di i i io o o o. . . .h h┆
0x0140…0160 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e ┆ h h> > > > # # # #i i i in┆
0x0160…0180 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 ┆ n n nc c c cl l l lu u u ud d d┆
0x0180…01a0 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c ┆ de e e e < < < <f f f fi i i il┆
0x01a0…01c0 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 68 08 68 08 68 08 68 64 08 64 08 64 08 64 72 08 72 08 72 ┆ l l le e e eh h h hd d d dr r r┆
0x01c0…01e0 08 72 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 ┆ r. . . .h h h h> > > > # #┆
0x01e0…0200 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c ┆ # #i i i in n n nc c c cl l l l┆
0x0200…0220 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 ┆u u u ud d d de e e e < < < <s s┆
0x0220…0240 08 73 08 73 79 08 79 08 79 08 79 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e ┆ s sy y y ym m m ms s s s. . . .┆
0x0240…0260 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 ┆h h h h> > > > # # # #i i i┆
0x0260…0280 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 ┆ in n n nc c c cl l l lu u u ud ┆
0x0280…02a0 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 6c 08 6c 08 6c 08 6c 64 08 64 08 64 ┆d d de e e e < < < <l l l ld d d┆
0x02a0…02c0 08 64 66 08 66 08 66 08 66 63 08 63 08 63 08 63 6e 08 6e 08 6e 08 6e 2e 08 2e 08 2e 08 2e 68 08 ┆ df f f fc c c cn n n n. . . .h ┆
0x02c0…02e0 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 ┆h h h> > > > L L L LD D D ┆
0x02e0…0300 44 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 ┆DF F F FI I I IL L L LE E E E * ┆
0x0300…0320 2a 08 2a 08 2a 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 ┆* * *l l l ld d d do o o op p p ┆
0x0320…0340 70 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 20 28 08 28 08 28 08 28 66 69 6c 65 6e 61 6d 65 2c ┆pe e e en n n n ( ( ( (filename,┆
0x0340…0360 20 6c 64 70 74 72 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 ┆ ldptr) ) ) ) c c c ch h h ┆
0x0360…0380 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 66 69 6c 65 6e 61 6d 65 3b ┆ha a a ar r r r * * * *filename;┆
0x0380…03a0 08 3b 08 3b 08 3b 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 08 46 08 46 08 ┆ ; ; ; L L L LD D D DF F F ┆
0x03a0…03c0 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a 08 2a 6c 64 ┆FI I I IL L L LE E E E * * * *ld┆
0x03c0…03e0 70 74 72 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 ┆ptr; ; ; ; L L L LD D D DF┆
0x03e0…0400 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 ┆ F F FI I I IL L L LE E E E * * ┆
0x0400…0420 2a 08 2a 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 61 08 61 08 61 08 61 6f 08 6f 08 6f 08 6f 70 ┆* *l l l ld d d da a a ao o o op┆
0x0420…0440 08 70 08 70 08 70 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 20 28 08 28 08 28 08 28 66 69 6c 65 ┆ p p pe e e en n n n ( ( ( (file┆
0x0440…0460 6e 61 6d 65 2c 20 6f 6c 64 70 74 72 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 ┆name, oldptr) ) ) ) c c c c┆
0x0460…0480 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 66 69 6c ┆h h h ha a a ar r r r * * * *fil┆
0x0480…04a0 65 6e 61 6d 65 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 ┆ename; ; ; ; L L L LD D D D┆
0x04a0…04c0 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a ┆F F F FI I I IL L L LE E E E * *┆
0x04c0…04e0 08 2a 08 2a 6f 6c 64 70 74 72 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 64 ┆ * *oldptr; ; ; ; l l l ld┆
0x04e0…0500 08 64 08 64 08 64 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 64 08 64 08 64 ┆ d d dr r r re e e ea a a ad d d┆
0x0500…0520 08 64 73 08 73 08 73 08 73 74 08 74 08 74 08 74 28 08 28 08 28 08 28 6c 64 70 74 72 2c 20 66 6c ┆ ds s s st t t t( ( ( (ldptr, fl┆
0x0520…0540 61 67 73 29 08 29 08 29 08 29 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 08 ┆ags) ) ) ) L L L LD D D DF ┆
0x0540…0560 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a ┆F F FI I I IL L L LE E E E * * *┆
0x0560…0580 08 2a 6c 64 70 74 72 3b 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 ┆ *ldptr; i i i in n n nt t ┆
0x0580…05a0 74 08 74 66 6c 61 67 73 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 ┆t tflags; D D D DE E E ES S S S┆
0x05a0…05c0 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 ┆C C C CR R R RI I I IP P P PT T ┆
0x05c0…05e0 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 ┆T TI I I IO O O ON N N N _ ┆
0x05e0…0600 4c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 6e 64 20 5f 08 6c 5f 08 64 5f 08 63 5f 08 ┆L_ d_ o_ p_ e_ n and _ l_ d_ c_ ┆
0x0600…0620 6c 5f 08 6f 5f 08 73 5f 08 65 28 33 78 29 20 70 72 6f 76 69 64 65 20 75 6e 69 66 6f 72 6d 20 61 ┆l_ o_ s_ e(3x) provide uniform a┆
0x0620…0640 63 63 65 73 73 20 74 6f 20 73 69 6d 70 6c 65 0a 20 20 20 20 20 6f 62 6a 65 63 74 20 66 69 6c 65 ┆ccess to simple object file┆
0x0640…0660 73 20 61 6e 64 20 74 6f 20 6f 62 6a 65 63 74 20 66 69 6c 65 73 20 74 68 61 74 20 61 72 65 20 6d ┆s and to object files that are m┆
0x0660…0680 65 6d 62 65 72 73 20 6f 66 20 61 72 63 68 69 76 65 0a 20 20 20 20 20 66 69 6c 65 73 2e 20 20 41 ┆embers of archive files. A┆
0x0680…06a0 6e 20 61 72 63 68 69 76 65 20 6f 66 20 63 6f 6d 6d 6f 6e 20 6f 62 6a 65 63 74 20 66 69 6c 65 73 ┆n archive of common object files┆
0x06a0…06c0 20 63 61 6e 20 62 65 20 70 72 6f 63 65 73 73 65 64 0a 20 20 20 20 20 61 73 20 69 66 20 69 74 20 ┆ can be processed as if it ┆
0x06c0…06e0 77 65 72 65 20 61 20 73 65 72 69 65 73 20 6f 66 20 73 69 6d 70 6c 65 20 63 6f 6d 6d 6f 6e 20 6f ┆were a series of simple common o┆
0x06e0…0700 62 6a 65 63 74 20 66 69 6c 65 73 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 6c 5f 08 64 5f 08 70 5f ┆bject files. If _ l_ d_ p_┆
0x0700…0720 08 74 5f 08 72 20 68 61 73 20 74 68 65 20 76 61 6c 75 65 20 4e 08 4e 08 4e 08 4e 55 08 55 08 55 ┆ t_ r has the value N N N NU U U┆
0x0720…0740 08 55 4c 08 4c 08 4c 08 4c 4c 08 4c 08 4c 08 4c 2c 20 5f 08 6c 5f 08 64 5f 08 6f 5f 08 70 5f 08 ┆ UL L L LL L L L, _ l_ d_ o_ p_ ┆
0x0740…0760 65 5f 08 6e 20 6f 70 65 6e 73 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d ┆e_ n opens _ f_ i_ l_ e_ n_ a_ m┆
0x0760…0780 5f 08 65 2c 20 61 6c 6c 6f 2d 0a 20 20 20 20 20 63 61 74 65 73 20 61 6e 64 20 69 6e 69 74 69 61 ┆_ e, allo- cates and initia┆
0x0780…07a0 6c 69 7a 65 73 20 74 68 65 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 08 46 08 46 08 46 49 ┆lizes the L L L LD D D DF F F FI┆
0x07a0…07c0 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 73 74 72 75 63 74 75 72 65 2c 20 ┆ I I IL L L LE E E E structure, ┆
0x07c0…07e0 61 6e 64 20 72 65 74 75 72 6e 73 20 61 0a 20 20 20 20 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 ┆and returns a pointer to th┆
0x07e0…0800 65 20 73 74 72 75 63 74 75 72 65 20 74 6f 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 67 72 ┆e structure to the calling progr┆
0x0800…0820 61 6d 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 20 69 73 20 ┆am. If _ l_ d_ p_ t_ r is ┆
0x0820…0840 76 61 6c 69 64 20 61 6e 64 20 54 08 54 08 54 08 54 59 08 59 08 59 08 59 50 08 50 08 50 08 50 45 ┆valid and T T T TY Y Y YP P P PE┆
0x0840…0860 08 45 08 45 08 45 28 08 28 08 28 08 28 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 29 08 29 08 ┆ E E E( ( ( (_ l_ d_ p_ t_ r) ) ┆
0x0860…0880 29 08 29 20 69 73 20 74 68 65 20 61 72 63 68 69 76 65 20 6d 61 67 69 63 0a 20 20 20 20 20 6e 75 ┆) ) is the archive magic nu┆
0x0880…08a0 6d 62 65 72 2c 20 5f 08 6c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 72 65 69 6e 69 74 69 ┆mber, _ l_ d_ o_ p_ e_ n reiniti┆
0x08a0…08c0 61 6c 69 7a 65 73 20 74 68 65 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 08 46 08 46 08 46 ┆alizes the L L L LD D D DF F F F┆
0x08c0…08e0 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 73 74 72 75 63 74 75 72 65 20 ┆I I I IL L L LE E E E structure ┆
0x08e0…0900 66 6f 72 20 74 68 65 0a 20 20 20 20 20 6e 65 78 74 20 61 72 63 68 69 76 65 20 6d 65 6d 62 65 72 ┆for the next archive member┆
0x0900…0920 20 6f 66 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2e 0a 0a 20 ┆ of _ f_ i_ l_ e_ n_ a_ m_ e. ┆
0x0920…0940 20 20 20 20 5f 08 4c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 6e 64 20 5f 08 6c 5f 08 ┆ _ L_ d_ o_ p_ e_ n and _ l_ ┆
0x0940…0960 64 5f 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 20 77 6f 72 6b 20 69 6e 20 63 6f 6e 63 65 72 74 ┆d_ c_ l_ o_ s_ e work in concert┆
0x0960…0980 2e 20 20 5f 08 4c 5f 08 64 5f 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 20 72 65 74 75 72 6e 73 ┆. _ L_ d_ c_ l_ o_ s_ e returns┆
0x0980…09a0 20 46 08 46 08 46 08 46 41 08 41 08 41 08 41 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 55 08 55 ┆ F F F FA A A AI I I IL L L LU U┆
0x09a0…09c0 08 55 08 55 52 08 52 08 52 08 52 45 08 45 08 45 08 45 0a 20 20 20 20 20 6f 6e 6c 79 20 77 68 65 ┆ U UR R R RE E E E only whe┆
0x09c0…09e0 6e 20 54 08 54 08 54 08 54 59 08 59 08 59 08 59 50 08 50 08 50 08 50 45 08 45 08 45 08 45 28 08 ┆n T T T TY Y Y YP P P PE E E E( ┆
0x09e0…0a00 28 08 28 08 28 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 29 08 29 08 29 08 29 20 69 73 20 74 ┆( ( (_ l_ d_ p_ t_ r) ) ) ) is t┆
0x0a00…0a20 68 65 20 61 72 63 68 69 76 65 20 6d 61 67 69 63 20 6e 75 6d 62 65 72 20 61 6e 64 20 74 68 65 72 ┆he archive magic number and ther┆
0x0a20…0a40 65 0a 20 20 20 20 20 69 73 20 61 6e 6f 74 68 65 72 20 66 69 6c 65 20 69 6e 20 74 68 65 20 61 72 ┆e is another file in the ar┆
0x0a40…0a60 63 68 69 76 65 20 74 6f 20 62 65 20 70 72 6f 63 65 73 73 65 64 2e 20 20 4f 6e 6c 79 20 74 68 65 ┆chive to be processed. Only the┆
0x0a60…0a80 6e 0a 20 20 20 20 20 73 68 6f 75 6c 64 20 5f 08 6c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e ┆n should _ l_ d_ o_ p_ e_ n┆
0x0a80…0aa0 20 62 65 20 63 61 6c 6c 65 64 20 77 69 74 68 20 74 68 65 20 63 75 72 72 65 6e 74 20 76 61 6c 75 ┆ be called with the current valu┆
0x0aa0…0ac0 65 20 6f 66 20 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 2e 20 20 49 6e 0a 20 20 20 20 20 61 ┆e of _ l_ d_ p_ t_ r. In a┆
0x0ac0…0ae0 6c 6c 20 6f 74 68 65 72 20 63 61 73 65 73 2c 20 61 6e 64 20 70 61 72 74 69 63 75 6c 61 72 6c 79 ┆ll other cases, and particularly┆
0x0ae0…0b00 20 77 68 65 6e 20 61 20 6e 65 77 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 ┆ when a new _ f_ i_ l_ e_ n_ a_ ┆
0x0b00…0b20 6d 5f 08 65 20 69 73 0a 20 20 20 20 20 6f 70 65 6e 65 64 2c 20 5f 08 6c 5f 08 64 5f 08 6f 5f 08 ┆m_ e is opened, _ l_ d_ o_ ┆
0x0b20…0b40 70 5f 08 65 5f 08 6e 20 73 68 6f 75 6c 64 20 62 65 20 63 61 6c 6c 65 64 20 77 69 74 68 20 61 20 ┆p_ e_ n should be called with a ┆
0x0b40…0b60 4e 08 4e 08 4e 08 4e 55 08 55 08 55 08 55 4c 08 4c 08 4c 08 4c 4c 08 4c 08 4c 08 4c 20 5f 08 6c ┆N N N NU U U UL L L LL L L L _ l┆
0x0b60…0b80 5f 08 64 5f 08 70 5f 08 74 5f 08 72 20 61 72 67 75 6d 65 6e 74 2e 0a 0a 20 20 20 20 20 54 68 65 ┆_ d_ p_ t_ r argument. The┆
0x0b80…0ba0 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 73 20 61 20 70 72 6f 74 6f 74 79 70 65 20 66 6f 72 20 74 68 ┆ following is a prototype for th┆
0x0ba0…0bc0 65 20 75 73 65 20 6f 66 20 5f 08 6c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 6e 64 0a ┆e use of _ l_ d_ o_ p_ e_ n and ┆
0x0bc0…0be0 20 20 20 20 20 5f 08 6c 5f 08 64 5f 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 3a 0a 0a 20 20 20 ┆ _ l_ d_ c_ l_ o_ s_ e: ┆
0x0be0…0c00 20 20 20 20 20 20 20 2f 2a 20 66 6f 72 20 65 61 63 68 20 66 69 6c 65 6e 61 6d 65 20 74 6f 20 62 ┆ /* for each filename to b┆
0x0c00…0c20 65 20 70 72 6f 63 65 73 73 65 64 20 2a 2f 0a 0a 20 20 20 20 20 20 20 20 20 20 6c 64 70 74 72 20 ┆e processed */ ldptr ┆
0x0c20…0c40 3d 20 4e 55 4c 4c 3b 0a 20 20 20 20 20 20 20 20 20 20 64 6f 0a 20 20 20 20 20 20 20 20 20 20 20 ┆= NULL; do ┆
0x0c40…0c60 20 20 20 20 69 66 20 28 20 28 6c 64 70 74 72 20 3d 20 6c 64 6f 70 65 6e 28 66 69 6c 65 6e 61 6d ┆ if ( (ldptr = ldopen(filenam┆
0x0c60…0c80 65 2c 20 6c 64 70 74 72 29 29 20 21 3d 20 4e 55 4c 4c 20 29 0a 0a 20 20 20 20 20 20 20 20 20 20 ┆e, ldptr)) != NULL ) ┆
0x0c80…0ca0 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 63 68 ┆ { /* ch┆
0x0ca0…0cc0 65 63 6b 20 6d 61 67 69 63 20 6e 75 6d 62 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆eck magic number */ ┆
0x0cc0…0ce0 20 20 20 20 20 20 20 20 2f 2a 20 70 72 6f 63 65 73 73 20 74 68 65 20 66 69 6c 65 20 2a 2f 0a 20 ┆ /* process the file */ ┆
0x0ce0…0d00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 7d 20 77 68 69 6c ┆ } } whil┆
0x0d00…0d20 65 20 28 6c 64 63 6c 6f 73 65 28 6c 64 70 74 72 29 20 3d 3d 20 46 41 49 4c 55 52 45 20 29 3b 0a ┆e (ldclose(ldptr) == FAILURE ); ┆
0x0d20…0d40 0a 20 20 20 20 20 49 66 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 6f 5f 08 6c 5f 08 64 5f ┆ If the value of _ o_ l_ d_┆
0x0d40…0d60 08 70 5f 08 74 5f 08 72 20 69 73 20 6e 6f 74 20 4e 08 4e 08 4e 08 4e 55 08 55 08 55 08 55 4c 08 ┆ p_ t_ r is not N N N NU U U UL ┆
0x0d60…0d80 4c 08 4c 08 4c 4c 08 4c 08 4c 08 4c 2c 20 5f 08 6c 5f 08 64 5f 08 61 5f 08 6f 5f 08 70 5f 08 65 ┆L L LL L L L, _ l_ d_ a_ o_ p_ e┆
0x0d80…0da0 5f 08 6e 20 6f 70 65 6e 73 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f ┆_ n opens _ f_ i_ l_ e_ n_ a_ m_┆
0x0da0…0dc0 08 65 0a 20 20 20 20 20 61 6e 65 77 20 61 6e 64 20 61 6c 6c 6f 63 61 74 65 73 20 61 6e 64 20 69 ┆ e anew and allocates and i┆
0x0dc0…0de0 6e 69 74 69 61 6c 69 7a 65 73 20 61 20 6e 65 77 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 ┆nitializes a new L L L LD D D DF┆
0x0de0…0e00 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 73 74 72 75 ┆ F F FI I I IL L L LE E E E stru┆
0x0e00…0e20 63 74 75 72 65 2c 0a 20 20 20 20 20 63 6f 70 79 69 6e 67 20 74 68 65 20 66 69 65 6c 64 73 20 66 ┆cture, copying the fields f┆
0x0e20…0e40 72 6f 6d 20 5f 08 6f 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 2e 20 20 5f 08 4c 5f 08 64 5f ┆rom _ o_ l_ d_ p_ t_ r. _ L_ d_┆
0x0e40…0e60 08 61 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 72 65 74 75 72 6e 73 20 61 20 70 6f 69 6e 74 65 72 ┆ a_ o_ p_ e_ n returns a pointer┆
0x0e60…0e80 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 74 6f 20 74 68 65 20 6e 65 77 20 4c 08 4c 08 4c 08 4c 44 08 ┆ to the new L L L LD ┆
0x0e80…0ea0 44 08 44 08 44 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 ┆D D DF F F FI I I IL L L LE E E ┆
0x0ea0…0ec0 45 20 73 74 72 75 63 74 75 72 65 2e 20 20 54 68 69 73 20 6e 65 77 20 70 6f 69 6e 74 65 72 20 69 ┆E structure. This new pointer i┆
0x0ec0…0ee0 73 20 69 6e 64 65 70 65 6e 2d 0a 20 20 20 20 20 64 65 6e 74 20 6f 66 20 74 68 65 20 6f 6c 64 20 ┆s indepen- dent of the old ┆
0x0ee0…0f00 70 6f 69 6e 74 65 72 2c 20 5f 08 6f 5f 08 6c 5f 08 64 5f 08 70 5f 08 74 5f 08 72 2e 20 20 54 68 ┆pointer, _ o_ l_ d_ p_ t_ r. Th┆
0x0f00…0f20 65 20 74 77 6f 20 70 6f 69 6e 74 65 72 73 20 63 61 6e 20 62 65 0a 20 20 20 20 20 75 73 65 64 20 ┆e two pointers can be used ┆
0x0f20…0f40 63 6f 6e 63 75 72 72 65 6e 74 6c 79 20 74 6f 20 72 65 61 64 20 73 65 70 61 72 61 74 65 20 70 61 ┆concurrently to read separate pa┆
0x0f40…0f60 72 74 73 20 6f 66 20 74 68 65 20 6f 62 6a 65 63 74 20 66 69 6c 65 2e 0a 20 20 20 20 20 46 6f 72 ┆rts of the object file. For┆
0x0f60…0f80 20 65 78 61 6d 70 6c 65 2c 20 6f 6e 65 20 70 6f 69 6e 74 65 72 20 63 61 6e 20 62 65 20 75 73 65 ┆ example, one pointer can be use┆
0x0f80…0fa0 64 20 74 6f 20 73 74 65 70 20 73 65 71 75 65 6e 74 69 61 6c 6c 79 0a 20 20 20 20 20 74 68 72 6f ┆d to step sequentially thro┆
0x0fa0…0fc0 75 67 68 20 74 68 65 20 72 65 6c 6f 63 61 74 69 6f 6e 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 77 ┆ugh the relocation information w┆
0x0fc0…0fe0 68 69 6c 65 20 74 68 65 20 6f 74 68 65 72 20 69 73 20 75 73 65 64 0a 20 20 20 20 20 74 6f 20 72 ┆hile the other is used to r┆
0x0fe0…1000 65 61 64 20 69 6e 64 65 78 65 64 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 20 65 6e 74 72 69 65 73 ┆ead indexed symbol table entries┆
0x1000…1020 2e 0a 0a 20 20 20 20 20 5f 08 4c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 6e 64 20 5f ┆. _ L_ d_ o_ p_ e_ n and _┆
0x1020…1040 08 6c 5f 08 64 5f 08 61 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 6f 70 65 6e 20 5f 08 66 5f 08 69 ┆ l_ d_ a_ o_ p_ e_ n open _ f_ i┆
0x1040…1060 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 66 6f 72 20 72 65 61 64 69 6e 67 2e 20 ┆_ l_ e_ n_ a_ m_ e for reading. ┆
0x1060…1080 20 49 66 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 0a 20 20 20 ┆ If _ f_ i_ l_ e_ n_ a_ m_ e ┆
0x1080…10a0 20 20 63 61 6e 6e 6f 74 20 62 65 20 6f 70 65 6e 65 64 20 6f 72 20 69 66 20 6d 65 6d 6f 72 79 20 ┆ cannot be opened or if memory ┆
0x10a0…10c0 66 6f 72 20 74 68 65 20 4c 08 4c 08 4c 08 4c 44 08 44 08 44 08 44 46 08 46 08 46 08 46 49 08 49 ┆for the L L L LD D D DF F F FI I┆
0x10c0…10e0 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 73 74 72 75 63 74 75 72 65 20 63 61 6e ┆ I IL L L LE E E E structure can┆
0x10e0…1100 2d 0a 20 20 20 20 20 6e 6f 74 20 62 65 20 61 6c 6c 6f 63 61 74 65 64 2c 20 62 6f 74 68 20 66 75 ┆- not be allocated, both fu┆
0x1100…1120 6e 63 74 69 6f 6e 73 20 72 65 74 75 72 6e 20 4e 08 4e 08 4e 08 4e 55 08 55 08 55 08 55 4c 08 4c ┆nctions return N N N NU U U UL L┆
0x1120…1140 08 4c 08 4c 4c 08 4c 08 4c 08 4c 2e 20 41 20 73 75 63 63 65 73 73 66 75 6c 0a 20 20 20 20 20 6f ┆ L LL L L L. A successful o┆
0x1140…1160 70 65 6e 20 64 6f 65 73 20 6e 6f 74 20 65 6e 73 75 72 65 20 74 68 61 74 20 74 68 65 20 67 69 76 ┆pen does not ensure that the giv┆
0x1160…1180 65 6e 20 66 69 6c 65 20 69 73 20 61 20 63 6f 6d 6d 6f 6e 20 6f 62 6a 65 63 74 0a 20 20 20 20 20 ┆en file is a common object ┆
0x1180…11a0 66 69 6c 65 20 6f 72 20 61 6e 20 61 72 63 68 69 76 65 64 20 6f 62 6a 65 63 74 20 66 69 6c 65 2e ┆file or an archived object file.┆
0x11a0…11c0 0a 0a 20 20 20 20 20 5f 08 4c 5f 08 64 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 63 61 75 73 65 73 ┆ _ L_ d_ o_ p_ e_ n causes┆
0x11c0…11e0 20 74 68 65 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 20 68 65 61 64 65 72 20 61 6e 64 20 66 69 6c ┆ the symbol table header and fil┆
0x11e0…1200 65 20 64 65 73 63 72 69 70 74 6f 72 0a 20 20 20 20 20 74 61 62 6c 65 20 74 6f 20 62 65 20 72 65 ┆e descriptor table to be re┆
0x1200…1220 61 64 2e 20 20 46 75 72 74 68 65 72 20 61 63 63 65 73 73 2c 20 75 73 69 6e 67 20 5f 08 6c 5f 08 ┆ad. Further access, using _ l_ ┆
0x1220…1240 64 5f 08 70 5f 08 74 5f 08 72 2c 20 63 61 75 73 65 73 20 6f 74 68 65 72 0a 20 20 20 20 20 61 70 ┆d_ p_ t_ r, causes other ap┆
0x1240…1260 70 72 6f 70 72 69 61 74 65 20 73 65 63 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 73 79 6d 62 6f 6c ┆propriate sections of the symbol┆
0x1260…1280 20 74 61 62 6c 65 20 74 6f 20 62 65 20 72 65 61 64 20 28 66 6f 72 0a 20 20 20 20 20 65 78 61 6d ┆ table to be read (for exam┆
0x1280…12a0 70 6c 65 2c 20 69 66 20 79 6f 75 20 63 61 6c 6c 20 5f 08 6c 5f 08 64 5f 08 74 5f 08 62 5f 08 72 ┆ple, if you call _ l_ d_ t_ b_ r┆
0x12a0…12c0 5f 08 65 5f 08 61 5f 08 64 2c 20 74 68 65 20 73 79 6d 62 6f 6c 73 20 6f 72 20 65 78 74 65 72 6e ┆_ e_ a_ d, the symbols or extern┆
0x12c0…12e0 61 6c 73 20 61 72 65 0a 20 20 20 20 20 72 65 61 64 29 2e 20 20 54 6f 20 66 6f 72 63 65 20 73 65 ┆als are read). To force se┆
0x12e0…1300 63 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 20 69 6e 20 6d 65 ┆ctions of the symbol table in me┆
0x1300…1320 6d 6f 72 79 2c 0a 20 20 20 20 20 63 61 6c 6c 20 5f 08 6c 5f 08 64 5f 08 72 5f 08 65 5f 08 61 5f ┆mory, call _ l_ d_ r_ e_ a_┆
0x1320…1340 08 64 5f 08 73 5f 08 74 20 77 69 74 68 20 5f 08 53 5f 08 54 5f 5f 08 50 2a 20 63 6f 6e 73 74 61 ┆ d_ s_ t with _ S_ T__ P* consta┆
0x1340…1360 6e 74 73 20 4f 52 65 64 20 74 6f 67 65 74 68 65 72 20 66 72 6f 6d 0a 20 20 20 20 20 5f 08 73 5f ┆nts ORed together from _ s_┆
0x1360…1380 08 74 5f 08 73 5f 08 75 5f 08 70 5f 08 70 5f 08 6f 5f 08 72 5f 08 74 2e 5f 08 68 2e 0a 0a 20 20 ┆ t_ s_ u_ p_ p_ o_ r_ t._ h. ┆
0x1380…13a0 20 20 20 54 68 65 20 70 72 6f 67 72 61 6d 20 6d 75 73 74 20 62 65 20 6c 6f 61 64 65 64 20 77 69 ┆ The program must be loaded wi┆
0x13a0…13c0 74 68 20 74 68 65 20 6f 62 6a 65 63 74 20 66 69 6c 65 20 61 63 63 65 73 73 20 72 6f 75 2d 0a 20 ┆th the object file access rou- ┆
0x13c0…13e0 20 20 20 20 74 69 6e 65 20 6c 69 62 72 61 72 79 20 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 62 ┆ tine library l l l li i i ib┆
0x13e0…1400 08 62 08 62 08 62 6d 08 6d 08 6d 08 6d 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 2e 08 2e 08 2e ┆ b b bm m m ml l l ld d d d. . .┆
0x1400…1420 08 2e 61 08 61 08 61 08 61 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 ┆ .a a a a. S S S SE E E EE E E ┆
0x1420…1440 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 ┆E A A A AL L L LS S S SO O O O ┆
0x1440…1460 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 66 6f 70 65 6e ┆ Library Functions (3): fopen┆
0x1460…1480 2c 20 6c 64 63 6c 6f 73 65 0a 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74 73 20 28 35 29 3a ┆, ldclose File Formats (5):┆
0x1480…14a0 20 6c 64 66 63 6e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ ldfcn March 1989 ┆
0x14a0…14c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 ┆ TX Programmer's ┆
0x14c0…14e0 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 0a 0a 0a 0a 0a ┆Reference ┆
0x14e0…14e9 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆