Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c359 struct pollfd *newfds; in poll_add() local
376 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add()
377 if (newfds == NULL) { in poll_add()
382 newfds[pollfd_num].fd = fd; in poll_add()
383 newfds[pollfd_num++].events = POLLIN; in poll_add()
386 newfds[i].fd = -1; in poll_add()
387 newfds[i].events = POLLIN; in poll_add()
390 pollfds = newfds; in poll_add()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c129 struct pollfd *newfds; in poll_add() local
146 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add()
147 if (newfds == NULL) { in poll_add()
152 newfds[i].fd = -1; in poll_add()
153 newfds[i].events = POLLIN; in poll_add()
156 pollfds = newfds; in poll_add()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c5158 struct rlimit maxfds, newfds; in udsserver_init() local
5166 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init()
5167 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init()
5168 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init()
5169 …if (setrlimit(RLIMIT_NOFILE, &newfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init()