Home
last modified time | relevance | path

Searched refs:gl_pathc (Results 1 – 19 of 19) sorted by relevance

/external/openssh/openbsd-compat/
Dglob.c191 pglob->gl_pathc = 0; in glob()
201 if (pglob->gl_offs < 0 || pglob->gl_pathc < 0 || in glob()
202 pglob->gl_offs >= INT_MAX || pglob->gl_pathc >= INT_MAX || in glob()
203 pglob->gl_pathc >= INT_MAX - pglob->gl_offs - 1) in glob()
479 oldpathc = pglob->gl_pathc;
557 if (pglob->gl_pathc == oldpathc) {
570 int n = pglob->gl_pathc - oldpathc;
587 pglob->gl_pathc - oldpathc, sizeof(char *),
806 newn = 2 + pglob->gl_pathc + pglob->gl_offs;
808 pglob->gl_pathc >= INT_MAX ||
[all …]
Dglob.h56 int gl_pathc; /* Count of total paths so far. */ member
/external/libxml2/
Dtestrecurse.c66 size_t gl_pathc; /* Count of paths matched so far */ member
109 ret->gl_pathv[ret->gl_pathc] = strdup(directory); in glob()
110 if (ret->gl_pathv[ret->gl_pathc] == NULL) in glob()
112 ret->gl_pathc++; in glob()
116 if (ret->gl_pathc + 2 > nb_paths) { in glob()
124 ret->gl_pathv[ret->gl_pathc] = strdup(directory); in glob()
125 if (ret->gl_pathv[ret->gl_pathc] == NULL) in glob()
127 ret->gl_pathc++; in glob()
129 ret->gl_pathv[ret->gl_pathc] = NULL; in glob()
143 for (i = 0;i < pglob->gl_pathc;i++) { in globfree()
[all …]
Druntest.c117 size_t gl_pathc; /* Count of paths matched so far */ member
160 ret->gl_pathv[ret->gl_pathc] = strdup(directory); in glob()
161 if (ret->gl_pathv[ret->gl_pathc] == NULL) in glob()
163 ret->gl_pathc++; in glob()
167 if (ret->gl_pathc + 2 > nb_paths) { in glob()
175 ret->gl_pathv[ret->gl_pathc] = strdup(directory); in glob()
176 if (ret->gl_pathv[ret->gl_pathc] == NULL) in glob()
178 ret->gl_pathc++; in glob()
180 ret->gl_pathv[ret->gl_pathc] = NULL; in glob()
194 for (i = 0;i < pglob->gl_pathc;i++) { in globfree()
[all …]
/external/linux-kselftest/tools/testing/selftests/vm/
Dthuge-gen.c65 assert(g.gl_pathc <= NUM_PAGESIZES); in find_pagesizes()
66 for (i = 0; i < g.gl_pathc; i++) { in find_pagesizes()
72 num_page_sizes = g.gl_pathc; in find_pagesizes()
/external/compiler-rt/test/msan/Linux/
Dglob_nomatch.cc17 assert(globbuf.gl_pathc == 0); in main()
Dglob.cc21 assert(globbuf.gl_pathc == 2); in main()
Dglob_altdirfunc.cc67 assert(globbuf.gl_pathc == 2); in main()
/external/compiler-rt/test/asan/TestCases/Posix/
Dglob.cc26 assert(globbuf.gl_pathc == 2); in main()
/external/selinux/policycoreutils/setfiles/
Drestore.c84 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob()
/external/selinux/restorecond/
Drestore.c83 for (i = 0; i < globbuf.gl_pathc; i++) { in process_glob()
Dwatch.c58 for (i = 0; i < globbuf.gl_pathc; i++) { in watch_list_add()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_posix.h692 uptr gl_pathc; member
705 uptr gl_pathc; member
Dsanitizer_platform_limits_posix.cc982 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
Dsanitizer_common_interceptors.inc1826 ctx, pglob->gl_pathv, (pglob->gl_pathc + 1) * sizeof(*pglob->gl_pathv));
1827 for (SIZE_T i = 0; i < pglob->gl_pathc; ++i) {
/external/openssh/
Dsftp.c898 (g.gl_pathc && !g.gl_matchc)) { in do_globbed_ls()
899 if (g.gl_pathc) in do_globbed_ls()
962 if (g.gl_pathc) in do_globbed_ls()
1660 if (g.gl_pathc) in parse_dispatch_command()
Dreadconf.c1505 } else if (r != 0 || gl.gl_pathc < 0) in process_config_line_depth()
1510 for (i = 0; i < (u_int)gl.gl_pathc; i++) { in process_config_line_depth()
/external/selinux/sandbox/
Dseunshare.c337 for ( i=0; i < fglob.gl_pathc; i++) { in rsynccmd()
/external/selinux/mcstrans/src/
Dmcstrans.c805 for (n=0; n < g.gl_pathc; n++) { in process_trans()