Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dmain.c1184 int maxfds; in pkgZoneCheckRemove() local
1206 maxfds = 0; in pkgZoneCheckRemove()
1288 fds[maxfds++] = fd; in pkgZoneCheckRemove()
1374 fds[maxfds] = -1; in pkgZoneCheckRemove()
1389 for (; maxfds > 0; maxfds--) { in pkgZoneCheckRemove()
1390 (void) close(fds[maxfds-1]); in pkgZoneCheckRemove()
1407 int maxfds; in pkgZoneRemove() local
1429 maxfds = 0; in pkgZoneRemove()
1517 fds[maxfds++] = fd; in pkgZoneRemove()
1600 fds[maxfds] = -1; in pkgZoneRemove()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dmain.c1239 int maxfds; in pkgZoneCheckInstall() local
1263 maxfds = 0; in pkgZoneCheckInstall()
1377 fds[maxfds++] = fd; in pkgZoneCheckInstall()
1450 fds[maxfds++] = fd; in pkgZoneCheckInstall()
1478 fds[maxfds] = -1; in pkgZoneCheckInstall()
1493 for (; maxfds > 0; maxfds--) { in pkgZoneCheckInstall()
1548 int maxfds; in pkgZoneInstall() local
1571 maxfds = 0; in pkgZoneInstall()
1690 fds[maxfds++] = fd; in pkgZoneInstall()
1816 fds[maxfds] = -1; in pkgZoneInstall()
[all …]
/illumos-gate/usr/src/cmd/rm/
H A Drm.c83 static int maxfds = MAXINT; variable
245 if (nfds >= maxfds) in opendirat()
250 if (nfds < maxfds) in opendirat()
251 maxfds = nfds; in opendirat()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Duds_daemon.c5205 struct rlimit maxfds, newfds; in udsserver_init() local
5209 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
5210 …if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init()
5212 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
5213 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init()
5214 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init()
5215 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init()
5218 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
5219 debugf("maxfds.rlim_max %d", (long)maxfds.rlim_max); in udsserver_init()
5220 debugf("maxfds.rlim_cur %d", (long)maxfds.rlim_cur); in udsserver_init()