Home
last modified time | relevance | path

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.c360 struct pollfd *newfds; in poll_add() local
377 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add()
378 if (newfds == NULL) { in poll_add()
383 newfds[pollfd_num].fd = fd; in poll_add()
384 newfds[pollfd_num++].events = POLLIN; in poll_add()
387 newfds[i].fd = -1; in poll_add()
388 newfds[i].events = POLLIN; in poll_add()
391 pollfds = newfds; in poll_add()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c131 struct pollfd *newfds; in poll_add() local
148 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add()
149 if (newfds == NULL) { in poll_add()
154 newfds[i].fd = -1; in poll_add()
155 newfds[i].events = POLLIN; in poll_add()
158 pollfds = newfds; in poll_add()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Duds_daemon.c5205 struct rlimit maxfds, newfds; in udsserver_init() local
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()
5216 …if (setrlimit(RLIMIT_NOFILE, &newfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init()