/external/ltp/testcases/kernel/syscalls/dup/ |
D | dup03.c | 163 long maxfds; in setup() local 165 maxfds = sysconf(_SC_OPEN_MAX); in setup() 170 if (maxfds < 1) in setup() 171 tst_brkm((maxfds == -1 ? TBROK | TERRNO : TBROK), NULL, in setup() 174 fd = malloc(maxfds * sizeof(int)); in setup() 186 for (nfds = 1; nfds <= maxfds; nfds++) in setup() 198 if (nfds > maxfds) in setup() 201 "tried %ld", maxfds); in setup()
|
/external/openssh/ |
D | ssh-agent.c | 990 after_poll(struct pollfd *pfd, size_t npfd, u_int maxfds) in after_poll() argument 1015 if (npfd > maxfds) { in after_poll() 1017 "skipping accept", activefds, maxfds); in after_poll() 1045 prepare_poll(struct pollfd **pfdp, size_t *npfdp, int *timeoutp, u_int maxfds) in prepare_poll() argument 1075 if (npfd > maxfds) { in prepare_poll() 1077 "skipping arming listener", npfd, maxfds); in prepare_poll() 1196 u_int maxfds; in main() local 1314 maxfds = rlim.rlim_cur - SSH_AGENT_MIN_FDS; in main() 1435 prepare_poll(&pfd, &npfd, &timeout, maxfds); in main() 1446 after_poll(pfd, npfd, maxfds); in main()
|
/external/ltp/testcases/kernel/syscalls/epoll2/examples/ |
D | epoll-test.c | 88 static int maxfds, numfds = 0; variable 498 maxfds = maxsfd; in eph_init() 499 chash_size = maxfds; in eph_init() 500 for (i = 0; i < maxfds; i++) in eph_init() 524 nfds = epoll_wait(kdpfd, events, maxfds, timeout); in eph_scheduler()
|
/external/curl/lib/ |
D | select.h | 93 int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
|
D | select.c | 460 int tpf_select_libcurl(int maxfds, fd_set *reads, fd_set *writes, in tpf_select_libcurl() argument 465 rc = tpf_select_bsd(maxfds, reads, writes, excepts, tv); in tpf_select_libcurl()
|
/external/python/cpython3/Lib/ |
D | socket.py | 562 def recv_fds(sock, bufsize, maxfds, flags=0): argument 572 _socket.CMSG_LEN(maxfds * fds.itemsize))
|
/external/mdnsresponder/mDNSShared/ |
D | uds_daemon.c | 4055 struct rlimit maxfds, newfds; in udsserver_init() local 4059 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 4060 …if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init() 4062 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 4063 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init() 4064 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init() 4065 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init() 4068 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 4069 debugf("maxfds.rlim_max %d", (long)maxfds.rlim_max); in udsserver_init() 4070 debugf("maxfds.rlim_cur %d", (long)maxfds.rlim_cur); in udsserver_init()
|
/external/elfutils/debuginfod/ |
D | debuginfod.cxx | 1279 void limit(long maxfds, long maxmbs, bool metrics_p = true) in limit() argument 1281 if (verbose > 3 && (this->max_fds != maxfds || this->max_mbs != maxmbs)) in limit() 1282 obatched(clog) << "fdcache limited to maxfds=" << maxfds << " maxmbs=" << maxmbs << endl; in limit() 1285 this->max_fds = maxfds; in limit()
|
/external/python/cpython3/Doc/library/ |
D | socket.rst | 1452 following function will receive up to *maxfds* file descriptors, 1459 def recv_fds(sock, msglen, maxfds): 1461 msg, ancdata, flags, addr = sock.recvmsg(msglen, socket.CMSG_LEN(maxfds * fds.itemsize)) 1646 .. method:: socket.recv_fds(sock, bufsize, maxfds[, flags]) 1648 Receive up to *maxfds* file descriptors. Return ``(msg, list(fds), flags, addr)``. Consult
|