Home
last modified time | relevance | path

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

12

/third_party/musl/libc-test/src/functionalext/supplement/dirent/
Dscandir.c33 struct dirent **namelist; in scandir_0100() local
37 int n = scandir(name, &namelist, NULL, alphasort); in scandir_0100()
44 free(namelist[n]); in scandir_0100()
46 free(namelist); in scandir_0100()
56 struct dirent **namelist; in scandir_0200() local
60 int n = scandir(name, &namelist, NULL, versionsort); in scandir_0200()
67 free(namelist[n]); in scandir_0200()
69 free(namelist); in scandir_0200()
79 struct dirent **namelist; in scandir_0300() local
82 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.c203 struct dirent **namelist; in fetch_device_node() local
206 ndev = scandir(path, &namelist, is_event_device, alphasort); in fetch_device_node()
213 if (!devnode && asprintf(&devnode, "/dev/input/%s", namelist[i]->d_name) == -1) in fetch_device_node()
215 free(namelist[i]); in fetch_device_node()
218 free(namelist); in fetch_device_node()
231 struct dirent **namelist; in fetch_syspath_and_devnode() local
245 ndev = scandir(SYS_INPUT_DIR, &namelist, is_input_device, alphasort); in fetch_syspath_and_devnode()
255 namelist[i]->d_name); in fetch_syspath_and_devnode()
288 namelist[i]->d_name); in fetch_syspath_and_devnode()
301 free(namelist[i]); in fetch_syspath_and_devnode()
[all …]
/third_party/f2fs-tools/fsck/
Dsload.c209 struct dirent **namelist = NULL; in build_directory() local
212 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory()
222 dentries[i].name = (unsigned char *)strdup(namelist[i]->d_name); in build_directory()
230 dir_path, namelist[i]->d_name); in build_directory()
233 full_path, namelist[i]->d_name); in build_directory()
235 free(namelist[i]); in build_directory()
242 free(namelist); in build_directory()
/third_party/selinux/libselinux/src/
Dbooleans.c42 struct dirent **namelist; in security_get_boolean_names() local
55 *len = scandir(path, &namelist, &filename_select, alphasort); in security_get_boolean_names()
68 n[i] = strdup(namelist[i]->d_name); in security_get_boolean_names()
78 free(namelist[i]); in security_get_boolean_names()
80 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/icu/icu4c/source/tools/tzcode/
Dzdump.c242 static int getall(struct listentry ** namelist);
352 listentry * namelist = NULL; in main() local
492 count = getall(&namelist); in main()
503 fakeargv[i + argc] = namelist->name; in main()
504 namelist = namelist->next; in main()
668 struct listentry * entry = namelist; in main()
1023 static int getall(struct listentry ** namelist) { in getall() argument
1030 *namelist = dummyentry.next; in getall()
/third_party/openssl/test/
Dendecode_test.c478 char **namelist = arg; in collect_name() local
483 if (*namelist != NULL) in collect_name()
484 space += strlen(*namelist) + 2 /* for comma and space */; in collect_name()
487 new_namelist = OPENSSL_realloc(*namelist, space); in collect_name()
490 if (*namelist != NULL) { in collect_name()
496 *namelist = new_namelist; in collect_name()
520 char *namelist = NULL; in check_unprotected_PKCS8_DER() local
524 EVP_PKEY_type_names_do_all(pkey, collect_name, &namelist); in check_unprotected_PKCS8_DER()
525 if (namelist != NULL) in check_unprotected_PKCS8_DER()
526 TEST_note("%s isn't any of %s", type, namelist); in check_unprotected_PKCS8_DER()
[all …]
/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/node/deps/uv/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/libinput/tools/
Dlibinput-record.c1867 struct dirent **namelist; in select_device() local
1878 ndev = scandir("/dev/input", &namelist, is_event_node, versionsort); in select_device()
1891 namelist[i]->d_name); in select_device()
1910 free(namelist[i]); in select_device()
1911 free(namelist); in select_device()
1936 struct dirent **namelist; in all_devices() local
1940 ndev = scandir("/dev/input", &namelist, is_event_node, versionsort); in all_devices()
1950 namelist[i]->d_name); in all_devices()
1961 free(namelist[i]); in all_devices()
1962 free(namelist); in all_devices()
/third_party/python/Lib/distutils/tests/
Dtest_bdist_dumb.py83 contents = fp.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.c1092 struct dirent **namelist; in parse_files() local
1096 ndev = scandir(data_path, &namelist, is_data_file, versionsort); in parse_files()
1111 namelist[idx]->d_name); in parse_files()
1118 free(namelist[i]); in parse_files()
1119 free(namelist); in parse_files()
/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