/external/compiler-rt/test/msan/Linux/ |
D | glob_altdirfunc.cc | 57 glob_t globbuf; in main() local 58 globbuf.gl_closedir = my_gl_closedir; in main() 59 globbuf.gl_readdir = my_gl_readdir; in main() 60 globbuf.gl_opendir = my_gl_opendir; in main() 61 globbuf.gl_lstat = my_gl_lstat; in main() 62 globbuf.gl_stat = my_gl_stat; in main() 64 int res = glob(buf, GLOB_ALTDIRFUNC | GLOB_MARK, 0, &globbuf); in main() 67 assert(globbuf.gl_pathc == 2); in main() 68 printf("%zu\n", strlen(globbuf.gl_pathv[0])); in main() 69 printf("%zu\n", strlen(globbuf.gl_pathv[1])); in main() [all …]
|
D | glob.cc | 16 glob_t globbuf; in main() local 17 int res = glob(buf, 0, 0, &globbuf); in main() 21 assert(globbuf.gl_pathc == 2); in main() 22 printf("%zu\n", strlen(globbuf.gl_pathv[0])); in main() 23 printf("%zu\n", strlen(globbuf.gl_pathv[1])); in main()
|
D | glob_nomatch.cc | 14 glob_t globbuf; in main() local 15 int res = glob(buf, 0, 0, &globbuf); in main() 17 assert(globbuf.gl_pathc == 0); in main() 18 if (globbuf.gl_pathv == 0) in main()
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | glob.cc | 21 glob_t globbuf; in main() local 22 int res = glob(pattern.c_str(), 0, 0, &globbuf); in main() 26 assert(globbuf.gl_pathc == 2); in main() 27 printf("%zu\n", strlen(globbuf.gl_pathv[0])); in main() 28 printf("%zu\n", strlen(globbuf.gl_pathv[1])); in main() 29 globfree(&globbuf); in main()
|
/external/selinux/policycoreutils/restorecond/ |
D | watch.c | 46 glob_t globbuf; in watch_list_add() local 55 globbuf.gl_offs = 1; in watch_list_add() 59 &globbuf) >= 0) { in watch_list_add() 60 for (i=0; i < globbuf.gl_pathc; i++) { in watch_list_add() 61 int len = strlen(globbuf.gl_pathv[i]) -2; in watch_list_add() 62 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) continue; in watch_list_add() 63 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) continue; in watch_list_add() 64 if (process_one_realpath(globbuf.gl_pathv[i], 0) > 0) in watch_list_add() 65 process_one_realpath(globbuf.gl_pathv[i], 1); in watch_list_add() 67 globfree(&globbuf); in watch_list_add()
|
/external/lldb/tools/debugserver/source/MacOSX/ |
D | CFString.cpp | 190 glob_t globbuf; in GlobPath() local 191 if (::glob (path, GLOB_TILDE, NULL, &globbuf) == 0) in GlobPath() 193 expanded_path = globbuf.gl_pathv[0]; in GlobPath() 194 ::globfree (&globbuf); in GlobPath()
|
/external/lldb/source/Host/macosx/cfcpp/ |
D | CFCString.cpp | 146 glob_t globbuf; in ExpandTildeInPath() local 147 if (::glob (path, GLOB_TILDE, NULL, &globbuf) == 0) in ExpandTildeInPath() 149 expanded_path = globbuf.gl_pathv[0]; in ExpandTildeInPath() 150 ::globfree (&globbuf); in ExpandTildeInPath()
|
/external/libxml2/ |
D | testrecurse.c | 823 glob_t globbuf; in launchTests() local 825 globbuf.gl_offs = 0; in launchTests() 826 glob(tst->in, GLOB_DOOFFS, NULL, &globbuf); in launchTests() 827 for (i = 0;i < globbuf.gl_pathc;i++) { in launchTests() 828 if (!checkTestFile(globbuf.gl_pathv[i])) in launchTests() 831 result = resultFilename(globbuf.gl_pathv[i], tst->out, in launchTests() 841 error = resultFilename(globbuf.gl_pathv[i], tst->out, in launchTests() 859 res = tst->func(globbuf.gl_pathv[i], result, error, in launchTests() 864 globbuf.gl_pathv[i]); in launchTests() 872 globbuf.gl_pathv[i], xmlMemUsed() - mem); in launchTests() [all …]
|
D | runtest.c | 2470 glob_t globbuf; in xpathDocTest() local 2483 globbuf.gl_offs = 0; in xpathDocTest() 2484 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xpathDocTest() 2485 for (i = 0;i < globbuf.gl_pathc;i++) { in xpathDocTest() 2487 baseFilename(globbuf.gl_pathv[i])); in xpathDocTest() 2488 res = xpathCommonTest(globbuf.gl_pathv[i], &result[0], 0, 0); in xpathDocTest() 2492 globfree(&globbuf); in xpathDocTest() 2518 glob_t globbuf; in xptrDocTest() local 2531 globbuf.gl_offs = 0; in xptrDocTest() 2532 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xptrDocTest() [all …]
|
/external/selinux/policycoreutils/setfiles/ |
D | restore.c | 374 glob_t globbuf; in process_glob() local 377 memset(&globbuf, 0, sizeof(globbuf)); in process_glob() 378 errors = glob(name, GLOB_TILDE | GLOB_PERIOD | GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); in process_glob() 382 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob() 383 int len = strlen(globbuf.gl_pathv[i]) -2; in process_glob() 384 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in process_glob() 386 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in process_glob() 388 int rc = process_one_realpath(globbuf.gl_pathv[i], recurse); in process_glob() 392 globfree(&globbuf); in process_glob()
|
/external/avahi/avahi-daemon/ |
D | static-services.c | 671 glob_t globbuf; in static_service_load() local 698 memset(&globbuf, 0, sizeof(globbuf)); in static_service_load() 700 …n_chroot ? "/services/*.service" : AVAHI_SERVICE_DIR "/*.service", GLOB_ERR, NULL, &globbuf)) != 0) in static_service_load() 719 for (p = globbuf.gl_pathv; *p; p++) in static_service_load() 722 globfree(&globbuf); in static_service_load()
|