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: g

⟦bc4e6873b⟧

    Length: 2133 (0x855)
    Names: »getpeername.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/getpeername.2« 
        └─⟦this⟧ »./usr/man/cat2/getpeername.2« 

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 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 70 65 65 72 6e 61 6d 65 28 32 29 0a 0a 0a 0a   ┆s             getpeername(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 70 65 65 72 6e 61 6d 65 20 2d 20 67 65 74 20 6e 61 6d 65 20 6f 66 20 63 6f 6e 6e   ┆  getpeername - get name of conn┆
0x0a0…0c0 65 63 74 65 64 20 70 65 65 72 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08   ┆ected peer  S S S SY Y Y YN N N ┆
0x0c0…0e0 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 67 08 67 08   ┆NT T T TA A A AX X X X      g g ┆
0x0e0…100 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 70 08 70 08 70 08 70 65 08 65 08 65 08 65 65   ┆g ge e e et t t tp p p pe e e ee┆
0x100…120 08 65 08 65 08 65 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d   ┆ e e er r r rn n n na a a am m m┆
0x120…140 08 6d 65 08 65 08 65 08 65 28 08 28 08 28 08 28 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 6e   ┆ me e e e( ( ( (s s s s, , , , 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 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 3b 08   ┆ i i i in n n nt t t t s s s s; ┆
0x1c0…1e0 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72   ┆; ; ;      s s s st t t tr r r r┆
0x1e0…200 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 6f 08 6f   ┆u u u uc c c ct t t t s s s so o┆
0x200…220 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 61 08 61 08 61 08 61 64 08 64 08 64 08 64   ┆ o oc c c ck k k ka a a ad d d d┆
0x220…240 64 08 64 08 64 08 64 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 6e 08 6e 08 6e 08 6e 61 08 61   ┆d d d dr r r r * * * *n n n na a┆
0x240…260 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 0a 20 20 20 20 20 69   ┆ a am m m me e e e; ; ; ;      i┆
0x260…280 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 6e 08 6e 08   ┆ i i in n n nt t t t * * * *n n ┆
0x280…2a0 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┆
0x2a0…2c0 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┆
0x2c0…2e0 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┆
0x2e0…300 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 ┆
0x300…320 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 70 5f 08 65 5f 08 65 5f 08 72 5f 08   ┆N N      _ g_ e_ t_ p_ e_ e_ r_ ┆
0x320…340 6e 5f 08 61 5f 08 6d 5f 08 65 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74   ┆n_ a_ m_ e returns the name of t┆
0x340…360 68 65 20 70 65 65 72 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 73 6f 63 6b 65 74 0a 20 20 20 20   ┆he peer connected to socket     ┆
0x360…380 20 5f 08 73 2e 20 20 54 68 65 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 5f 08 6c 5f 08 65 5f 08 6e   ┆ _ s.  The _ n_ a_ m_ e_ l_ e_ n┆
0x380…3a0 20 70 61 72 61 6d 65 74 65 72 20 73 68 6f 75 6c 64 20 62 65 20 69 6e 69 74 69 61 6c 69 7a 65 64   ┆ parameter should be initialized┆
0x3a0…3c0 20 74 6f 20 69 6e 64 69 63 61 74 65 0a 20 20 20 20 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20   ┆ to indicate      the amount of ┆
0x3c0…3e0 73 70 61 63 65 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65   ┆space pointed to by _ n_ a_ m_ e┆
0x3e0…400 2e 20 20 4f 6e 20 72 65 74 75 72 6e 20 69 74 20 63 6f 6e 2d 0a 20 20 20 20 20 74 61 69 6e 73 20   ┆.  On return it con-      tains ┆
0x400…420 74 68 65 20 61 63 74 75 61 6c 20 73 69 7a 65 20 6f 66 20 74 68 65 20 6e 61 6d 65 20 72 65 74 75   ┆the actual size of the name retu┆
0x420…440 72 6e 65 64 20 28 69 6e 20 62 79 74 65 73 29 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49   ┆rned (in bytes).  D D D DI I I I┆
0x440…460 41 08 41 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   ┆A A A AG G G GN N N NO O O OS S ┆
0x460…480 53 08 53 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   ┆S ST T T TI I I IC C C CS S S S ┆
0x480…4a0 20 20 20 20 20 41 20 30 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 66 20 74 68 65 20 63 61 6c 6c   ┆     A 0 is returned if the call┆
0x4a0…4c0 20 73 75 63 63 65 65 64 73 2c 20 2d 31 20 69 66 20 69 74 20 66 61 69 6c 73 2e 0a 0a 45 08 45 08   ┆ succeeds, -1 if it fails.  E E ┆
0x4c0…4e0 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53   ┆E ER R R RR R R RO O O OR R R RS┆
0x4e0…500 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 63 61 6c 6c 20 73 75 63 63 65 65 64 73 20 75 6e   ┆ S S S      The call succeeds un┆
0x500…520 6c 65 73 73 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20 54 68 65 20 61   ┆less:       [EBADF]        The a┆
0x520…540 72 67 75 6d 65 6e 74 20 5f 08 73 20 69 73 20 6e 6f 74 20 61 20 76 61 6c 69 64 20 64 65 73 63 72   ┆rgument _ s is not a valid descr┆
0x540…560 69 70 74 6f 72 2e 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 54 68 65 20   ┆iptor.       [EFAULT]       The ┆
0x560…580 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 70 61 72 61 6d 65 74 65 72 20 70 6f 69 6e 74 73 20 74 6f   ┆_ n_ a_ m_ e parameter points to┆
0x580…5a0 20 6d 65 6d 6f 72 79 20 6e 6f 74 20 69 6e 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ memory not in a                ┆
0x5a0…5c0 20 20 20 20 20 76 61 6c 69 64 20 70 61 72 74 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 73 20 61   ┆     valid part of the process a┆
0x5c0…5e0 64 64 72 65 73 73 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 42 55 46 53 5d 20 20 20   ┆ddress space.       [ENOBUFS]   ┆
0x5e0…600 20 20 20 49 6e 73 75 66 66 69 63 69 65 6e 74 20 72 65 73 6f 75 72 63 65 73 20 77 65 72 65 20 61   ┆   Insufficient resources were a┆
0x600…620 76 61 69 6c 61 62 6c 65 20 69 6e 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆vailable in the                 ┆
0x620…640 20 20 20 20 73 79 73 74 65 6d 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 20 6f 70 65 72 61 74   ┆    system to perform the operat┆
0x640…660 69 6f 6e 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 54 43 4f 4e 4e 5d 20 20 20 20 20 54 68 65 20 73 6f   ┆ion.       [ENOTCONN]     The so┆
0x660…680 63 6b 65 74 20 69 73 20 6e 6f 74 20 63 6f 6e 6e 65 63 74 65 64 2e 0a 0a 20 20 20 20 20 5b 45 4e   ┆cket is not connected.       [EN┆
0x680…6a0 4f 54 53 4f 43 4b 5d 20 20 20 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 5f 08 73 20 69 73 20   ┆OTSOCK]     The argument _ s is ┆
0x6a0…6c0 61 20 66 69 6c 65 2c 20 6e 6f 74 20 61 20 73 6f 63 6b 65 74 2e 0a 0a 53 08 53 08 53 08 53 45 08   ┆a file, not a socket.  S S S SE ┆
0x6c0…6e0 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 53   ┆E E EE E E E A A A AL L L LS S S┆
0x6e0…700 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a   ┆ SO O O O      System Calls (2):┆
0x700…720 20 20 62 69 6e 64 2c 20 67 65 74 73 6f 63 6b 65 74 6e 61 6d 65 2c 20 73 6f 63 6b 65 74 0a 0a 4b   ┆  bind, getsocketname, socket  K┆
0x720…740 08 4b 08 4b 08 4b 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 57 08 57 08 57 08 57 4e 08 4e 08 4e   ┆ K K KN N N NO O O OW W W WN N N┆
0x740…760 08 4e 20 50 08 50 08 50 08 50 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 42 08 42 08 42 08 42 4c   ┆ N P P P PR R R RO O O OB B B BL┆
0x760…780 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 4d 08 4d 08 4d 08 4d 53 08 53 08 53 08 53 0a 20 20 20 20   ┆ L L LE E E EM M M MS S S S     ┆
0x780…7a0 20 4e 61 6d 65 73 20 62 6f 75 6e 64 20 74 6f 20 73 6f 63 6b 65 74 73 20 69 6e 20 74 68 65 20 55   ┆ Names bound to sockets in the U┆
0x7a0…7c0 4e 49 58 20 64 6f 6d 61 69 6e 20 61 72 65 20 69 6e 61 63 63 65 73 73 69 62 6c 65 3b 0a 20 20 20   ┆NIX domain are inaccessible;    ┆
0x7c0…7e0 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 70 5f 08 65 5f 08 65 5f 08 72 5f 08 6e 5f 08 61 5f 08 6d   ┆  _ g_ e_ t_ p_ e_ e_ r_ n_ a_ m┆
0x7e0…800 5f 08 65 20 72 65 74 75 72 6e 73 20 61 20 7a 65 72 6f 2d 6c 65 6e 67 74 68 20 6e 61 6d 65 2e 0a   ┆_ e returns a zero-length name. ┆
0x800…820 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 20 20 20   ┆ March 1989                     ┆
0x820…840 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 65 6e   ┆         TX Programmer's Referen┆
0x840…855 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                    ┆ce                   ┆