Searched refs:newfds (Results 1 – 3 of 3) sorted by relevance
360 struct pollfd *newfds; in poll_add() local377 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()
131 struct pollfd *newfds; in poll_add() local148 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()
5205 struct rlimit maxfds, newfds; in udsserver_init() local5213 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()