HomeSort by: relevance | last modified time | path
    Searched defs:pfd (Results 1 - 25 of 54) sorted by relevancy

1 2 3

  /src/usr.bin/nc/
atomicio.c 46 struct pollfd pfd; local in function:atomicio
48 pfd.fd = fd;
49 pfd.events = f == read ? POLLIN : POLLOUT;
57 (void)poll(&pfd, 1, -1);
  /src/sbin/mount_nfs/
udp_xfer.c 93 struct pollfd pfd = {d->socket, POLLIN, 0}; local in function:readudp
95 if (poll(&pfd, 1, tleft * 1000) != 1)
  /src/tests/lib/librumphijack/
h_client.c 99 struct pollfd pfd[2]; local in function:main
107 pfd[0].fd = STDIN_FILENO;
108 pfd[0].events = POLLIN;
109 pfd[1].fd = fd;
110 pfd[1].events = POLLIN;
112 if ((rv = poll(pfd, 2, INFTIM)) != 1)
115 if (pfd[1].revents != POLLNVAL || pfd[0].revents != 0)
  /src/tests/kernel/kqueue/write/
t_ttypty.c 58 struct pollfd pfd; local in function:h_check
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);
  /src/tests/lib/libc/sys/
msg.h 33 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[0], msg, len)
    [all...]
