9.91 recvsockctr/sendsockctr

int recvsockctr(int fd, void *buf, size_t len);
int sendsockctr(int fd, void *buf, size_t len);

This syscall allows to fetch the control block of a socket referred to by fd. If no control data is available, nothing will be written to the buffer.

This syscall returns 0 on success, and returns -1 on failure, with the errno:

EBADF

The passed file was not a socket.

EFAULT

The passed buffer points to invalid memory.