Searched refs:nfds (Results 1 - 25 of 69) sorted by relevance

123

/freebsd-11.0-release/lib/libopenbsd/
H A Dgetdtablecount.c45 int nfds; local
48 len = sizeof(nfds);
54 error = sysctl(mib, 4, &nfds, &len, NULL, 0);
57 return (nfds);
/freebsd-11.0-release/lib/libc/sys/
H A Dpoll.c44 poll(struct pollfd pfd[], nfds_t nfds, int timeout) argument
48 __libc_interposing[INTERPOS_poll])(pfd, nfds, timeout));
H A Dppoll.c44 ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *__restrict argument
49 const sigset_t *)) __libc_interposing[INTERPOS_ppoll])(pfd, nfds,
/freebsd-11.0-release/lib/libnv/
H A Dmsgio.h44 int fd_send(int sock, const int *fds, size_t nfds);
45 int fd_recv(int sock, int *fds, size_t nfds);
H A Dmsgio.c240 fd_package_send(int sock, const int *fds, size_t nfds) argument
251 PJDLOG_ASSERT(nfds > 0);
264 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int));
271 for (i = 0, cmsg = CMSG_FIRSTHDR(&msg); i < nfds && cmsg != NULL;
289 fd_package_recv(int sock, int *fds, size_t nfds) argument
299 PJDLOG_ASSERT(nfds > 0);
314 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int));
324 for (i = 0, cmsg = CMSG_FIRSTHDR(&msg); i < nfds && cmsg != NULL;
331 if (cmsg != NULL || i < nfds) {
357 fd_recv(int sock, int *fds, size_t nfds) argument
389 fd_send(int sock, const int *fds, size_t nfds) argument
[all...]
/freebsd-11.0-release/contrib/apr/network_io/unix/
H A Dsocket_util.c24 apr_int32_t nfds; local
36 rv = apr_poll(&pfds[0], 1, &nfds, 0);
50 else if (nfds == 1 && (pfds[0].rtnevents & APR_POLLIN) == APR_POLLIN) {
/freebsd-11.0-release/contrib/ntp/sntp/libevent/
H A Dpoll.c62 int nfds; /* Highest number used */ member in struct:pollop
115 for (i = 0; i < pop->nfds; ++i) {
127 int res, i, j, nfds; local
134 nfds = pop->nfds;
154 sizeof(struct pollfd)*nfds);
171 res = poll(event_set, nfds, msec);
186 if (res == 0 || nfds == 0)
189 i = evutil_weakrand_range_(&base->weakrand_seed, nfds);
190 for (j = 0; j < nfds;
[all...]
H A Dselect.c142 int res=0, i, j, nfds; local
168 nfds = sop->event_fds+1;
172 res = select(nfds, sop->event_readset_out,
191 i = evutil_weakrand_range_(&base->weakrand_seed, nfds);
192 for (j = 0; j < nfds; ++j) {
193 if (++i >= nfds)
/freebsd-11.0-release/sys/contrib/libnv/
H A Dnvlist_impl.h44 const unsigned char *ptr, size_t nfds, bool *isbep, size_t *leftp);
H A Dnvpair_impl.h97 const unsigned char *ptr, size_t *leftp, size_t nfds, nvlist_t **child);
99 const unsigned char *ptr, size_t *leftp, const int *fds, size_t nfds);
109 const unsigned char *ptr, size_t *leftp, const int *fds, size_t nfds);
H A Dnvlist.c1067 nvlist_unpack_header(nvlist_t *nvl, const unsigned char *ptr, size_t nfds, argument
1085 * nvlh_descriptors might be smaller than nfds in embedded nvlists.
1087 if (nvlhdr.nvlh_descriptors > nfds)
1108 nvlist_xunpack(const void *buf, size_t size, const int *fds, size_t nfds, argument
1127 ptr = nvlist_unpack_header(nvl, ptr, nfds, &isbe, &left);
1153 ptr = nvpair_unpack_nvlist(isbe, nvp, ptr, &left, nfds,
1162 fds, nfds);
1166 &left, fds, nfds);
1186 ptr = nvlist_unpack_header(nvl, ptr, nfds,
1213 ptr = nvlist_unpack_header(tmpnvl, ptr, nfds,
1246 size_t datasize, nfds; local
1292 size_t nfds, size, i; local
[all...]
/freebsd-11.0-release/tests/sys/kqueue/
H A Dvnode.c97 int nfds; local
108 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
109 if (nfds < 1)
125 int nfds; local
136 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
137 if (nfds < 1)
171 int nfds; local
196 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
197 if (nfds < 1)
214 int nfds; local
[all...]
H A Dmain.c41 int nfds; local
47 nfds = kevent(kqfd, NULL, 0, &kev, 1, &timeo);
48 if (nfds != 0) {
51 errx(1, "%d event(s) pending, but none expected:", nfds);
59 int nfds; local
65 nfds = kevent(kqfd, NULL, 0, kev, 1, NULL);
66 if (nfds < 1)
76 int nfds; local
83 nfds = kevent(kqfd, NULL, 0, kev, 1, &timeout);
84 if (nfds <
[all...]
/freebsd-11.0-release/contrib/pf/libevent/
H A Dpoll.c61 int nfds; /* Size of event_* */ member in struct:pollop
141 for (i = 0; i < pop->nfds; ++i) {
153 int res, i, sec, nfds; local
158 nfds = pop->nfds;
159 res = poll(pop->event_set, nfds, sec);
177 for (i = 0; i < nfds; i++) {
227 if (pop->nfds + 1 >= pop->event_count) {
293 i = pop->nfds++;
355 --pop->nfds;
[all...]
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c43 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
51 for (i = 0; i < nfds; i++) {
70 for (i = 0; i < nfds; i++) {
95 for (i = 0; i < nfds; i++) {
/freebsd-11.0-release/lib/libc/gen/
H A Dftw.c34 int nfds)
41 /* XXX - nfds is currently unused */
42 if (nfds < 1) {
33 ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int nfds) argument
H A Dnftw.c34 struct FTW *), int nfds, int ftwflags)
42 /* XXX - nfds is currently unused */
43 if (nfds < 1) {
33 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int nfds, int ftwflags) argument
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Host/posix/
H A DMainLoopPosix.cpp138 int nfds = 0; local
147 nfds = std::max(nfds, fd.first+1);
156 if (pselect(nfds, &read_fd_set, nullptr, nullptr, nullptr, &sigmask) == -1 && errno != EINTR)
/freebsd-11.0-release/sys/boot/powerpc/kboot/
H A Dhost_syscall.h45 int host_select(int nfds, long *readfds, long *writefds, long *exceptfds,
/freebsd-11.0-release/usr.sbin/ppp/
H A Dmain.c543 int i, nfds, nothing_done; local
564 nfds = 0;
570 descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds);
573 descriptor_UpdateSet(&server.desc, rfds, NULL, NULL, &nfds);
591 i = select(nfds, rfds, wfds, efds, NULL);
598 for (i = 0; i <= nfds; i++) {
603 if (select(nfds, rfds, wfds, efds, &t) != -1) {
612 if (select(nfds, rfds, wfds, efds, &t) != -1) {
621 if (select(nfds, rfds, wfds, efds, &t) != -1) {
638 for (i = 0; i <= nfds;
[all...]
/freebsd-11.0-release/sys/compat/svr4/
H A Dsvr4_filio.c69 if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE)
73 pa.nfds = uap->nfds;
76 siz = uap->nfds * sizeof(struct pollfd);
86 for (idx = 0; idx < uap->nfds; idx++) {
/freebsd-11.0-release/usr.bin/rsh/
H A Drsh.c245 int nfds, srval; local
260 nfds = rem + 1;
261 if (select(nfds, 0, &rembits, 0, 0) < 0) {
293 nfds = MAX(rfd2+1, rem+1);
297 srval = select(nfds, &ready, 0, 0, &tvtimeout);
299 srval = select(nfds, &ready, 0, 0, 0);
/freebsd-11.0-release/sbin/nos-tun/
H A Dnos-tun.c261 int nfds; /* Return from select() */ local
355 nfds = select(lastfd+1,&rfds,NULL,NULL,NULL);
356 if(nfds < 0) {
361 if(nfds == 0) { /* Impossible ? */
/freebsd-11.0-release/lib/libusb/
H A Dlibusb10_io.c104 nfds_t nfds; local
111 nfds = 0;
114 nfds++;
116 fds = alloca(sizeof(*fds) * nfds);
120 ppdev = alloca(sizeof(*ppdev) * nfds);
140 err = poll(fds, nfds, timeout);
149 for (i = 0; i != (int)nfds; i++) {
158 for (i = 0; i != (int)nfds; i++) {
/freebsd-11.0-release/lib/libcasper/libcasper/
H A Dservice.c401 int maxfd, nfds; local
422 nfds = select(maxfd + 1, &fds, NULL, NULL, NULL);
423 if (nfds < 0) {
427 } else if (nfds == 0) {

Completed in 429 milliseconds

123