Lines Matching defs:path_max
170 PATH_MAX but might cause redefinition warnings when sys/param.h is
180 #if !defined PATH_MAX && defined _PC_PATH_MAX
181 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
185 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
189 #if !defined PATH_MAX && defined MAXPATHLEN
190 # define PATH_MAX MAXPATHLEN
193 #ifndef PATH_MAX
194 # define PATH_MAX _POSIX_PATH_MAX
532 size_t path_max;
535 path_max = (unsigned int) PATH_MAX;
536 path_max += 2; /* The getcwd docs say to do this. */
540 dirname = (char *) alloca (path_max + dirname_len);
544 ret = getcwd (dirname, path_max);
548 path_max += path_max / 2;
549 path_max += PATH_INCR;