SYS_GETSOCKNAME
Returns the current name for the specified 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 argument is not a valid descriptor.`
`-EFAULT` | `The 2nd argument points to memory not in a valid part of the process address space.`
`-EINVAL` | `3rd argument is invalid (e.g., is negative).`
`-ENOBUFS` | `Insufficient resources were available in the system to perform the operation.`
`-ENOTSOCK` | `The 1st argument is a file, not a socket.`
Remarks n/a Compatibility n/a