Searched refs:newfds (Results 1 – 3 of 3) sorted by relevance
359 struct pollfd *newfds; in poll_add() local376 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()
129 struct pollfd *newfds; in poll_add() local146 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()
5158 struct rlimit maxfds, newfds; in udsserver_init() local5166 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()