Searched refs:globbuf (Results 1 - 9 of 9) sorted by relevance

/external/compiler-rt/test/asan/TestCases/Posix/
H A Dglob.cc21 glob_t globbuf; local
22 int res = glob(pattern.c_str(), 0, 0, &globbuf);
26 assert(globbuf.gl_pathc == 2);
27 printf("%zu\n", strlen(globbuf.gl_pathv[0]));
28 printf("%zu\n", strlen(globbuf.gl_pathv[1]));
29 globfree(&globbuf);
/external/compiler-rt/test/msan/Linux/
H A Dglob_nomatch.cc14 glob_t globbuf; local
15 int res = glob(buf, 0, 0, &globbuf);
17 assert(globbuf.gl_pathc == 0);
18 if (globbuf.gl_pathv == 0)
H A Dglob_altdirfunc.cc57 glob_t globbuf; local
58 globbuf.gl_closedir = my_gl_closedir;
59 globbuf.gl_readdir = my_gl_readdir;
60 globbuf.gl_opendir = my_gl_opendir;
61 globbuf.gl_lstat = my_gl_lstat;
62 globbuf.gl_stat = my_gl_stat;
64 int res = glob(buf, GLOB_ALTDIRFUNC | GLOB_MARK, 0, &globbuf);
67 assert(globbuf.gl_pathc == 2);
68 printf("%zu\n", strlen(globbuf.gl_pathv[0]));
69 printf("%zu\n", strlen(globbuf
[all...]
H A Dglob.cc16 glob_t globbuf; local
17 int res = glob(buf, 0, 0, &globbuf);
21 assert(globbuf.gl_pathc == 2);
22 printf("%zu\n", strlen(globbuf.gl_pathv[0]));
23 printf("%zu\n", strlen(globbuf.gl_pathv[1]));
/external/selinux/policycoreutils/restorecond/
H A Dwatch.c46 glob_t globbuf; local
55 globbuf.gl_offs = 1;
59 &globbuf) >= 0) {
60 for (i=0; i < globbuf.gl_pathc; i++) {
61 int len = strlen(globbuf.gl_pathv[i]) -2;
62 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0) continue;
63 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0) continue;
64 if (process_one_realpath(globbuf.gl_pathv[i], 0) > 0)
65 process_one_realpath(globbuf.gl_pathv[i], 1);
67 globfree(&globbuf);
[all...]
/external/libxml2/
H A Dtestrecurse.c823 glob_t globbuf; local
825 globbuf.gl_offs = 0;
826 glob(tst->in, GLOB_DOOFFS, NULL, &globbuf);
827 for (i = 0;i < globbuf.gl_pathc;i++) {
828 if (!checkTestFile(globbuf.gl_pathv[i]))
831 result = resultFilename(globbuf.gl_pathv[i], tst->out,
841 error = resultFilename(globbuf.gl_pathv[i], tst->out,
859 res = tst->func(globbuf.gl_pathv[i], result, error,
864 globbuf.gl_pathv[i]);
872 globbuf
[all...]
H A Druntest.c2470 glob_t globbuf; local
2483 globbuf.gl_offs = 0;
2484 glob(pattern, GLOB_DOOFFS, NULL, &globbuf);
2485 for (i = 0;i < globbuf.gl_pathc;i++) {
2487 baseFilename(globbuf.gl_pathv[i]));
2488 res = xpathCommonTest(globbuf.gl_pathv[i], &result[0], 0, 0);
2492 globfree(&globbuf);
2518 glob_t globbuf; local
2531 globbuf.gl_offs = 0;
2532 glob(pattern, GLOB_DOOFFS, NULL, &globbuf);
3053 glob_t globbuf; local
3230 glob_t globbuf; local
3317 glob_t globbuf; local
4388 glob_t globbuf; local
[all...]
/external/selinux/policycoreutils/setfiles/
H A Drestore.c374 glob_t globbuf; local
377 memset(&globbuf, 0, sizeof(globbuf));
378 errors = glob(name, GLOB_TILDE | GLOB_PERIOD | GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf);
382 for (i = 0; i < globbuf.gl_pathc; i++) {
383 int len = strlen(globbuf.gl_pathv[i]) -2;
384 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len--], "/.") == 0)
386 if (len > 0 && strcmp(&globbuf.gl_pathv[i][len], "/..") == 0)
388 int rc = process_one_realpath(globbuf.gl_pathv[i], recurse);
392 globfree(&globbuf);
[all...]
/external/avahi/avahi-daemon/
H A Dstatic-services.c671 glob_t globbuf; local
698 memset(&globbuf, 0, sizeof(globbuf));
700 if ((globret = glob(in_chroot ? "/services/*.service" : AVAHI_SERVICE_DIR "/*.service", GLOB_ERR, NULL, &globbuf)) != 0)
719 for (p = globbuf.gl_pathv; *p; p++)
722 globfree(&globbuf);

Completed in 481 milliseconds