Home
last modified time | relevance | path

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

/third_party/NuttX/fs/vfs/
Dfs_dupfd.c81 struct file *filep2 = NULL; in file_dup() local
93 filep2 = files_allocate(filep->f_vnode, filep->f_oflags, filep->f_pos, filep->f_priv, minfd); in file_dup()
94 if (filep2 == NULL) in file_dup()
99 filep2->f_refcount = filep->f_refcount; in file_dup()
101 return filep2->fd; in file_dup()
Dfs_dupfd2.c89 struct file *filep2; in fs_dupfd2() local
97 ret = fs_getfilep(fd2, &filep2); in fs_dupfd2()
124 if (!file_dup2(filep1, filep2)) in fs_dupfd2()
/third_party/NuttX/fs/inode/
Dfs_files.c317 int file_dup2(struct file *filep1, struct file *filep2) in file_dup2() argument
324 if (!filep1 || !filep1->f_vnode || !filep2) in file_dup2()
348 ret = _files_close(filep2); in file_dup2()
362 filep2->f_oflags = filep1->f_oflags; in file_dup2()
363 filep2->f_pos = filep1->f_pos; in file_dup2()
364 filep2->f_vnode = filep1->f_vnode; in file_dup2()
365 filep2->f_priv = filep1->f_priv; in file_dup2()
366 filep2->f_path = filep1->f_path; in file_dup2()
367 filep2->ops = filep1->ops; in file_dup2()
368 filep2->f_refcount = filep1->f_refcount; in file_dup2()
[all …]
/third_party/NuttX/fs/vfs/include/
Dfile.h196 int file_dup2(struct file *filep1, struct file *filep2);