Lines Matching refs:fds
187 struct dfs_file **fds = NULL; in fd_slot_expand() local
211 fds = (struct dfs_file **)rt_realloc(fdt->fds, nr * sizeof(struct dfs_file *)); in fd_slot_expand()
212 if (!fds) in fd_slot_expand()
220 fds[index] = NULL; in fd_slot_expand()
224 fdt->fds = fds; in fd_slot_expand()
246 if (fdt->fds[idx] == RT_NULL) in fd_slot_alloc()
294 fdt->fds[idx] = fd; in fd_alloc()
353 d = fdt->fds[fd]; in fdt_fd_get()
398 fd_slot = fdt->fds[fd]; in fdt_fd_release()
404 fdt->fds[fd] = NULL; in fdt_fd_release()
463 if (!fdt->fds[oldfd]) in sys_dup()
471 fdt->fds[newfd] = fdt->fds[oldfd]; in sys_dup()
473 fdt->fds[newfd]->ref_count++; in sys_dup()
523 fd = fdt->fds[index]; in fd_is_open()
573 if (!fdt->fds[oldfd]) in sys_dup2()
589 if (fdt->fds[newfd] == fdt->fds[oldfd]) in sys_dup2()
596 if (fdt->fds[newfd]) in sys_dup2()
598 ret = dfs_file_close(fdt->fds[newfd]); in sys_dup2()
606 fdt->fds[newfd] = fdt->fds[oldfd]; in sys_dup2()
608 fdt->fds[newfd]->ref_count++; in sys_dup2()
628 if(fdt->fds[index] == file) in fd_get_fd_index_form_fdt()
687 if (fdt->fds[fd]) in fd_associate()
693 fdt->fds[fd] = file; in fd_associate()
945 struct dfs_file *fd = fd_table->fds[index]; in list_fd()
999 struct dfs_file *fd = fd_table->fds[index]; in lsofp()