Lines Matching refs:pfds
15 func libc_poll(pfds *pollfd, npfds uintptr, timeout uintptr) int32
30 pfds []pollfd var
49 pfds = make([]pollfd, 1, 128)
52 pfds[0].fd = rdwake
53 pfds[0].events = _POLLIN
79 pd.user = uint32(len(pfds))
80 pfds = append(pfds, pollfd{fd: int32(fd)})
93 for i := 0; i < len(pfds); i++ {
94 if pfds[i].fd == int32(fd) {
95 pfds[i] = pfds[len(pfds)-1]
96 pfds = pfds[:len(pfds)-1]
117 pfds[pd.user].events |= _POLLIN
119 pfds[pd.user].events |= _POLLOUT
157 n := libc_poll(&pfds[0], uintptr(len(pfds)), timeout)
161 println("errno=", e, " len(pfds)=", len(pfds))
173 if n != 0 && pfds[0].revents&(_POLLIN|_POLLHUP|_POLLERR) != 0 {
187 for i := 1; i < len(pfds) && n > 0; i++ {
188 pfd := &pfds[i]