Searched refs:newfds (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c359 struct pollfd *newfds; local
376 newfds = realloc(pollfds, new_num * sizeof (struct pollfd));
377 if (newfds == NULL) {
382 newfds[pollfd_num].fd = fd;
383 newfds[pollfd_num++].events = POLLIN;
386 newfds[i].fd = -1;
387 newfds[i].events = POLLIN;
390 pollfds = newfds;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c129 struct pollfd *newfds; local
146 newfds = realloc(pollfds, new_num * sizeof (struct pollfd));
147 if (newfds == NULL) {
152 newfds[i].fd = -1;
153 newfds[i].events = POLLIN;
156 pollfds = newfds;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c5205 struct rlimit maxfds, newfds; local
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.rlim_cur)
5216 if (setrlimit(RLIMIT_NOFILE, &newfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor limit");

Completed in 4563 milliseconds