The behavior is undefined if the recv_fd does not match a send_fd* on the other side. int ancil_send_fds(socket, file_descriptors, num_file_descriptors) int socket: the Unix socket const int ...
fds:指向一个结构体数组的首个元素的指针,每个数组元素都是一个 struct pollfd 结构,用于指定检测某个给定的 fd 的条件; nfds:参数 fds 结构体数组的长度,nfds_t 本质上是 unsigned long int,其定义如下: typedef unsigned long int nfds_t; timeout:表示 poll 函数的超时时间 ...