Searched refs:maxfds (Results 1 – 6 of 6) sorted by relevance
/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/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 | 95 int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
|
D | select.c | 576 int tpf_select_libcurl(int maxfds, fd_set *reads, fd_set *writes, in tpf_select_libcurl() argument 581 rc = tpf_select_bsd(maxfds, reads, writes, excepts, tv); in tpf_select_libcurl()
|
/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/python/cpython3/Doc/library/ |
D | socket.rst | 1290 following function will receive up to *maxfds* file descriptors, 1297 def recv_fds(sock, msglen, maxfds): 1299 msg, ancdata, flags, addr = sock.recvmsg(msglen, socket.CMSG_LEN(maxfds * fds.itemsize))
|