Home
last modified time | relevance | path

Searched refs:path_max (Results 1 – 25 of 55) sorted by relevance

123

/netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/
H A Dxgetcwd.c51 unsigned path_max; in xgetcwd() local
61 path_max = (unsigned) PATH_MAX; in xgetcwd()
62 path_max += 2; /* The getcwd docs say to do this. */ in xgetcwd()
66 char *cwd = (char *) xmalloc (path_max); in xgetcwd()
69 ret = getcwd (cwd, path_max); in xgetcwd()
82 path_max += path_max / 16; in xgetcwd()
83 path_max += 32; in xgetcwd()
H A Dcanonicalize.c104 long int path_max; in __realpath() local
128 path_max = PATH_MAX; in __realpath()
130 path_max = pathconf (name, _PC_PATH_MAX); in __realpath()
131 if (path_max <= 0) in __realpath()
132 path_max = 1024; in __realpath()
137 rpath = malloc (path_max); in __realpath()
143 rpath_limit = rpath + path_max; in __realpath()
147 if (!__getcwd (rpath, path_max)) in __realpath()
207 if (end - start + 1 > path_max) in __realpath()
210 new_size += path_max; in __realpath()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dcanonicalize.c104 long int path_max; in __realpath() local
128 path_max = PATH_MAX; in __realpath()
130 path_max = pathconf (name, _PC_PATH_MAX); in __realpath()
131 if (path_max <= 0) in __realpath()
132 path_max = 1024; in __realpath()
137 rpath = malloc (path_max); in __realpath()
143 rpath_limit = rpath + path_max; in __realpath()
147 if (!__getcwd (rpath, path_max)) in __realpath()
207 if (end - start + 1 > path_max) in __realpath()
210 new_size += path_max; in __realpath()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/
H A Dcanonicalize.c104 long int path_max; in __realpath() local
128 path_max = PATH_MAX; in __realpath()
130 path_max = pathconf (name, _PC_PATH_MAX); in __realpath()
131 if (path_max <= 0) in __realpath()
132 path_max = 1024; in __realpath()
137 rpath = malloc (path_max); in __realpath()
143 rpath_limit = rpath + path_max; in __realpath()
147 if (!__getcwd (rpath, path_max)) in __realpath()
207 if (end - start + 1 > path_max) in __realpath()
210 new_size += path_max; in __realpath()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libiberty/
H A Dlrealpath.c115 long path_max = pathconf ("/", _PC_PATH_MAX); in lrealpath() local
116 if (path_max > 0) in lrealpath()
120 buf = (char *) malloc (path_max); in lrealpath()
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/
H A Dlrealpath.c115 long path_max = pathconf ("/", _PC_PATH_MAX); in lrealpath() local
116 if (path_max > 0) in lrealpath()
120 buf = (char *) malloc (path_max); in lrealpath()
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/
H A Dlrealpath.c115 long path_max = pathconf ("/", _PC_PATH_MAX); in lrealpath() local
116 if (path_max > 0) in lrealpath()
120 buf = (char *) malloc (path_max); in lrealpath()
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/
H A Dcanonicalize-lgpl.c169 long int path_max = PATH_MAX; in get_path_max() local
177 long int path_max = __pathconf ("/", _PC_PATH_MAX); in get_path_max()
180 return path_max < 0 ? 1024 : path_max <= IDX_MAX ? path_max : IDX_MAX; in get_path_max()
/netbsd-src/external/gpl3/binutils/dist/libiberty/
H A Dlrealpath.c242 long path_max = pathconf ("/", _PC_PATH_MAX); in lrealpath() local
243 if (path_max > 0) in lrealpath()
247 buf = (char *) malloc (path_max); in lrealpath()
/netbsd-src/external/gpl2/grep/dist/intl/
H A Ddcigettext.c493 size_t path_max; variable
496 path_max = (unsigned int) PATH_MAX;
497 path_max += 2; /* The getcwd docs say to do this. */
501 dirname = (char *) alloca (path_max + dirname_len);
505 ret = getcwd (dirname, path_max);
509 path_max += path_max / 2;
510 path_max += PATH_INCR;
/netbsd-src/external/gpl3/gcc.old/dist/intl/
H A Ddcigettext.c537 size_t path_max; variable
540 path_max = (unsigned int) PATH_MAX;
541 path_max += 2; /* The getcwd docs say to do this. */
545 dirname = (char *) alloca (path_max + dirname_len);
549 ret = getcwd (dirname, path_max);
553 path_max += path_max / 2;
554 path_max += PATH_INCR;
/netbsd-src/external/gpl2/texinfo/dist/intl/
H A Ddcigettext.c534 size_t path_max; in DCIGETTEXT() local
537 path_max = (unsigned int) PATH_MAX; in DCIGETTEXT()
538 path_max += 2; /* The getcwd docs say to do this. */ in DCIGETTEXT()
542 dirname = (char *) alloca (path_max + dirname_len); in DCIGETTEXT()
546 ret = getcwd (dirname, path_max); in DCIGETTEXT()
550 path_max += path_max / 2; in DCIGETTEXT()
551 path_max += PATH_INCR; in DCIGETTEXT()
/netbsd-src/external/gpl3/binutils.old/dist/intl/
H A Ddcigettext.c537 size_t path_max; variable
540 path_max = (unsigned int) PATH_MAX;
541 path_max += 2; /* The getcwd docs say to do this. */
545 dirname = (char *) alloca (path_max + dirname_len);
549 ret = getcwd (dirname, path_max);
553 path_max += path_max / 2;
554 path_max += PATH_INCR;
/netbsd-src/external/gpl3/gcc/dist/intl/
H A Ddcigettext.c537 size_t path_max; variable
540 path_max = (unsigned int) PATH_MAX;
541 path_max += 2; /* The getcwd docs say to do this. */
545 dirname = (char *) alloca (path_max + dirname_len);
549 ret = getcwd (dirname, path_max);
553 path_max += path_max / 2;
554 path_max += PATH_INCR;
/netbsd-src/external/gpl3/gdb.old/dist/intl/
H A Ddcigettext.c537 size_t path_max; variable
540 path_max = (unsigned int) PATH_MAX;
541 path_max += 2; /* The getcwd docs say to do this. */
545 dirname = (char *) alloca (path_max + dirname_len);
549 ret = getcwd (dirname, path_max);
553 path_max += path_max / 2;
554 path_max += PATH_INCR;
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/
H A Ddcigettext.c640 size_t path_max; in gl_dcigettext() local
644 path_max = (unsigned int) PATH_MAX; in gl_dcigettext()
645 path_max += 2; /* The getcwd docs say to do this. */ in gl_dcigettext()
649 resolved_dirname = (char *) alloca (path_max + dirname_len); in gl_dcigettext()
653 ret = getcwd (resolved_dirname, path_max); in gl_dcigettext()
657 path_max += path_max / 2; in gl_dcigettext()
658 path_max += PATH_INCR; in gl_dcigettext()
/netbsd-src/usr.bin/make/
H A Dtest-variants.mk94 TESTS+= path_max
95 CPPFLAGS.path_max= -DPATH_MAX=20
96 SKIP.path_max= yes
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/root/
H A Dfilename.d1017 auto path_max = pathconf("/", _PC_PATH_MAX);
1018 if (path_max > 0)
1020 char *buf = cast(char*)mem.xmalloc(path_max);
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/
H A Dops.cc658 long path_max = pathconf(".", _PC_PATH_MAX); in current_path() local
660 if (path_max == -1) in current_path()
662 else if (path_max > 10240) in current_path()
665 size = path_max; in current_path()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/filesystem/
H A Dops.cc652 long path_max = pathconf(".", _PC_PATH_MAX); in current_path() local
654 if (path_max == -1) in current_path()
656 else if (path_max > 10240) in current_path()
659 size = path_max; in current_path()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.h330 extern unsigned path_max;
H A Dsanitizer_platform_limits_openbsd.cc125 unsigned path_max = PATH_MAX; variable
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.h328 extern unsigned path_max;
H A Dsanitizer_platform_limits_openbsd.cc123 unsigned path_max = PATH_MAX; variable
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h346 extern unsigned path_max;

123