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

123

/freebsd-11-stable/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-stable/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-stable/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);
313 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int));
323 for (i = 0, cmsg = CMSG_FIRSTHDR(&msg); i < nfds && cmsg != NULL;
330 if (cmsg != NULL || i < nfds) {
356 fd_recv(int sock, int *fds, size_t nfds) argument
388 fd_send(int sock, const int *fds, size_t nfds) argument
[all...]
/freebsd-11-stable/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-stable/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-stable/sys/contrib/libnv/
H A Dnvlist_impl.h45 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);
/freebsd-11-stable/tests/sys/kqueue/libkqueue/
H A Dmain.c41 int nfds; local
48 nfds = kevent(kqfd, NULL, 0, &kev, 1, &timeo);
49 if (nfds != 0) {
54 errx(1, "%d event(s) pending, but none expected:", nfds);
64 int nfds; local
70 nfds = kevent(kqfd, NULL, 0, &kev, 1, &timeo);
71 if (nfds != 0) {
76 errx(1, "%d event(s) pending, but none expected:", nfds);
84 int nfds; local
90 nfds
101 int nfds; local
[all...]
H A Dvnode.c96 int nfds; local
107 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
108 if (nfds < 1)
124 int nfds; local
135 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
136 if (nfds < 1)
170 int nfds; local
195 nfds = kevent(kqfd, NULL, 0, &kev, 1, NULL);
196 if (nfds < 1)
213 int nfds; local
[all...]
/freebsd-11-stable/sys/compat/cloudabi/
H A Dcloudabi_sock.c117 size_t nfds; local
119 nfds = (chdr->cmsg_len - CMSG_LEN(0)) /
121 if (nfds > fdslen) {
129 nfds * sizeof(int));
132 fds += nfds;
133 fdslen -= nfds;
134 *rfdslen += nfds;
/freebsd-11-stable/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-stable/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c41 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
49 for (i = 0; i < nfds; i++) {
68 for (i = 0; i < nfds; i++) {
93 for (i = 0; i < nfds; i++) {
/freebsd-11-stable/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-stable/usr.sbin/ppp/
H A Dmain.c545 int i, nfds, nothing_done; local
566 nfds = 0;
572 descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds);
575 descriptor_UpdateSet(&server.desc, rfds, NULL, NULL, &nfds);
593 i = select(nfds, rfds, wfds, efds, NULL);
600 for (i = 0; i <= nfds; i++) {
605 if (select(nfds, rfds, wfds, efds, &t) != -1) {
614 if (select(nfds, rfds, wfds, efds, &t) != -1) {
623 if (select(nfds, rfds, wfds, efds, &t) != -1) {
640 for (i = 0; i <= nfds;
[all...]
/freebsd-11-stable/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-stable/usr.bin/rsh/
H A Drsh.c250 int nfds, srval; local
265 nfds = rem + 1;
266 if (select(nfds, 0, &rembits, 0, 0) < 0) {
298 nfds = MAX(rfd2+1, rem+1);
302 srval = select(nfds, &ready, 0, 0, &tvtimeout);
304 srval = select(nfds, &ready, 0, 0, 0);
/freebsd-11-stable/tests/sys/kern/
H A Dunix_passfd_test.c122 putfds(char *buf, int fd, int nfds) argument
128 cm->cmsg_len = CMSG_LEN(nfds * sizeof(int));
131 for (fdp = (int *)CMSG_DATA(cm), i = 0; i < nfds; i++)
501 int fd[2], nfds, putfd, rc; local
505 nfds = getnfds();
515 ATF_REQUIRE(getnfds() == nfds);
531 ATF_REQUIRE(getnfds() == nfds);
544 ATF_REQUIRE(getnfds() == nfds);
561 ATF_REQUIRE(getnfds() == nfds);
573 ATF_REQUIRE(getnfds() == nfds);
592 int fd[2], error, nfds, putfd; local
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Utility/
H A DSelectHelper.cpp131 const unsigned nfds = static_cast<unsigned>(*max_fd) + 1; local
142 read_fdset.resize((nfds / FD_SETSIZE) + 1);
146 write_fdset.resize((nfds / FD_SETSIZE) + 1);
150 error_fdset.resize((nfds / FD_SETSIZE) + 1);
214 const int num_set_fds = ::select(nfds, read_fdset_ptr, write_fdset_ptr,
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DMainLoop.cpp49 int ppoll(struct pollfd *fds, size_t nfds, const struct timespec *timeout_ts, argument
55 return POLL(fds, nfds, timeout);
174 int nfds = 0;
177 nfds = std::max(nfds, fd.first + 1);
191 if (syscall(__NR_pselect6, nfds, &read_fd_set, nullptr, nullptr, nullptr,
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Drsocket.h69 int rpoll(struct pollfd *fds, nfds_t nfds, int timeout);
70 int rselect(int nfds, fd_set *readfds, fd_set *writefds,
H A Dpreload.c78 int (*poll)(struct pollfd *fds, nfds_t nfds, int timeout);
865 static struct pollfd *fds_alloc(nfds_t nfds) argument
870 if (nfds > rnfds) {
874 rfds = malloc(sizeof(*rfds) * nfds);
875 rnfds = rfds ? nfds : 0;
881 int poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
887 for (i = 0; i < nfds; i++) {
892 return real.poll(fds, nfds, timeout);
895 rfds = fds_alloc(nfds);
899 for (i = 0; i < nfds;
913 select_to_rpoll(struct pollfd *fds, int *nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) argument
932 rpoll_to_select(struct pollfd *fds, int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) argument
967 select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) argument
[all...]

Completed in 169 milliseconds

123