/external/compiler-rt/test/asan/TestCases/Posix/ |
glob.cc | 21 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/ |
glob_nomatch.cc | 14 glob_t globbuf; local 15 int res = glob(buf, 0, 0, &globbuf); 17 assert(globbuf.gl_pathc == 0); 18 if (globbuf.gl_pathv == 0)
|
glob_altdirfunc.cc | 57 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.gl_pathv[1])) [all...] |
glob.cc | 16 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/ |
watch.c | 46 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/ |
testrecurse.c | 823 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.gl_pathv[i], xmlMemUsed() - mem) [all...] |
runtest.c | 2412 glob_t globbuf; local 2460 glob_t globbuf; local 2995 glob_t globbuf; local 3172 glob_t globbuf; local 3259 glob_t globbuf; local 4330 glob_t globbuf; local [all...] |
/external/selinux/policycoreutils/setfiles/ |
restore.c | 374 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/ |
static-services.c | 671 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);
|