|
|
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: g
Length: 6151 (0x1807)
Names: »gethostent.3n«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/gethostent.3n«
└─⟦this⟧ »./usr/man/cat3/gethostent.3n«
0x0000…0020 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_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 67 65 74 68 6f 73 74 65 6e 74 28 33 6e 29 0a 0a 0a 0a ┆ions gethostent(3n) ┆
0x0060…0080 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 ┆
0x0080…00a0 20 20 67 65 74 68 6f 73 74 65 6e 74 2c 20 67 65 74 68 6f 73 74 62 79 6e 61 6d 65 2c 20 67 65 74 ┆ gethostent, gethostbyname, get┆
0x00a0…00c0 68 6f 73 74 62 79 61 64 64 72 2c 20 73 65 74 68 6f 73 74 65 6e 74 2c 0a 20 20 20 20 20 65 6e 64 ┆hostbyaddr, sethostent, end┆
0x00c0…00e0 68 6f 73 74 65 6e 74 20 2d 20 67 65 74 20 6e 65 74 77 6f 72 6b 20 68 6f 73 74 20 65 6e 74 72 79 ┆hostent - get network host entry┆
0x00e0…0100 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 08 ┆ S S S SY Y Y YN N N NT T T TA ┆
0x0100…0120 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 69 ┆A A AX X X X # # # #i i i i┆
0x0120…0140 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 08 ┆n n n nc c c cl l l lu u u ud d ┆
0x0140…0160 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 ┆d de e e e < < < <n n n ne e e e┆
0x0160…0180 74 08 74 08 74 08 74 64 08 64 08 64 08 64 62 08 62 08 62 08 62 2e 08 2e 08 2e 08 2e 68 08 68 08 ┆t t t td d d db b b b. . . .h h ┆
0x0180…01a0 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 65 08 65 08 65 08 65 78 08 78 08 78 08 78 74 ┆h h> > > > e e e ex x x xt┆
0x01a0…01c0 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 20 69 08 69 08 ┆ t t te e e er r r rn n n n i i ┆
0x01c0…01e0 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 68 08 68 08 68 08 68 5f 08 5f 08 5f 08 5f ┆i in n n nt t t t h h h h_ _ _ _┆
0x01e0…0200 65 08 65 08 65 08 65 72 08 72 08 72 08 72 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 6f 08 6f 08 ┆e e e er r r rr r r rn n n no o ┆
0x0200…0220 6f 08 6f 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 ┆o o; ; ; ; s s s st t t tr┆
0x0220…0240 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 68 08 68 08 ┆ r r ru u u uc c c ct t t t h h ┆
0x0240…0260 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e ┆h ho o o os s s st t t te e e en┆
0x0260…0280 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 ┆ n n nt t t t * * * *g g g ge e ┆
0x0280…02a0 65 08 65 74 08 74 08 74 08 74 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 ┆e et t t th h h ho o o os s s st┆
0x02a0…02c0 08 74 08 74 08 74 62 08 62 08 62 08 62 79 08 79 08 79 08 79 6e 08 6e 08 6e 08 6e 61 08 61 08 61 ┆ t t tb b b by y y yn n n na a a┆
0x02c0…02e0 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 28 08 28 08 28 08 28 6e 08 6e 08 6e 08 6e 61 08 ┆ am m m me e e e( ( ( (n n n na ┆
0x02e0…0300 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a 20 20 20 20 20 ┆a a am m m me e e e) ) ) ) ┆
0x0300…0320 63 08 63 08 63 08 63 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 ┆c c c ch h h ha a a ar r r r * *┆
0x0320…0340 08 2a 08 2a 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 ┆ * *n n n na a a am m m me e e e┆
0x0340…0360 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 ┆; ; ; ; s s s st t t tr r ┆
0x0360…0380 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 68 08 68 08 68 08 68 ┆r ru u u uc c c ct t t t h h h h┆
0x0380…03a0 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e 08 6e 08 ┆o o o os s s st t t te e e en n ┆
0x03a0…03c0 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 65 08 65 ┆n nt t t t * * * *g g g ge e e e┆
0x03c0…03e0 74 08 74 08 74 08 74 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 ┆t t t th h h ho o o os s s st t ┆
0x03e0…0400 74 08 74 62 08 62 08 62 08 62 79 08 79 08 79 08 79 61 08 61 08 61 08 61 64 08 64 08 64 08 64 64 ┆t tb b b by y y ya a a ad d d dd┆
0x0400…0420 08 64 08 64 08 64 72 08 72 08 72 08 72 28 08 28 08 28 08 28 61 08 61 08 61 08 61 64 08 64 08 64 ┆ d d dr r r r( ( ( (a a a ad d d┆
0x0420…0440 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 65 ┆ dd d d dr r r r, , , , l l l le┆
0x0440…0460 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 2c 08 2c 08 2c 08 2c 20 74 08 74 08 74 08 74 79 08 79 08 ┆ e e en n n n, , , , t t t ty y ┆
0x0460…0480 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 ┆y yp p p pe e e e) ) ) ) c ┆
0x0480…04a0 63 08 63 08 63 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 ┆c c ch h h ha a a ar r r r * * *┆
0x04a0…04c0 08 2a 61 08 61 08 61 08 61 64 08 64 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 3b 08 ┆ *a a a ad d d dd d d dr r r r; ┆
0x04c0…04e0 3b 08 3b 08 3b 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6c 08 6c 08 ┆; ; ; i i i in n n nt t t t l l ┆
0x04e0…0500 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 2c 08 2c 08 2c 08 2c 20 74 08 74 08 74 08 74 ┆l le e e en n n n, , , , t t t t┆
0x0500…0520 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 ┆y y y yp p p pe e e e; ; ; ; ┆
0x0520…0540 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 ┆ s s s st t t tr r r ru u u uc┆
0x0540…0560 08 63 08 63 08 63 74 08 74 08 74 08 74 20 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 ┆ c c ct t t t h h h ho o o os s ┆
0x0560…0580 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 ┆s st t t te e e en n n nt t t t ┆
0x0580…05a0 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 68 08 68 08 ┆* * * *g g g ge e e et t t th h ┆
0x05a0…05c0 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e ┆h ho o o os s s st t t te e e en┆
0x05c0…05e0 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 ┆ n n nt t t t( ( ( () ) ) ) ┆
0x05e0…0600 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 68 08 68 08 68 08 68 6f 08 ┆ s s s se e e et t t th h h ho ┆
0x0600…0620 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 ┆o o os s s st t t te e e en n n ┆
0x0620…0640 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 ┆nt t t t( ( ( (s s s st t t ta a┆
0x0640…0660 08 61 08 61 79 08 79 08 79 08 79 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 ┆ a ay y y yo o o op p p pe e e e┆
0x0660…0680 6e 08 6e 08 6e 08 6e 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e ┆n n n n) ) ) ) i i i in n n┆
0x0680…06a0 08 6e 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 08 61 79 ┆ nt t t t s s s st t t ta a a ay┆
0x06a0…06c0 08 79 08 79 08 79 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 6e 08 6e 08 6e ┆ y y yo o o op p p pe e e en n n┆
0x06c0…06e0 08 6e 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 64 08 ┆ n; ; ; ; e e e en n n nd ┆
0x06e0…0700 64 08 64 08 64 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 ┆d d dh h h ho o o os s s st t t ┆
0x0700…0720 74 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 29 08 29 ┆te e e en n n nt t t t( ( ( () )┆
0x0720…0740 08 29 08 29 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 ┆ ) ) D D D DE E E ES S S SC C C┆
0x0740…0760 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 54 08 54 49 08 ┆ CR R R RI I I IP P P PT T T TI ┆
0x0760…0780 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 67 5f 08 65 5f ┆I I IO O O ON N N N _ g_ e_┆
0x0780…07a0 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 ┆ t_ h_ o_ s_ t_ b_ y_ n_ a_ m_ e┆
0x07a0…07c0 20 61 6e 64 20 5f 08 67 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 ┆ and _ g_ e_ t_ h_ o_ s_ t_ b_ y┆
0x07c0…07e0 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 65 61 63 68 20 72 65 74 75 72 6e 20 61 20 70 6f 69 6e 74 ┆_ a_ d_ d_ r each return a point┆
0x07e0…0800 65 72 20 74 6f 20 61 6e 0a 20 20 20 20 20 6f 62 6a 65 63 74 20 77 69 74 68 20 74 68 65 20 66 6f ┆er to an object with the fo┆
0x0800…0820 6c 6c 6f 77 69 6e 67 20 73 74 72 75 63 74 75 72 65 2e 20 20 54 68 69 73 20 73 74 72 75 63 74 75 ┆llowing structure. This structu┆
0x0820…0840 72 65 20 63 6f 6e 2d 0a 20 20 20 20 20 74 61 69 6e 73 20 65 69 74 68 65 72 20 74 68 65 20 69 6e ┆re con- tains either the in┆
0x0840…0860 66 6f 72 6d 61 74 69 6f 6e 20 6f 62 74 61 69 6e 65 64 20 66 72 6f 6d 20 74 68 65 20 6e 61 6d 65 ┆formation obtained from the name┆
0x0860…0880 20 73 65 72 76 65 72 2c 0a 20 20 20 20 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 5f 08 64 2c 20 6f ┆ server, _ n_ a_ m_ e_ d, o┆
0x0880…08a0 72 20 62 72 6f 6b 65 6e 2d 6f 75 74 20 66 69 65 6c 64 73 20 66 72 6f 6d 20 61 20 6c 69 6e 65 20 ┆r broken-out fields from a line ┆
0x08a0…08c0 69 6e 20 2f 65 74 63 2f 68 6f 73 74 73 2e 20 20 49 66 0a 20 20 20 20 20 74 68 65 20 6c 6f 63 61 ┆in /etc/hosts. If the loca┆
0x08c0…08e0 6c 20 6e 61 6d 65 20 73 65 72 76 65 72 20 69 73 20 6e 6f 74 20 72 75 6e 6e 69 6e 67 20 74 68 65 ┆l name server is not running the┆
0x08e0…0900 73 65 20 72 6f 75 74 69 6e 65 73 20 64 6f 20 61 0a 20 20 20 20 20 6c 6f 6f 6b 75 70 20 69 6e 20 ┆se routines do a lookup in ┆
0x0900…0920 2f 65 74 63 2f 68 6f 73 74 73 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 68 6f ┆/etc/hosts. struct ho┆
0x0920…0940 73 74 65 6e 74 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 2a 68 ┆stent { char *h┆
0x0940…0960 5f 6e 61 6d 65 3b 20 20 20 20 20 20 20 2f 2a 20 6f 66 66 69 63 69 61 6c 20 6e 61 6d 65 20 6f 66 ┆_name; /* official name of┆
0x0960…0980 20 68 6f 73 74 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 2a ┆ host */ char *┆
0x0980…09a0 2a 68 5f 61 6c 69 61 73 65 73 3b 20 20 20 2f 2a 20 61 6c 69 61 73 20 6c 69 73 74 20 2a 2f 0a 20 ┆*h_aliases; /* alias list */ ┆
0x09a0…09c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 68 5f 61 64 64 72 74 79 70 65 3b ┆ int h_addrtype;┆
0x09c0…09e0 20 20 20 20 2f 2a 20 68 6f 73 74 20 61 64 64 72 65 73 73 20 74 79 70 65 20 2a 2f 0a 20 20 20 20 ┆ /* host address type */ ┆
0x09e0…0a00 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 68 5f 6c 65 6e 67 74 68 3b 20 20 20 20 20 ┆ int h_length; ┆
0x0a00…0a20 20 2f 2a 20 6c 65 6e 67 74 68 20 6f 66 20 61 64 64 72 65 73 73 20 2a 2f 0a 20 20 20 20 20 20 20 ┆ /* length of address */ ┆
0x0a20…0a40 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 2a 2a 68 5f 61 64 64 72 5f 6c 69 73 74 3b 20 2f 2a ┆ char **h_addr_list; /*┆
0x0a40…0a60 20 6c 69 73 74 20 6f 66 20 61 64 64 72 65 73 73 65 73 20 66 72 6f 6d 20 6e 61 6d 65 20 73 65 72 ┆ list of addresses from name ser┆
0x0a60…0a80 76 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 20 20 20 20 20 20 20 20 20 20 23 64 ┆ver */ }; #d┆
0x0a80…0aa0 65 66 69 6e 65 20 68 5f 61 64 64 72 20 68 5f 61 64 64 72 5f 6c 69 73 74 5b 30 5d 2f 2a 20 61 64 ┆efine h_addr h_addr_list[0]/* ad┆
0x0aa0…0ac0 64 72 65 73 73 2c 20 66 6f 72 20 62 61 63 6b 77 61 72 64 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 ┆dress, for backward compatibilit┆
0x0ac0…0ae0 79 20 2a 2f 0a 0a 0a 20 20 20 20 20 54 68 65 20 6d 65 6d 62 65 72 73 20 6f 66 20 74 68 69 73 20 ┆y */ The members of this ┆
0x0ae0…0b00 73 74 72 75 63 74 75 72 65 20 61 72 65 3a 0a 0a 20 20 20 20 20 68 5f 6e 61 6d 65 20 20 20 20 20 ┆structure are: h_name ┆
0x0b00…0b20 20 20 4f 66 66 69 63 69 61 6c 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 68 6f 73 74 2e 0a 0a 20 20 ┆ Official name of the host. ┆
0x0b20…0b40 20 20 20 68 5f 61 6c 69 61 73 65 73 20 20 20 20 41 20 7a 65 72 6f 20 74 65 72 6d 69 6e 61 74 65 ┆ h_aliases A zero terminate┆
0x0b40…0b60 64 20 61 72 72 61 79 20 6f 66 20 61 6c 74 65 72 6e 61 74 65 20 6e 61 6d 65 73 20 66 6f 72 0a 20 ┆d array of alternate names for ┆
0x0b60…0b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 68 6f 73 74 2e 0a 0a 20 20 20 20 ┆ the host. ┆
0x0b80…0ba0 20 68 5f 61 64 64 72 74 79 70 65 20 20 20 54 68 65 20 74 79 70 65 20 6f 66 20 61 64 64 72 65 73 ┆ h_addrtype The type of addres┆
0x0ba0…0bc0 73 20 62 65 69 6e 67 20 72 65 74 75 72 6e 65 64 3b 20 63 75 72 72 65 6e 74 6c 79 0a 20 20 20 20 ┆s being returned; currently ┆
0x0bc0…0be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6c 77 61 79 73 20 41 46 5f 49 4e 45 54 2e 0a 0a 20 ┆ always AF_INET. ┆
0x0be0…0c00 20 20 20 20 68 5f 6c 65 6e 67 74 68 20 20 20 20 20 54 68 65 20 6c 65 6e 67 74 68 2c 20 69 6e 20 ┆ h_length The length, in ┆
0x0c00…0c20 62 79 74 65 73 2c 20 6f 66 20 74 68 65 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 68 5f 61 ┆bytes, of the address. h_a┆
0x0c20…0c40 64 64 72 5f 6c 69 73 74 20 20 41 20 7a 65 72 6f 20 74 65 72 6d 69 6e 61 74 65 64 20 61 72 72 61 ┆ddr_list A zero terminated arra┆
0x0c40…0c60 79 20 6f 66 20 6e 65 74 77 6f 72 6b 20 61 64 64 72 65 73 73 65 73 0a 20 20 20 20 20 20 20 20 20 ┆y of network addresses ┆
0x0c60…0c80 20 20 20 20 20 20 20 20 20 66 6f 72 20 74 68 65 20 68 6f 73 74 2e 20 20 48 6f 73 74 20 61 64 64 ┆ for the host. Host add┆
0x0c80…0ca0 72 65 73 73 65 73 20 61 72 65 20 72 65 74 75 72 6e 65 64 20 69 6e 0a 20 20 20 20 20 20 20 20 20 ┆resses are returned in ┆
0x0ca0…0cc0 20 20 20 20 20 20 20 20 20 6e 65 74 77 6f 72 6b 20 62 79 74 65 20 6f 72 64 65 72 2e 0a 0a 20 20 ┆ network byte order. ┆
0x0cc0…0ce0 20 20 20 68 5f 61 64 64 72 20 20 20 20 20 20 20 54 68 65 20 66 69 72 73 74 20 61 64 64 72 65 73 ┆ h_addr The first addres┆
0x0ce0…0d00 73 20 69 6e 20 68 5f 61 64 64 72 5f 6c 69 73 74 3b 20 74 68 69 73 20 69 73 20 66 6f 72 0a 20 20 ┆s in h_addr_list; this is for ┆
0x0d00…0d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 61 63 6b 77 61 72 64 20 63 6f 6d 70 61 74 69 ┆ backward compati┆
0x0d20…0d40 62 6c 69 74 79 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 68 5f ┆blity. _ s_ e_ t_ h_┆
0x0d40…0d60 08 6f 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 61 6c 6c 6f 77 73 20 61 20 72 65 71 75 65 ┆ o_ s_ t_ e_ n_ t allows a reque┆
0x0d60…0d80 73 74 20 66 6f 72 20 74 68 65 20 75 73 65 20 6f 66 20 61 20 63 6f 6e 6e 65 63 74 65 64 0a 20 20 ┆st for the use of a connected ┆
0x0d80…0da0 20 20 20 73 6f 63 6b 65 74 20 75 73 69 6e 67 20 54 43 50 20 66 6f 72 20 71 75 65 72 69 65 73 2e ┆ socket using TCP for queries.┆
0x0da0…0dc0 20 20 49 66 20 74 68 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 79 5f 08 6f 5f 08 70 5f 08 65 5f 08 ┆ If the _ s_ t_ a_ y_ o_ p_ e_ ┆
0x0dc0…0de0 6e 20 66 6c 61 67 20 69 73 20 6e 6f 6e 2d 0a 20 20 20 20 20 7a 65 72 6f 2c 20 74 68 69 73 20 73 ┆n flag is non- zero, this s┆
0x0de0…0e00 65 74 73 20 74 68 65 20 6f 70 74 69 6f 6e 20 74 6f 20 73 65 6e 64 20 61 6c 6c 20 71 75 65 72 69 ┆ets the option to send all queri┆
0x0e00…0e20 65 73 20 74 6f 20 74 68 65 20 6e 61 6d 65 0a 20 20 20 20 20 73 65 72 76 65 72 20 75 73 69 6e 67 ┆es to the name server using┆
0x0e20…0e40 20 54 43 50 20 61 6e 64 20 74 6f 20 72 65 74 61 69 6e 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f ┆ TCP and to retain the connectio┆
0x0e40…0e60 6e 20 61 66 74 65 72 20 65 61 63 68 0a 20 20 20 20 20 63 61 6c 6c 20 74 6f 20 5f 08 67 5f 08 65 ┆n after each call to _ g_ e┆
0x0e60…0e80 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 ┆_ t_ h_ o_ s_ t_ b_ y_ n_ a_ m_ ┆
0x0e80…0ea0 65 20 6f 72 20 5f 08 67 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 ┆e or _ g_ e_ t_ h_ o_ s_ t_ b_ y┆
0x0ea0…0ec0 5f 08 61 5f 08 64 5f 08 64 5f 08 72 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 68 ┆_ a_ d_ d_ r. _ e_ n_ d_ h┆
0x0ec0…0ee0 5f 08 6f 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 63 6c 6f 73 65 73 20 74 68 65 20 54 43 ┆_ o_ s_ t_ e_ n_ t closes the TC┆
0x0ee0…0f00 50 20 63 6f 6e 6e 65 63 74 69 6f 6e 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 ┆P connection. D D D DI I I IA A┆
0x0f00…0f20 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 53 ┆ A AG G G GN N N NO O O OS S S S┆
0x0f20…0f40 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 20 ┆T T T TI I I IC C C CS S S S ┆
0x0f40…0f60 20 20 45 72 72 6f 72 20 72 65 74 75 72 6e 20 73 74 61 74 75 73 20 66 72 6f 6d 20 5f 08 67 5f 08 ┆ Error return status from _ g_ ┆
0x0f60…0f80 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f ┆e_ t_ h_ o_ s_ t_ b_ y_ n_ a_ m_┆
0x0f80…0fa0 08 65 20 61 6e 64 20 5f 08 67 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f ┆ e and _ g_ e_ t_ h_ o_ s_ t_ b_┆
0x0fa0…0fc0 08 79 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 0a 20 20 20 20 20 69 6e 64 69 63 61 74 65 64 ┆ y_ a_ d_ d_ r is indicated┆
0x0fc0…0fe0 20 62 79 20 72 65 74 75 72 6e 20 6f 66 20 61 20 6e 75 6c 6c 20 70 6f 69 6e 74 65 72 2e 20 20 54 ┆ by return of a null pointer. T┆
0x0fe0…1000 68 65 20 65 78 74 65 72 6e 61 6c 20 69 6e 74 65 67 65 72 0a 20 20 20 20 20 5f 08 68 5f 5f 08 65 ┆he external integer _ h__ e┆
0x1000…1020 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 6d 61 79 20 74 68 65 6e 20 62 65 20 63 68 65 63 6b 65 64 ┆_ r_ r_ n_ o may then be checked┆
0x1020…1040 20 74 6f 20 73 65 65 20 77 68 65 74 68 65 72 20 74 68 69 73 20 69 73 20 61 20 74 65 6d 2d 0a 20 ┆ to see whether this is a tem- ┆
0x1040…1060 20 20 20 20 70 6f 72 61 72 79 20 66 61 69 6c 75 72 65 20 6f 72 20 61 6e 20 69 6e 76 61 6c 69 64 ┆ porary failure or an invalid┆
0x1060…1080 20 6f 72 20 75 6e 6b 6e 6f 77 6e 20 68 6f 73 74 2e 0a 0a 20 20 20 20 20 5f 08 68 5f 5f 08 65 5f ┆ or unknown host. _ h__ e_┆
0x1080…10a0 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 63 61 6e 20 68 61 76 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 ┆ r_ r_ n_ o can have the followi┆
0x10a0…10c0 6e 67 20 76 61 6c 75 65 73 3a 0a 0a 20 20 20 20 20 48 4f 53 54 5f 4e 4f 54 5f 46 4f 55 4e 44 20 ┆ng values: HOST_NOT_FOUND ┆
0x10c0…10e0 20 4e 6f 20 73 75 63 68 20 68 6f 73 74 20 69 73 20 6b 6e 6f 77 6e 2e 0a 0a 20 20 20 20 20 54 52 ┆ No such host is known. TR┆
0x10e0…1100 59 5f 41 47 41 49 4e 20 20 20 20 20 20 20 54 68 69 73 20 69 73 20 75 73 75 61 6c 6c 79 20 61 20 ┆Y_AGAIN This is usually a ┆
0x1100…1120 74 65 6d 70 6f 72 61 72 79 20 65 72 72 6f 72 20 61 6e 64 20 6d 65 61 6e 73 0a 20 20 20 20 20 20 ┆temporary error and means ┆
0x1120…1140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 61 74 20 74 68 65 20 6c 6f 63 61 6c 20 73 65 ┆ that the local se┆
0x1140…1160 72 76 65 72 20 64 69 64 20 6e 6f 74 20 72 65 63 65 69 76 65 20 61 0a 20 20 20 20 20 20 20 20 20 ┆rver did not receive a ┆
0x1160…1180 20 20 20 20 20 20 20 20 20 20 20 20 72 65 73 70 6f 6e 73 65 20 66 72 6f 6d 20 61 6e 20 61 75 74 ┆ response from an aut┆
0x1180…11a0 68 6f 72 69 74 61 74 69 76 65 20 73 65 72 76 65 72 2e 20 20 41 0a 20 20 20 20 20 20 20 20 20 20 ┆horitative server. A ┆
0x11a0…11c0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 72 79 20 61 74 20 73 6f 6d 65 20 6c 61 74 65 72 20 74 ┆ retry at some later t┆
0x11c0…11e0 69 6d 65 20 6d 61 79 20 73 75 63 63 65 65 64 2e 0a 0a 20 20 20 20 20 4e 4f 5f 52 45 43 4f 56 45 ┆ime may succeed. NO_RECOVE┆
0x11e0…1200 52 59 20 20 20 20 20 54 68 69 73 20 69 73 20 61 20 6e 6f 6e 2d 72 65 63 6f 76 65 72 61 62 6c 65 ┆RY This is a non-recoverable┆
0x1200…1220 20 65 72 72 6f 72 2e 0a 0a 20 20 20 20 20 4e 4f 5f 41 44 44 52 45 53 53 20 20 20 20 20 20 54 68 ┆ error. NO_ADDRESS Th┆
0x1220…1240 65 20 72 65 71 75 65 73 74 65 64 20 6e 61 6d 65 20 69 73 20 76 61 6c 69 64 20 62 75 74 20 64 6f ┆e requested name is valid but do┆
0x1240…1260 65 73 20 6e 6f 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 76 65 ┆es not have┆
0x1260…1280 20 61 6e 20 49 50 20 61 64 64 72 65 73 73 3b 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 74 65 ┆ an IP address; this is not a te┆
0x1280…12a0 6d 70 6f 72 61 72 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 72 72 ┆mporary err┆
0x12a0…12c0 6f 72 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 61 6e 6f 74 68 65 72 20 74 79 70 65 20 6f 66 20 72 ┆or. This means another type of r┆
0x12c0…12e0 65 71 75 65 73 74 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 ┆equest to t┆
0x12e0…1300 68 65 20 6e 61 6d 65 20 73 65 72 76 65 72 20 77 69 6c 6c 20 72 65 73 75 6c 74 20 69 6e 20 61 6e ┆he name server will result in an┆
0x1300…1320 20 61 6e 73 77 65 72 2e 0a 0a 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 ┆ answer. F F F FI I I IL L L LE┆
0x1320…1340 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 2f 65 74 63 2f 68 6f 73 74 73 0a 0a 53 ┆ E E ES S S S /etc/hosts S┆
0x1340…1360 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 41 4c 08 4c 08 ┆ S S SE E E EE E E E A A A AL L ┆
0x1360…1380 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d ┆L LS S S SO O O O File Form┆
0x1380…13a0 61 74 73 20 28 35 29 3a 20 20 68 6f 73 74 73 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e ┆ats (5): hosts Library Fun┆
0x13a0…13c0 63 74 69 6f 6e 73 20 28 33 29 3a 20 20 72 65 73 6f 6c 76 65 72 0a 20 20 20 20 20 53 79 73 74 65 ┆ctions (3): resolver Syste┆
0x13c0…13e0 6d 20 4d 61 6e 61 67 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 38 29 3a 20 20 6e 61 6d 65 64 0a 0a ┆m Manager Commands (8): named ┆
0x13e0…1400 43 08 43 08 43 08 43 41 08 41 08 41 08 41 56 08 56 08 56 08 56 45 08 45 08 45 08 45 41 08 41 08 ┆C C C CA A A AV V V VE E E EA A ┆
0x1400…1420 41 08 41 54 08 54 08 54 08 54 0a 20 20 20 20 20 5f 08 47 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f ┆A AT T T T _ G_ e_ t_ h_ o_┆
0x1420…1440 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 69 73 20 64 65 66 69 6e 65 64 2c 20 61 6e 64 20 5f ┆ s_ t_ e_ n_ t is defined, and _┆
0x1440…1460 08 73 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 61 6e ┆ s_ e_ t_ h_ o_ s_ t_ e_ n_ t an┆
0x1460…1480 64 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 ┆d _ e_ n_ d_ h_ o_ s_ t_ e_ n_ t┆
0x1480…14a0 20 61 72 65 0a 20 20 20 20 20 72 65 64 65 66 69 6e 65 64 2c 20 77 68 65 6e 20 5f 08 6c 5f 08 69 ┆ are redefined, when _ l_ i┆
0x14a0…14c0 5f 08 62 5f 08 63 20 69 73 20 62 75 69 6c 74 20 74 6f 20 75 73 65 20 6f 6e 6c 79 20 74 68 65 20 ┆_ b_ c is built to use only the ┆
0x14c0…14e0 72 6f 75 74 69 6e 65 73 20 74 6f 0a 20 20 20 20 20 6c 6f 6f 6b 75 70 20 69 6e 20 2f 65 74 63 2f ┆routines to lookup in /etc/┆
0x14e0…1500 68 6f 73 74 73 20 61 6e 64 20 6e 6f 74 20 74 68 65 20 6e 61 6d 65 20 73 65 72 76 65 72 2e 0a 0a ┆hosts and not the name server. ┆
0x1500…1520 20 20 20 20 20 5f 08 47 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 65 5f 08 6e ┆ _ G_ e_ t_ h_ o_ s_ t_ e_ n┆
0x1520…1540 5f 08 74 20 72 65 61 64 73 20 74 68 65 20 6e 65 78 74 20 6c 69 6e 65 20 6f 66 20 2f 65 74 63 2f ┆_ t reads the next line of /etc/┆
0x1540…1560 68 6f 73 74 73 2c 20 6f 70 65 6e 69 6e 67 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 20 69 66 20 ┆hosts, opening the file if ┆
0x1560…1580 6e 65 63 65 73 73 61 72 79 2e 0a 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 68 5f 08 6f ┆necessary. _ s_ e_ t_ h_ o┆
0x1580…15a0 5f 08 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 69 73 20 72 65 64 65 66 69 6e 65 64 20 74 6f 20 ┆_ s_ t_ e_ n_ t is redefined to ┆
0x15a0…15c0 6f 70 65 6e 20 61 6e 64 20 72 65 77 69 6e 64 20 74 68 65 20 66 69 6c 65 2e 20 20 49 66 20 74 68 ┆open and rewind the file. If th┆
0x15c0…15e0 65 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f 08 61 5f 08 79 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 ┆e _ s_ t_ a_ y_ o_ p_ e_ n ┆
0x15e0…1600 61 72 67 75 6d 65 6e 74 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 74 68 65 20 68 6f 73 74 73 20 ┆argument is non-zero, the hosts ┆
0x1600…1620 64 61 74 61 20 62 61 73 65 20 77 69 6c 6c 20 6e 6f 74 0a 20 20 20 20 20 62 65 20 63 6c 6f 73 65 ┆data base will not be close┆
0x1620…1640 64 20 61 66 74 65 72 20 65 61 63 68 20 63 61 6c 6c 20 74 6f 20 5f 08 67 5f 08 65 5f 08 74 5f 08 ┆d after each call to _ g_ e_ t_ ┆
0x1640…1660 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 6f 72 20 ┆h_ o_ s_ t_ b_ y_ n_ a_ m_ e or ┆
0x1660…1680 5f 08 67 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 62 5f 08 79 5f 08 61 5f 08 ┆_ g_ e_ t_ h_ o_ s_ t_ b_ y_ a_ ┆
0x1680…16a0 64 5f 08 64 5f 08 72 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 68 5f 08 6f 5f 08 ┆d_ d_ r. _ e_ n_ d_ h_ o_ ┆
0x16a0…16c0 73 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 69 73 20 72 65 64 65 66 69 6e 65 64 20 74 6f 20 63 6c ┆s_ t_ e_ n_ t is redefined to cl┆
0x16c0…16e0 6f 73 65 20 74 68 65 20 66 69 6c 65 2e 0a 0a 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 4d 08 4d ┆ose the file. L L L LI I I IM M┆
0x16e0…1700 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 54 08 54 08 54 08 54 ┆ M MI I I IT T T TA A A AT T T T┆
0x1700…1720 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 53 08 53 0a 20 20 20 ┆I I I IO O O ON N N NS S S S ┆
0x1720…1740 20 20 41 6c 6c 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 ┆ All information is contained i┆
0x1740…1760 6e 20 61 20 73 74 61 74 69 63 20 61 72 65 61 20 73 6f 20 69 74 20 6d 75 73 74 20 62 65 0a 20 20 ┆n a static area so it must be ┆
0x1760…1780 20 20 20 63 6f 70 69 65 64 20 69 66 20 69 74 20 69 73 20 74 6f 20 62 65 20 73 61 76 65 64 2e 20 ┆ copied if it is to be saved. ┆
0x1780…17a0 20 4f 6e 6c 79 20 74 68 65 20 49 6e 74 65 72 6e 65 74 20 61 64 64 72 65 73 73 20 66 6f 72 2d 0a ┆ Only the Internet address for- ┆
0x17a0…17c0 20 20 20 20 20 6d 61 74 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 75 6e 64 65 72 73 74 6f 6f 64 ┆ mat is currently understood┆
0x17c0…17e0 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆. December 1989 ┆
0x17e0…1800 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 52 65 66 65 72 ┆ TX Programmer's Refer┆
0x1800…1807 65 6e 63 65 0a 0a 0a ┆ence ┆