Home
last modified time | relevance | path

Searched refs:scandir (Results 1 - 25 of 54) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/dirent/
H A Dscandir.c37 int n = scandir(name, &namelist, NULL, alphasort); in scandir_0100()
39 t_error("%s failed: scandir. n = %d\n", __func__, n); in scandir_0100()
60 int n = scandir(name, &namelist, NULL, versionsort); in scandir_0200()
62 t_error("%s failed: scandir. n = %d\n", __func__, n); in scandir_0200()
82 int n = scandir(name, &namelist, filter, versionsort); in scandir_0300()
84 t_error("%s failed: scandir. n = %d\n", __func__, n); in scandir_0300()
102 int n = scandir(NULL, &namelist, NULL, alphasort); in scandir_0400()
104 t_error("%s failed: scandir. n = %d\n", __func__, n); in scandir_0400()
H A Dalphasort.c27 int total = scandir("/", &namelist, 0, alphasort); in alphasort_0100()
39 int total = scandir(NULL, &namelist, 0, alphasort); in alphasort_0200()
/third_party/python/Lib/
H A Dpathlib.py319 scandir = path_cls._scandir
322 return self._select_from(parent_path, is_dir, exists, scandir)
327 def _select_from(self, parent_path, is_dir, exists, scandir):
337 def _select_from(self, parent_path, is_dir, exists, scandir):
341 for p in self.successor._select_from(path, is_dir, exists, scandir):
353 def _select_from(self, parent_path, is_dir, exists, scandir):
355 with scandir(parent_path) as scandir_it:
372 for p in self.successor._select_from(path, is_dir, exists, scandir):
383 def _iterate_directories(self, parent_path, is_dir, scandir):
386 with scandir(parent_pat
[all...]
H A Dshutil.py559 with os.scandir(src) as itr:
600 with os.scandir(path) as scandir_it:
603 onerror(os.scandir, path, sys.exc_info())
612 # os.scandir or entry.is_dir above.
631 with os.scandir(topfd) as scandir_it:
635 onerror(os.scandir, path, sys.exc_info())
671 # os.scandir or stat.S_ISDIR above.
687 os.scandir in os.supports_fd and
H A Dos.py136 _add("HAVE_FDOPENDIR", "scandir")
314 By default errors from the os.scandir() call are ignored. If
356 # Note that scandir is global in this module due
358 scandir_it = scandir(top)
415 # entry.is_symlink() result during the loop on os.scandir() because
429 if {open, stat} <= supports_dir_fd and {scandir, stat} <= supports_fd:
484 scandir_it = scandir(topfd)
/third_party/musl/porting/liteos_a/kernel/include/
H A Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
63 #define scandir64 scandir
/third_party/musl/src/dirent/
H A Dscandir.c8 int scandir(const char *path, struct dirent ***res, in scandir() function
47 weak_alias(scandir, scandir64);
/third_party/musl/porting/liteos_m/kernel/include/
H A Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
63 #define scandir64 scandir
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
63 #define scandir64 scandir
/third_party/musl/porting/uniproton/kernel/include/
H A Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
63 #define scandir64 scandir
/third_party/musl/include/
H A Ddirent.h33 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
63 #define scandir64 scandir
/third_party/musl/libc-test/src/functionalext/supplement/dirent/dirent_gtest/
H A Ddirent_alphasort64_test.cpp13 * @tc.desc: Test alphasort is passed as a callback function parameter to scandir to test the effect of alphasort
19 int n = scandir(".", &nameList, nullptr, alphasort64); in HWTEST_F()
23 perror("scandir"); in HWTEST_F()
H A Ddirent_scandir_test.cpp15 * @tc.desc: Verify whether the scandir function can return the expected error code when scanning a non-existent
23 EXPECT_TRUE(scandir("/fake-dir", &result, nullptr, nullptr) == -1); in HWTEST_F()
/third_party/protobuf/php/tests/
H A Dautoload.php7 $files = scandir($dir);
/third_party/musl/libc-test/src/api/
H A Ddirent.c27 {int(*p)(const char*,struct dirent***,int(*)(const struct dirent*),int(*)(const struct dirent**,const struct dirent**)) = scandir;} in f()
/third_party/libuv/src/unix/
H A Dos390-syscalls.h61 int scandir(const char* maindir, struct dirent*** namelist,
/third_party/node/deps/uv/src/unix/
H A Dos390-syscalls.h61 int scandir(const char* maindir, struct dirent*** namelist,
/third_party/node/test/parallel/
H A Dtest-fs-readdir-types.js62 message: `ENOTDIR: not a directory, scandir '${__filename}'`
H A Dtest-repl-underscore.js180 /^Uncaught Error: ENOENT: no such file or directory, scandir '.*nonexistent\?'/,
183 " syscall: 'scandir',",
188 "'scandir'",
/third_party/musl/Benchmark/musl/
H A Dlibc_dirent.cpp44 int n = scandir(dir, &entry, nullptr, alphasort); in Bm_function_ScanDir()
/third_party/python/PC/layout/support/
H A Dfilesets.py81 condition, (type(root)(f2) for f2 in os.scandir(d) if f2.is_dir())
/third_party/libwebsockets/win32port/dirent/
H A Ddirent-win32.h308 static int scandir (const char *dirname, struct dirent ***namelist,
882 scandir( in scandir() function
/third_party/libevdev/libevdev/
H A Dlibevdev-uinput.c206 ndev = scandir(path, &namelist, is_event_device, alphasort); in fetch_device_node()
245 ndev = scandir(SYS_INPUT_DIR, &namelist, is_input_device, alphasort); in fetch_syspath_and_devnode()
/third_party/python/Lib/test/
H A Dtest_os.py4140 entry = [entry for entry in os.scandir(self.path)].pop()
4164 for entry in os.scandir(self.path))
4182 scandir_iter = os.scandir(self.path)
4188 scandir_iter = os.scandir(self.path)
4264 entries = list(os.scandir(path))
4281 # call scandir() without parameter: it must list the content
4283 entries = dict((entry.name, entry) for entry in os.scandir())
4312 # On POSIX, is_dir() result depends if scandir() filled d_type or not
4332 # On POSIX, is_dir() result depends if scandir() filled d_type or not
4371 entries = list(os.scandir(path_byte
[all...]
/third_party/icu/icu4c/source/tools/tzcode/
H A Dtz2icu.cpp606 void scandir(string dirname, string prefix="") { in scandir() function
621 scandir(path, prefix + name + "/"); in scandir()
645 void scandir(string dir, string prefix="") { in scandir() function
670 // scandir(path, prefix + name + "/"); in scandir()
698 scandir(subdirs[i], subdirs[i+1]); in scandir()
1485 scandir(rootpath); in main()

Completed in 22 milliseconds

123