• Home
  • Raw
  • Download

Lines Matching refs:new_fdt

675 static void copy_fds(const struct fd_table_s *new_fdt, const struct fd_table_s *old_fdt)  in copy_fds()  argument
679 sz = new_fdt->max_fds * sizeof(struct file_table_s); in copy_fds()
682 (void)memcpy_s(new_fdt->ft_fds, sz, old_fdt->ft_fds, sz); in copy_fds()
684 (void)memcpy_s(new_fdt->proc_fds, sizeof(fd_set), old_fdt->proc_fds, sizeof(fd_set)); in copy_fds()
685 (void)memcpy_s(new_fdt->cloexec_fds, sizeof(fd_set), old_fdt->cloexec_fds, sizeof(fd_set)); in copy_fds()
688 static void copy_fd_table(struct fd_table_s *new_fdt, struct fd_table_s *old_fdt) in copy_fd_table() argument
690 copy_fds((const struct fd_table_s *)new_fdt, (const struct fd_table_s *)old_fdt); in copy_fd_table()
691 for (int i = 0; i < new_fdt->max_fds; i++) in copy_fd_table()
693 if (FD_ISSET(i, new_fdt->proc_fds)) in copy_fd_table()
712 FD_CLR(i, new_fdt->proc_fds); in copy_fd_table()
713 new_fdt->ft_fds[i].sysFd = -1; in copy_fd_table()
815 struct fd_table_s *new_fdt = NULL; in dup_fd() local
836 new_fdt = alloc_fd_table(old_fdt->max_fds); in dup_fd()
837 if(new_fdt == NULL) in dup_fd()
843 copy_fd_table(new_fdt, old_fdt); in dup_fd()
844 files->fdt = new_fdt; in dup_fd()
905 struct fd_table_s *new_fdt = NULL; in create_files_snapshot() local
926 new_fdt = alloc_fd_table(old_fdt->max_fds); in create_files_snapshot()
927 if (new_fdt == NULL) in create_files_snapshot()
933 copy_fds((const struct fd_table_s *)new_fdt, (const struct fd_table_s *)old_fdt); in create_files_snapshot()
934 files->fdt = new_fdt; in create_files_snapshot()