Home
last modified time | relevance | path

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

12

/openbsd/src/lib/libc/gen/
Dglob.c177 pglob->gl_pathc = 0; in glob()
190 if (pglob->gl_offs >= SSIZE_MAX || pglob->gl_pathc >= SSIZE_MAX || in glob()
191 pglob->gl_pathc >= SSIZE_MAX - pglob->gl_offs - 1) in glob()
469 oldpathc = pglob->gl_pathc; in glob0()
547 if (pglob->gl_pathc == oldpathc) { in glob0()
560 size_t n = pglob->gl_pathc - oldpathc; in glob0()
577 pglob->gl_pathc - oldpathc, sizeof(char *), in glob0()
795 newn = 2 + pglob->gl_pathc + pglob->gl_offs; in globextend()
797 pglob->gl_pathc >= SSIZE_MAX || in globextend()
839 statv[pglob->gl_offs + pglob->gl_pathc] = NULL; in globextend()
[all …]
/openbsd/src/gnu/usr.bin/perl/ext/File-Glob/
Dbsd_glob.c224 pglob->gl_pathc = 0;
230 pglob->gl_pathc = 0;
521 oldpathc = pglob->gl_pathc;
591 if (pglob->gl_pathc == oldpathc &&
605 pglob->gl_pathc - oldpathc, sizeof(char *),
864 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs);
895 pathv[pglob->gl_offs + pglob->gl_pathc++] = copy;
897 pathv[pglob->gl_offs + pglob->gl_pathc] = NULL;
1005 for (i = pglob->gl_pathc; i--; ++pp)
Dbsd_glob.h42 int gl_pathc; /* Count of total paths so far. */ member
DGlob.xs53 EXTEND(sp, pglob.gl_pathc); in doglob()
54 for (i = 0; i < pglob.gl_pathc; i++) { in doglob()
/openbsd/src/usr.bin/ssh/
Dauth2-pubkey.c336 } else if (gl.gl_pathc > INT_MAX) { in match_principals_file()
338 } else if (gl.gl_pathc > 1) { in match_principals_file()
340 gl.gl_pathc); in match_principals_file()
342 for (i = 0; !success && i < gl.gl_pathc; i++) { in match_principals_file()
825 } else if (gl.gl_pathc > INT_MAX) { in user_key_allowed()
827 } else if (gl.gl_pathc > 1) { in user_key_allowed()
829 gl.gl_pathc); in user_key_allowed()
831 for (j = 0; !success && j < gl.gl_pathc; j++) { in user_key_allowed()
Dsftp-glob.c142 pglob->gl_pathc == 1 && (s = pglob->gl_pathv[0]) != NULL && in sftp_glob()
Dsftp.c958 (g.gl_pathc && !g.gl_matchc)) { in do_globbed_ls()
959 if (g.gl_pathc) in do_globbed_ls()
1045 if (g.gl_pathc) in do_globbed_ls()
1782 if (g.gl_pathc) in parse_dispatch_command()
Dscp.c1523 if (g.gl_matchc == 0 && g.gl_pathc == 1 && g.gl_pathv[0] != 0) { in sink_sftp()
1956 if (g.gl_matchc == 0 && g.gl_pathc == 1 && g.gl_pathv[0] != 0) { in throughlocal_sftp()
/openbsd/src/include/
Dglob.h51 size_t gl_pathc; /* Count of total paths so far. */ member
/openbsd/src/usr.bin/less/
Dfilename.c415 for (i = 0; i < list.gl_pathc; i++) { in lglob()
424 for (i = 0; i < list.gl_pathc; i++) { in lglob()
/openbsd/src/sbin/restore/
Dinteractive.c385 if (ap->glob.gl_pathc == 0) in getcmd()
388 ap->argcnt = ap->glob.gl_pathc; in getcmd()
391 strlcpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt], in getcmd()
/openbsd/src/libexec/ftpd/
Dpopen.c86 } else if (gl.gl_pathc > 0) { in ftpd_ls()
Dftpcmd.y912 gl.gl_pathc == 0) {
/openbsd/src/usr.bin/tmux/
Dcmd-source-file.c230 for (j = 0; j < g.gl_pathc; j++) in cmd_source_file_exec()
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_solaris.h335 uptr gl_pathc; member
Dsanitizer_platform_limits_solaris.cpp208 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
Dsanitizer_platform_limits_freebsd.h367 uptr gl_pathc; member
Dsanitizer_platform_limits_freebsd.cpp407 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
Dsanitizer_platform_limits_posix.h807 uptr gl_pathc; member
Dsanitizer_platform_limits_posix.cpp1022 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
/openbsd/src/bin/csh/
Dglob.c379 globv.gl_pathc = 0; in libglob()
405 vl = (globv.gl_pathc == 0 || (magic && !match && !nonomatch)) ? in libglob()
/openbsd/src/usr.bin/mail/
Dfio.c457 if (names.gl_pathc == 1) in expand()
/openbsd/src/usr.sbin/nsd/
Dconfiglexer.lex128 for(i=(int)g.gl_pathc-1; i>=0; i--) { in config_start_include_glob()
/openbsd/src/usr.bin/ftp/
Dutil.c550 gl.gl_pathc == 0) { in globulize()
Dcmds.c359 if (glob(argv[i], flags, NULL, &gl) || gl.gl_pathc == 0) { in mput()

12