Home
last modified time | relevance | path

Searched refs:new_fdt (Results 1 – 1 of 1) sorted by relevance

/third_party/NuttX/fs/inode/
Dfs_files.c675 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()
[all …]