Home
last modified time | relevance | path

Searched refs:globbuf (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/compiler-rt/test/msan/Linux/
Dglob_altdirfunc.cpp57 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 …]
Dglob.cpp16 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()
Dglob_nomatch.cpp14 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/msan/Linux/
Dglob_altdirfunc.cc57 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 …]
Dglob.cc16 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()
Dglob_nomatch.cc14 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/policycoreutils/setfiles/
Drestore.c77 glob_t globbuf; in process_glob() local
81 memset(&globbuf, 0, sizeof(globbuf)); in process_glob()
84 GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); in process_glob()
88 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob()
89 len = strlen(globbuf.gl_pathv[i]) - 2; in process_glob()
90 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in process_glob()
92 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in process_glob()
94 rc = selinux_restorecon(globbuf.gl_pathv[i], in process_glob()
100 globfree(&globbuf); in process_glob()
/external/selinux/restorecond/
Drestore.c71 glob_t globbuf; in process_glob() local
75 memset(&globbuf, 0, sizeof(globbuf)); in process_glob()
78 GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); in process_glob()
82 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob()
83 len = strlen(globbuf.gl_pathv[i]) - 2; in process_glob()
84 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) in process_glob()
86 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) in process_glob()
88 rc = selinux_restorecon(globbuf.gl_pathv[i], in process_glob()
94 globfree(&globbuf); in process_glob()
Dwatch.c53 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/compiler-rt/test/asan/TestCases/Posix/
Dglob.cc21 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/llvm-project/compiler-rt/test/asan/TestCases/Posix/
Dglob.cpp21 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/fuzz/
DgenSeed.c174 glob_t globbuf; in processPattern() local
178 res = glob(pattern, 0, NULL, &globbuf); in processPattern()
186 for (i = 0; i < globbuf.gl_pathc; i++) { in processPattern()
196 path = globbuf.gl_pathv[i]; in processPattern()
245 globfree(&globbuf); in processPattern()
254 glob_t globbuf; in processXPath() local
262 res = glob(pattern, 0, NULL, &globbuf); in processXPath()
270 for (i = 0; i < globbuf.gl_pathc; i++) { in processXPath()
271 char *path = globbuf.gl_pathv[i]; in processXPath()
326 globfree(&globbuf); in processXPath()
[all …]
DtestFuzzer.c72 glob_t globbuf; in testFuzzer() local
76 if (glob(pattern, 0, NULL, &globbuf) != 0) { in testFuzzer()
84 for (i = 0; i < globbuf.gl_pathc; i++) { in testFuzzer()
85 const char *path = globbuf.gl_pathv[i]; in testFuzzer()
102 globfree(&globbuf); in testFuzzer()
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/
DCFString.cpp146 glob_t globbuf; in GlobPath() local
147 if (::glob(path, GLOB_TILDE, NULL, &globbuf) == 0) { in GlobPath()
148 expanded_path = globbuf.gl_pathv[0]; in GlobPath()
149 ::globfree(&globbuf); in GlobPath()
/external/llvm-project/lldb/source/Host/macosx/cfcpp/
DCFCString.cpp110 glob_t globbuf; in ExpandTildeInPath() local
111 if (::glob(path, GLOB_TILDE, NULL, &globbuf) == 0) { in ExpandTildeInPath()
112 expanded_path = globbuf.gl_pathv[0]; in ExpandTildeInPath()
113 ::globfree(&globbuf); in ExpandTildeInPath()
/external/libxml2/
Dtestrecurse.c823 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 …]
Druntest.c2496 glob_t globbuf; in xpathDocTest() local
2511 globbuf.gl_offs = 0; in xpathDocTest()
2512 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xpathDocTest()
2513 for (i = 0;i < globbuf.gl_pathc;i++) { in xpathDocTest()
2515 baseFilename(globbuf.gl_pathv[i])); in xpathDocTest()
2518 res = xpathCommonTest(globbuf.gl_pathv[i], &result[0], 0, 0); in xpathDocTest()
2522 globfree(&globbuf); in xpathDocTest()
2548 glob_t globbuf; in xptrDocTest() local
2563 globbuf.gl_offs = 0; in xptrDocTest()
2564 glob(pattern, GLOB_DOOFFS, NULL, &globbuf); in xptrDocTest()
[all …]
/external/iproute2/ip/
Diptuntap.c311 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()