Home
last modified time | relevance | path

Searched refs:maxfds (Results 1 – 5 of 5) sorted by relevance

/external/ltp/testcases/kernel/syscalls/dup/
Ddup03.c164 long maxfds; in setup() local
166 maxfds = sysconf(_SC_OPEN_MAX); in setup()
171 if (maxfds < 1) in setup()
172 tst_brkm((maxfds == -1 ? TBROK | TERRNO : TBROK), NULL, in setup()
175 fd = malloc(maxfds * sizeof(int)); in setup()
187 for (nfds = 1; nfds <= maxfds; nfds++) in setup()
199 if (nfds > maxfds) in setup()
202 "tried %ld", maxfds); in setup()
/external/ltp/testcases/kernel/syscalls/epoll2/examples/
Depoll-test.c88 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/
Dselect.h93 int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
Dselect.c569 int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes, in tpf_select_libcurl() argument
574 rc = tpf_select_bsd(maxfds, reads, writes, excepts, tv); in tpf_select_libcurl()
/external/mdnsresponder/mDNSShared/
Duds_daemon.c4055 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()