Lines Matching defs:path_max
149 PATH_MAX but might cause redefinition warnings when sys/param.h is
159 #if !defined PATH_MAX && defined _PC_PATH_MAX
160 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
164 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
168 #if !defined PATH_MAX && defined MAXPATHLEN
169 # define PATH_MAX MAXPATHLEN
172 #ifndef PATH_MAX
173 # define PATH_MAX _POSIX_PATH_MAX
493 size_t path_max;
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;