Searched refs:pfds (Results 1 - 17 of 17) sorted by relevance

/netbsd-6-1-5-RELEASE/tests/lib/libc/sys/
H A Dt_poll.c159 struct pollfd pfds[2]; local
164 pfds[0].fd = fds[0];
165 pfds[0].events = POLLIN;
166 pfds[1].fd = fds[1];
167 pfds[1].events = POLLOUT;
173 pfds[0].revents = -1;
174 pfds[1].revents = -1;
175 ATF_REQUIRE_EQ_MSG(ret = poll(&pfds[0], 1, 1), 0,
177 ATF_REQUIRE_EQ_MSG(pfds[0].revents, 0, "got: %d", pfds[
247 struct pollfd pfds[2]; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/daemons/cmirrord/
H A Dlink_mon.c31 static struct pollfd *pfds = NULL; variable in typeref:struct:pollfd
40 if (fd == pfds[i].fd) {
57 tmp = realloc(pfds, sizeof(struct pollfd) * ((used_pfds*2) + 1));
63 pfds = tmp;
68 pfds[used_pfds].fd = fd;
69 pfds[used_pfds].events = POLLIN;
70 pfds[used_pfds].revents = 0;
88 if (fd == pfds[i].fd) {
90 pfds[i] = pfds[used_pfd
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/linux/common/
H A Dlinux_pipe.c66 linux_pipe_return(struct lwp *l, int *pfds, register_t *retval, int flags) argument
70 if (sizeof(*retval) != sizeof(*pfds)) {
76 if ((error = copyout(rpfds, pfds, sizeof(rpfds))))
79 if ((error = copyout(retval, pfds, 2 * sizeof(*pfds))))
95 syscallarg(int *) pfds;
102 return linux_pipe_return(l, SCARG(uap, pfds), retval, 0);
110 syscallarg(int *) pfds;
130 return linux_pipe_return(l, SCARG(uap, pfds), retval,
/netbsd-6-1-5-RELEASE/sys/rump/net/lib/libsockin/
H A Dsockin.c266 struct pollfd *pfds = NULL, *npfds; local
283 if (pfds)
284 kmem_free(pfds, cursock*sizeof(*pfds));
285 pfds = npfds;
291 pfds[i].fd = SO2S(su_iter->su_so);
292 pfds[i].events = POLLIN;
293 pfds[i].revents = 0;
302 rv = rumpuser_poll(pfds, cursock, POLLTIMEOUT, &error);
304 if (pfds[
[all...]
/netbsd-6-1-5-RELEASE/lib/librumphijack/
H A Dhijack.c1486 struct pollfd *pfds; local
1518 pfds = calloc(realnfds, sizeof(*pfds));
1519 if (!pfds)
1522 pfds = NULL;
1528 pfds[j].fd = i;
1529 pfds[j].events |= POLLIN;
1533 pfds[j].fd = i;
1534 pfds[j].events |= POLLOUT;
1538 pfds[
1635 struct pollfd *pfds; member in struct:pollarg
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/linux32/common/
H A Dlinux32_unistd.c233 int pfds[2]; local
235 pfds[0] = (int)retval[0];
236 pfds[1] = (int)retval[1];
238 if ((error = copyout(pfds, fd, 2 * sizeof(*fd))) != 0)
/netbsd-6-1-5-RELEASE/usr.sbin/rpcbind/
H A Drpcb_svc_com.c1146 check_rmtcalls(struct pollfd *pfds, int nfds) argument
1156 if ((xprt = find_rmtcallxprt_by_fd(pfds[j].fd)) != NULL) {
1157 if (pfds[j].revents) {
1163 pfds[j].fd, xprt->xp_netid);
1165 handle_reply(pfds[j].fd, xprt);
1166 pfds[j].revents = 0;
/netbsd-6-1-5-RELEASE/tests/fs/nfs/nfsservice/rpcbind/
H A Drpcb_svc_com.c1144 check_rmtcalls(struct pollfd *pfds, int nfds) argument
1154 if ((xprt = find_rmtcallxprt_by_fd(pfds[j].fd)) != NULL) {
1155 if (pfds[j].revents) {
1161 pfds[j].fd, xprt->xp_netid);
1163 handle_reply(pfds[j].fd, xprt);
1164 pfds[j].revents = 0;
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/unix/
H A Dsocket.c911 struct pollfd pfds[2];
912 size_t writelen = sizeof(pfds[0]);
915 memset(pfds, 0, sizeof(pfds));
916 pfds[0].events = POLLREMOVE;
917 pfds[0].fd = fd;
927 pfds[1].events = POLLOUT;
928 pfds[1].fd = fd;
929 writelen += sizeof(pfds[1]);
933 pfds[
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/unix/
H A Dsocket.c735 struct pollfd pfds[2];
736 size_t writelen = sizeof(pfds[0]);
739 memset(pfds, 0, sizeof(pfds));
740 pfds[0].events = POLLREMOVE;
741 pfds[0].fd = fd;
751 pfds[1].events = POLLOUT;
752 pfds[1].fd = fd;
753 writelen += sizeof(pfds[1]);
757 pfds[
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/amd64/
H A Dlinux_syscallargs.h131 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
916 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/mips/
H A Dlinux_syscallargs.h142 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
948 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/powerpc/
H A Dlinux_syscallargs.h142 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
923 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/arm/
H A Dlinux_syscallargs.h147 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
990 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/i386/
H A Dlinux_syscallargs.h152 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
1037 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/m68k/
H A Dlinux_syscallargs.h150 syscallarg(int *) pfds; member in struct:linux_sys_pipe_args
987 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args
/netbsd-6-1-5-RELEASE/sys/compat/linux/arch/alpha/
H A Dlinux_syscallargs.h1002 syscallarg(int *) pfds; member in struct:linux_sys_pipe2_args

Completed in 299 milliseconds