Searched refs:maxfds (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dmain.c1181 int maxfds; local
1203 maxfds = 0;
1285 fds[maxfds++] = fd;
1371 fds[maxfds] = -1;
1386 for (; maxfds > 0; maxfds--) {
1387 (void) close(fds[maxfds-1]);
1404 int maxfds; local
1426 maxfds = 0;
1514 fds[maxfds
[all...]
/illumos-gate/usr/src/cmd/rm/
H A Drm.c83 static int maxfds = MAXINT; variable
245 if (nfds >= maxfds)
250 if (nfds < maxfds)
251 maxfds = nfds;
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dmain.c1474 int maxfds; local
1498 maxfds = 0;
1612 fds[maxfds++] = fd;
1685 fds[maxfds++] = fd;
1713 fds[maxfds] = -1;
1728 for (; maxfds > 0; maxfds--) {
1729 (void) close(fds[maxfds-1]);
1783 int maxfds; local
1806 maxfds
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c5205 struct rlimit maxfds, newfds; local
5209 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
5210 if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor limit");
5212 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
5213 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES;
5214 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES;
5215 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds
[all...]

Completed in 67 milliseconds