Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/svr4pkg/pkgrm/
H A Dmain.c1181 int maxfds; in pkgZoneCheckRemove() local
1203 maxfds = 0; in pkgZoneCheckRemove()
1285 fds[maxfds++] = fd; in pkgZoneCheckRemove()
1371 fds[maxfds] = -1; in pkgZoneCheckRemove()
1386 for (; maxfds > 0; maxfds--) { in pkgZoneCheckRemove()
1387 (void) close(fds[maxfds-1]); in pkgZoneCheckRemove()
1404 int maxfds; in pkgZoneRemove() local
1426 maxfds = 0; in pkgZoneRemove()
1514 fds[maxfds++] = fd; in pkgZoneRemove()
1597 fds[maxfds] = -1; in pkgZoneRemove()
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/svr4pkg/pkgadd/
H A Dmain.c1474 int maxfds; in pkgZoneCheckInstall() local
1498 maxfds = 0; in pkgZoneCheckInstall()
1612 fds[maxfds++] = fd; in pkgZoneCheckInstall()
1685 fds[maxfds++] = fd; in pkgZoneCheckInstall()
1713 fds[maxfds] = -1; in pkgZoneCheckInstall()
1728 for (; maxfds > 0; maxfds--) { in pkgZoneCheckInstall()
1729 (void) close(fds[maxfds-1]); in pkgZoneCheckInstall()
1783 int maxfds; in pkgZoneInstall() local
1806 maxfds = 0; in pkgZoneInstall()
1925 fds[maxfds++] = fd; in pkgZoneInstall()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c1061 struct rlimit maxfds, newfds; in udsserver_init() local
1065 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
1066 …if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init()
1068 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
1069 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init()
1070 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init()
1071 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init()
1074 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init()
1075 debugf("maxfds.rlim_max %d", (long)maxfds.rlim_max); in udsserver_init()
1076 debugf("maxfds.rlim_cur %d", (long)maxfds.rlim_cur); in udsserver_init()