Symbol: pollfd
bin/pwait/tests/pwait_reap.c
44
struct pollfd pfds[2];
bin/pwait/tests/pwait_reap.c
78
struct pollfd pfds[2];
bin/sh/miscbltin.c
171
struct pollfd pfd;
cddl/usr.sbin/zfsd/zfsd.cc
329
struct pollfd fds[2];
crypto/heimdal/lib/ipc/server.c
979
struct pollfd *fds;
crypto/heimdal/lib/roken/getifaddrs.c
403
struct pollfd pfd;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
200
static inline struct pollfd *
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
232
struct pollfd *pfd = find_pollfd(selstate, fd);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
256
struct pollfd *pfd = find_pollfd(selstate, fd);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
93
struct pollfd fds[MAX_POLLFDS];
crypto/krb5/src/util/verto/ev_poll.c
66
array_needsize (struct pollfd, polls, pollmax, pollcnt, EMPTY2);
crypto/krb5/src/util/verto/ev_poll.c
91
struct pollfd *p;
crypto/krb5/src/util/verto/ev_vars.h
95
VARx(struct pollfd *, polls)
crypto/openssh/atomicio.c
106
struct pollfd pfd;
crypto/openssh/atomicio.c
51
struct pollfd pfd;
crypto/openssh/channels.c
2762
u_int pollfd_offset, struct pollfd *pfd)
crypto/openssh/channels.c
2778
struct pollfd *pfd, u_int npfd)
crypto/openssh/channels.c
2880
channel_prepare_poll(struct ssh *ssh, struct pollfd **pfdp, u_int *npfd_allocp,
crypto/openssh/channels.c
2921
fd_ready(Channel *c, int p, struct pollfd *pfds, u_int npfd, int fd,
crypto/openssh/channels.c
2924
struct pollfd *pfd = &pfds[p];
crypto/openssh/channels.c
2949
channel_after_poll(struct ssh *ssh, struct pollfd *pfd, u_int npfd)
crypto/openssh/channels.h
344
struct pollfd;
crypto/openssh/channels.h
347
void channel_prepare_poll(struct ssh *, struct pollfd **,
crypto/openssh/channels.h
349
void channel_after_poll(struct ssh *, struct pollfd *, u_int);
crypto/openssh/clientloop.c
1456
struct pollfd *pfd = NULL;
crypto/openssh/clientloop.c
682
client_wait_until_can_do_something(struct ssh *ssh, struct pollfd **pfdp,
crypto/openssh/misc.c
363
struct pollfd pfd;
crypto/openssh/monitor.c
511
struct pollfd pfd[2];
crypto/openssh/monitor_fdpass.c
118
struct pollfd pfd;
crypto/openssh/monitor_fdpass.c
57
struct pollfd pfd;
crypto/openssh/mux.c
1554
struct pollfd pfd;
crypto/openssh/openbsd-compat/bsd-poll.c
100
poll(struct pollfd *fds, nfds_t nfds, int timeout)
crypto/openssh/openbsd-compat/bsd-poll.c
46
ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmoutp,
crypto/openssh/openbsd-compat/bsd-poll.h
83
int poll(struct pollfd *, nfds_t, int);
crypto/openssh/openbsd-compat/bsd-poll.h
87
int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
crypto/openssh/packet.c
1497
struct pollfd pfd;
crypto/openssh/packet.c
2212
struct pollfd pfd;
crypto/openssh/regress/netcat.c
1014
struct pollfd pfd;
crypto/openssh/regress/netcat.c
673
struct pollfd pfd;
crypto/openssh/regress/netcat.c
780
struct pollfd pfd[4];
crypto/openssh/serverloop.c
151
int connection_in, int connection_out, struct pollfd **pfdp,
crypto/openssh/serverloop.c
336
struct pollfd *pfd = NULL;
crypto/openssh/sftp-client.c
2389
struct pollfd pfd;
crypto/openssh/sftp-server.c
2054
struct pollfd pfd[2];
crypto/openssh/ssh-agent.c
2070
after_poll(struct pollfd *pfd, size_t npfd, u_int maxfds)
crypto/openssh/ssh-agent.c
2124
prepare_poll(struct pollfd **pfdp, size_t *npfdp, struct timespec *timeoutp, u_int maxfds)
crypto/openssh/ssh-agent.c
2126
struct pollfd *pfd = *pfdp;
crypto/openssh/ssh-agent.c
2280
struct pollfd *pfd = NULL;
crypto/openssh/ssh-keyscan.c
789
read_wait = xcalloc(maxfd, sizeof(struct pollfd));
crypto/openssh/ssh-keyscan.c
94
struct pollfd *read_wait;
crypto/openssh/ssh-pkcs11-helper.c
220
struct pollfd pfd[2];
crypto/openssh/sshd.c
936
struct pollfd *pfd = NULL;
crypto/openssh/sshd.c
975
sizeof(struct pollfd));
crypto/openssl/crypto/bio/bio_sock.c
459
struct pollfd confds;
crypto/openssl/doc/designs/ddd/ddd-02-conn-nonblocking-threads.c
299
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-02-conn-nonblocking-threads.c
317
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-02-conn-nonblocking.c
365
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-02-conn-nonblocking.c
409
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-04-fd-nonblocking.c
380
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-04-fd-nonblocking.c
424
struct pollfd pfd = { 0 };
crypto/openssl/doc/designs/ddd/ddd-05-mem-nonblocking.c
302
struct pollfd pfd = { 0 };
crypto/openssl/ssl/quic/quic_reactor.c
346
struct pollfd pfds[3] = { 0 };
crypto/openssl/ssl/rio/poll_builder.c
47
struct pollfd *pfd_heap_new;
crypto/openssl/ssl/rio/poll_builder.c
54
total_size = safe_mul_size_t(alloc, sizeof(struct pollfd), &error);
crypto/openssl/ssl/rio/poll_builder.c
77
struct pollfd *pfds = (rpb->pfd_heap != NULL ? rpb->pfd_heap : rpb->pfds);
crypto/openssl/ssl/rio/poll_builder.c
78
struct pollfd *pfd;
crypto/openssl/ssl/rio/poll_builder.h
33
struct pollfd *pfd_heap;
crypto/openssl/ssl/rio/poll_builder.h
34
struct pollfd pfds[RIO_NUM_STACK_PFDS];
include/rpc/svc.h
357
struct pollfd;
include/rpc/svc.h
358
extern void svc_getreq_poll(struct pollfd *, int);
include/ssp/poll.h
37
(struct pollfd fds[], nfds_t nfds, int timeout))
include/ssp/poll.h
47
(struct pollfd fds[], nfds_t nfds,
lib/libc/include/libc_private.h
336
struct pollfd;
lib/libc/isc/eventlib_p.h
238
struct pollfd *pollfds; /* Allocated as needed */
lib/libc/resolv/res_send.c
833
struct pollfd pollfd;
lib/libc/resolv/res_send.c
952
pollfd.fd = s;
lib/libc/resolv/res_send.c
953
pollfd.events = POLLRDNORM;
lib/libc/resolv/res_send.c
954
n = _poll(&pollfd, 1, polltimeout);
lib/libc/rpc/clnt_bcast.c
269
struct pollfd pfd[MAXBCAST];
lib/libc/rpc/clnt_vc.c
668
struct pollfd fd;
lib/libc/rpc/svc.c
705
svc_getreq_poll(struct pollfd *pfdp, int pollretval)
lib/libc/rpc/svc.c
711
struct pollfd *p = &pfdp[i];
lib/libc/rpc/svc_vc.c
451
struct pollfd pollfd;
lib/libc/rpc/svc_vc.c
475
pollfd.fd = sock;
lib/libc/rpc/svc_vc.c
476
pollfd.events = POLLIN;
lib/libc/rpc/svc_vc.c
477
pollfd.revents = 0;
lib/libc/rpc/svc_vc.c
478
switch (_poll(&pollfd, 1, milliseconds)) {
lib/libc/rpc/svc_vc.c
489
} while ((pollfd.revents & POLLIN) == 0);
lib/libc/sys/poll.c
38
__ssp_real(poll)(struct pollfd pfd[], nfds_t nfds, int timeout)
lib/libc/sys/ppoll.c
38
__ssp_real(ppoll)(struct pollfd pfd[], nfds_t nfds,
lib/libc/tests/secure/fortify_poll_test.c
175
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
182
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
200
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
207
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
225
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
241
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
281
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
289
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
307
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
315
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
333
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
350
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
390
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
398
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
416
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
424
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
442
struct pollfd __buf[4];
lib/libc/tests/secure/fortify_poll_test.c
459
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
499
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
508
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
526
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
535
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/secure/fortify_poll_test.c
553
struct pollfd * __buf;
lib/libc/tests/secure/fortify_poll_test.c
571
for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) {
lib/libc/tests/stdtime/detect_tz_changes_test.c
204
struct pollfd fds[3];
lib/libcasper/libcasper/service.c
89
static struct pollfd *pollset_pfds;
lib/libdevdctl/consumer.cc
229
struct pollfd fds[1];
lib/libfetch/common.c
1358
struct pollfd pfd;
lib/libfetch/common.c
1592
struct pollfd pfd;
lib/libfetch/common.c
586
struct pollfd pfd;
lib/libnetgraph/msg.c
232
struct pollfd rfds;
lib/libnv/msgio.c
89
struct pollfd pfd;
lib/libpam/modules/pam_exec/pam_exec.c
165
struct pollfd pfd[4];
lib/libsys/_libsys.h
188
typedef int (__sys_poll_t)(struct pollfd *, u_int, int);
lib/libsys/_libsys.h
422
typedef int (__sys_ppoll_t)(struct pollfd *, u_int, const struct timespec *, const sigset_t *);
lib/libsys/_libsys.h
43
struct pollfd;
lib/libsys/_libsys.h
600
int __sys_poll(struct pollfd * fds, u_int nfds, int timeout);
lib/libsys/_libsys.h
834
int __sys_ppoll(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * set);
lib/libsys/recvmmsg.c
42
struct pollfd pfd[1];
lib/libthr/thread/thr_syscalls.c
313
__thr_poll(struct pollfd *fds, unsigned int nfds, int timeout)
lib/libthr/thread/thr_syscalls.c
332
__thr_ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *
lib/libusb/libusb10.h
152
void libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, struct libusb20_device *pdev, int fd, short events);
lib/libusb/libusb10.h
153
void libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd);
lib/libusb/libusb10.h
61
struct libusb_pollfd pollfd;
lib/libusb/libusb10_hotplug.c
217
struct pollfd pfd;
lib/libusb/libusb10_io.c
104
struct pollfd *fds;
lib/libusb/libusb10_io.c
128
fds[i].fd = pfd->pollfd.fd;
lib/libusb/libusb10_io.c
129
fds[i].events = pfd->pollfd.events;
lib/libusb/libusb10_io.c
447
struct libusb_super_pollfd *pollfd;
lib/libusb/libusb10_io.c
456
TAILQ_FOREACH(pollfd, &ctx->pollfds, entry)
lib/libusb/libusb10_io.c
464
TAILQ_FOREACH(pollfd, &ctx->pollfds, entry)
lib/libusb/libusb10_io.c
465
ret[i++] = &pollfd->pollfd;
lib/libusb/libusb10_io.c
54
libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd,
lib/libusb/libusb10_io.c
60
if (pollfd->entry.tqe_prev != NULL)
lib/libusb/libusb10_io.c
66
pollfd->pdev = pdev;
lib/libusb/libusb10_io.c
67
pollfd->pollfd.fd = fd;
lib/libusb/libusb10_io.c
68
pollfd->pollfd.events = events;
lib/libusb/libusb10_io.c
71
TAILQ_INSERT_TAIL(&ctx->pollfds, pollfd, entry);
lib/libusb/libusb10_io.c
79
libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd)
lib/libusb/libusb10_io.c
84
if (pollfd->entry.tqe_prev == NULL)
lib/libusb/libusb10_io.c
88
TAILQ_REMOVE(&ctx->pollfds, pollfd, entry);
lib/libusb/libusb10_io.c
89
pollfd->entry.tqe_prev = NULL;
lib/libusb/libusb10_io.c
93
ctx->fd_removed_cb(pollfd->pollfd.fd, ctx->fd_cb_user_data);
lib/libusb/libusb20.c
1112
struct pollfd pfd[1];
lib/virtual_oss/oss/oss.c
152
struct pollfd fds = { .fd = pbe->fd, .events = POLLIN | POLLRDNORM };
libexec/getty/subr.c
636
struct pollfd set[1];
libexec/tftpd/tftp-io.c
381
struct pollfd pfd;
sbin/devd/devd.cc
984
struct pollfd pfd;
sbin/dhclient/dhclient.c
2894
struct pollfd pfd[1];
sbin/dhclient/dispatch.c
160
struct pollfd *fds;
sbin/dhclient/dispatch.c
168
fds = malloc(nfds * sizeof(struct pollfd));
sbin/ping/ping6.c
1152
struct pollfd pfd;
share/examples/sound/poll.c
41
struct pollfd pfds[1];
share/examples/sound/poll.c
50
if (poll(pfds, sizeof(pfds) / sizeof(struct pollfd), -1) < 0)
sys/amd64/linux/linux_proto.h
1011
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/amd64/linux/linux_proto.h
59
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/amd64/linux32/linux32_proto.h
1080
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/amd64/linux32/linux32_proto.h
1595
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/amd64/linux32/linux32_proto.h
526
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/arm64/linux/linux_proto.h
326
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/compat/freebsd32/freebsd32_proto.h
603
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/compat/linux/linux_misc.c
130
static int linux_common_ppoll(struct thread *, struct pollfd *,
sys/compat/linux/linux_misc.c
133
static int linux_pollin(struct thread *, struct pollfd *,
sys/compat/linux/linux_misc.c
134
struct pollfd *, u_int);
sys/compat/linux/linux_misc.c
135
static int linux_pollout(struct thread *, struct pollfd *,
sys/compat/linux/linux_misc.c
136
struct pollfd *, u_int);
sys/compat/linux/linux_misc.c
2247
linux_common_ppoll(struct thread *td, struct pollfd *fds, uint32_t nfds,
sys/compat/linux/linux_misc.c
2251
struct pollfd stackfds[32];
sys/compat/linux/linux_misc.c
2252
struct pollfd *kfds;
sys/compat/linux/linux_misc.c
2320
linux_pollin(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd)
sys/compat/linux/linux_misc.c
2339
linux_pollout(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd)
sys/i386/linux/linux_proto.h
1078
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/i386/linux/linux_proto.h
1589
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/i386/linux/linux_proto.h
528
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/kern/sys_generic.c
119
static int pollout(struct thread *, struct pollfd *, struct pollfd *,
sys/kern/sys_generic.c
121
static int pollscan(struct thread *, struct pollfd *, u_int);
sys/kern/sys_generic.c
1569
kern_poll_kfds(struct thread *td, struct pollfd *kfds, u_int nfds,
sys/kern/sys_generic.c
1675
kern_poll(struct thread *td, struct pollfd *ufds, u_int nfds,
sys/kern/sys_generic.c
1678
struct pollfd *kfds;
sys/kern/sys_generic.c
1679
struct pollfd stackfds[32];
sys/kern/sys_generic.c
1730
struct pollfd *fd;
sys/kern/sys_generic.c
1739
fd = (struct pollfd *)sfp->sf_cookie;
sys/kern/sys_generic.c
1772
pollout(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd)
sys/kern/sys_generic.c
1793
pollscan(struct thread *td, struct pollfd *fds, u_int nfd)
sys/net/netmap_user.h
559
win_nm_poll(struct pollfd *fds, int nfds, int timeout)
sys/sys/poll.h
117
int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
sys/sys/poll.h
119
int ppoll(struct pollfd _pfd[], nfds_t _nfds,
sys/sys/syscallsubr.h
290
int kern_poll(struct thread *td, struct pollfd *fds, u_int nfds,
sys/sys/syscallsubr.h
292
int kern_poll_kfds(struct thread *td, struct pollfd *fds, u_int nfds,
sys/sys/syscallsubr.h
56
struct pollfd;
sys/sys/sysproto.h
1651
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
sys/sys/sysproto.h
567
char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
tests/sys/audit/administrative.c
53
static struct pollfd fds[1];
tests/sys/audit/file-attribute-access.c
41
static struct pollfd fds[1];
tests/sys/audit/file-attribute-modify.c
45
static struct pollfd fds[1];
tests/sys/audit/file-close.c
39
static struct pollfd fds[1];
tests/sys/audit/file-create.c
36
static struct pollfd fds[1];
tests/sys/audit/file-delete.c
34
static struct pollfd fds[1];
tests/sys/audit/file-read.c
31
static struct pollfd fds[1];
tests/sys/audit/file-write.c
31
static struct pollfd fds[1];
tests/sys/audit/inter-process.c
52
static struct pollfd fds[1];
tests/sys/audit/ioctl.c
40
static struct pollfd fds[1];
tests/sys/audit/miscellaneous.c
39
static struct pollfd fds[1];
tests/sys/audit/network.c
50
static struct pollfd fds[1];
tests/sys/audit/open.c
51
static struct pollfd fds[1];
tests/sys/audit/process-control.c
53
static struct pollfd fds[1];
tests/sys/audit/utils.c
145
check_auditpipe(struct pollfd fd[], const char *auditregex, FILE *pipestream)
tests/sys/audit/utils.c
197
check_audit_startup(struct pollfd fd[], const char *auditrgx, FILE *pipestream){
tests/sys/audit/utils.c
202
check_audit(struct pollfd fd[], const char *auditrgx, FILE *pipestream) {
tests/sys/audit/utils.c
257
setup(struct pollfd fd[], const char *name)
tests/sys/audit/utils.h
35
void check_audit(struct pollfd [], const char *, FILE *);
tests/sys/audit/utils.h
36
FILE *setup(struct pollfd [], const char *);
tests/sys/capsicum/capability-fd.cc
546
struct pollfd pollfd;
tests/sys/capsicum/capability-fd.cc
547
pollfd.fd = cap_fd;
tests/sys/capsicum/capability-fd.cc
548
pollfd.events = POLLIN | POLLERR | POLLHUP;
tests/sys/capsicum/capability-fd.cc
549
pollfd.revents = 0;
tests/sys/capsicum/capability-fd.cc
550
int ret = poll(&pollfd, 1, 0);
tests/sys/capsicum/capability-fd.cc
554
EXPECT_NE(0, (pollfd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
172
struct pollfd poll_fd;
tests/sys/capsicum/linux.cc
223
struct pollfd poll_fd;
tests/sys/capsicum/linux.cc
462
struct pollfd poll_fd;
tests/sys/capsicum/linux.cc
74
struct pollfd poll_fd;
tests/sys/capsicum/procdesc.cc
372
struct pollfd fdp;
tests/sys/capsicum/procdesc.cc
424
struct pollfd fdp;
tests/sys/capsicum/select.cc
104
struct pollfd cap_fd[kCapCount + 2];
tests/sys/fifo/fifo_io.c
865
struct pollfd fds[1];
tests/sys/file/path_test.c
493
struct pollfd pollfd;
tests/sys/file/path_test.c
502
pollfd.fd = pathfd;
tests/sys/file/path_test.c
503
pollfd.events = POLLIN;
tests/sys/file/path_test.c
504
pollfd.revents = 0;
tests/sys/file/path_test.c
505
ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll"));
tests/sys/file/path_test.c
506
ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x",
tests/sys/file/path_test.c
507
pollfd.revents);
tests/sys/file/path_test.c
508
pollfd.events = POLLOUT;
tests/sys/file/path_test.c
509
pollfd.revents = 0;
tests/sys/file/path_test.c
510
ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll"));
tests/sys/file/path_test.c
511
ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x",
tests/sys/file/path_test.c
512
pollfd.revents);
tests/sys/fs/fusefs/mockfs.cc
1028
pollfd fds[1];
tests/sys/fs/fusefs/mockfs.cc
937
pollfd fds[1];
tests/sys/kern/jaildesc.c
95
struct pollfd pfd;
tests/sys/kern/ktls_test.c
170
struct pollfd pfd;
tests/sys/kern/listener_wakeup.c
165
struct pollfd fds = {
tests/sys/kern/procdesc.c
143
struct pollfd pfd;
tests/sys/kern/ssl_sendfile.c
282
ATF_REQUIRE(poll(&(struct pollfd){ .fd = fd, .events = POLLIN },
tests/sys/kern/ssl_sendfile.c
368
while (poll(&(struct pollfd){ .fd = c.ss, .events = POLLOUT }, 1, 1)
tests/sys/kern/ssl_sendfile.c
403
while (poll(&(struct pollfd){ .fd = c.ss, .events = POLLOUT }, 1, 1)
tests/sys/kern/timerfd.c
1020
poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1, -1) == 1);
tests/sys/kern/timerfd.c
1043
ATF_REQUIRE(poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1,
tests/sys/kern/timerfd.c
1070
poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1, -1) == 1);
tests/sys/kern/timerfd.c
1108
poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1, -1) == 1);
tests/sys/kern/timerfd.c
1123
ATF_REQUIRE(poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1,
tests/sys/kern/timerfd.c
1146
poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1, -1) == 1);
tests/sys/kern/timerfd.c
1173
r = poll(&(struct pollfd) { .fd = tfd, .events = POLLIN }, 1, 3000);
tests/sys/kern/timerfd.c
1301
int r = poll(&(struct pollfd) { .fd = tfd, .events = POLLIN },
tests/sys/kern/timerfd.c
265
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
582
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
633
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
648
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
681
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
69
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
698
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
734
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
762
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
781
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/timerfd.c
942
struct pollfd pfd = { .fd = timerfd, .events = POLLIN };
tests/sys/kern/unix_stream.c
146
struct pollfd pfd[1];
tests/sys/kern/unix_stream.c
149
pfd[0] = (struct pollfd){
tests/sys/net/routing/rtsock_common.h
674
struct pollfd pfd;
tests/sys/netinet/socket_afinet.c
102
struct pollfd pfd;
tests/sys/netinet/socket_afinet.c
165
struct pollfd pfd;
tests/sys/sound/polling.c
130
struct pollfd pfd[2];
tests/sys/sound/polling.c
143
ATF_REQUIRE_MSG(poll(pfd, sizeof(pfd) / sizeof(struct pollfd),
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
65
struct pollfd pfd[2];
tools/regression/poll/pipepoll.c
91
struct pollfd pfd;
tools/regression/poll/sockpoll.c
98
static struct pollfd pfd0;
tools/regression/poll/sockpoll.c
99
static struct pollfd pfd1;
tools/regression/security/cap_test/cap_test_capabilities.c
122
struct pollfd pollfd;
tools/regression/security/cap_test/cap_test_capabilities.c
391
pollfd.fd = fd_cap;
tools/regression/security/cap_test/cap_test_capabilities.c
392
pollfd.events = POLLIN | POLLERR | POLLHUP;
tools/regression/security/cap_test/cap_test_capabilities.c
393
pollfd.revents = 0;
tools/regression/security/cap_test/cap_test_capabilities.c
395
ret = poll(&pollfd, 1, 0);
tools/regression/security/cap_test/cap_test_capabilities.c
397
CHECK((pollfd.revents & POLLNVAL) == 0);
tools/regression/security/cap_test/cap_test_capabilities.c
399
CHECK((pollfd.revents & POLLNVAL) != 0);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
81
struct pollfd pfds[2];
tools/test/gpioevents/gpioevents.c
256
struct pollfd fds;
tools/tools/netmap/bridge.c
198
struct pollfd pollfd[2];
tools/tools/netmap/bridge.c
293
memset(pollfd, 0, sizeof(pollfd));
tools/tools/netmap/bridge.c
294
pollfd[0].fd = pa->fd;
tools/tools/netmap/bridge.c
295
pollfd[1].fd = pb->fd;
tools/tools/netmap/bridge.c
320
pollfd[0].events = pollfd[1].events = 0;
tools/tools/netmap/bridge.c
321
pollfd[0].revents = pollfd[1].revents = 0;
tools/tools/netmap/bridge.c
326
pollfd[1].revents = POLLOUT;
tools/tools/netmap/bridge.c
328
ioctl(pollfd[0].fd, NIOCRXSYNC, NULL);
tools/tools/netmap/bridge.c
331
pollfd[0].revents = POLLOUT;
tools/tools/netmap/bridge.c
333
ioctl(pollfd[1].fd, NIOCRXSYNC, NULL);
tools/tools/netmap/bridge.c
338
pollfd[1].events |= POLLOUT;
tools/tools/netmap/bridge.c
340
pollfd[0].events |= POLLIN;
tools/tools/netmap/bridge.c
342
pollfd[0].events |= POLLOUT;
tools/tools/netmap/bridge.c
344
pollfd[1].events |= POLLIN;
tools/tools/netmap/bridge.c
347
ret = poll(pollfd, 2, 2500);
tools/tools/netmap/bridge.c
353
pollfd[0].events,
tools/tools/netmap/bridge.c
354
pollfd[0].revents,
tools/tools/netmap/bridge.c
358
pollfd[1].events,
tools/tools/netmap/bridge.c
359
pollfd[1].revents,
tools/tools/netmap/bridge.c
366
if (pollfd[0].revents & POLLERR) {
tools/tools/netmap/bridge.c
371
if (pollfd[1].revents & POLLERR) {
tools/tools/netmap/bridge.c
376
if (pollfd[0].revents & POLLOUT) {
tools/tools/netmap/bridge.c
379
ioctl(pollfd[0].fd, NIOCTXSYNC, NULL);
tools/tools/netmap/bridge.c
383
if (pollfd[1].revents & POLLOUT) {
tools/tools/netmap/bridge.c
386
ioctl(pollfd[1].fd, NIOCTXSYNC, NULL);
tools/tools/netmap/lb.c
875
struct pollfd pollfd[npipes + 1];
tools/tools/netmap/lb.c
876
memset(&pollfd, 0, sizeof(pollfd));
tools/tools/netmap/lb.c
913
pollfd[polli].fd = ports[i].nmd->fd;
tools/tools/netmap/lb.c
914
pollfd[polli].events = POLLOUT;
tools/tools/netmap/lb.c
915
pollfd[polli].revents = 0;
tools/tools/netmap/lb.c
919
pollfd[polli].fd = rxport->nmd->fd;
tools/tools/netmap/lb.c
920
pollfd[polli].events = POLLIN;
tools/tools/netmap/lb.c
921
pollfd[polli].revents = 0;
tools/tools/netmap/lb.c
925
rv = poll(pollfd, polli, poll_timeout);
tools/tools/netmap/pkt-gen.c
1386
struct pollfd pfd = { .fd = targ->fd, .events = POLLIN };
tools/tools/netmap/pkt-gen.c
1585
struct pollfd pfd = { .fd = targ->fd, .events = POLLIN };
tools/tools/netmap/pkt-gen.c
1679
struct pollfd pfd = { .fd = targ->fd, .events = POLLOUT };
tools/tools/netmap/pkt-gen.c
1926
struct pollfd pfd = { .fd = targ->fd, .events = POLLIN };
tools/tools/netmap/pkt-gen.c
2047
struct pollfd pfd = { .fd = targ->fd, .events = POLLOUT };
tools/tools/netmap/pkt-gen.c
2257
struct pollfd pfd = { .fd = targ->fd, .events = POLLIN };
tools/tools/netrate/netreceive/netreceive.c
102
struct pollfd fds;
usr.bin/genl/genl.c
313
struct pollfd pfd;
usr.bin/kdump/kdump.c
121
static void ktrpollfd(struct pollfd *);
usr.bin/kdump/kdump.c
2333
ktrpollfd(struct pollfd *pfd)
usr.bin/kdump/kdump.c
2348
struct pollfd pfd;
usr.bin/mail/tests/mailx_signal_test.c
36
struct pollfd fds[2];
usr.bin/talk/ctl_transact.c
52
struct pollfd pfd[1];
usr.bin/talk/io.c
67
struct pollfd fds[2];
usr.bin/truss/syscalls.c
1985
struct pollfd *pfd;
usr.bin/truss/syscalls.c
1987
size_t bytes = sizeof(struct pollfd) * numfds;
usr.bin/whois/whois.c
310
struct pollfd *fds;
usr.sbin/bhyve/slirp/slirp-helper.c
173
struct pollfd *pollfd, *pollfds;
usr.sbin/bhyve/slirp/slirp-helper.c
193
pollfd = &priv->pollfds[i];
usr.sbin/bhyve/slirp/slirp-helper.c
194
pollfd->fd = fd;
usr.sbin/bhyve/slirp/slirp-helper.c
195
pollfd->events = slirpev2pollev(events);
usr.sbin/bhyve/slirp/slirp-helper.c
196
pollfd->revents = 0;
usr.sbin/bhyve/slirp/slirp-helper.c
215
struct pollfd *pollfd;
usr.sbin/bhyve/slirp/slirp-helper.c
221
pollfd = &priv->pollfds[idx];
usr.sbin/bhyve/slirp/slirp-helper.c
222
assert(pollfd->fd != -1);
usr.sbin/bhyve/slirp/slirp-helper.c
225
revents = pollfd->revents;
usr.sbin/bhyve/slirp/slirp-helper.c
226
if ((pollfd->events & POLLHUP) == 0)
usr.sbin/bhyve/slirp/slirp-helper.c
237
struct pollfd *pollfds;
usr.sbin/bhyve/slirp/slirp-helper.c
45
struct pollfd *pollfds;
usr.sbin/fifolog/fifolog_writer/fifolog_writer.c
56
struct pollfd pfd[1];
usr.sbin/ngctl/main.c
276
struct pollfd pfds[2] = {
usr.sbin/ngctl/main.c
382
struct pollfd pfds[3] = {
usr.sbin/ngctl/msg.c
66
struct pollfd pfds[1] = {
usr.sbin/route6d/route6d.c
122
static struct pollfd set[2];
usr.sbin/rpcbind/rpcb_svc_com.c
1081
struct pollfd pollfds[FD_SETSIZE + 1];
usr.sbin/rpcbind/rpcb_svc_com.c
1083
struct pollfd *p;
usr.sbin/rpcbind/rpcb_svc_com.c
109
static int check_rmtcalls(struct pollfd *, int);
usr.sbin/rpcbind/rpcb_svc_com.c
1179
check_rmtcalls(struct pollfd *pfds, int nfds)
usr.sbin/rtadvd/control.c
65
struct pollfd pfds[1];
usr.sbin/rtadvd/rtadvd.c
184
struct pollfd set[PFD_MAX];
usr.sbin/syslogd/syslogd.c
3428
struct pollfd pollfd;
usr.sbin/syslogd/syslogd.c
3442
pollfd.fd = pipefd[0];
usr.sbin/syslogd/syslogd.c
3443
pollfd.events = POLLHUP;
usr.sbin/syslogd/syslogd.c
3444
events = poll(&pollfd, 1, maxwait * 1000);
usr.sbin/traceroute6/traceroute6.c
1055
struct pollfd pfd[1];
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
265
struct pollfd pfd[3] = {};
usr.sbin/virtual_oss/virtual_oss/httpd.c
608
struct pollfd *pfd, int num_sock, int buffer)
usr.sbin/virtual_oss/virtual_oss/httpd.c
674
struct pollfd fds[VOSS_HTTPD_BIND_MAX] = {};