Lines Matching refs:old_files
812 struct files_struct *dup_fd(struct files_struct *old_files) in dup_fd() argument
817 if((old_files == NULL) || (old_files->fdt == NULL) || (old_files->fdt->max_fds == 0)) in dup_fd()
829 files->next_fd = old_files->next_fd; in dup_fd()
833 strncpy_s(files->workdir, PATH_MAX - 1, old_files->workdir, PATH_MAX - 1); in dup_fd()
835 old_fdt = old_files->fdt; in dup_fd()
846 if (old_files->rootVnode != NULL) in dup_fd()
848 old_files->rootVnode->useCount++; in dup_fd()
850 files->rootVnode = old_files->rootVnode; in dup_fd()
902 struct files_struct *create_files_snapshot(const struct files_struct *old_files) in create_files_snapshot() argument
907 if ((old_files == NULL) || (old_files->fdt == NULL) || (old_files->fdt->max_fds == 0)) in create_files_snapshot()
919 files->next_fd = old_files->next_fd; in create_files_snapshot()
923 strncpy_s(files->workdir, PATH_MAX - 1, old_files->workdir, PATH_MAX - 1); in create_files_snapshot()
925 old_fdt = old_files->fdt; in create_files_snapshot()
936 if (old_files->rootVnode != NULL) in create_files_snapshot()
938 old_files->rootVnode->useCount++; in create_files_snapshot()
940 files->rootVnode = old_files->rootVnode; in create_files_snapshot()