poll提供的功能與select類似,不過在處理流設備時,它能夠提供額外的信息。 #include poll.h int poll(struct pollfd fd[], nfds_t nfds, int timeout); 參數: 1)第一個參數:一個結構數組,struct pollfd結構如下: struct pollfd{ int