Home
last modified time | relevance | path

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

/kernel/liteos_a/testsuites/unittest/process/fs/smoke/
DIt_process_fs_015.cpp36 DIR *dirp = nullptr; in ItProcessFs015() local
37 dirp = opendir(path.c_str()); in ItProcessFs015()
38 ASSERT_NE(dirp, nullptr); in ItProcessFs015()
40 (void)closedir(dirp); in ItProcessFs015()
DIt_process_fs_013.cpp36 DIR *dirp = nullptr; in ItProcessFs013() local
39 dirp = opendir(path.data()); in ItProcessFs013()
40 ASSERT_NE(dirp, nullptr); in ItProcessFs013()
41 (void)closedir(dirp); in ItProcessFs013()
DIt_process_fs_012.cpp47 DIR *dirp = opendir(buf.str().data()); in child_process() local
48 if (dirp == nullptr) { in child_process()
52 (void)closedir(dirp); in child_process()
77 DIR *dirp = opendir(buf.str().data()); in ItProcessFs012() local
78 ASSERT_EQ(dirp, nullptr); in ItProcessFs012()
DIt_process_fs_014.cpp36 DIR *dirp = nullptr; in ItProcessFs014() local
37 dirp = opendir(path.c_str()); in ItProcessFs014()
38 ASSERT_EQ(dirp, nullptr); in ItProcessFs014()
DIt_process_fs_001.cpp40 DIR *dirp = opendir(path.data()); in ItProcessFs001() local
41 ASSERT_NE(dirp, nullptr); in ItProcessFs001()
43 (void)closedir(dirp); in ItProcessFs001()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
DIt_process_plimits_002.cpp39 DIR *dirp = opendir("/proc/plimits/"); in ItProcessPlimits002() local
40 ASSERT_NE(dirp, nullptr); in ItProcessPlimits002()
41 (void)closedir(dirp); in ItProcessPlimits002()
DIt_process_plimits_001.cpp43 DIR *dirp = opendir("/proc/plimits"); in ItProcessPlimits001() local
44 ASSERT_NE(dirp, nullptr); in ItProcessPlimits001()
45 (void)closedir(dirp); in ItProcessPlimits001()
DIt_process_plimits_pid_004.cpp44 DIR *dirp = opendir("/proc/plimits"); in ItProcessPlimitsPid004() local
45 ASSERT_NE(dirp, nullptr); in ItProcessPlimitsPid004()
46 closedir(dirp); in ItProcessPlimitsPid004()
DIt_process_plimits_pid_006.cpp44 DIR *dirp = opendir("/proc/plimits"); in ItProcessPlimitsPid006() local
45 ASSERT_NE(dirp, nullptr); in ItProcessPlimitsPid006()
46 closedir(dirp); in ItProcessPlimitsPid006()
/kernel/liteos_a/testsuites/unittest/common/
DosTest.cpp437 DIR *dirp = NULL; in RemoveDir() local
454 dirp = opendir(dir); in RemoveDir()
455 while ((dp = readdir(dirp)) != NULL) { in RemoveDir()
463 closedir(dirp); in RemoveDir()
468 closedir(dirp); in RemoveDir()
/kernel/liteos_a/fs/vfs/operation/
Dvfs_force_umount.c372 static void DirPreClose(struct fs_dirent_s *dirp) in DirPreClose() argument
375 if (dirp == NULL || dirp->fd_root == NULL) { in DirPreClose()
379 node = dirp->fd_root; in DirPreClose()
381 node->vop->Closedir(node, dirp); in DirPreClose()
/kernel/linux/linux-5.10/fs/nfsd/
Dvfs.c1232 struct inode *dirp; in nfsd_create_locked() local
1238 dirp = d_inode(dentry); in nfsd_create_locked()
1256 if (!IS_POSIXACL(dirp)) in nfsd_create_locked()
1263 host_err = vfs_create(dirp, dchild, iap->ia_mode, true); in nfsd_create_locked()
1268 host_err = vfs_mkdir(dirp, dchild, iap->ia_mode); in nfsd_create_locked()
1296 host_err = vfs_mknod(dirp, dchild, iap->ia_mode, rdev); in nfsd_create_locked()
1388 struct inode *dirp; in do_nfsd_create() local
1406 dirp = d_inode(dentry); in do_nfsd_create()
1491 if (!IS_POSIXACL(dirp)) in do_nfsd_create()
1494 host_err = vfs_create(dirp, dchild, iap->ia_mode, true); in do_nfsd_create()
[all …]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/
Dposix_fs_func_test.c1218 DIR *dirp; variable
1225 dirp = opendir(DIRA);
1226 ICUNIT_ASSERT_NOT_EQUAL(dirp, NULL, 0);
1228 dResult = readdir(dirp);
1231 ret = closedir(dirp);
1246 DIR *dirp; variable
1255 dirp = opendir(DIRA);
1256 ICUNIT_ASSERT_NOT_EQUAL(dirp, NULL, 0);
1258 dResult = readdir(dirp);
1262 dResult = readdir(dirp);
[all …]
/kernel/linux/linux-5.10/tools/include/nolibc/
Dnolibc.h1541 int sys_getdents64(int fd, struct linux_dirent64 *dirp, int count) in sys_getdents64() argument
1543 return my_syscall3(__NR_getdents64, fd, dirp, count); in sys_getdents64()
1915 int getdents64(int fd, struct linux_dirent64 *dirp, int count) in getdents64() argument
1917 int ret = sys_getdents64(fd, dirp, count); in getdents64()
/kernel/liteos_a/fs/fat/os_adapt/
Dfatfs.c1574 struct dirent *dirp = NULL; in fatfs_readdir() local
1598 dirp = &(idir->fd_dir[i]); in fatfs_readdir()
1600 dirp->d_type = DT_DIR; in fatfs_readdir()
1602 dirp->d_type = DT_REG; in fatfs_readdir()
1604 if (strncpy_s(dirp->d_name, sizeof(dirp->d_name), fno.fname, strlen(fno.fname)) != EOK) { in fatfs_readdir()
/kernel/linux/linux-5.10/tools/power/x86/turbostat/
Dturbostat.c5341 int dir_filter(const struct dirent *dirp) in dir_filter() argument
5343 if (isdigit(dirp->d_name[0])) in dir_filter()