SYS_GETPEERNAME
Returns the name of the peer connected to a socket. Arguments:
`1st` | Socket descriptor
`2nd` | Pointer to a buffer which will receive the name.
`3rd` | Size of the buffer pointed by 2nd argument. On return it will contain the actual size of the data copied to the buffer.
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-EBADF` | `The 1st argumentis not a valid descriptor.`
`-EFAULT` | `2nd argument parameter points to memory not in a valid part of the process address space.`
`-EINVAL` | `3rd agument is invalid (e.g., is negative).`
`-ENOBUFS` | `Insufficient resources were available in the system to perform the operation.`
`-ENOTCONN` | `The socket is not connected.`
`-ENOTSOCK` | `The 1st argument is a file, not a socket.`
Remarks n/a Compatibility n/a