/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/selinux/restorecond/ |
D | restore.c | 74 glob_t globbuf; in process_glob() local 79 memset(&globbuf, 0, sizeof(globbuf)); in process_glob() 82 GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); in process_glob() 86 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob() 87 len = strlen(globbuf.gl_pathv[i]) - 2; in process_glob() 88 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in process_glob() 90 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in process_glob() 92 rc = selinux_restorecon(globbuf.gl_pathv[i], in process_glob() 98 globfree(&globbuf); in process_glob()
|
D | watch.c | 53 glob_t globbuf; in watch_list_add() local 61 globbuf.gl_offs = 1; in watch_list_add() 65 &globbuf) >= 0) { in watch_list_add() 66 for (i = 0; i < globbuf.gl_pathc; i++) { in watch_list_add() 67 len = strlen(globbuf.gl_pathv[i]) - 2; in watch_list_add() 69 strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in watch_list_add() 72 strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in watch_list_add() 74 selinux_restorecon(globbuf.gl_pathv[i], in watch_list_add() 77 globfree(&globbuf); in watch_list_add()
|
/external/selinux/policycoreutils/setfiles/ |
D | restore.c | 80 glob_t globbuf; in process_glob() local 85 memset(&globbuf, 0, sizeof(globbuf)); in process_glob() 88 GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); in process_glob() 92 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob() 93 len = strlen(globbuf.gl_pathv[i]) - 2; in process_glob() 94 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in process_glob() 96 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in process_glob() 98 rc = selinux_restorecon(globbuf.gl_pathv[i], in process_glob() 104 globfree(&globbuf); in process_glob()
|
/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/libxml2/ |
D | runtest.c | 2493 glob_t globbuf; in xpathDocTest() local 2506 globbuf.gl_offs = 0; in xpathDocTest() 2507 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xpathDocTest() 2508 for (i = 0;i < globbuf.gl_pathc;i++) { in xpathDocTest() 2510 baseFilename(globbuf.gl_pathv[i])); in xpathDocTest() 2511 res = xpathCommonTest(globbuf.gl_pathv[i], &result[0], 0, 0); in xpathDocTest() 2515 globfree(&globbuf); in xpathDocTest() 2541 glob_t globbuf; in xptrDocTest() local 2554 globbuf.gl_offs = 0; in xptrDocTest() 2555 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xptrDocTest() [all …]
|
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 …]
|
/external/iproute2/ip/ |
D | iptuntap.c | 311 glob_t globbuf = { }; in show_processes() local 316 NULL, &globbuf); in show_processes() 320 fd_path = globbuf.gl_pathv; in show_processes() 380 globfree(&globbuf); in show_processes()
|