fn socket_description(tid: u32, fd: i32) -> Option<(i32, i32)>Expand description
Type and descriptor flags of a tracee’s unix socket.
The inode from /proc/<pid>/fd/N is looked up in /proc/net/unix for
the socket type; /proc/<pid>/fdinfo/N gives the flags.
§Arguments
tid- Tracee thread id.fd- Descriptor number in the tracee.
§Returns
(SOCK_* type, O_* flags), or None when it is not a unix socket.