t_pollts.c 129 struct pollfd pfd; local in function:ATF_TC_BODY
132 pfd.fd = fd;
133 pfd.events = POLLIN;
145 ATF_REQUIRE_ERRNO(EINVAL, POLLTS(&pfd, 1, &timeout, NULL) == -1);
159 struct pollfd pfd; local in function:ATF_TC_BODY
167 pfd.fd = fd;
168 pfd.events = POLLIN;
182 ATF_REQUIRE_EQ_MSG(ret = POLLTS(&pfd, 1, &timeout, &mask), 1,
  /src/usr.bin/tip/
tipout.c 126 struct pollfd pfd[2]; local in function:tipout
133 pfd[0].fd = attndes[0];
134 pfd[0].events = POLLIN;
135 pfd[1].fd = FD;
136 pfd[1].events = POLLIN|POLLHUP;
140 if (poll(pfd, 2, -1) > 0) {
142 if (pfd[0].revents & POLLIN)
160 if (pfd[1].revents & (POLLIN|POLLHUP)) {
  /src/usr.sbin/rpc.yppasswdd/
yppasswdd_mkpw.c 68 int pfd, tfd; local in function:make_passwd
134 pfd = open(mpwd, O_RDONLY, 0);
135 if (pfd < 0) {
155 pw_copy(pfd, tfd, &pw, NULL);
  /src/usr.sbin/vipw/
vipw.c 69 int pfd, tfd; local in function:main
105 pfd = open(mpwd, O_RDONLY, 0);
106 if (pfd < 0)
108 copyfile(pfd, tfd);
  /src/lib/libc/rpc/
svc_run.c 137 struct pollfd *pfd; local in function:svc_run_poll
144 pfd = NULL;
156 if (pfd == NULL || fdsize != svc_pollfd_getsize(0)) {
158 free(pfd);
159 pfd = svc_pollfd_copy(svc_pollfd_get());
160 if (pfd == NULL) {
166 memcpy(pfd, svc_pollfd_get(), *maxfd * sizeof(*pfd));
170 switch ((i = poll(pfd, (nfds_t)*maxfd, 30 * 1000))) {
187 svc_getreq_poll(pfd, i)
    [all...]
  /src/tests/kernel/kqueue/read/
t_ttypty.c 63 struct pollfd pfd; local in function:h_check
87 pfd.fd = acurrent;
88 pfd.events = POLLIN;
90 RL(poll(&pfd, 1, INFTIM));
91 (void)printf("tty: returned from poll - %d\n", pfd.revents);
  /src/tests/net/net/
t_socket_afinet.c 133 struct pollfd pfd; local in function:ATF_TC_BODY
164 pfd.fd = ss2;
165 pfd.events = POLLIN | POLLOUT;
166 rc = poll(&pfd, 1, 0);
168 ATF_CHECK_EQ(POLLOUT, pfd.revents);
179 pfd.fd = ss2;
180 pfd.events = POLLIN;
181 rc = poll(&pfd, 1, 60000);
183 ATF_CHECK_EQ(POLLIN, pfd.revents);
194 struct pollfd pfd; local in function:ATF_TC_BODY
    [all...]
  /src/lib/libc/gen/
getpass.c 153 struct pollfd pfd; local in function:__weak_alias
154 pfd.fd = fd[0];
155 pfd.events = POLLIN|POLLRDNORM;
156 pfd.revents = 0;
157 switch (poll(&pfd, 1, tout * 1000)) {
  /src/sys/rump/net/lib/libvirtif/
virtif_user.c 130 struct pollfd pfd[2]; local in function:rcvthread
137 pfd[0].fd = viu->viu_fd;
138 pfd[0].events = POLLIN;
139 pfd[1].fd = viu->viu_pipe[0];
140 pfd[1].events = POLLIN;
143 prv = poll(pfd, 2, -1);
153 if (pfd[1].revents & POLLIN)
  /src/tests/net/fdpass/
fdpass.c 58 struct pollfd pfd; local in function:send_fd
79 pfd.fd = sock;
80 pfd.events = POLLOUT;
83 (void)poll(&pfd, 1, -1);
111 struct pollfd pfd; local in function:recv_fd
125 pfd.fd = sock;
126 pfd.events = POLLIN;
129 (void)poll(&pfd, 1, -1);
  /src/usr.bin/chpass/
chpass.c 85 int ch, dfd, pfd, tfd; local in function:main
276 pfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0);
277 if (pfd < 0 || fcntl(pfd, F_SETFD, 1) < 0)
281 pw_copy(pfd, tfd, pw, (op == LOADENTRY) ? NULL : &old_pw);
283 close(pfd);
  /src/usr.bin/rump_dhcpclient/
main.c 130 struct pollfd pfd; local in function:get_network
136 pfd.fd = ifp->raw_fd;
137 pfd.events = POLLIN;
141 switch (rump_sys_poll(&pfd, 1, RESPWAIT)) {
  /src/usr.sbin/npf/npfd/
npfd.c 77 struct pollfd pfd; local in function:npfd_event_loop
80 pfd.fd = npfd_log_getsock(log);
81 pfd.events = POLLHUP | POLLIN;
97 switch (poll(&pfd, 1, delay)) {
  /src/usr.bin/passwd/
local_passwd.c 137 int pfd, tfd; local in function:pwlocal_process
213 pfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0);
214 if (pfd < 0)
217 pw_copy(pfd, tfd, pw, &old_pw);
272 int pfd, tfd; local in function:local_chpw
322 pfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0);
323 if (pfd < 0)
326 pw_copy(pfd, tfd, pw, &old_pw);
  /src/tests/lib/libc/gen/posix_spawn/
t_spawnattr.c 108 int pid, scheduler, child_scheduler, priority, status, pfd[2]; local in function:ATF_TC_BODY
119 RL(pipe(pfd));
120 snprintf(helper_arg, sizeof(helper_arg), "%d", pfd[0]);
161 RL(write(pfd[1], "q", 1));
162 RL(close(pfd[0]));
163 RL(close(pfd[1]));
  /src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/
randombytes_sysrandom.c 136 struct pollfd pfd; local in function:randombytes_block_on_dev_random
144 pfd.fd = fd;
145 pfd.events = POLLIN;
146 pfd.revents = 0;
148 pret = poll(&pfd, 1, -1);
  /src/sys/rump/net/lib/libwg/
wg_user.c 123 struct pollfd pfd[4]; local in function:wg_user_rcvthread
129 pfd[0].fd = wgu->wgu_fd;
130 pfd[0].events = POLLIN;
131 pfd[1].fd = wgu->wgu_pipe[0];
132 pfd[1].events = POLLIN;
133 pfd[2].fd = wgu->wgu_sock4;
134 pfd[2].events = POLLIN;
135 pfd[3].fd = wgu->wgu_sock6;
136 pfd[3].events = POLLIN;
141 prv = poll(pfd, 4, -1)
    [all...]
  /src/tests/fs/puffs/
t_fuzz.c 177 struct pollfd pfd; local in function:respondthread
187 pfd.fd = dafd;
188 pfd.events = POLLIN;
189 pfd.revents = 0;
190 if (rump_sys_poll(&pfd, 1, 10) == 0) {
  /src/tests/kernel/
t_pty.c 191 struct pollfd pfd; local in function:child_spawn
207 pfd.fd = tty;
208 pfd.events = POLLIN;
209 pfd.revents = 0;
216 if ((ret = poll(&pfd, 1, 2000)) == -1)
220 if ((pfd.revents & POLLERR) != 0)
222 if ((pfd.revents & POLLIN) != 0) {
  /src/tests/net/if_vlan/
bpfopen.c 210 struct pollfd pfd[PFD_NUM]; local in function:bpf_read
239 pfd[PFD_BPF].fd = bpfd;
240 pfd[PFD_BPF].events = POLLIN;
242 nfds = poll(pfd, PFD_NUM, 1 * 1000);
248 if (nfds > 0 && (pfd[PFD_BPF].revents & POLLIN)) {
251 n = read(pfd[PFD_BPF].fd, buf, bufsiz);

Completed in 59 milliseconds

1 2 3