|
|
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: r
Length: 5773 (0x168d)
Names: »rcmd.3x«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/rcmd.3x«
└─⟦this⟧ »./usr/man/cat3/rcmd.3x«
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 20 20 20 20 20 20 72 63 6d 64 28 33 78 29 0a 0a 0a 0a ┆ions rcmd(3x) ┆ 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 72 63 6d 64 2c 20 72 72 65 73 76 70 6f 72 74 2c 20 72 75 73 65 72 6f 6b 20 2d 20 72 6f 75 ┆ rcmd, rresvport, ruserok - rou┆ 0x00a0…00c0 74 69 6e 65 73 20 66 6f 72 20 72 65 74 75 72 6e 69 6e 67 20 61 20 73 74 72 65 61 6d 0a 20 20 20 ┆tines for returning a stream ┆ 0x00c0…00e0 20 20 74 6f 20 61 20 72 65 6d 6f 74 65 20 63 6f 6d 6d 61 6e 64 0a 0a 53 08 53 08 53 08 53 59 08 ┆ to a remote command S S S SY ┆ 0x00e0…0100 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 58 08 58 08 ┆Y Y YN N N NT T T TA A A AX X X ┆ 0x0100…0120 58 0a 20 20 20 20 20 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 20 3d 08 3d ┆X r r r re e e em m m m = =┆ 0x0120…0140 08 3d 08 3d 20 72 08 72 08 72 08 72 63 08 63 08 63 08 63 6d 08 6d 08 6d 08 6d 64 08 64 08 64 08 ┆ = = r r r rc c c cm m m md d d ┆ 0x0140…0160 64 28 08 28 08 28 08 28 61 08 61 08 61 08 61 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 73 08 73 ┆d( ( ( (a a a ah h h ho o o os s┆ 0x0160…0180 08 73 08 73 74 08 74 08 74 08 74 2c 08 2c 08 2c 08 2c 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 ┆ s st t t t, , , , i i i in n n ┆ 0x0180…01a0 6e 70 08 70 08 70 08 70 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 2c 08 2c ┆np p p po o o or r r rt t t t, ,┆ 0x01a0…01c0 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 75 08 75 08 75 08 ┆ , , l l l lo o o oc c c cu u u ┆ 0x01c0…01e0 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 72 08 ┆us s s se e e er r r r, , , , r ┆ 0x01e0…0200 72 08 72 08 72 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 75 08 75 08 75 08 75 73 08 73 08 73 08 ┆r r re e e em m m mu u u us s s ┆ 0x0200…0220 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 6d 08 ┆se e e er r r r, , , , c c c cm ┆ 0x0220…0240 6d 08 6d 08 6d 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 66 08 66 08 66 08 66 64 08 64 08 64 ┆m m md d d d, , , , f f f fd d d┆ 0x0240…0260 08 64 32 08 32 08 32 08 32 70 08 70 08 70 08 70 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 20 ┆ d2 2 2 2p p p p) ) ) ); ; ; ; ┆ 0x0260…0280 20 20 20 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 ┆ c c c ch h h ha a a ar r r r┆ 0x0280…02a0 20 2a 08 2a 08 2a 08 2a 2a 08 2a 08 2a 08 2a 61 08 61 08 61 08 61 68 08 68 08 68 08 68 6f 08 6f ┆ * * * ** * * *a a a ah h h ho o┆ 0x02a0…02c0 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 75 ┆ o os s s st t t t; ; ; ; u┆ 0x02c0…02e0 08 75 08 75 08 75 5f 08 5f 08 5f 08 5f 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6f 08 6f 08 6f ┆ u u u_ _ _ _s s s sh h h ho o o┆ 0x02e0…0300 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 70 ┆ or r r rt t t t i i i in n n np┆ 0x0300…0320 08 70 08 70 08 70 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 3b 08 3b 08 3b ┆ p p po o o or r r rt t t t; ; ;┆ 0x0320…0340 08 3b 0a 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 61 72 08 72 ┆ ; c c c ch h h ha a a ar r┆ 0x0340…0360 08 72 08 72 20 2a 08 2a 08 2a 08 2a 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 ┆ r r * * * *l l l lo o o oc c c ┆ 0x0360…0380 63 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c ┆cu u u us s s se e e er r r r, ,┆ 0x0380…03a0 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 ┆ , , * * * *r r r re e e em m m ┆ 0x03a0…03c0 6d 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c ┆mu u u us s s se e e er r r r, ,┆ 0x03c0…03e0 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 63 08 63 08 63 08 63 6d 08 6d 08 6d 08 6d 64 08 64 08 64 08 ┆ , , * * * *c c c cm m m md d d ┆ 0x03e0…0400 64 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 ┆d; ; ; ; i i i in n n nt t ┆ 0x0400…0420 74 08 74 20 2a 08 2a 08 2a 08 2a 66 08 66 08 66 08 66 64 08 64 08 64 08 64 32 08 32 08 32 08 32 ┆t t * * * *f f f fd d d d2 2 2 2┆ 0x0420…0440 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 20 3d 08 3d ┆p p p p; ; ; ; s s s s = =┆ 0x0440…0460 08 3d 08 3d 20 72 08 72 08 72 08 72 72 08 72 08 72 08 72 65 08 65 08 65 08 65 73 08 73 08 73 08 ┆ = = r r r rr r r re e e es s s ┆ 0x0460…0480 73 76 08 76 08 76 08 76 70 08 70 08 70 08 70 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 ┆sv v v vp p p po o o or r r rt t┆ 0x0480…04a0 08 74 08 74 28 08 28 08 28 08 28 70 08 70 08 70 08 70 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 ┆ t t( ( ( (p p p po o o or r r r┆ 0x04a0…04c0 74 08 74 08 74 08 74 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 ┆t t t t) ) ) ); ; ; ; i i i┆ 0x04c0…04e0 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 6f ┆ in n n nt t t t * * * *p p p po┆ 0x04e0…0500 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 ┆ o o or r r rt t t t; ; ; ; ┆ 0x0500…0520 20 20 72 08 72 08 72 08 72 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 ┆ r r r ru u u us s s se e e er ┆ 0x0520…0540 72 08 72 08 72 6f 08 6f 08 6f 08 6f 6b 08 6b 08 6b 08 6b 28 08 28 08 28 08 28 72 08 72 08 72 08 ┆r r ro o o ok k k k( ( ( (r r r ┆ 0x0540…0560 72 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 2c 08 2c ┆rh h h ho o o os s s st t t t, ,┆ 0x0560…0580 08 2c 08 2c 20 73 08 73 08 73 08 73 75 08 75 08 75 08 75 70 08 70 08 70 08 70 65 08 65 08 65 08 ┆ , , s s s su u u up p p pe e e ┆ 0x0580…05a0 65 72 08 72 08 72 08 72 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 ┆er r r ru u u us s s se e e er r┆ 0x05a0…05c0 08 72 08 72 2c 08 2c 08 2c 08 2c 20 72 08 72 08 72 08 72 75 08 75 08 75 08 75 73 08 73 08 73 08 ┆ r r, , , , r r r ru u u us s s ┆ 0x05c0…05e0 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 75 08 ┆se e e er r r r, , , , l l l lu ┆ 0x05e0…0600 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 29 08 29 08 29 08 ┆u u us s s se e e er r r r) ) ) ┆ 0x0600…0620 29 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 ┆); ; ; ; c c c ch h h ha a ┆ 0x0620…0640 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 72 08 72 08 72 08 72 68 08 68 08 68 08 68 ┆a ar r r r * * * *r r r rh h h h┆ 0x0640…0660 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 20 20 20 ┆o o o os s s st t t t; ; ; ; ┆ 0x0660…0680 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 75 ┆ i i i in n n nt t t t s s s su┆ 0x0680…06a0 08 75 08 75 08 75 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 75 08 75 08 75 ┆ u u up p p pe e e er r r ru u u┆ 0x06a0…06c0 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 3b 08 3b 08 3b 08 3b 0a 20 ┆ us s s se e e er r r r; ; ; ; ┆ 0x06c0…06e0 20 20 20 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 ┆ c c c ch h h ha a a ar r r r┆ 0x06e0…0700 20 2a 08 2a 08 2a 08 2a 72 08 72 08 72 08 72 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 ┆ * * * *r r r ru u u us s s se e┆ 0x0700…0720 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 6c 08 6c 08 6c 08 ┆ e er r r r, , , , * * * *l l l ┆ 0x0720…0740 6c 75 08 75 08 75 08 75 73 08 73 08 73 08 73 65 08 65 08 65 08 65 72 08 72 08 72 08 72 3b 08 3b ┆lu u u us s s se e e er r r r; ;┆ 0x0740…0760 08 3b 08 3b 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┆ 0x0760…0780 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 ┆ 0x0780…07a0 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 72 5f 08 63 5f ┆I I IO O O ON N N N _ r_ c_┆ 0x07a0…07c0 08 6d 5f 08 64 20 69 73 20 75 73 65 64 20 62 79 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72 20 ┆ m_ d is used by the super-user ┆ 0x07c0…07e0 74 6f 20 65 78 65 63 75 74 65 20 61 20 63 6f 6d 6d 61 6e 64 20 6f 6e 20 61 0a 20 20 20 20 20 72 ┆to execute a command on a r┆ 0x07e0…0800 65 6d 6f 74 65 20 6d 61 63 68 69 6e 65 20 75 73 69 6e 67 20 61 6e 20 61 75 74 68 65 6e 74 69 63 ┆emote machine using an authentic┆ 0x0800…0820 61 74 69 6f 6e 20 73 63 68 65 6d 65 20 62 61 73 65 64 20 6f 6e 0a 20 20 20 20 20 72 65 73 65 72 ┆ation scheme based on reser┆ 0x0820…0840 76 65 64 20 70 6f 72 74 20 6e 75 6d 62 65 72 73 2e 20 20 5f 08 72 5f 08 72 5f 08 65 5f 08 73 5f ┆ved port numbers. _ r_ r_ e_ s_┆ 0x0840…0860 08 76 5f 08 70 5f 08 6f 5f 08 72 5f 08 74 20 72 65 74 75 72 6e 73 20 61 20 64 65 73 63 72 69 70 ┆ v_ p_ o_ r_ t returns a descrip┆ 0x0860…0880 74 6f 72 20 74 6f 20 61 0a 20 20 20 20 20 73 6f 63 6b 65 74 20 77 69 74 68 20 61 6e 20 61 64 64 ┆tor to a socket with an add┆ 0x0880…08a0 72 65 73 73 20 69 6e 20 74 68 65 20 70 72 69 76 69 6c 65 67 65 64 20 70 6f 72 74 20 73 70 61 63 ┆ress in the privileged port spac┆ 0x08a0…08c0 65 2e 0a 20 20 20 20 20 5f 08 72 5f 08 75 5f 08 73 5f 08 65 5f 08 72 5f 08 6f 5f 08 6b 20 69 73 ┆e. _ r_ u_ s_ e_ r_ o_ k is┆ 0x08c0…08e0 20 75 73 65 64 20 62 79 20 73 65 72 76 65 72 73 20 74 6f 20 61 75 74 68 65 6e 74 69 63 61 74 65 ┆ used by servers to authenticate┆ 0x08e0…0900 20 63 6c 69 65 6e 74 73 20 72 65 71 75 65 73 74 2d 0a 20 20 20 20 20 69 6e 67 20 73 65 72 76 69 ┆ clients request- ing servi┆ 0x0900…0920 63 65 20 77 69 74 68 20 5f 08 72 5f 08 63 5f 08 6d 5f 08 64 2e 20 20 41 6c 6c 20 33 20 66 75 6e ┆ce with _ r_ c_ m_ d. All 3 fun┆ 0x0920…0940 63 74 69 6f 6e 73 20 65 78 69 73 74 20 69 6e 20 74 68 65 20 73 61 6d 65 0a 20 20 20 20 20 66 69 ┆ctions exist in the same fi┆ 0x0940…0960 6c 65 20 61 6e 64 20 61 72 65 20 75 73 65 64 20 62 79 20 74 68 65 20 5f 08 72 5f 08 73 5f 08 68 ┆le and are used by the _ r_ s_ h┆ 0x0960…0980 5f 08 64 20 73 75 70 65 72 2d 75 73 65 72 20 73 65 72 76 65 72 20 28 61 6d 6f 6e 67 20 6f 74 68 ┆_ d super-user server (among oth┆ 0x0980…09a0 2d 0a 20 20 20 20 20 65 72 73 29 2e 0a 0a 20 20 20 20 20 5f 08 72 5f 08 63 5f 08 6d 5f 08 64 20 ┆- ers). _ r_ c_ m_ d ┆ 0x09a0…09c0 6c 6f 6f 6b 73 20 75 70 20 74 68 65 20 68 6f 73 74 20 2a 5f 08 61 5f 08 68 5f 08 6f 5f 08 73 5f ┆looks up the host *_ a_ h_ o_ s_┆ 0x09c0…09e0 08 74 20 75 73 69 6e 67 20 74 68 65 20 6c 69 62 72 61 72 79 20 66 75 6e 63 74 69 6f 6e 0a 20 20 ┆ t using the library function ┆ 0x09e0…0a00 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 62 5f 08 79 5f 08 ┆ _ g_ e_ t_ h_ o_ s_ t_ b_ y_ ┆ 0x0a00…0a20 6e 5f 08 61 5f 08 6d 5f 08 65 20 28 64 65 73 63 72 69 62 65 64 20 75 6e 64 65 72 20 74 68 65 20 ┆n_ a_ m_ e (described under the ┆ 0x0a20…0a40 5f 08 67 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 29 20 ┆_ g_ e_ t_ h_ o_ s_ t_ e_ n_ t) ┆ 0x0a40…0a60 61 6e 64 20 72 65 74 75 72 6e 73 0a 20 20 20 20 20 2d 31 20 69 66 20 74 68 65 20 68 6f 73 74 20 ┆and returns -1 if the host ┆ 0x0a60…0a80 64 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 2a 5f 08 61 ┆does not exist. Otherwise, *_ a┆ 0x0a80…0aa0 5f 08 68 5f 08 6f 5f 08 73 5f 08 74 20 69 73 20 73 65 74 20 74 6f 0a 20 20 20 20 20 74 68 65 20 ┆_ h_ o_ s_ t is set to the ┆ 0x0aa0…0ac0 73 74 61 6e 64 61 72 64 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 68 6f 73 74 20 61 6e 64 20 61 20 ┆standard name of the host and a ┆ 0x0ac0…0ae0 63 6f 6e 6e 65 63 74 69 6f 6e 20 69 73 20 65 73 74 61 2d 0a 20 20 20 20 20 62 6c 69 73 68 65 64 ┆connection is esta- blished┆ 0x0ae0…0b00 20 74 6f 20 61 20 73 65 72 76 65 72 20 72 65 73 69 64 69 6e 67 20 61 74 20 74 68 65 20 77 65 6c ┆ to a server residing at the wel┆ 0x0b00…0b20 6c 2d 6b 6e 6f 77 6e 20 49 6e 74 65 72 6e 65 74 20 70 6f 72 74 0a 20 20 20 20 20 5f 08 69 5f 08 ┆l-known Internet port _ i_ ┆ 0x0b20…0b40 6e 5f 08 70 5f 08 6f 5f 08 72 5f 08 74 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 63 61 6c 6c ┆n_ p_ o_ r_ t. If the call┆ 0x0b40…0b60 20 73 75 63 63 65 65 64 73 2c 20 61 20 73 6f 63 6b 65 74 20 6f 66 20 74 79 70 65 20 53 4f 43 4b ┆ succeeds, a socket of type SOCK┆ 0x0b60…0b80 5f 53 54 52 45 41 4d 20 69 73 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 20 74 6f 20 74 68 65 20 ┆_STREAM is returned to the ┆ 0x0b80…0ba0 63 61 6c 6c 65 72 2c 20 61 6e 64 20 67 69 76 65 6e 20 74 6f 20 74 68 65 20 72 65 6d 6f 74 65 20 ┆caller, and given to the remote ┆ 0x0ba0…0bc0 63 6f 6d 6d 61 6e 64 20 61 73 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 ┆command as s s s st t t td ┆ 0x0bc0…0be0 64 08 64 08 64 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 20 61 6e 64 20 73 08 73 08 73 08 73 74 ┆d d di i i in n n n and s s s st┆ 0x0be0…0c00 08 74 08 74 08 74 64 08 64 08 64 08 64 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 74 08 74 08 74 ┆ t t td d d do o o ou u u ut t t┆ 0x0c00…0c20 08 74 2e 20 20 49 66 20 5f 08 66 5f 08 64 5f 08 32 5f 08 70 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f ┆ t. If _ f_ d_ 2_ p is non-zero┆ 0x0c20…0c40 2c 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20 63 68 61 6e 6e 65 6c 0a 20 20 20 20 20 74 6f 20 61 ┆, an auxiliary channel to a┆ 0x0c40…0c60 20 63 6f 6e 74 72 6f 6c 20 70 72 6f 63 65 73 73 20 69 73 20 73 65 74 20 75 70 2c 20 61 6e 64 20 ┆ control process is set up, and ┆ 0x0c60…0c80 61 20 64 65 73 63 72 69 70 74 6f 72 20 66 6f 72 20 69 74 20 69 73 0a 20 20 20 20 20 70 6c 61 63 ┆a descriptor for it is plac┆ 0x0c80…0ca0 65 64 20 69 6e 20 2a 5f 08 66 5f 08 64 5f 08 32 5f 08 70 2e 20 20 54 68 65 20 63 6f 6e 74 72 6f ┆ed in *_ f_ d_ 2_ p. The contro┆ 0x0ca0…0cc0 6c 20 70 72 6f 63 65 73 73 20 72 65 74 75 72 6e 73 20 64 69 61 67 6e 6f 73 74 69 63 0a 20 20 20 ┆l process returns diagnostic ┆ 0x0cc0…0ce0 20 20 6f 75 74 70 75 74 20 66 72 6f 6d 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 28 75 6e 69 74 20 ┆ output from the command (unit ┆ 0x0ce0…0d00 32 29 20 6f 6e 20 74 68 69 73 20 63 68 61 6e 6e 65 6c 20 61 6e 64 20 61 63 63 65 70 74 73 0a 20 ┆2) on this channel and accepts ┆ 0x0d00…0d20 20 20 20 20 62 79 74 65 73 20 6f 6e 20 74 68 69 73 20 63 68 61 6e 6e 65 6c 20 61 73 20 62 65 69 ┆ bytes on this channel as bei┆ 0x0d20…0d40 6e 67 20 54 58 20 73 69 67 6e 61 6c 20 6e 75 6d 62 65 72 73 2c 20 74 6f 20 62 65 20 66 6f 72 2d ┆ng TX signal numbers, to be for-┆ 0x0d40…0d60 0a 20 20 20 20 20 77 61 72 64 65 64 20 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 20 67 72 6f 75 ┆ warded to the process grou┆ 0x0d60…0d80 70 20 6f 66 20 74 68 65 20 63 6f 6d 6d 61 6e 64 2e 20 20 49 66 20 5f 08 66 5f 08 64 5f 08 32 5f ┆p of the command. If _ f_ d_ 2_┆ 0x0d80…0da0 08 70 20 69 73 20 30 2c 0a 20 20 20 20 20 74 68 65 6e 20 74 68 65 20 73 08 73 08 73 08 73 74 08 ┆ p is 0, then the s s s st ┆ 0x0da0…0dc0 74 08 74 08 74 64 08 64 08 64 08 64 65 08 65 08 65 08 65 72 08 72 08 72 08 72 72 08 72 08 72 08 ┆t t td d d de e e er r r rr r r ┆ 0x0dc0…0de0 72 20 28 75 6e 69 74 20 32 20 6f 66 20 74 68 65 20 72 65 6d 6f 74 65 20 63 6f 6d 6d 61 6e 64 29 ┆r (unit 2 of the remote command)┆ 0x0de0…0e00 20 69 73 20 6d 61 64 65 20 74 68 65 0a 20 20 20 20 20 73 61 6d 65 20 61 73 20 74 68 65 20 73 08 ┆ is made the same as the s ┆ 0x0e00…0e20 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 ┆s s st t t td d d do o o ou u u ┆ 0x0e20…0e40 75 74 08 74 08 74 08 74 20 61 6e 64 20 6e 6f 20 70 72 6f 76 69 73 69 6f 6e 20 69 73 20 6d 61 64 ┆ut t t t and no provision is mad┆ 0x0e40…0e60 65 20 66 6f 72 20 73 65 6e 64 69 6e 67 0a 20 20 20 20 20 61 72 62 69 74 72 61 72 79 20 73 69 67 ┆e for sending arbitrary sig┆ 0x0e60…0e80 6e 61 6c 73 20 74 6f 20 74 68 65 20 72 65 6d 6f 74 65 20 70 72 6f 63 65 73 73 2c 20 61 6c 74 68 ┆nals to the remote process, alth┆ 0x0e80…0ea0 6f 75 67 68 20 79 6f 75 20 6d 61 79 20 62 65 0a 20 20 20 20 20 61 62 6c 65 20 74 6f 20 67 65 74 ┆ough you may be able to get┆ 0x0ea0…0ec0 20 69 74 73 20 61 74 74 65 6e 74 69 6f 6e 20 62 79 20 75 73 69 6e 67 20 6f 75 74 2d 6f 66 2d 62 ┆ its attention by using out-of-b┆ 0x0ec0…0ee0 61 6e 64 20 64 61 74 61 2e 0a 0a 20 20 20 20 20 54 68 65 20 70 72 6f 74 6f 63 6f 6c 20 69 73 20 ┆and data. The protocol is ┆ 0x0ee0…0f00 64 65 73 63 72 69 62 65 64 20 69 6e 20 64 65 74 61 69 6c 20 69 6e 20 74 68 65 20 73 79 73 74 65 ┆described in detail in the syste┆ 0x0f00…0f20 6d 20 6d 61 6e 61 67 65 72 27 73 0a 20 20 20 20 20 63 6f 6d 6d 61 6e 64 2c 20 5f 08 72 5f 08 73 ┆m manager's command, _ r_ s┆ 0x0f20…0f40 5f 08 68 5f 08 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 72 5f 08 72 5f 08 65 5f 08 73 5f 08 ┆_ h_ d. The _ r_ r_ e_ s_ ┆ 0x0f40…0f60 76 5f 08 70 5f 08 6f 5f 08 72 5f 08 74 20 72 6f 75 74 69 6e 65 20 69 73 20 75 73 65 64 20 74 6f ┆v_ p_ o_ r_ t routine is used to┆ 0x0f60…0f80 20 6f 62 74 61 69 6e 20 61 20 73 6f 63 6b 65 74 20 77 69 74 68 20 61 0a 20 20 20 20 20 70 72 69 ┆ obtain a socket with a pri┆ 0x0f80…0fa0 76 69 6c 65 67 65 64 20 61 64 64 72 65 73 73 20 62 6f 75 6e 64 20 74 6f 20 69 74 2e 20 20 54 68 ┆vileged address bound to it. Th┆ 0x0fa0…0fc0 69 73 20 73 6f 63 6b 65 74 20 69 73 20 73 75 69 74 61 62 6c 65 20 66 6f 72 0a 20 20 20 20 20 75 ┆is socket is suitable for u┆ 0x0fc0…0fe0 73 65 20 62 79 20 5f 08 72 5f 08 63 5f 08 6d 5f 08 64 20 61 6e 64 20 73 65 76 72 61 6c 20 6f 74 ┆se by _ r_ c_ m_ d and sevral ot┆ 0x0fe0…1000 68 65 72 20 72 6f 75 74 69 6e 65 73 2e 20 20 50 72 69 76 69 6c 65 67 65 64 20 61 64 64 72 65 73 ┆her routines. Privileged addres┆ 0x1000…1020 73 65 73 0a 20 20 20 20 20 63 6f 6e 73 69 73 74 20 6f 66 20 61 20 70 6f 72 74 20 69 6e 20 74 68 ┆ses consist of a port in th┆ 0x1020…1040 65 20 72 61 6e 67 65 20 30 20 74 6f 20 31 30 32 33 2e 20 20 4f 6e 6c 79 20 74 68 65 20 73 75 70 ┆e range 0 to 1023. Only the sup┆ 0x1040…1060 65 72 2d 0a 20 20 20 20 20 75 73 65 72 20 69 73 20 61 6c 6c 6f 77 65 64 20 74 6f 20 62 69 6e 64 ┆er- user is allowed to bind┆ 0x1060…1080 20 6f 6e 65 20 6f 66 20 74 68 65 73 65 20 61 64 64 72 65 73 73 65 73 20 74 6f 20 61 20 73 6f 63 ┆ one of these addresses to a soc┆ 0x1080…10a0 6b 65 74 2e 0a 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 5f 08 72 5f 08 75 5f 08 73 5f 08 65 5f 08 ┆ket. _ r_ u_ s_ e_ ┆ 0x10a0…10c0 72 5f 08 6f 5f 08 6b 20 74 61 6b 65 73 20 61 20 72 65 6d 6f 74 65 20 68 6f 73 74 27 73 20 6e 61 ┆r_ o_ k takes a remote host's na┆ 0x10c0…10e0 6d 65 20 28 61 73 20 72 65 74 75 72 6e 65 64 20 62 79 20 61 20 5f 08 67 5f 08 65 5f 08 74 5f 08 ┆me (as returned by a _ g_ e_ t_ ┆ 0x10e0…1100 68 5f 08 6f 5f 08 73 5f 08 2d 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 66 75 6e ┆h_ o_ s_ - _ t_ e_ n_ t fun┆ 0x1100…1120 63 74 69 6f 6e 29 2c 20 32 20 75 73 65 72 20 6e 61 6d 65 73 2c 20 61 6e 64 20 61 20 66 6c 61 67 ┆ction), 2 user names, and a flag┆ 0x1120…1140 20 74 68 61 74 20 69 6e 64 69 63 61 74 65 73 0a 20 20 20 20 20 77 68 65 74 68 65 72 20 74 68 65 ┆ that indicates whether the┆ 0x1140…1160 20 6c 6f 63 61 6c 20 75 73 65 72 27 73 20 6e 61 6d 65 20 69 73 20 74 68 65 20 73 75 70 65 72 2d ┆ local user's name is the super-┆ 0x1160…1180 75 73 65 72 2e 20 20 49 74 20 74 68 65 6e 0a 20 20 20 20 20 63 68 65 63 6b 73 20 74 68 65 20 66 ┆user. It then checks the f┆ 0x1180…11a0 69 6c 65 73 20 2f 65 74 63 2f 68 6f 73 74 73 2e 65 71 75 69 76 20 61 6e 64 2c 20 70 6f 73 73 69 ┆iles /etc/hosts.equiv and, possi┆ 0x11a0…11c0 62 6c 79 2c 20 2e 72 68 6f 73 74 73 20 69 6e 0a 20 20 20 20 20 74 68 65 20 63 75 72 72 65 6e 74 ┆bly, .rhosts in the current┆ 0x11c0…11e0 20 77 6f 72 6b 69 6e 67 20 64 69 72 65 63 74 6f 72 79 20 28 6e 6f 72 6d 61 6c 6c 79 20 74 68 65 ┆ working directory (normally the┆ 0x11e0…1200 20 6c 6f 63 61 6c 20 75 73 65 72 27 73 0a 20 20 20 20 20 68 6f 6d 65 20 64 69 72 65 63 74 6f 72 ┆ local user's home director┆ 0x1200…1220 79 29 20 74 6f 20 73 65 65 20 77 68 65 74 68 65 72 20 74 68 65 20 72 65 71 75 65 73 74 20 66 6f ┆y) to see whether the request fo┆ 0x1220…1240 72 20 73 65 72 76 69 63 65 20 69 73 0a 20 20 20 20 20 61 6c 6c 6f 77 65 64 2e 20 20 31 20 69 73 ┆r service is allowed. 1 is┆ 0x1240…1260 20 72 65 74 75 72 6e 65 64 20 69 66 20 74 68 65 20 6d 61 63 68 69 6e 65 20 6e 61 6d 65 20 69 73 ┆ returned if the machine name is┆ 0x1260…1280 20 6c 69 73 74 65 64 20 69 6e 20 74 68 65 0a 20 20 20 20 20 68 6f 73 74 73 2e 65 71 75 69 76 20 ┆ listed in the hosts.equiv ┆ 0x1280…12a0 66 69 6c 65 2c 20 6f 72 20 74 68 65 20 68 6f 73 74 20 61 6e 64 20 72 65 6d 6f 74 65 20 75 73 65 ┆file, or the host and remote use┆ 0x12a0…12c0 72 20 6e 61 6d 65 20 61 72 65 20 66 6f 75 6e 64 0a 20 20 20 20 20 69 6e 20 74 68 65 20 2e 72 68 ┆r name are found in the .rh┆ 0x12c0…12e0 6f 73 74 73 20 66 69 6c 65 3b 20 6f 74 68 65 72 77 69 73 65 20 5f 08 72 5f 08 75 5f 08 73 5f 08 ┆osts file; otherwise _ r_ u_ s_ ┆ 0x12e0…1300 65 5f 08 72 5f 08 6f 5f 08 6b 20 72 65 74 75 72 6e 73 20 30 2e 20 20 49 66 20 74 68 65 0a 20 20 ┆e_ r_ o_ k returns 0. If the ┆ 0x1300…1320 20 20 20 5f 08 73 5f 08 75 5f 08 70 5f 08 65 5f 08 72 5f 08 75 5f 08 73 5f 08 65 5f 08 72 20 66 ┆ _ s_ u_ p_ e_ r_ u_ s_ e_ r f┆ 0x1320…1340 6c 61 67 20 69 73 20 31 2c 20 74 68 65 20 68 6f 73 74 2e 65 71 75 69 76 20 5f 08 66 5f 08 69 5f ┆lag is 1, the host.equiv _ f_ i_┆ 0x1340…1360 08 6c 5f 08 65 20 5f 08 63 5f 08 68 5f 08 65 5f 08 63 5f 08 6b 20 5f 08 69 5f 08 73 20 5f 08 62 ┆ l_ e _ c_ h_ e_ c_ k _ i_ s _ b┆ 0x1360…1380 5f 08 79 5f 08 70 5f 08 61 5f 08 73 5f 08 73 5f 08 65 5f 08 64 2e 0a 0a 53 08 53 08 53 08 53 45 ┆_ y_ p_ a_ s_ s_ e_ d. S S S SE┆ 0x1380…13a0 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 08 53 08 ┆ E E EE E E E A A A AL L L LS S ┆ 0x13a0…13c0 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 20 28 31 ┆S SO O O O User Commands (1┆ 0x13c0…13e0 29 3a 20 20 72 6c 6f 67 69 6e 2c 20 72 73 68 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e ┆): rlogin, rsh Library Fun┆ 0x13e0…1400 63 74 69 6f 6e 73 20 28 33 29 3a 20 20 72 65 78 65 63 0a 20 20 20 20 20 53 79 73 74 65 6d 20 4d ┆ctions (3): rexec System M┆ 0x1400…1420 61 6e 61 67 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 38 29 3a 20 20 72 65 78 65 63 64 2c 20 72 6c ┆anager Commands (8): rexecd, rl┆ 0x1420…1440 6f 67 69 6e 64 2c 20 72 73 68 64 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 08 41 ┆ogind, rshd D D D DI I I IA A A┆ 0x1440…1460 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 54 08 ┆ AG G G GN N N NO O O OS S S ST ┆ 0x1460…1480 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 20 20 ┆T T TI I I IC C C CS S S S ┆ 0x1480…14a0 5f 08 72 5f 08 63 5f 08 6d 5f 08 64 20 72 65 74 75 72 6e 73 20 61 20 76 61 6c 69 64 20 73 6f 63 ┆_ r_ c_ m_ d returns a valid soc┆ 0x14a0…14c0 6b 65 74 20 64 65 73 63 72 69 70 74 6f 72 20 6f 6e 20 73 75 63 63 65 73 73 2e 20 49 74 0a 20 20 ┆ket descriptor on success. It ┆ 0x14c0…14e0 20 20 20 72 65 74 75 72 6e 73 20 2d 31 20 6f 6e 20 65 72 72 6f 72 20 61 6e 64 20 70 72 69 6e 74 ┆ returns -1 on error and print┆ 0x14e0…1500 73 20 61 20 64 69 61 67 6e 6f 73 74 69 63 20 6d 65 73 73 61 67 65 20 6f 6e 20 74 68 65 0a 20 20 ┆s a diagnostic message on the ┆ 0x1500…1520 20 20 20 73 74 61 6e 64 61 72 64 20 65 72 72 6f 72 2e 0a 0a 20 20 20 20 20 5f 08 72 5f 08 72 5f ┆ standard error. _ r_ r_┆ 0x1520…1540 08 65 5f 08 73 5f 08 76 5f 08 70 5f 08 6f 5f 08 72 5f 08 74 20 72 65 74 75 72 6e 73 20 61 20 76 ┆ e_ s_ v_ p_ o_ r_ t returns a v┆ 0x1540…1560 61 6c 69 64 2c 20 62 6f 75 6e 64 20 73 6f 63 6b 65 74 20 64 65 73 63 72 69 70 74 6f 72 20 6f 6e ┆alid, bound socket descriptor on┆ 0x1560…1580 20 73 75 63 2d 0a 20 20 20 20 20 63 65 73 73 2e 20 49 74 20 72 65 74 75 72 6e 73 20 2d 31 20 6f ┆ suc- cess. It returns -1 o┆ 0x1580…15a0 6e 20 65 72 72 6f 72 20 77 69 74 68 20 74 68 65 20 67 6c 6f 62 61 6c 20 76 61 6c 75 65 20 5f 08 ┆n error with the global value _ ┆ 0x15a0…15c0 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 73 65 74 0a 20 20 20 20 20 61 63 63 6f 72 64 69 6e 67 ┆e_ r_ r_ n_ o set according┆ 0x15c0…15e0 20 74 6f 20 74 68 65 20 72 65 61 73 6f 6e 20 66 6f 72 20 66 61 69 6c 75 72 65 2e 20 54 68 65 20 ┆ to the reason for failure. The ┆ 0x15e0…1600 65 72 72 6f 72 20 63 6f 64 65 20 45 41 47 41 49 4e 0a 20 20 20 20 20 69 73 20 6f 76 65 72 6c 6f ┆error code EAGAIN is overlo┆ 0x1600…1620 61 64 65 64 20 74 6f 20 6d 65 61 6e 20 22 41 6c 6c 20 6e 65 74 77 6f 72 6b 20 70 6f 72 74 73 20 ┆aded to mean "All network ports ┆ 0x1620…1640 69 6e 20 75 73 65 2e 22 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 38 39 20 20 20 20 20 20 20 20 20 ┆in use." December 1989 ┆ 0x1640…1660 20 20 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 ┆ TX Programmer'┆ 0x1660…1680 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 0a 0a 0a ┆s Reference ┆ 0x1680…168d 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