Lines Matching refs:open_files
440 int open_files, nfds, size, i, error = 0; in copy_files() local
488 open_files = count_open_files(oldf, size); in copy_files()
496 if (open_files > nfds) { in copy_files()
500 error = expand_fd_array(newf, open_files-1); in copy_files()
511 memcpy(newf->open_fds->fds_bits, oldf->open_fds->fds_bits, open_files/8); in copy_files()
512 memcpy(newf->close_on_exec->fds_bits, oldf->close_on_exec->fds_bits, open_files/8); in copy_files()
514 for (i = open_files; i != 0; i--) { in copy_files()
525 FD_CLR(open_files - i, newf->open_fds); in copy_files()
532 size = (newf->max_fds - open_files) * sizeof(struct file *); in copy_files()
537 if (newf->max_fdset > open_files) { in copy_files()
538 int left = (newf->max_fdset-open_files)/8; in copy_files()
539 int start = open_files / (8 * sizeof(unsigned long)); in copy_files()