Home
last modified time | relevance | path

Searched refs:namelist (Results 1 – 25 of 32) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/dirent/
Dscandir.c35 struct dirent **namelist; in scandir_0100() local
36 int n = scandir(name, &namelist, NULL, alphasort); in scandir_0100()
43 free(namelist[n]); in scandir_0100()
45 free(namelist); in scandir_0100()
55 struct dirent **namelist; in scandir_0200() local
56 int n = scandir(name, &namelist, NULL, versionsort); in scandir_0200()
63 free(namelist[n]); in scandir_0200()
65 free(namelist); in scandir_0200()
75 struct dirent **namelist; in scandir_0300() local
76 int n = scandir(name, &namelist, filter, versionsort); in scandir_0300()
[all …]
Dalphasort.c26 struct dirent **namelist; in alphasort_0100() local
27 int total = scandir("/", &namelist, 0, alphasort); in alphasort_0100()
38 struct dirent **namelist; in alphasort_0200() local
39 int total = scandir(NULL, &namelist, 0, alphasort); in alphasort_0200()
/third_party/python/Lib/test/
Dtest_zipfile64.py101 self.assertEqual(len(zipf.namelist()), numfiles)
104 self.assertEqual(len(zipf2.namelist()), numfiles)
115 self.assertEqual(len(zipf.namelist()), numfiles)
118 self.assertEqual(len(zipf.namelist()), numfiles)
122 self.assertEqual(len(zipf.namelist()), numfiles)
125 self.assertEqual(len(zipf.namelist()), numfiles)
129 self.assertEqual(len(zipf.namelist()), numfiles)
133 self.assertEqual(len(zipf.namelist()), numfiles2)
136 self.assertEqual(len(zipf2.namelist()), numfiles2)
Dtest_zipapp.py54 self.assertIn('foo/', z.namelist())
55 self.assertIn('bar/', z.namelist())
71 self.assertIn('__main__.py', z.namelist())
72 self.assertIn('test.py', z.namelist())
73 self.assertNotIn('test.pyc', z.namelist())
91 self.assertEqual(len(z.namelist()), 2)
92 self.assertIn('__main__.py', z.namelist())
93 self.assertIn('test.py', z.namelist())
145 self.assertIn('__main__.py', z.namelist())
163 self.assertEqual(1, z.namelist().count('__main__.py'))
[all …]
Dtest_zipfile.py98 names = zipfp.namelist()
437 self.assertEqual(zipfp.namelist(), ['file1'])
441 self.assertEqual(zipfp.namelist(), ['file1', 'file2'])
478 self.assertEqual(zipfp.namelist(), ["absolute"])
487 self.assertEqual(zipfp.namelist(), [TESTFN, "strfile"])
503 self.assertEqual(zipfp.namelist(), [TESTFN])
509 self.assertEqual(zipfp.namelist(), [TESTFN])
523 self.assertEqual(zipfp.namelist(), [TESTFN])
537 self.assertEqual(zipfp.namelist(), [TESTFN])
544 self.assertEqual(zipfp.namelist(), [TESTFN, 'strfile'])
[all …]
/third_party/libwebsockets/lib/misc/
Ddir.c118 struct dirent **namelist; in lws_dir() local
127 n = scandir((char *)dirpath, &namelist, filter, alphasort); in lws_dir()
135 unsigned int type = namelist[i]->d_type; in lws_dir()
137 if (strchr(namelist[i]->d_name, '~')) in lws_dir()
139 lde.name = namelist[i]->d_name; in lws_dir()
147 lws_dir_via_stat(combo, l, namelist[i]->d_name, &lde); in lws_dir()
169 lws_dir_via_stat(combo, l, namelist[i]->d_name, &lde); in lws_dir()
174 free(namelist[i++]); in lws_dir()
179 free(namelist[i]); in lws_dir()
183 free(namelist); in lws_dir()
/third_party/libevdev/libevdev/
Dlibevdev-uinput.c220 struct dirent **namelist; in fetch_device_node() local
223 ndev = scandir(path, &namelist, is_event_device, alphasort); in fetch_device_node()
230 if (!devnode && asprintf(&devnode, "/dev/input/%s", namelist[i]->d_name) == -1) in fetch_device_node()
232 free(namelist[i]); in fetch_device_node()
235 free(namelist); in fetch_device_node()
248 struct dirent **namelist; in fetch_syspath_and_devnode() local
262 ndev = scandir(SYS_INPUT_DIR, &namelist, is_input_device, alphasort); in fetch_syspath_and_devnode()
272 namelist[i]->d_name); in fetch_syspath_and_devnode()
305 namelist[i]->d_name); in fetch_syspath_and_devnode()
318 free(namelist[i]); in fetch_syspath_and_devnode()
[all …]
/third_party/f2fs-tools/fsck/
Dsload.c192 struct dirent **namelist = NULL; in build_directory() local
195 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory()
205 dentries[i].name = (unsigned char *)strdup(namelist[i]->d_name); in build_directory()
213 dir_path, namelist[i]->d_name); in build_directory()
216 full_path, namelist[i]->d_name); in build_directory()
218 free(namelist[i]); in build_directory()
225 free(namelist); in build_directory()
/third_party/selinux/libselinux/src/
Dbooleans.c43 struct dirent **namelist; in security_get_boolean_names() local
56 *len = scandir(path, &namelist, &filename_select, alphasort); in security_get_boolean_names()
69 n[i] = strdup(namelist[i]->d_name); in security_get_boolean_names()
79 free(namelist[i]); in security_get_boolean_names()
81 free(namelist); in security_get_boolean_names()
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/
Dlookup_dep.py272 namelist = z.namelist()
276 f.write('\n'.join(namelist))
278 return namelist
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dzdump.c248 static int getall(struct listentry ** namelist);
358 listentry * namelist = NULL; in main() local
498 count = getall(&namelist); in main()
509 fakeargv[i + argc] = namelist->name; in main()
510 namelist = namelist->next; in main()
674 struct listentry * entry = namelist; in main()
1029 static int getall(struct listentry ** namelist) { in getall() argument
1036 *namelist = dummyentry.next; in getall()
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/
Dzdump.c248 static int getall(struct listentry ** namelist);
358 listentry * namelist = NULL; in main() local
498 count = getall(&namelist); in main()
509 fakeargv[i + argc] = namelist->name; in main()
510 namelist = namelist->next; in main()
674 struct listentry * entry = namelist; in main()
1029 static int getall(struct listentry ** namelist) { in getall() argument
1036 *namelist = dummyentry.next; in getall()
/third_party/icu/icu4c/source/tools/tzcode/
Dzdump.c248 static int getall(struct listentry ** namelist);
358 listentry * namelist = NULL; in main() local
498 count = getall(&namelist); in main()
509 fakeargv[i + argc] = namelist->name; in main()
510 namelist = namelist->next; in main()
674 struct listentry * entry = namelist; in main()
1029 static int getall(struct listentry ** namelist) { in getall() argument
1036 *namelist = dummyentry.next; in getall()
/third_party/boost/tools/build/src/engine/
Dfileunix.cpp115 STRUCT_DIRENT ** namelist; in file_collect_dir_content_() local
132 if ( -1 == ( n = scandir( dirstr, &namelist, NULL, alphasort ) ) ) in file_collect_dir_content_()
139 dirent = namelist[ n ]; in file_collect_dir_content_()
159 free( namelist ); in file_collect_dir_content_()
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DICUJDKCompare.java132 String namelist = null; in setup() local
149 namelist = args[++i]; in setup()
163 File f = new File(namelist.substring(1)); in setup()
191 if (namelist != null) { in setup()
193 if (namelist.charAt(0) == '@') { // a file in setup()
197 File f = new File(namelist.substring(1)); in setup()
221 names = namelist.split("\\s*;\\s*"); in setup()
/third_party/libwebsockets/win32port/dirent/
Ddirent-win32.h308 static int scandir (const char *dirname, struct dirent ***namelist,
884 struct dirent ***namelist, in scandir() argument
1011 if (namelist) { in scandir()
1012 *namelist = files; in scandir()
/third_party/libuv/src/unix/
Dos390-syscalls.h61 int scandir(const char* maindir, struct dirent*** namelist,
Dos390-syscalls.c34 int scandir(const char* maindir, struct dirent*** namelist, in scandir() argument
79 *namelist = nl; in scandir()
/third_party/python/PCbuild/
Dget_external.py30 return externals_dir / zf.namelist()[0].split('/')[0]
/third_party/python/Lib/distutils/tests/
Dtest_bdist_dumb.py83 contents = fp.namelist()
Dtest_sdist.py127 content = zip_file.namelist()
227 content = zip_file.namelist()
Dtest_archive_util.py250 self.assertEqual(sorted(zf.namelist()), self._zip_created_files)
276 self.assertEqual(sorted(zf.namelist()), self._zip_created_files)
/third_party/libinput/src/
Dquirks.c988 struct dirent **namelist; in parse_files() local
992 ndev = scandir(data_path, &namelist, is_data_file, versionsort); in parse_files()
1007 namelist[idx]->d_name); in parse_files()
1014 free(namelist[i]); in parse_files()
1015 free(namelist); in parse_files()
/third_party/libinput/tools/
Dlibinput-record.c1953 struct dirent **namelist; in select_device() local
1960 ndev = scandir("/dev/input", &namelist, is_event_node, versionsort); in select_device()
1973 namelist[i]->d_name); in select_device()
1992 free(namelist[i]); in select_device()
1993 free(namelist); in select_device()
2019 struct dirent **namelist; in all_devices() local
2024 ndev = scandir("/dev/input", &namelist, is_event_node, versionsort); in all_devices()
2034 namelist[i]->d_name); in all_devices()
/third_party/python/Lib/
Dzipfile.py1395 def namelist(self): member in ZipFile
1626 members = self.namelist()
2172 def namelist(self): member in CompleteDirs
2173 names = super(CompleteDirs, self).namelist()
2177 return set(self.namelist())
2215 def namelist(self): member in FastLookup
2218 self.__names = super(FastLookup, self).namelist()
2376 subs = map(self._next, self.root.namelist())

12