Lines Matching refs:oldf
438 struct files_struct *oldf, *newf; in copy_files() local
445 oldf = current->files; in copy_files()
446 if (!oldf) in copy_files()
450 atomic_inc(&oldf->count); in copy_files()
477 size = oldf->max_fdset; in copy_files()
486 read_lock(&oldf->file_lock); in copy_files()
488 open_files = count_open_files(oldf, size); in copy_files()
497 read_unlock(&oldf->file_lock); in copy_files()
505 read_lock(&oldf->file_lock); in copy_files()
508 old_fds = oldf->fd; 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()
529 read_unlock(&oldf->file_lock); in copy_files()