Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/readv/
Dreadv02.c30 static int fd_dir, fd_file; variable
66 {&fd_dir, valid_iovec, 1, EISDIR},
87 fd_dir = SAFE_OPEN(TEST_DIR, O_RDONLY); in setup()
95 if (fd_dir > 0) in cleanup()
96 SAFE_CLOSE(fd_dir); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/finit_module/
Dfinit_module02.c27 static int fd, fd_zero, fd_invalid = -1, fd_dir; variable
77 {"directory", &fd_dir, "", O_RDONLY | O_CLOEXEC, 0, 0, 0, 0, dir_setup},
90 fd_dir = SAFE_OPEN(TEST_DIR, O_DIRECTORY); in setup()
100 SAFE_CLOSE(fd_dir); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range02.c43 static int fd_dir; variable
70 {&fd_dir, 0, EISDIR, CONTSIZE, "directory", 0},
158 if (fd_dir > 0) in cleanup()
159 SAFE_CLOSE(fd_dir); in cleanup()
208 fd_dir = SAFE_OPEN(FILE_DIR_PATH, O_DIRECTORY); in setup()
/third_party/NuttX/fs/romfs/
Dfs_romfs.c552 ret = romfs_parsefilename(rm, (uint32_t)romfsdir->fr_curroffset, dir->fd_dir[i].d_name); in romfs_readdir()
563 if (!strcmp(dir->fd_dir[i].d_name, ".") || !strcmp(dir->fd_dir[i].d_name, "..")) in romfs_readdir()
572 dir->fd_dir[i].d_type = DT_DIR; in romfs_readdir()
576 dir->fd_dir[i].d_type = DT_REG; in romfs_readdir()
580 dir->fd_dir[i].d_off = dir->fd_position; in romfs_readdir()
581 dir->fd_dir[i].d_reclen = (uint16_t)sizeof(struct dirent); in romfs_readdir()
/third_party/NuttX/fs/dirent/
Dfs_readdir.c101 return &(idir->fd_dir[0]); in __readdir()
151 de = &(idir->fd_dir[idir->cur_pos]); in readdir()
/third_party/NuttX/include/nuttx/fs/
Ddirent_fs.h320 struct dirent fd_dir[MAX_DIRENT_NUM]; /* Populated when readdir is called */ member
322 struct dirent fd_dir[1]; /* Populated when readdir is called */ member
/third_party/NuttX/fs/nfs/
Dnfs_adapter.c1229 d_name_size = sizeof(dir->fd_dir[i].d_name); in vfs_nfs_readdir()
1230 …error = memcpy_s(dir->fd_dir[i].d_name, d_name_size, (const char *)entry_pos->contents, (size_t)en… in vfs_nfs_readdir()
1238 dir->fd_dir[i].d_name[d_name_size - 1] = '\0'; in vfs_nfs_readdir()
1242 dir->fd_dir[i].d_name[entry_pos->name_len] = '\0'; in vfs_nfs_readdir()
1251 error = nfs_lookup(nmp, dir->fd_dir[i].d_name, &fhandle, &obj_attributes, NULL); in vfs_nfs_readdir()
1270 dir->fd_dir[i].d_type = DT_REG; in vfs_nfs_readdir()
1274 dir->fd_dir[i].d_type = DT_DIR; in vfs_nfs_readdir()
1278 dir->fd_dir[i].d_type = DT_BLK; in vfs_nfs_readdir()
1283 dir->fd_dir[i].d_type = DT_CHR; in vfs_nfs_readdir()
1287 dir->fd_dir[i].d_off = dir->fd_position; in vfs_nfs_readdir()
[all …]
/third_party/NuttX/fs/tmpfs/
Dfs_tmpfs.c1596 dir->fd_dir[0].d_type = DT_DIR; in tmpfs_readdir()
1602 dir->fd_dir[0].d_type = DT_REG; in tmpfs_readdir()
1607 (void)strncpy_s(dir->fd_dir[0].d_name, NAME_MAX + 1, tde->tde_name, NAME_MAX); in tmpfs_readdir()
1610 dir->fd_dir[0].d_off = dir->fd_position; in tmpfs_readdir()
1611 dir->fd_dir[0].d_reclen = (uint16_t)sizeof(struct dirent); in tmpfs_readdir()