/freebsd-10.0-release/lib/libkse/thread/ |
H A D | thr_poll.c | 47 int __poll(struct pollfd *fds, unsigned int nfds, int timeout); 52 __poll(struct pollfd *fds, unsigned int nfds, int timeout) argument 58 ret = __sys_poll(fds, nfds, timeout);
|
/freebsd-10.0-release/contrib/apr/network_io/unix/ |
H A D | socket_util.c | 24 apr_int32_t nfds; local 36 rv = apr_poll(&pfds[0], 1, &nfds, 0); 49 else if (nfds == 1 && pfds[0].rtnevents == APR_POLLIN) {
|
/freebsd-10.0-release/tools/regression/kqueue/ |
H A D | vnode.c | 97 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 D | main.c | 41 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)
|
/freebsd-10.0-release/contrib/pf/libevent/ |
H A D | poll.c | 61 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-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 40 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument 48 for (i = 0; i < nfds; i++) { 67 for (i = 0; i < nfds; i++) { 92 for (i = 0; i < nfds; i++) {
|
/freebsd-10.0-release/lib/libc/gen/ |
H A D | ftw.c | 34 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 D | nftw.c | 34 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-10.0-release/usr.sbin/ppp/ |
H A D | main.c | 543 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-10.0-release/sys/compat/svr4/ |
H A D | svr4_filio.c | 68 if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE) 72 pa.nfds = uap->nfds; 75 siz = uap->nfds * sizeof(struct pollfd); 85 for (idx = 0; idx < uap->nfds; idx++) {
|
/freebsd-10.0-release/usr.bin/rsh/ |
H A D | rsh.c | 245 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-10.0-release/contrib/atf/atf-run/ |
H A D | io.cpp | 244 safe_poll(struct pollfd fds[], nfds_t nfds, int timeout) argument 246 int ret = ::poll(fds, nfds, timeout); 277 impl::muxer::muxer(const int* fds, const size_t nfds, const size_t bufsize) : argument 279 m_nfds(nfds), 281 m_buffers(new std::string[nfds])
|
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Core/ |
H A D | ConnectionFileDescriptor.cpp | 675 const int nfds = std::max<int>(data_fd, pipe_fd) + 1; local 677 read_fds.resize((nfds/FD_SETSIZE) + 1); 692 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i, %i}, NULL, NULL, timeout=%p)...", 693 this, nfds, data_fd, pipe_fd, tv_ptr); 695 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i}, NULL, NULL, timeout=%p)...", 696 this, nfds, data_fd, tv_ptr); 699 const int num_set_fds = ::select (nfds, read_fds.data(), NULL, NULL, tv_ptr); 708 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i, %i}, NULL, NULL, timeout=%p) => %d, error = %s", 709 this, nfds, data_fd, pipe_fd, tv_ptr, num_set_fds, error.AsCString()); 711 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds [all...] |
/freebsd-10.0-release/sbin/nos-tun/ |
H A D | nos-tun.c | 261 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-10.0-release/lib/libusb/ |
H A D | libusb10_io.c | 104 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-10.0-release/lib/libtacplus/ |
H A D | taclib.c | 259 int nfds; local 269 nfds = select(h->fd + 1, NULL, &wfds, NULL, &tv); 270 if (nfds == -1) { 276 if (nfds == 0) { 501 int nfds; local 517 nfds = 519 if (nfds == -1) { 525 nfds = 0; 526 if (nfds == 0) { 653 int nfds; local [all...] |
/freebsd-10.0-release/usr.sbin/IPXrouted/ |
H A D | main.c | 105 int nfds; local 236 nfds = 1 + max(sapsock, ripsock); 251 if(select(nfds, &fdvar, (fd_set *)NULL, (fd_set *)NULL,
|
/freebsd-10.0-release/sbin/dhclient/ |
H A D | dispatch.c | 147 int count, live_interfaces, i, to_msec, nfds = 0; local 153 nfds++; 155 fds = malloc(nfds * sizeof(struct pollfd)); 208 count = poll(fds, nfds, to_msec);
|
/freebsd-10.0-release/libexec/rbootd/ |
H A D | rbootd.c | 89 int i, nfds = getdtablesize(); local 91 for (i = 0; i < nfds; i++)
|
/freebsd-10.0-release/usr.sbin/ctld/ |
H A D | ctld.c | 1486 fd_add(int fd, fd_set *fdset, int nfds) argument 1493 return (nfds); 1496 if (fd > nfds) 1497 nfds = fd; 1498 return (nfds); 1511 int error, nfds, client_fd; local 1534 nfds = 0; 1537 nfds = fd_add(portal->p_socket, &fdset, nfds); 1539 error = select(nfds [all...] |
/freebsd-10.0-release/contrib/bmake/ |
H A D | job.c | 348 static int nfds = 0; variable 2087 nready = poll(fds + 1 - wantToken, nfds - 1 + wantToken, POLL_MSEC); 2117 for (i = 2; i < nfds; i++) { 2796 fds[nfds].fd = job->inPipe; 2797 fds[nfds].events = POLLIN; 2798 jobfds[nfds] = job; 2799 job->inPollfd = &fds[nfds]; 2800 nfds++; 2810 nfds--; 2814 if (nfds ! [all...] |
/freebsd-10.0-release/lib/libc/net/ |
H A D | rcmd.c | 222 int nfds; local 235 nfds = max(s, s2)+1; 236 if(nfds > FD_SETSIZE) { 246 if (_select(nfds, &reads, 0, 0, 0) < 1 || !FD_ISSET(s2, &reads)){
|
/freebsd-10.0-release/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 362 int domain, nfds, s; local 366 nfds = select(20, &readfds, 0, 0, 0); 367 if (nfds <= 0) { 368 if (nfds < 0 && errno != EINTR)
|
/freebsd-10.0-release/usr.sbin/powerd/ |
H A D | powerd.c | 447 int nfds; local 636 nfds = devd_pipe + 1; 638 nfds = 0; 648 select(nfds, &fdset, NULL, &fdset, &timeout);
|
/freebsd-10.0-release/contrib/ofed/libsdp/src/ |
H A D | port.c | 155 unsigned long int nfds, int timeout); 2181 int poll(struct pollfd *ufds, nfds_t nfds, int timeout) argument 2198 __sdp_log(2, "POLL: <%s:%d>\n", program_invocation_short_name, nfds); 2202 ret = _socket_funcs.poll(ufds, nfds, timeout); 2207 for (current = 0; current < nfds; current++) { 2217 (struct pollfd *) malloc((nfds + extra) * sizeof(struct pollfd)); 2226 for (current = 0; current < nfds; current++) { 2240 __sdp_log(1, "POLL: invoking poll nfds=<%d>\n", nfds + extra); 2241 ret = _socket_funcs.poll(poll_fds, nfds [all...] |