/kernel/liteos_a/testsuites/unittest/process/fs/smoke/ |
D | It_process_fs_015.cpp | 36 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()
|
D | It_process_fs_013.cpp | 36 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()
|
D | It_process_fs_012.cpp | 47 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()
|
D | It_process_fs_014.cpp | 36 DIR *dirp = nullptr; in ItProcessFs014() local 37 dirp = opendir(path.c_str()); in ItProcessFs014() 38 ASSERT_EQ(dirp, nullptr); in ItProcessFs014()
|
D | It_process_fs_001.cpp | 40 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/ |
D | It_process_plimits_002.cpp | 39 DIR *dirp = opendir("/proc/plimits/"); in ItProcessPlimits002() local 40 ASSERT_NE(dirp, nullptr); in ItProcessPlimits002() 41 (void)closedir(dirp); in ItProcessPlimits002()
|
D | It_process_plimits_001.cpp | 43 DIR *dirp = opendir("/proc/plimits"); in ItProcessPlimits001() local 44 ASSERT_NE(dirp, nullptr); in ItProcessPlimits001() 45 (void)closedir(dirp); in ItProcessPlimits001()
|
D | It_process_plimits_pid_004.cpp | 44 DIR *dirp = opendir("/proc/plimits"); in ItProcessPlimitsPid004() local 45 ASSERT_NE(dirp, nullptr); in ItProcessPlimitsPid004() 46 closedir(dirp); in ItProcessPlimitsPid004()
|
D | It_process_plimits_pid_006.cpp | 44 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/ |
D | osTest.cpp | 437 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/ |
D | vfs_force_umount.c | 372 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/ |
D | vfs.c | 1232 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/ |
D | posix_fs_func_test.c | 1218 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/ |
D | nolibc.h | 1541 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/ |
D | fatfs.c | 1574 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/ |
D | turbostat.c | 5341 int dir_filter(const struct dirent *dirp) in dir_filter() argument 5343 if (isdigit(dirp->d_name[0])) in dir_filter()
|