Home
last modified time | relevance | path

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

/external/dbus/dbus/
Ddbus-sysdeps-unix.c3137 int maxfds; in _read_subprocess_line_argv() local
3161 maxfds = sysconf (_SC_OPEN_MAX); in _read_subprocess_line_argv()
3165 if (maxfds < 0) in _read_subprocess_line_argv()
3166 maxfds = 1024; in _read_subprocess_line_argv()
3168 for (i = 3; i < maxfds; i++) in _read_subprocess_line_argv()
/external/mdnsresponder/mDNSShared/
Duds_daemon.c4053 struct rlimit maxfds, newfds; in udsserver_init() local
4057 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
4058 …if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init()
4060 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
4061 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init()
4062 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init()
4063 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init()
4066 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
4067 debugf("maxfds.rlim_max %d", (long)maxfds.rlim_max); in udsserver_init()
4068 debugf("maxfds.rlim_cur %d", (long)maxfds.rlim_cur); in udsserver_init()