Searched refs:pfd (Results 1 - 25 of 108) sorted by relevance

12345

/freebsd-head/contrib/apr/support/unix/
H A Dwaitio.c43 struct pollfd pfd; local
47 pfd.fd = f ? f->filedes : s->socketdes;
48 pfd.events = for_read ? POLLIN : POLLOUT;
51 rc = poll(&pfd, 1, timeout);
70 apr_pollfd_t pfd; local
77 pfd.desc_type = APR_POLL_FILE;
78 pfd.desc.f = f;
91 pfd.desc_type = APR_POLL_SOCKET;
92 pfd.desc.s = s;
97 pfd
[all...]
/freebsd-head/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c67 struct pollfd pfd[2]; local
101 pfd[0].fd = t;
102 pfd[0].events = POLLOUT;
103 pfd[1].fd = u;
104 pfd[1].events = POLLOUT;
106 if (poll(pfd, 2, 1000) == 0) {
109 pfd[0].fd = -1;
114 if (pfd[0].revents & POLLOUT) {
117 pfd[0].fd = -1;
121 if (pfd[
[all...]
/freebsd-head/usr.bin/diff/
H A Dpr.c49 int pfd[2]; local
61 if (pipe(pfd) == -1)
70 if (pfd[0] != STDIN_FILENO) {
71 dup2(pfd[0], STDIN_FILENO);
72 close(pfd[0]);
74 close(pfd[1]);
80 if (pfd[1] != STDOUT_FILENO) {
82 dup2(pfd[1], STDOUT_FILENO);
83 close(pfd[1]);
84 close(pfd[
[all...]
/freebsd-head/lib/libc/sys/
H A Dpoll.c44 poll(struct pollfd pfd[], nfds_t nfds, int timeout) argument
48 __libc_interposing[INTERPOS_poll])(pfd, nfds, timeout));
H A Dppoll.c44 ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *__restrict argument
49 const sigset_t *)) __libc_interposing[INTERPOS_ppoll])(pfd, nfds,
/freebsd-head/contrib/netbsd-tests/kernel/
H A Dmsg.h33 int pfd[2]; member in struct:msg_fds
47 if (pipe(fds->pfd) == -1)
50 close(fds->pfd[0]);
51 close(fds->pfd[1]);
60 CLOSEFD(fds->pfd[0]);
61 CLOSEFD(fds->pfd[1]);
71 CLOSEFD(fds->pfd[0]);
74 rv = write(fds->pfd[1], msg, len);
88 CLOSEFD(fds->pfd[1]);
96 rv = read(fds->pfd[
[all...]
/freebsd-head/tools/regression/poll/
H A Dpipepoll.c92 struct pollfd pfd; local
101 pfd.fd = fd;
102 pfd.events = POLLIN;
105 if ((res = poll(&pfd, 1, 0)) < 0)
107 report(num++, "0", 0, pfd.revents, res, 0);
123 if ((res = poll(&pfd, 1, 0)) < 0)
125 report(num++, "1", 0, pfd.revents, res, 0);
131 if ((res = poll(&pfd, 1, 0)) < 0)
133 report(num++, "2", POLLIN, pfd.revents, res, 1);
136 if ((res = poll(&pfd,
[all...]
/freebsd-head/lib/libc/gen/
H A Drecvmmsg.c44 struct pollfd pfd[1]; local
51 pfd[0].fd = s;
52 pfd[0].revents = 0;
53 pfd[0].events = ev = POLLIN | POLLRDNORM | POLLRDBAND |
55 res = ppoll(&pfd[0], 1, timeout, NULL);
58 if (pfd[0].revents & POLLNVAL) {
62 if ((pfd[0].revents & ev) == 0) {
/freebsd-head/contrib/netcat/
H A Datomicio.c44 struct pollfd pfd; local
46 pfd.fd = fd;
47 pfd.events = f == read ? POLLIN : POLLOUT;
55 (void)poll(&pfd, 1, -1);
H A Dnetcat.c706 struct pollfd pfd; local
718 pfd.fd = s;
719 pfd.events = POLLOUT;
720 if ((ret = poll(&pfd, 1, timeout)) == 1) {
812 struct pollfd pfd[4]; local
828 pfd[POLL_STDIN].fd = stdin_fd;
829 pfd[POLL_STDIN].events = POLLIN;
832 pfd[POLL_NETOUT].fd = net_fd;
833 pfd[POLL_NETOUT].events = 0;
836 pfd[POLL_NETI
1059 struct pollfd pfd; local
[all...]
/freebsd-head/tools/regression/capsicum/syscalls/
H A Dcap_getmode.c51 int pfd; local
89 pid = pdfork(&pfd, 0);
102 if (pdwait(pfd) == -1)
104 close(pfd);
148 pid = pdfork(&pfd, 0);
161 if (pdwait(pfd) == -1)
163 close(pfd);
/freebsd-head/usr.bin/talk/
H A Dctl_transact.c58 struct pollfd pfd[1]; local
64 pfd[0].fd = ctl_sockt;
65 pfd[0].events = POLLIN;
82 nready = poll(pfd, 1, CTL_WAIT * 1000);
101 nready = poll(pfd, 1, 0);
/freebsd-head/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_printf.c55 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
62 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
70 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
86 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
93 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
101 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
123 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
140 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
148 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
155 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_ argument
162 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
174 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
187 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
200 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
231 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
239 pfprint_sint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal) argument
265 pfprint_uint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
289 pfprint_dint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
300 pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
326 pfprint_addr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
354 pfprint_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
362 pfprint_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
370 pfprint_uaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
407 pfprint_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal) argument
458 pfprint_time(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
500 pfprint_time822(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
515 pfprint_port(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
535 pfprint_inetaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
567 pfprint_cstr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
579 pfprint_wstr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
591 pfprint_estr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
606 pfprint_echr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
630 pfprint_pct(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
716 const dt_pfconv_t *pfd; local
837 dt_pfargd_t *pfd, *nfd = NULL; local
1034 dt_pfargd_t *pfd, *nfd; local
1049 dt_pfargd_t *pfd = pfv->pfv_argv; local
1291 pfprint_average(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1305 pfprint_stddev(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1319 pfprint_quantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1327 pfprint_lquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1335 pfprint_llquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1346 dt_pfargd_t *pfd = pfv->pfv_argv; local
1666 dt_pfargd_t *pfd = pfv->pfv_argv; local
1849 dt_pfargd_t *pfd; local
1898 dt_pfargd_t *pfd = pfv->pfv_argv; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c49 struct pollfd pfd; local
51 pfd.fd = desc;
52 pfd.events = POLLIN | POLLHUP | POLLOUT;
54 (void)poll(&pfd, 1, 2000);
61 struct pollfd pfd; local
63 pfd.fd = desc;
64 pfd.events = POLLIN | POLLHUP | POLLOUT;
67 (void)poll(&pfd, 1, INFTIM);
74 struct pollfd pfd; local
78 pfd
223 struct pollfd pfd; local
318 struct pollfd pfd; local
348 struct pollfd pfd; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/librumphijack/
H A Dh_client.c97 struct pollfd pfd[2]; local
105 pfd[0].fd = STDIN_FILENO;
106 pfd[0].events = POLLIN;
107 pfd[1].fd = fd;
108 pfd[1].events = POLLIN;
110 if ((rv = poll(pfd, 2, INFTIM)) != 1)
113 if (pfd[1].revents != POLLNVAL || pfd[0].revents != 0)
/freebsd-head/crypto/openssh/
H A Datomicio.c58 struct pollfd pfd; local
61 pfd.fd = fd;
62 pfd.events = f == read ? POLLIN : POLLOUT;
72 (void)poll(&pfd, 1, -1);
108 struct pollfd pfd; local
118 pfd.fd = fd;
119 pfd.events = f == readv ? POLLIN : POLLOUT;
129 (void)poll(&pfd, 1, -1);
/freebsd-head/tests/sys/file/
H A Dflock_helper.c188 int pfd[2]; local
193 if (pipe(pfd) < 0)
213 if (write(pfd[1], "a", 1) < 0)
223 if (read(pfd[0], &ch, 1) != 1)
234 close(pfd[0]);
235 close(pfd[1]);
259 int pfd[2]; local
264 if (pipe(pfd) < 0)
284 if (write(pfd[1], "a", 1) < 0)
294 if (read(pfd[
329 int pfd[2]; local
603 int pfd[2]; local
675 int pfd[2]; local
752 int pfd[2]; local
824 int pfd[2]; local
977 int pfd[2]; local
1055 int pfd[2]; local
1342 int pfd[2]; local
1447 int pfd[2]; local
[all...]
/freebsd-head/usr.sbin/fifolog/fifolog_writer/
H A Dfifolog_writer.c58 struct pollfd pfd[1]; local
99 pfd[0].fd = 0;
100 pfd[0].events = POLLIN;
101 i = poll(pfd, 1, 1000);
/freebsd-head/contrib/blacklist/test/
H A Dsrvtest.c182 struct pollfd pfd[NUMFD]; local
204 pfd[0].fd = cr(AF_INET, type, port);
205 pfd[0].events = POLLIN;
207 pfd[1].fd = cr(AF_INET6, type, port);
208 pfd[1].events = POLLIN;
212 if (poll(pfd, __arraycount(pfd), INFTIM) == -1)
214 for (size_t i = 0; i < __arraycount(pfd); i++) {
215 if ((pfd[i].revents & POLLIN) == 0)
217 handle(type, pfd[
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/kqueue/write/
H A Dt_ttypty.c58 struct pollfd pfd; local
78 pfd.fd = acurrent;
79 pfd.events = POLLOUT;
81 RL(poll(&pfd, 1, INFTIM));
82 (void)printf("tty: returned from poll - %d\n", pfd.revents);
/freebsd-head/contrib/ntp/sntp/libevent/
H A Dpoll.c116 struct pollfd *pfd = &pop->event_set[i]; local
117 EVUTIL_ASSERT(pop->idxplus1_by_fd[pfd->fd] == i+1);
220 struct pollfd *pfd = NULL; local
254 pfd = &pop->event_set[i];
257 pfd = &pop->event_set[i];
258 pfd->events = 0;
259 pfd->fd = fd;
263 pfd->revents = 0;
265 pfd->events |= POLLOUT;
267 pfd
281 struct pollfd *pfd = NULL; local
[all...]
/freebsd-head/contrib/libevent/
H A Dpoll.c116 struct pollfd *pfd = &pop->event_set[i]; local
117 EVUTIL_ASSERT(pop->idxplus1_by_fd[pfd->fd] == i+1);
220 struct pollfd *pfd = NULL; local
254 pfd = &pop->event_set[i];
257 pfd = &pop->event_set[i];
258 pfd->events = 0;
259 pfd->fd = fd;
263 pfd->revents = 0;
265 pfd->events |= POLLOUT;
267 pfd
281 struct pollfd *pfd = NULL; local
[all...]
/freebsd-head/crypto/openssh/regress/
H A Dnetcat.c668 struct pollfd pfd; local
680 pfd.fd = s;
681 pfd.events = POLLOUT;
682 if ((ret = poll(&pfd, 1, timeout)) == 1) {
775 struct pollfd pfd[4]; local
790 pfd[POLL_STDIN].fd = stdin_fd;
791 pfd[POLL_STDIN].events = POLLIN;
794 pfd[POLL_NETOUT].fd = net_fd;
795 pfd[POLL_NETOUT].events = 0;
798 pfd[POLL_NETI
1009 struct pollfd pfd; local
[all...]
/freebsd-head/tools/tools/ncpus/
H A Dbiosmptable.c128 static int pfd = -1; variable
133 if (pfd < 0) {
134 pfd = open(_PATH_MEM, O_RDONLY);
135 if (pfd < 0)
138 return pfd >= 0;
144 if (pfd >= 0) {
145 close(pfd);
146 pfd = -1;
153 if ((size_t)pread(pfd, entry, size, addr) != size) {
/freebsd-head/contrib/netbsd-tests/net/fdpass/
H A Dfdpass.c58 struct pollfd pfd; local
79 pfd.fd = sock;
80 pfd.events = POLLOUT;
83 (void)poll(&pfd, 1, -1);
111 struct pollfd pfd; local
125 pfd.fd = sock;
126 pfd.events = POLLIN;
129 (void)poll(&pfd, 1, -1);

Completed in 323 milliseconds

12345