Searched refs:pfd (Results 1 - 25 of 106) sorted by last modified time

12345

/freebsd-head/usr.sbin/syslogd/
H A Dsyslogd.c3572 int pfd[2], nulldesc; local
3577 if (pipe(pfd) == -1)
3606 dup2(pfd[0], STDIN_FILENO);
3615 close(pfd[0]);
3625 if (fcntl(pfd[1], F_SETFL, O_NONBLOCK) == -1) {
3634 return (pfd[1]);
/freebsd-head/contrib/xz/src/xz/
H A Dfile_io.c243 struct pollfd pfd[2]; local
246 pfd[0].fd = pair->src_fd;
247 pfd[0].events = POLLIN;
249 pfd[0].fd = pair->dest_fd;
250 pfd[0].events = POLLOUT;
253 pfd[1].fd = user_abort_pipe[0];
254 pfd[1].events = POLLIN;
257 const int ret = poll(pfd, 2, timeout);
276 if (pfd[0].revents != 0)
/freebsd-head/contrib/llvm-project/lldb/source/Host/common/
H A DMainLoop.cpp205 struct pollfd pfd;
206 pfd.fd = fd.first;
207 pfd.events = POLLIN;
208 pfd.revents = 0;
209 read_fds.push_back(pfd);
/freebsd-head/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c1972 struct pollfd pfd; local
1974 pfd.events = POLLOUT;
1975 pfd.fd = up->fdt;
1976 rc = poll(&pfd, 1, 0);
1977 if (1 != rc || !(pfd.revents & POLLOUT))
/freebsd-head/contrib/tnftp/src/
H A Dutil.c1348 struct pollfd pfd[1]; local
1398 pfd[0].fd = sock;
1399 pfd[0].events = POLLIN|POLLOUT;
1425 pfd[0].revents = 0;
1426 rv = ftp_poll(pfd, 1, timeout);
1437 } else if (pfd[0].revents & (POLLIN|POLLOUT)) {
/freebsd-head/lib/libfetch/
H A Dcommon.c1336 struct pollfd pfd; local
1346 memset(&pfd, 0, sizeof pfd);
1347 pfd.fd = conn->sd;
1348 pfd.events = POLLIN | POLLERR;
1395 pfd.revents = 0;
1396 if (poll(&pfd, 1, deltams) < 0) {
1477 struct pollfd pfd; local
1481 memset(&pfd, 0, sizeof pfd);
[all...]
/freebsd-head/usr.bin/truss/
H A Dsyscalls.c1918 struct pollfd *pfd; local
1923 if ((pfd = malloc(bytes)) == NULL)
1926 if (get_struct(pid, args[sc->offset], pfd, bytes) != -1) {
1929 fprintf(fp, " %d/%s", pfd[i].fd,
1930 xlookup_bits(poll_flags, pfd[i].events));
1936 free(pfd);
/freebsd-head/tests/sys/net/routing/
H A Drtsock_common.h598 struct pollfd pfd; local
602 memset(&pfd, 0, sizeof(pfd));
603 pfd.fd = fd;
604 pfd.events = POLLIN;
606 if (poll(&pfd, 1, poll_delay) == 0)
/freebsd-head/crypto/openssh/
H A Dmux.c1473 struct pollfd pfd; local
1476 pfd.fd = fd;
1477 pfd.events = POLLIN;
1492 (void)poll(&pfd, 1, -1);
1516 struct pollfd pfd; local
1518 pfd.fd = fd;
1519 pfd.events = POLLOUT;
1541 (void)poll(&pfd, 1, -1);
H A Dsshconnect.c432 struct pollfd pfd; local
437 pfd.fd = fd;
438 pfd.events = POLLIN;
440 r = poll(&pfd, 1, *timeoutp);
H A Dmonitor.c479 struct pollfd pfd[2]; local
482 memset(&pfd, 0, sizeof(pfd));
483 pfd[0].fd = pmonitor->m_sendfd;
484 pfd[0].events = POLLIN;
485 pfd[1].fd = pmonitor->m_log_recvfd;
486 pfd[1].events = pfd[1].fd == -1 ? 0 : POLLIN;
487 if (poll(pfd, pfd[
[all...]
/freebsd-head/lib/libusb/
H A Dlibusb20.c1091 struct pollfd pfd[1]; local
1096 pfd[0].fd = pdev->file;
1097 pfd[0].events = (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM);
1098 pfd[0].revents = 0;
1100 if (poll(pfd, 1, timeout)) {
/freebsd-head/contrib/libpcap/
H A Dpcap-netmap.c96 struct pollfd pfd = { .fd = p->fd, .events = POLLIN, .revents = 0 }; local
112 ret = poll(&pfd, 1, p->opt.timeout);
/freebsd-head/contrib/netcat/
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/sbin/devd/
H A Ddevd.cc970 struct pollfd pfd; local
980 pfd.events = 0;
982 pfd.fd = i->fd;
983 s = poll(&pfd, 1, 0);
985 (s > 0 && (pfd.revents & POLLHUP))) {
/freebsd-head/sbin/swapon/
H A Dswapon.c674 int pfd[2], nfd, dup2dn; local
707 if (pipe(&pfd[0]) == -1) {
711 *ofd = pfd[0];
719 if (dup2(pfd[1], STDOUT_FILENO) < 0)
/freebsd-head/contrib/blacklist/bin/
H A Dblacklistd.c511 struct pollfd *pfd = NULL; local
517 addfd(&pfd, &bl, &nfd, &maxfd, blsock[i]);
527 addfd(&pfd, &bl, &nfd, &maxfd, line);
531 addfd(&pfd, &bl, &nfd, &maxfd, _PATH_BLSOCK);
557 ret = poll(pfd, (nfds_t)nfd, tout);
571 if (pfd[i].revents & POLLIN)
/freebsd-head/sbin/mdmfs/
H A Dmdmfs.c726 int pfd[2]; /* Pipe to the child. */ local
773 if (pipe(&pfd[0]) == -1)
775 *ofd = pfd[0];
785 if (dup2(pfd[1], STDOUT_FILENO) < 0)
/freebsd-head/tools/tools/netmap/
H A Dpkt-gen.c1284 struct pollfd pfd = { .fd = targ->fd, .events = POLLIN }; local
1359 rv = ioctl(pfd.fd, NIOCTXSYNC, NULL);
1365 ioctl(pfd.fd, NIOCRXSYNC, NULL);
1368 if ( (rv = poll(&pfd, 1, 3000)) <= 0) {
1475 struct pollfd pfd = { .fd = targ->fd, .events = POLLIN }; local
1492 ioctl(pfd.fd, NIOCRXSYNC, NULL);
1495 if ( (rv = poll(&pfd, 1, 1000)) <= 0) {
1540 ioctl(pfd.fd, NIOCTXSYNC, NULL);
1558 struct pollfd pfd = { .fd = targ->fd, .events = POLLOUT }; local
1653 if (ioctl(pfd
1795 struct pollfd pfd = { .fd = targ->fd, .events = POLLIN }; local
1915 struct pollfd pfd = { .fd = targ->fd, .events = POLLOUT }; local
2125 struct pollfd pfd = { .fd = targ->fd, .events = POLLIN }; local
[all...]
/freebsd-head/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c478 int pfd, tfd; local
633 if ((pfd = pw_lock()) == -1) {
643 if (pw_copy(pfd, tfd, &yp_password, NULL) == -1) {
744 int pfd, tfd; local
861 if ((pfd = pw_lock()) == -1) {
872 if (pw_copy(pfd, tfd, &newpasswd, NULL) == -1) {
/freebsd-head/usr.sbin/traceroute6/
H A Dtraceroute6.c990 struct pollfd pfd[1]; local
993 pfd[0].fd = sock;
994 pfd[0].events = POLLIN;
995 pfd[0].revents = 0;
997 if (poll(pfd, 1, waittime * 1000) > 0)
/freebsd-head/lib/libnv/tests/
H A Dnvlist_send_recv_test.c58 int pfd[2]; local
77 if (pipe(pfd) == -1)
79 if (write(pfd[1], "test", 4) != 4)
81 close(pfd[1]);
82 nvlist_add_descriptor(nvl, "nvlist/descriptor/pipe_rd", pfd[0]);
83 close(pfd[0]);
/freebsd-head/contrib/less/
H A Dfilename.c843 open_altfile(filename, pf, pfd)
846 void **pfd;
934 *pfd = NULL;
941 *pfd = (void *) fd;
H A Dfuncs.h135 public char * open_altfile LESSPARAMS ((char *filename, int *pf, void **pfd));
/freebsd-head/lib/libpam/modules/pam_exec/
H A Dpam_exec.c168 struct pollfd pfd[4]; local
339 memset(pfd, 0, sizeof pfd);
340 pfd[0].fd = pd;
341 pfd[0].events = POLLHUP;
345 pfd[nfds].fd = chout[0];
346 pfd[nfds].events = POLLIN|POLLERR|POLLHUP;
351 pfd[nfds].fd = cherr[0];
352 pfd[nfds].events = POLLIN|POLLERR|POLLHUP;
357 pfd[nfd
[all...]

Completed in 106 milliseconds

12345