Lines Matching refs:pfds
18 func libc_poll(pfds *pollfd, npfds uintptr, timeout uintptr) int32
33 pfds []pollfd var
54 pfds = make([]pollfd, 1, 128)
57 pfds[0].fd = rdwake
58 pfds[0].events = _POLLIN
84 pd.user = uint32(len(pfds))
85 pfds = append(pfds, pollfd{fd: int32(fd)})
98 for i := 0; i < len(pfds); i++ {
99 if pfds[i].fd == int32(fd) {
100 pfds[i] = pfds[len(pfds)-1]
101 pfds = pfds[:len(pfds)-1]
122 pfds[pd.user].events |= _POLLIN
124 pfds[pd.user].events |= _POLLOUT
165 n := libc_poll(&pfds[0], uintptr(len(pfds)), timeout)
169 println("errno=", e, " len(pfds)=", len(pfds))
181 if n != 0 && pfds[0].revents&(_POLLIN|_POLLHUP|_POLLERR) != 0 {
196 for i := 1; i < len(pfds) && n > 0; i++ {
197 pfd := &pfds[i]