|
|
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: 2732 (0xaac)
Names: »gethostname.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat2/gethostname.2«
└─⟦this⟧ »./usr/man/cat2/gethostname.2«
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 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆ 0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 68 6f 73 74 6e 61 6d 65 28 32 29 0a 0a 0a 0a ┆s gethostname(2) ┆ 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 67 65 74 68 6f 73 74 6e 61 6d 65 2c 20 73 65 74 68 6f 73 74 6e 61 6d 65 20 2d 20 67 65 74 ┆ gethostname, sethostname - get┆ 0x0a0…0c0 2f 73 65 74 20 6e 61 6d 65 20 6f 66 20 63 75 72 72 65 6e 74 20 68 6f 73 74 0a 0a 53 08 53 08 53 ┆/set name of current host S S S┆ 0x0c0…0e0 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 41 58 08 ┆ SY Y Y YN N N NT T T TA A A AX ┆ 0x0e0…100 58 08 58 08 58 0a 20 20 20 20 20 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 ┆X X X g g g ge e e et t t t┆ 0x100…120 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 74 6e 08 6e 08 ┆h h h ho o o os s s st t t tn n ┆ 0x120…140 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 28 08 28 08 28 08 28 6e ┆n na a a am m m me e e e( ( ( (n┆ 0x140…160 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 2c 08 2c 08 2c ┆ n n na a a am m m me e e e, , ,┆ 0x160…180 08 2c 20 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 6c ┆ , n n n na a a am m m me e e el┆ 0x180…1a0 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 29 08 29 08 29 08 29 0a 20 20 20 20 ┆ l l le e e en n n n) ) ) ) ┆ 0x1a0…1c0 20 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 ┆ c c c ch h h ha a a ar r r r * ┆ 0x1c0…1e0 2a 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 ┆* * *n n n na a a am m m me e e ┆ 0x1e0…200 65 3b 08 3b 08 3b 08 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 ┆e; ; ; ; i i i in n n nt t ┆ 0x200…220 74 08 74 20 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 ┆t t n n n na a a am m m me e e e┆ 0x220…240 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 3b 08 3b 08 3b 08 3b 0a 0a 20 20 ┆l l l le e e en n n n; ; ; ; ┆ 0x240…260 20 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 ┆ s s s se e e et t t th h h ho┆ 0x260…280 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 6e 08 6e 08 6e 08 6e 61 08 61 08 61 ┆ o o os s s st t t tn n n na a a┆ 0x280…2a0 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 ┆ 0x2a0…2c0 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e ┆a a am m m me e e e, , , , n n n┆ 0x2c0…2e0 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 65 08 ┆ na a a am m m me e e el l l le ┆ 0x2e0…300 65 08 65 08 65 6e 08 6e 08 6e 08 6e 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 ┆e e en n n n) ) ) ) c c c c┆ 0x300…320 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 6e 08 6e ┆h h h ha a a ar r r r * * * *n n┆ 0x320…340 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 3b 08 3b 08 3b 08 3b ┆ n na a a am m m me e e e; ; ; ;┆ 0x340…360 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6e 08 6e 08 ┆ i i i in n n nt t t t n n ┆ 0x360…380 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 65 ┆n na a a am m m me e e el l l le┆ 0x380…3a0 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 ┆ e e en n n n; ; ; ; D D D DE E┆ 0x3a0…3c0 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 49 08 49 08 49 ┆ E ES S S SC C C CR R R RI I I I┆ 0x3c0…3e0 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 4f 4e 08 4e 08 ┆P P P PT T T TI I I IO O O ON N ┆ 0x3e0…400 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 ┆N N _ g_ e_ t_ h_ o_ s_ t_ ┆ 0x400…420 6e 5f 08 61 5f 08 6d 5f 08 65 20 72 65 74 75 72 6e 73 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 ┆n_ a_ m_ e returns the standard ┆ 0x420…440 68 6f 73 74 20 6e 61 6d 65 20 66 6f 72 20 74 68 65 20 63 75 72 72 65 6e 74 0a 20 20 20 20 20 73 ┆host name for the current s┆ 0x440…460 79 73 74 65 6d 2c 20 61 73 20 70 72 65 76 69 6f 75 73 6c 79 20 73 65 74 20 62 79 20 5f 08 73 5f ┆ystem, as previously set by _ s_┆ 0x460…480 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2e 20 20 ┆ e_ t_ h_ o_ s_ t_ n_ a_ m_ e. ┆ 0x480…4a0 54 68 69 73 20 63 61 6c 6c 20 68 61 73 0a 20 20 20 20 20 6c 6f 63 61 6c 2d 6f 6e 6c 79 20 65 66 ┆This call has local-only ef┆ 0x4a0…4c0 66 65 63 74 2e 20 20 44 69 66 66 65 72 65 6e 74 20 68 6f 73 74 6e 61 6d 65 73 20 61 72 65 20 70 ┆fect. Different hostnames are p┆ 0x4c0…4e0 6f 73 73 69 62 6c 65 2e 20 20 54 68 65 0a 20 20 20 20 20 70 61 72 61 6d 65 74 65 72 20 5f 08 6e ┆ossible. The parameter _ n┆ 0x4e0…500 5f 08 61 5f 08 6d 5f 08 65 5f 08 6c 5f 08 65 5f 08 6e 20 73 70 65 63 69 66 69 65 73 20 74 68 65 ┆_ a_ m_ e_ l_ e_ n specifies the┆ 0x500…520 20 73 69 7a 65 20 6f 66 20 74 68 65 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 61 72 72 61 79 2e ┆ size of the _ n_ a_ m_ e array.┆ 0x520…540 20 20 54 68 65 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 20 6e 61 6d 65 20 69 73 20 6e 75 6c 6c ┆ The returned name is null┆ 0x540…560 2d 74 65 72 6d 69 6e 61 74 65 64 20 75 6e 6c 65 73 73 20 69 6e 73 75 66 66 69 63 69 65 6e 74 20 ┆-terminated unless insufficient ┆ 0x560…580 73 70 61 63 65 0a 20 20 20 20 20 69 73 20 70 72 6f 76 69 64 65 64 2e 0a 0a 20 20 20 20 20 5f 08 ┆space is provided. _ ┆ 0x580…5a0 73 5f 08 65 5f 08 74 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 ┆s_ e_ t_ h_ o_ s_ t_ n_ a_ m_ e ┆ 0x5a0…5c0 73 65 74 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 68 6f 73 74 20 6d 61 63 68 69 6e ┆sets the name of the host machin┆ 0x5c0…5e0 65 20 74 6f 20 62 65 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2c 0a 20 20 20 20 20 77 68 69 63 68 ┆e to be _ n_ a_ m_ e, which┆ 0x5e0…600 20 68 61 73 20 6c 65 6e 67 74 68 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 5f 08 6c 5f 08 65 5f 08 ┆ has length _ n_ a_ m_ e_ l_ e_ ┆ 0x600…620 6e 2e 20 20 54 68 69 73 20 63 61 6c 6c 20 69 73 20 72 65 73 74 72 69 63 74 65 64 20 74 6f 20 74 ┆n. This call is restricted to t┆ 0x620…640 68 65 0a 20 20 20 20 20 73 75 70 65 72 2d 75 73 65 72 20 61 6e 64 20 69 73 20 6e 6f 72 6d 61 6c ┆he super-user and is normal┆ 0x640…660 6c 79 20 75 73 65 64 20 6f 6e 6c 79 20 77 68 65 6e 20 74 68 65 20 73 79 73 74 65 6d 20 69 73 0a ┆ly used only when the system is ┆ 0x660…680 20 20 20 20 20 62 6f 6f 74 73 74 72 61 70 70 65 64 2e 0a 0a 20 20 20 20 20 5f 08 68 5f 08 6f 5f ┆ bootstrapped. _ h_ o_┆ 0x680…6a0 08 73 5f 08 74 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 75 6e 69 71 75 65 6c 79 20 69 64 65 6e 74 ┆ s_ t_ n_ a_ m_ e uniquely ident┆ 0x6a0…6c0 69 66 69 65 73 20 74 68 65 20 73 79 73 74 65 6d 20 77 69 74 68 69 6e 20 61 20 67 69 76 65 6e 20 ┆ifies the system within a given ┆ 0x6c0…6e0 6e 65 74 2d 0a 20 20 20 20 20 77 6f 72 6b 2e 0a 0a 20 20 20 20 20 46 6f 72 20 61 20 74 79 70 69 ┆net- work. For a typi┆ 0x6e0…700 63 61 6c 20 6d 75 6c 74 69 2d 50 55 20 73 79 73 74 65 6d 2c 20 65 61 63 68 20 50 55 20 77 69 6c ┆cal multi-PU system, each PU wil┆ 0x700…720 6c 20 62 65 20 66 75 72 74 68 65 72 20 69 64 65 6e 2d 0a 20 20 20 20 20 74 69 66 69 65 64 20 61 ┆l be further iden- tified a┆ 0x720…740 73 20 61 20 6e 6f 64 65 20 6f 66 20 74 68 65 20 73 79 73 74 65 6d 20 77 69 74 68 20 61 20 75 6e ┆s a node of the system with a un┆ 0x740…760 69 71 75 65 20 6e 6f 64 65 20 6e 61 6d 65 2e 20 20 54 68 65 0a 20 20 20 20 20 6e 6f 64 65 20 6e ┆ique node name. The node n┆ 0x760…780 61 6d 65 20 63 61 6e 20 62 65 20 6f 62 74 61 69 6e 65 64 20 62 79 20 5f 08 67 5f 08 65 5f 08 74 ┆ame can be obtained by _ g_ e_ t┆ 0x780…7a0 5f 08 70 5f 08 75 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 ┆_ p_ u_ n_ a_ m_ e. R R R RE E ┆ 0x7a0…7c0 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 ┆E ET T T TU U U UR R R RN N N N ┆ 0x7c0…7e0 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 ┆V V V VA A A AL L L LU U U UE E ┆ 0x7e0…800 45 08 45 0a 20 20 20 20 20 30 20 69 6e 64 69 63 61 74 65 73 20 6e 6f 72 6d 61 6c 20 72 65 74 75 ┆E E 0 indicates normal retu┆ 0x800…820 72 6e 2e 0a 20 20 20 20 20 2d 31 20 69 6e 64 69 63 61 74 65 73 20 74 68 65 20 63 61 6c 6c 20 66 ┆rn. -1 indicates the call f┆ 0x820…840 61 69 6c 65 64 20 61 73 20 69 6e 64 69 63 61 74 65 64 20 62 79 20 74 68 65 20 5f 08 65 5f 08 72 ┆ailed as indicated by the _ e_ r┆ 0x840…860 5f 08 72 5f 08 6e 5f 08 6f 20 63 6f 64 65 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 ┆_ r_ n_ o code. E E E ER R R RR┆ 0x860…880 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 ┆ R R RO O O OR R R RS S S S ┆ 0x880…8a0 20 54 68 65 73 65 20 63 61 6c 6c 73 20 63 61 6e 20 72 65 74 75 72 6e 20 74 68 65 20 66 6f 6c 6c ┆ These calls can return the foll┆ 0x8a0…8c0 6f 77 69 6e 67 20 65 72 72 6f 72 73 3a 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 ┆owing errors: [EFAULT] ┆ 0x8c0…8e0 20 20 20 54 68 65 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 70 61 72 61 6d 65 74 65 72 20 67 61 ┆ The _ n_ a_ m_ e parameter ga┆ 0x8e0…900 76 65 20 61 6e 20 69 6e 76 61 6c 69 64 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 5b 45 49 ┆ve an invalid address. [EI┆ 0x900…920 4e 56 41 4c 5d 20 20 20 20 20 20 20 4e 61 6d 65 6c 65 6e 20 69 73 20 74 6f 6f 20 6c 61 72 67 65 ┆NVAL] Namelen is too large┆ 0x920…940 2e 0a 0a 20 20 20 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 63 61 6c 6c 65 ┆. [EPERM] The calle┆ 0x940…960 72 20 77 61 73 20 6e 6f 74 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72 2e 0a 0a 53 08 53 08 53 ┆r was not the super-user. S S S┆ 0x960…980 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 4c 08 4c 53 ┆ SE E E EE E E E A A A AL L L LS┆ 0x980…9a0 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 ┆ S S SO O O O User Commands┆ 0x9a0…9c0 20 28 31 29 3a 20 20 68 6f 73 74 6e 61 6d 65 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ (1): hostname System Call┆ 0x9c0…9e0 73 20 28 32 29 3a 20 20 67 65 74 68 6f 73 74 69 64 2c 20 67 65 74 70 75 69 64 2c 20 67 65 74 70 ┆s (2): gethostid, getpuid, getp┆ 0x9e0…a00 75 6e 61 6d 65 0a 0a 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 ┆uname L L L LI I I IM M M MI I ┆ 0xa00…a20 49 08 49 54 08 54 08 54 08 54 41 08 41 08 41 08 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f ┆I IT T T TA A A AT T T TI I I IO┆ 0xa20…a40 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 53 08 53 08 53 08 53 0a 20 20 20 20 20 48 6f 73 74 20 6e ┆ O O ON N N NS S S S Host n┆ 0xa40…a60 61 6d 65 73 20 61 72 65 20 6c 69 6d 69 74 65 64 20 74 6f 20 33 32 20 63 68 61 72 61 63 74 65 72 ┆ames are limited to 32 character┆ 0xa60…a80 73 2e 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 20 20 20 20 ┆s. March 1989 ┆ 0xa80…aa0 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 52 65 66 65 ┆ TX Programmer's Refe┆ 0xaa0…aac 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a ┆rence ┆