Searched refs:pfd (Results 26 - 50 of 106) sorted by relevance

12345

/freebsd-head/contrib/subversion/subversion/libsvn_ra_svn/
H A Dstreams.c55 static svn_boolean_t pending(apr_pollfd_t *pfd, apr_pool_t *pool)
60 pfd->p = pool;
61 pfd->reqevents = APR_POLLIN;
62 status = apr_poll(pfd, 1, &n, 0);
153 apr_pollfd_t pfd;
155 pfd.desc_type = APR_POLL_SOCKET;
156 pfd.desc.s = b->sock;
158 *data_available = pending(&pfd, b->pool);
54 pending(apr_pollfd_t *pfd, apr_pool_t *pool) argument
152 apr_pollfd_t pfd; local
/freebsd-head/crypto/openssh/
H A Dmonitor_fdpass.c66 struct pollfd pfd; local
88 pfd.fd = sock;
89 pfd.events = POLLOUT;
93 (void)poll(&pfd, 1, -1);
128 struct pollfd pfd; local
144 pfd.fd = sock;
145 pfd.events = POLLIN;
149 (void)poll(&pfd, 1, -1);
H A Dssh-agent.c913 after_poll(struct pollfd *pfd, size_t npfd, u_int maxfds) argument
919 if (pfd[i].revents == 0)
926 if (pfd[i].fd == sockets[socknum].fd)
930 error("%s: no socket for fd %d", __func__, pfd[i].fd);
936 if ((pfd[i].revents & (POLLIN|POLLERR)) == 0)
947 if ((pfd[i].revents & (POLLIN|POLLERR)) != 0 &&
951 if ((pfd[i].revents & (POLLOUT|POLLHUP)) != 0 &&
970 struct pollfd *pfd = *pfdp; local
989 (pfd = recallocarray(pfd, *npfd
1105 struct pollfd *pfd = NULL; local
[all...]
/freebsd-head/tools/regression/capsicum/syscalls/
H A Dmisc.h57 int pdwait(int pfd);
H A Dmisc.c45 pdwait(int pfd) argument
50 FD_SET(pfd, &fdset);
52 return (select(pfd + 1, NULL, &fdset, NULL, NULL) == -1 ? -1 : 0);
/freebsd-head/usr.sbin/vipw/
H A Dvipw.c71 int ch, pfd, tfd; local
93 if ((pfd = pw_lock()) == -1) {
97 if ((tfd = pw_tmp(pfd)) == -1) {
/freebsd-head/usr.sbin/pw/
H A Dgrupd.c56 int pfd, tfd; local
69 if ((pfd = gr_lock()) == -1) {
77 if (gr_copy(pfd, tfd, gr, old_gr) == -1) {
H A Dpw_nis.c46 int pfd, tfd; local
59 if ((pfd = pw_lock()) == -1) {
67 if (pw_copy(pfd, tfd, pw, old_pw) == -1) {
H A Dpwupd.c93 int rc, pfd, tfd; local
106 if ((pfd = pw_lock()) == -1) {
114 if (pw_copy(pfd, tfd, pw, old_pw) == -1) {
/freebsd-head/contrib/sendmail/libmilter/
H A Dworker.c348 #define WAIT_FD(i) (pfd[i].fd)
355 struct pollfd *pfd = NULL; local
368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
369 if (pfd == NULL)
439 pfd[nfd].fd = RD_PIPE;
440 pfd[nfd].events = MI_POLL_RD_FLAGS;
441 pfd[nfd].revents = 0;
471 realloc(pfd, new);
474 pfd = tpfd;
489 pfd[nf
[all...]
/freebsd-head/contrib/pf/libevent/
H A Dpoll.c142 struct pollfd *pfd = &pop->event_set[i]; local
143 assert(pop->idxplus1_by_fd[pfd->fd] == i+1);
218 struct pollfd *pfd = NULL; local
291 pfd = &pop->event_set[i];
294 pfd = &pop->event_set[i];
295 pfd->events = 0;
296 pfd->fd = ev->ev_fd;
301 pfd->revents = 0;
303 pfd->events |= POLLOUT;
307 pfd
323 struct pollfd *pfd = NULL; local
[all...]
/freebsd-head/usr.sbin/daemon/
H A Ddaemon.c86 int pfd[2] = { -1, -1 }, outfd = -1; local
255 if (pipe(pfd))
274 close(pfd[1]);
275 pfd[1] = -1;
289 close(pfd[0]);
293 if (dup2(pfd[1], STDERR_FILENO) == -1)
297 if (dup2(pfd[1], STDOUT_FILENO) == -1)
300 if (pfd[1] != STDERR_FILENO &&
301 pfd[1] != STDOUT_FILENO)
302 close(pfd[
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_ttypty.c62 struct pollfd pfd; local
86 pfd.fd = acurrent;
87 pfd.events = POLLIN;
89 RL(poll(&pfd, 1, INFTIM));
90 (void)printf("tty: returned from poll - %d\n", pfd.revents);
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_spawnattr.c109 int pid, scheduler, child_scheduler, priority, status, err, pfd[2]; local
120 err = pipe(pfd);
122 sprintf(helper_arg, "%d", pfd[0]);
161 write(pfd[1], "q", 1);
162 close(pfd[0]);
163 close(pfd[1]);
/freebsd-head/contrib/bearssl/tools/
H A Dsslio.c378 HANDLE pfd[2]; local
381 struct pollfd pfd[3]; local
509 pfd[u] = (HANDLE)fd_event;
513 pfd[u] = h_in;
517 wt = WaitForMultipleObjectsEx(u, pfd,
549 pfd[u].fd = fd;
550 pfd[u].revents = 0;
551 pfd[u].events = 0;
553 pfd[u].events |= POLLOUT;
556 pfd[
[all...]
/freebsd-head/contrib/ipfilter/lib/
H A Dipft_pc.c60 static int pfd = -1, swapped = 0; variable
87 if (pfd != -1)
88 return pfd;
118 pfd = fd;
129 return close(pfd);
147 i = read(pfd, (char *)rec, sizeof(*rec));
192 if (read(pfd, bufp, i) != i)
237 n = read(pfd, s, j);
/freebsd-head/contrib/netbsd-tests/fs/puffs/
H A Dt_fuzz.c177 struct pollfd pfd; local
187 pfd.fd = dafd;
188 pfd.events = POLLIN;
189 pfd.revents = 0;
190 if (rump_sys_poll(&pfd, 1, 10) == 0) {
/freebsd-head/stand/powerpc/kboot/
H A Dkbootfdt.c38 int child_offset, fd, pfd, error, dentsize; local
80 pfd = host_open(subpath, O_RDONLY, 0);
81 if (pfd > 0) {
82 proplen = host_read(pfd, propbuf, 1024);
83 host_close(pfd);
/freebsd-head/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c92 struct pollfd pfd; local
145 pfd.fd = ifd;
146 pfd.events = POLLIN;
147 pfd.revents = 0;
158 if ((ret = poll(&pfd, 1, remaining_ms)) < 0) {
220 struct pollfd pfd; local
243 pfd.fd = STDIN_FILENO;
244 pfd.events = POLLIN;
245 pfd.revents = 0;
256 if ((ret = poll(&pfd,
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/
H A Dt_pty.c190 struct pollfd pfd; local
206 pfd.fd = tty;
207 pfd.events = POLLIN;
208 pfd.revents = 0;
215 if ((ret = poll(&pfd, 1, 2000)) == -1)
219 if ((pfd.revents & POLLERR) != 0)
221 if ((pfd.revents & POLLIN) != 0) {
/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...]
/freebsd-head/contrib/serf/
H A Dcontext.c86 apr_pollfd_t *pfd,
90 pfd->client_data = serf_baton;
91 return apr_pollset_add(s->pollset, pfd);
95 apr_pollfd_t *pfd,
99 pfd->client_data = serf_baton;
100 return apr_pollset_remove(s->pollset, pfd);
85 pollset_add(void *user_baton, apr_pollfd_t *pfd, void *serf_baton) argument
94 pollset_rm(void *user_baton, apr_pollfd_t *pfd, void *serf_baton) argument
/freebsd-head/contrib/libbegemot/
H A Drpoll.c154 struct pollfd *pfd; /* pointer to corresponding poll() structure */ member in struct:__anon6
173 static struct pollfd * pfd; /* fd list for poll() */ variable in typeref:struct:pollfd
269 p->pfd = NULL;
306 regs[handle].pfd = NULL;
325 f = pfd = _xrealloc(pfd, sizeof(pfd[0]) * regs_used);
338 p->pfd = f++;
340 assert(f == &pfd[regs_used]);
486 * a reallocation! The check for pfd !
[all...]
/freebsd-head/contrib/ntp/sntp/libevent/
H A Ddevpoll.c101 struct pollfd *pfd; local
112 pfd = &devpollop->changes[devpollop->nchanges++];
113 pfd->fd = fd;
114 pfd->events = events;
115 pfd->revents = 0;
/freebsd-head/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c136 struct pollfd pfd; local
144 pfd.fd = fd;
145 pfd.events = POLLIN;
146 pfd.revents = 0;
148 pret = poll(&pfd, 1, -1);

Completed in 79 milliseconds

12345