Home
last modified time | relevance | path

Searched refs:PATH_MAX (Results 1 – 25 of 94) sorted by relevance

1234

/glibc-2.36/elf/
Dchroot_canon.c30 #ifndef PATH_MAX
31 #define PATH_MAX 1024 macro
59 rpath = xmalloc (chroot_len + PATH_MAX); in chroot_canon()
61 rpath_limit = rpath + chroot_len + PATH_MAX; in chroot_canon()
103 if (end - start + 1 > PATH_MAX) in chroot_canon()
106 new_size += PATH_MAX; in chroot_canon()
126 char *buf = alloca (PATH_MAX); in chroot_canon()
135 ssize_t n = readlink (rpath, buf, PATH_MAX - 1); in chroot_canon()
145 extra_buf = alloca (PATH_MAX); in chroot_canon()
148 if (len >= PATH_MAX - n) in chroot_canon()
Ddl-main.h33 #ifdef PATH_MAX
34 # define SECURE_PATH_LIMIT PATH_MAX
/glibc-2.36/posix/
Dtst-glob_symlinks.c60 #ifndef PATH_MAX
61 # define PATH_MAX 1024 macro
63 static char valid_link[PATH_MAX];
64 static char dangling_link[PATH_MAX];
65 static char dangling_dir[PATH_MAX];
88 char tmpdir[PATH_MAX]; in do_prepare()
100 char buf[PATH_MAX + 1]; in do_test()
Dexecvpe.c28 #ifndef PATH_MAX
30 # define PATH_MAX MAXPATHLEN macro
32 # define PATH_MAX 1024 macro
99 size_t path_len = __strnlen (path, PATH_MAX - 1) + 1; in __execvpe_common()
Dtst-spawn6.c36 #ifndef PATH_MAX
37 # define PATH_MAX 1024 macro
39 static char ptmxpath[PATH_MAX];
/glibc-2.36/stdlib/
Dtst-canon-bz26341.c37 #ifndef PATH_MAX
38 # define PATH_MAX 1024 macro
81 const size_t syscall_usage = 1 * PATH_MAX + 1024; in do_realpath()
82 const size_t realpath_usage = 2 * PATH_MAX + 1024; in do_realpath()
83 const size_t thread_usage = 1 * PATH_MAX + 1024; in do_realpath()
Dtst-realpath-toolong.c32 #ifndef PATH_MAX
33 # define PATH_MAX 1024 macro
41 char buf[PATH_MAX + 1]; in do_test()
Dtest-canon.c34 #ifndef PATH_MAX
35 # define PATH_MAX 4096 macro
37 static char cwd[PATH_MAX];
124 char buf[PATH_MAX]; in do_test()
/glibc-2.36/io/
Dgetwd.c28 #ifndef PATH_MAX in getwd()
29 #define PATH_MAX 1024 in getwd() macro
31 char tmpbuf[PATH_MAX]; in getwd()
39 if (__getcwd (tmpbuf, PATH_MAX) == NULL) in getwd()
/glibc-2.36/nss/
Dtst-reload2.c37 #ifndef PATH_MAX
38 # define PATH_MAX 1024 macro
95 char buf1[PATH_MAX]; in do_test()
96 char buf2[PATH_MAX]; in do_test()
/glibc-2.36/support/
Dtst-support-open-dev-null-range.c29 #ifndef PATH_MAX
30 # define PATH_MAX 1024 macro
39 char file_path[PATH_MAX]; in check_path()
/glibc-2.36/debug/
Dtst-realpath-chk.c28 #ifdef PATH_MAX in do_test()
29 char buf[PATH_MAX + 1]; in do_test()
Drealpath_chk.c27 #ifdef PATH_MAX in __realpath_chk()
28 if (resolvedlen < PATH_MAX) in __realpath_chk()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dttyname.c46 ttyname_buf = malloc (PATH_MAX); in ttyname()
51 int result = __ttyname_r (fd, ttyname_buf, PATH_MAX); in ttyname()
Ddl-origin.c36 char linkval[PATH_MAX]; in _dl_get_origin()
/glibc-2.36/sysdeps/posix/
Dpathconf.c90 #ifdef PATH_MAX in __pathconf()
91 return PATH_MAX; in __pathconf()
Dfpathconf.c92 #ifdef PATH_MAX in __fpathconf()
93 return PATH_MAX; in __fpathconf()
Dgetcwd.c77 #ifndef PATH_MAX
78 # define PATH_MAX 8192 macro
168 BIG_FILE_NAME_LENGTH = MIN (4095, PATH_MAX - 1), in __getcwd_generic()
/glibc-2.36/misc/sys/
Dparam.h47 #if !defined MAXPATHLEN && defined PATH_MAX
48 # define MAXPATHLEN PATH_MAX
/glibc-2.36/login/
Dlogin.c82 #ifdef PATH_MAX in __login()
83 char _tty[PATH_MAX + UT_LINESIZE]; in __login()
Dopenpty.c88 #ifdef PATH_MAX in __openpty()
89 char _buf[PATH_MAX]; in __openpty()
/glibc-2.36/nscd/
Dnscd.h76 # ifndef PATH_MAX
77 # define PATH_MAX 1024 macro
80 char dname[PATH_MAX];
/glibc-2.36/intl/
Ddcigettext.c191 #if !defined PATH_MAX && defined _PC_PATH_MAX
192 # define PATH_MAX (__pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : __pathconf ("/", _PC_PATH_MAX)) macro
196 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
200 #if !defined PATH_MAX && defined MAXPATHLEN
201 # define PATH_MAX MAXPATHLEN macro
204 #ifndef PATH_MAX
205 # define PATH_MAX _POSIX_PATH_MAX macro
/glibc-2.36/sysdeps/unix/
Dgrantpt.c102 #ifdef PATH_MAX in grantpt()
103 char _buf[PATH_MAX]; in grantpt()
/glibc-2.36/stdlib/bits/
Dstdlib.h44 #if defined _LIBC_LIMITS_H_ && defined PATH_MAX in __NTH()
45 if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz)) in __NTH()

1234