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

1 2 3

  /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_poll.c 57 struct pollfd pfd; local in function:child1
59 pfd.fd = desc;
60 pfd.events = POLLIN | POLLHUP | POLLOUT;
62 (void)poll(&pfd, 1, 2000);
69 struct pollfd pfd; local in function:child2
71 pfd.fd = desc;
72 pfd.events = POLLIN | POLLHUP | POLLOUT;
75 (void)poll(&pfd, 1, INFTIM);
82 struct pollfd pfd; local in function:child3
86 pfd.fd = desc
232 struct pollfd pfd; local in function:ATF_TC_BODY
273 struct pollfd pfd[2]; local in function:ATF_TC_BODY
403 struct pollfd pfd; local in function:ATF_TC_BODY
453 struct pollfd pfd; local in function:ATF_TC_BODY
557 struct pollfd pfd = { .fd = writefd, .events = POLLOUT }; local in function:check_pollclosed_delayed_write
627 struct pollfd pfd; local in function:check_pollclosed_delayed_read
785 struct pollfd pfd = { .fd = writefd, .events = POLLOUT }; local in function:check_pollclosed_immediate_write
821 struct pollfd pfd = { .fd = readfd, .events = POLLIN }; local in function:check_pollclosed_immediate_readnone
855 struct pollfd pfd; local in function:check_pollclosed_immediate_readsome
    [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/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);
netcat.c 974 struct pollfd pfd; local in function:timeout_connect
980 pfd.fd = s;
981 pfd.events = POLLOUT;
982 if ((ret = poll(&pfd, 1, timeout)) == 1) {
1062 struct pollfd pfd[4]; local in function:readwrite
1077 pfd[POLL_STDIN].fd = stdin_fd;
1078 pfd[POLL_STDIN].events = POLLIN;
1081 pfd[POLL_NETOUT].fd = net_fd;
1082 pfd[POLL_NETOUT].events = 0;
1085 pfd[POLL_NETIN].fd = net_fd
1323 struct pollfd pfd; local in function:fdpass
    [all...]
  /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...]
svc_fdset.c 171 svc_pollfd_init(struct pollfd *pfd, int nfd)
174 pfd[i].fd = -1;
175 pfd[i].events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND;
176 pfd[i].revents = 0;
198 struct pollfd *pfd; local in function:svc_pollfd_add
200 if ((pfd = svc_pollfd_alloc(fds)) == NULL)
204 if (pfd[i].fd == -1) {
209 pfd[i].fd = fd;
213 pfd = realloc(fds->fdp, (fds->fdnum + FD_SETSIZE) * sizeof(*fds->fdp));
214 if (pfd == NULL
229 struct pollfd *pfd; local in function:svc_pollfd_del
    [all...]
  /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/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/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/faithd/
ftp.c 75 struct pollfd pfd[6]; local in function:ftp_relay
82 pfd[0].fd = ctl4;
83 pfd[0].events = POLLIN;
84 pfd[1].fd = ctl6;
85 pfd[1].events = POLLIN;
87 pfd[2].fd = port4;
88 pfd[2].events = POLLIN;
90 pfd[2].fd = -1;
92 pfd[3].fd = port6;
93 pfd[3].events = POLLIN
238 struct pollfd pfd[1]; local in function:ftp_activeconn
284 struct pollfd pfd[1]; local in function:ftp_passiveconn
    [all...]
  /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/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.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/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/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);
  /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/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/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/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/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/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/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/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/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) {

Completed in 24 milliseconds

1 2 3