/openbsd-current/lib/libc/rpc/ |
H A D | svc_run.c | 48 struct pollfd *pfd = NULL, *newp; local 53 newp = reallocarray(pfd, svc_max_pollfd, sizeof(*pfd)); 55 free(pfd); 59 pfd = newp; 61 memcpy(pfd, svc_pollfd, sizeof(*pfd) * svc_max_pollfd); 63 nready = poll(pfd, svc_max_pollfd, INFTIM); 68 free(pfd); 74 svc_getreq_poll(pfd, nread [all...] |
/openbsd-current/regress/sys/kern/poll/ |
H A D | poll_regevent.c | 32 struct pollfd pfd[2]; local 48 pfd[0].fd = p1[0]; 49 pfd[0].events = POLLIN; 52 pfd[1].fd = p2[1]; 53 pfd[1].events = POLLOUT; 55 ret = poll(pfd, 2, INFTIM); 57 assert(pfd[0].revents == 0); 58 assert(pfd[1].revents != 0);
|
H A D | pollretval.c | 12 struct pollfd pfd[100]; local 16 pfd[i].fd = 0; 17 pfd[i].events = arc4random() % 0x177; 20 r = poll(pfd, 100, INFTIM); 26 if (pfd[i].revents)
|
H A D | poll_iocond.c | 312 struct pollfd pfd[2]; local 318 memset(&pfd, 0, sizeof(pfd)); 322 pfd[0].fd = fd; 323 pfd[0].events = POLLIN | POLLOUT | POLLPRI; 325 ret = poll(pfd, 1, 1); 327 assert(pfd[0].revents == POLLOUT); 336 ret = poll(pfd, 1, 1); 338 assert(pfd[0].revents == POLLOUT); 351 pfd[ 492 struct pollfd pfd[2]; local [all...] |
H A D | poll_close.c | 41 struct pollfd pfd[1]; local 45 memset(pfd, 0, sizeof(pfd)); 46 pfd[0].fd = sock[1]; 47 pfd[0].events = POLLIN; 48 ret = poll(pfd, 1, INFTIM); 50 assert(pfd[0].revents & POLLIN); 59 memset(pfd, 0, sizeof(pfd)); 60 pfd[ [all...] |
/openbsd-current/usr.bin/sendbug/ |
H A D | atomicio.c | 44 struct pollfd pfd; local 46 pfd.fd = fd; 47 pfd.events = f == read ? POLLIN : POLLOUT; 55 (void)poll(&pfd, 1, -1);
|
/openbsd-current/regress/usr.sbin/bgpd/integrationtests/ |
H A D | api-exabgp.c | 31 struct pollfd pfd[2]; local 56 pfd[0].fd = 0; 57 pfd[0].events = POLLIN; 58 pfd[1].fd = fd = fifo_open(fifo); 59 pfd[1].events = POLLIN; 68 if (poll(pfd, 2, 1000) == -1) 71 if (pfd[0].revents & POLLIN) { 82 if (pfd[1].revents & POLLIN) { 91 if (pfd[1].revents & POLLHUP) { 94 pfd[ [all...] |
/openbsd-current/regress/sys/kern/kqueue/ |
H A D | kqueue-fdpass.c | 33 int pfd[2], fd, status; local 35 ASS(socketpair(PF_LOCAL, SOCK_STREAM, 0, pfd) == 0, 42 close(pfd[0]); 63 if (sendmsg(pfd[1], &msg, 0) == 0) 68 close(pfd[1]); 72 close(pfd[1]); 74 close(pfd[0]);
|
/openbsd-current/usr.bin/cvs/ |
H A D | atomicio.c | 46 struct pollfd pfd; local 48 pfd.fd = fd; 49 pfd.events = f == read ? POLLIN : POLLOUT; 57 (void)poll(&pfd, 1, -1);
|
/openbsd-current/usr.bin/nc/ |
H A D | atomicio.c | 44 struct pollfd pfd; local 46 pfd.fd = fd; 47 pfd.events = f == read ? POLLIN : POLLOUT; 55 (void)poll(&pfd, 1, -1);
|
H A D | netcat.c | 778 struct pollfd pfd; local 783 pfd.events = POLLIN; 785 pfd.events = POLLOUT; 788 pfd.fd = s; 789 if ((ret = poll(&pfd, 1, timeout)) == 1) 1004 struct pollfd pfd; local 1010 pfd.fd = s; 1011 pfd.events = POLLOUT; 1012 if ((ret = poll(&pfd, 1, timeout)) == 1) { 1102 struct pollfd pfd[ local 1364 struct pollfd pfd; local [all...] |
/openbsd-current/regress/lib/libc/sys/ |
H A D | t_poll.c | 52 struct pollfd pfd; local 54 pfd.fd = desc; 55 pfd.events = POLLIN | POLLHUP | POLLOUT; 57 (void)poll(&pfd, 1, 2000); 64 struct pollfd pfd; local 66 pfd.fd = desc; 67 pfd.events = POLLIN | POLLHUP | POLLOUT; 70 (void)poll(&pfd, 1, INFTIM); 77 struct pollfd pfd; local 81 pfd 226 struct pollfd pfd; local [all...] |
/openbsd-current/sbin/ldattach/ |
H A D | atomicio.c | 49 struct pollfd pfd; local 51 pfd.fd = fd; 52 pfd.events = f == read ? POLLIN : POLLOUT; 60 (void)poll(&pfd, 1, -1); 84 struct pollfd pfd; local 93 pfd.fd = fd; 94 pfd.events = f == readv ? POLLIN : POLLOUT; 102 (void)poll(&pfd, 1, -1);
|
/openbsd-current/lib/libfido2/src/ |
H A D | hid_unix.c | 53 struct pollfd pfd; local 56 memset(&pfd, 0, sizeof(pfd)); 57 pfd.events = POLLIN; 58 pfd.fd = fd; 68 if ((r = ppoll(&pfd, 1, ms > -1 ? &ts : NULL, sigmask)) < 1) {
|
/openbsd-current/libexec/rpc.rstatd/ |
H A D | rstatd.c | 143 struct pollfd *pfd = NULL, *newp; local 158 newp = reallocarray(pfd, svc_max_pollfd, sizeof(*pfd)); 160 free(pfd); 164 pfd = newp; 167 memcpy(pfd, svc_pollfd, svc_max_pollfd * sizeof(*pfd)); 169 nready = poll(pfd, svc_max_pollfd, INFTIM); 175 free(pfd); 180 svc_getreq_poll(pfd, nread [all...] |
/openbsd-current/usr.bin/talk/ |
H A D | ctl_transact.c | 52 struct pollfd pfd[1]; local 58 pfd[0].fd = ctl_sockt; 59 pfd[0].events = POLLIN; 76 nready = poll(pfd, 1, CTL_WAIT * 1000); 95 nready = poll(pfd, 1, 0);
|
/openbsd-current/usr.bin/telnet/ |
H A D | network.c | 64 struct pollfd pfd[1]; local 68 pfd[0].fd = net; 69 pfd[0].events = POLLRDBAND; 70 value = poll(pfd, 1, 0); 77 if (pfd[0].revents & POLLRDBAND)
|
/openbsd-current/regress/lib/libpthread/cancel2/ |
H A D | cancel2.c | 51 struct pollfd pfd; local 54 pfd.fd = read_fd; 55 pfd.events = POLLIN; 57 result = poll(&pfd, 1, -1); 67 struct pollfd pfd; local 70 pfd.fd = read_fd; 71 pfd.events = POLLIN; 73 result = ppoll(&pfd, 1, NULL, NULL);
|
/openbsd-current/usr.sbin/vmd/ |
H A D | atomicio.c | 49 struct pollfd pfd; local 51 pfd.fd = fd; 52 pfd.events = f == read ? POLLIN : POLLOUT; 60 (void)poll(&pfd, 1, -1); 95 struct pollfd pfd; local 104 pfd.fd = fd; 105 pfd.events = f == readv ? POLLIN : POLLOUT; 113 (void)poll(&pfd, 1, -1);
|
/openbsd-current/usr.bin/ssh/ |
H A D | atomicio.c | 49 struct pollfd pfd; local 51 pfd.fd = fd; 52 pfd.events = f == read ? POLLIN : POLLOUT; 65 (void)poll(&pfd, 1, -1); 100 struct pollfd pfd; local 109 pfd.fd = fd; 110 pfd.events = f == readv ? POLLIN : POLLOUT; 123 (void)poll(&pfd, 1, -1);
|
H A D | monitor_fdpass.c | 51 struct pollfd pfd; local 68 pfd.fd = sock; 69 pfd.events = POLLOUT; 73 (void)poll(&pfd, 1, -1); 100 struct pollfd pfd; local 111 pfd.fd = sock; 112 pfd.events = POLLIN; 116 (void)poll(&pfd, 1, -1);
|
/openbsd-current/usr.bin/rsync/ |
H A D | receiver.c | 180 struct pollfd pfd[PFD__MAX]; local 297 pfd[PFD_SENDER_IN].fd = fdin; 298 pfd[PFD_UPLOADER_IN].fd = -1; 299 pfd[PFD_DOWNLOADER_IN].fd = -1; 300 pfd[PFD_SENDER_OUT].fd = fdout; 302 pfd[PFD_SENDER_IN].events = POLLIN; 303 pfd[PFD_UPLOADER_IN].events = POLLIN; 304 pfd[PFD_DOWNLOADER_IN].events = POLLIN; 305 pfd[PFD_SENDER_OUT].events = POLLOUT; 324 if ((c = poll(pfd, PFD__MA [all...] |
/openbsd-current/games/tetris/ |
H A D | input.c | 70 struct pollfd pfd[1]; local 72 pfd[0].fd = STDIN_FILENO; 73 pfd[0].events = POLLIN; 78 switch (ppoll(pfd, 1, limit, NULL)) {
|
/openbsd-current/libexec/lockspool/ |
H A D | lockspool.c | 51 struct pollfd pfd; local 89 pfd.fd = STDIN_FILENO; 90 pfd.events = POLLIN; 92 if (poll(&pfd, 1, INFTIM) == -1) {
|
/openbsd-current/regress/lib/libsndio/vol/ |
H A D | vol.c | 39 struct pollfd pfd[2]; local 118 pfd[0].fd = tty; 119 pfd[0].events = POLLIN; 120 sio_pollfd(hdl, &pfd[1], POLLOUT); 121 if (poll(pfd, 2, -1) < 0) { 125 if (pfd[0].revents & POLLIN) { 145 if (sio_revents(hdl, &pfd[1]) & POLLOUT) {
|