Home
last modified time | relevance | path

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

123

/freebsd/contrib/netbsd-tests/include/
H A Dt_glob.c63 g.gl_pathc = g.gl_pathc - 1; in ATF_TC_BODY()
65 ATF_REQUIRE(g.gl_pathc > 0); in ATF_TC_BODY()
/freebsd/crypto/openssh/openbsd-compat/
H A Dglob.c192 pglob->gl_pathc = 0; in glob()
205 if (pglob->gl_offs >= SSIZE_MAX || pglob->gl_pathc >= SSIZE_MAX || in glob()
206 pglob->gl_pathc >= SSIZE_MAX - pglob->gl_offs - 1) in glob()
483 oldpathc = pglob->gl_pathc;
561 if (pglob->gl_pathc == oldpathc) {
574 size_t n = pglob->gl_pathc - oldpathc;
591 pglob->gl_pathc - oldpathc, sizeof(char *),
809 newn = 2 + pglob->gl_pathc + pglob->gl_offs;
811 pglob->gl_pathc >= SSIZE_MAX ||
853 statv[pglob->gl_offs + pglob->gl_pathc] = NULL;
[all …]
H A Dglob.h57 size_t gl_pathc; /* Count of total paths so far. */ member
/freebsd/contrib/tcsh/
H A Dglob.c306 pglob->gl_pathc = 0; in glob()
313 oldpathc = pglob->gl_pathc; in glob()
430 if (pglob->gl_pathc == oldpathc && in glob()
458 else if (!(flags & GLOB_NOSORT) && (pglob->gl_pathc != oldpathc)) in glob()
460 pglob->gl_pathc - oldpathc, sizeof(char *), compare); in glob()
681 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs); in globextend()
692 pathv[pglob->gl_offs + pglob->gl_pathc++] = strsave(path); in globextend()
693 pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; in globextend()
796 for (i = pglob->gl_pathc; i--; ++pp) in globfree()
H A Dglob.h41 int gl_pathc; /* Count of total paths so far. */ member
H A Dsh.glob.c446 globv.gl_pathc = 0; in libglob()
473 vl = (globv.gl_pathc == 0 || (magic && !match && !nonomatch)) ? in libglob()
/freebsd/crypto/heimdal/lib/roken/
H A Dglob.c179 pglob->gl_pathc = 0; in glob()
412 oldpathc = pglob->gl_pathc; in glob0()
476 if (pglob->gl_pathc == oldpathc && in glob0()
483 pglob->gl_pathc - oldpathc, sizeof(char *), compare); in glob0()
657 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs); in globextend()
678 pathv[pglob->gl_offs + pglob->gl_pathc++] = copy; in globextend()
680 pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; in globextend()
750 for (i = pglob->gl_pathc; i--; ++pp) in globfree()
H A Dglob.hin58 int gl_pathc; /* Count of total paths so far. */
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_glob.c211 for (i = 0; i < gl.gl_pathc; i++) in run()
214 ATF_CHECK(len == gl.gl_pathc); in run()
215 for (i = 0; i < gl.gl_pathc; i++) in run()
/freebsd/lib/libc/gen/
H A Dglob-compat11.c164 pglob->gl_pathc = 0; in freebsd11_glob()
243 oldpathc = pglob->gl_pathc; in globexp0()
507 oldpathc = pglob->gl_pathc; in glob0()
574 if (pglob->gl_pathc == oldpathc) in globfinal()
579 pglob->gl_pathc - oldpathc, sizeof(char *), compare); in globfinal()
827 newn = 2 + pglob->gl_pathc + pglob->gl_offs; in globextend()
863 pathv[pglob->gl_offs + pglob->gl_pathc++] = copy; in globextend()
865 pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; in globextend()
949 for (i = pglob->gl_pathc; i--; ++pp) in freebsd11_globfree()
H A Dglob.c198 pglob->gl_pathc = 0; in __glob()
305 oldpathc = pglob->gl_pathc; in globexp0()
569 oldpathc = pglob->gl_pathc; in glob0()
637 if (pglob->gl_pathc == oldpathc) in globfinal()
642 pglob->gl_pathc - oldpathc, sizeof(char *), compare); in globfinal()
889 newn = 2 + pglob->gl_pathc + pglob->gl_offs; in globextend()
925 pathv[pglob->gl_offs + pglob->gl_pathc++] = copy; in globextend()
927 pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; in globextend()
1011 for (i = pglob->gl_pathc; i--; ++pp) in globfree()
H A Dglob-compat11.h41 size_t gl_pathc; /* Count of total paths so far. */ member
/freebsd/usr.sbin/sesutil/
H A Dsesutil.c228 for (i = 0; i < g.gl_pathc; i++) { in sesled()
239 if (errno == EACCES && g.gl_pathc > 1) { in sesled()
446 for (i = 0; i < g.gl_pathc; i++) { in objmap()
457 if (errno == EACCES && g.gl_pathc > 1) { in objmap()
749 for (i = 0; i < g.gl_pathc; i++) { in show()
760 if (errno == EACCES && g.gl_pathc > 1) { in show()
902 for (i = 0; i < g.gl_pathc; i++) { in encstatus()
913 if (errno == EACCES && g.gl_pathc > 1) { in encstatus()
/freebsd/crypto/openssh/
H A Dauth2-pubkey.c343 } else if (gl.gl_pathc > INT_MAX) { in match_principals_file()
345 } else if (gl.gl_pathc > 1) { in match_principals_file()
347 gl.gl_pathc); in match_principals_file()
349 for (i = 0; !success && i < gl.gl_pathc; i++) { in match_principals_file()
832 } else if (gl.gl_pathc > INT_MAX) { in user_key_allowed()
834 } else if (gl.gl_pathc > 1) { in user_key_allowed()
836 gl.gl_pathc); in user_key_allowed()
838 for (j = 0; !success && j < gl.gl_pathc; j++) { in user_key_allowed()
H A Dsftp-glob.c169 pglob->gl_pathc == 1 && (s = pglob->gl_pathv[0]) != NULL && in sftp_glob()
/freebsd/tests/sys/ses/
H A Dcommon.h36 g.gl_pathc = 0; in for_each_ses_dev()
H A Ddestructive.c50 g.gl_pathc = 0; in for_one_ses_dev()
/freebsd/include/
H A Dglob.h48 size_t gl_pathc; /* Count of total paths so far. */ member
/freebsd/sbin/restore/
H A Dinteractive.c368 if (ap->glob.gl_pathc == 0) in getcmd()
371 ap->argcnt = ap->glob.gl_pathc; in getcmd()
374 strncpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt], size); in getcmd()
/freebsd/usr.bin/login/
H A Dlogin_fbtab.c128 for (i = 0; i < gl.gl_pathc; i++) { in login_protect()
/freebsd/contrib/less/
H A Dlglob.h39 #define SCAN_GLOB_LIST(list,p) i = 0; i < list.gl_pathc; i++
/freebsd/libexec/ftpd/
H A Dpopen.c101 else if (gl.gl_pathc > 0) { in ftpd_popen()
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dpopen.c151 gl.gl_pathc == 0) in ftpd_popen()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h335 uptr gl_pathc; member
H A Dsanitizer_platform_limits_solaris.cpp208 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);

123