file name too long 错误 - apache

在OpenBSD环境下搭建各种服务器的相关讨论。

版主: lionuxchenjun天地乾坤

回复
头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

file name too long 错误 - apache

帖子 acheng » 2011-12-17 1:30

最近发现我的Apache error log中出现了一些“file name too long”的错误,因为所用的网站程序会产生如下所示的比较长的URL。但是类似长度的url在ubuntu的系统上则不会出现错误。

想请教一下大家是否了解如何解决这个问题。

我看到错误号63 (file name too long)是在error.h文件中定义的,但是没查到对文件名的长度限制是多少,也没查到是否有参数可以自定义这个长度。

代码: 全选

[Sat Dec 17 00:19:49 2011] [error] [client 10.181.10.122][color="Sienna"] (63)File name too long[/color]: access to /media/ajax/component/boxList/filter/featured/limit/all/layout/thumbBig/vars/a%3A25%3A%7Bs%3A3%3A%22act%22%3Bs%3A7%3A%22boxList%22%3Bs%3A3%3A%22mod%22%3Bs%3A5%3A%22media%22%3Bs%3A4%3A%22mode%22%3Bs%3A3%3A%22all%22%3Bs%3A6%3A%22filter%22%3Bs%3A8%3A%22featured%22%3Bs%3A5%3A%22limit%22%3Bs%3A3%3A%22all%22%3Bs%3A6%3A%22layout%22%3Bs%3A8%3A%22thumbBig%22%3Bs%3A6%3A%22search%22%3Bs%3A0%3A%22%22%3Bs%3A8%3A%22per_page%22%3Ba%3A3%3A%7Bs%3A8%3A%22thumbBig%22%3Bi%3A9%3Bs%3A5%3A%22thumb%22%3Bi%3A10%3Bs%3A4%3A%22list%22%3Bi%3A4%3B%7Ds%3A11%3A%22show_filter%22%3Bb%3A1%3Bs%3A10%3A%22show_limit%22%3Bb%3A0%3Bs%3A11%3A%22show_layout%22%3Bb%3A1%3Bs%3A11%3A%22show_search%22%3Bb%3A0%3Bs%3A10%3A%22show_pager%22%3Bb%3A0%3Bs%3A9%3A%22show_more%22%3Bb%3A1%3Bs%3A9%3A%22save_page%22%3Bb%3A1%3Bs%3A10%3A%22pager_name%22%3Bs%3A4%3A%22page%22%3Bs%3A9%3A%22thumbsize%22%3Bs%3A7%3A%22160x120%22%3Bs%3A9%3A%22more_link%22%3Bs%3A10%3A%22media%2Flist%22%3Bs%3A2%3A%22id%22%3Bs%3A9%3A%22media-box%22%3Bs%3A9%3A%22component%22%3Bs%3A7%3A%22boxList%22%3Bs%3A4%3A%22type%22%3BN%3Bs%3A4%3A%22text%22%3BN%3Bs%3A13%3A%22captionParams%22%3Ba%3A0%3A%7B%7Ds%3A7%3A%22caption%22%3Bs%3A9%3A%22New+media%22%3Bs%3A4%3A%22page%22%3Bi%3A1%3B%7D failed
PS:OpenBSD snapshot/AMD64

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-17 3:44

我的印象里FFS的文件名长度有255个字节的限制(所有的*unix),不过我也不清楚在哪里设置这个限制。网上有人说修改了以后系统可能会出现莫名其妙的问题。

疑问:
文件是否使用了非英文字符?

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-17 10:34

今天再google,发现ubuntu上的ext4文件名长度限制也是256 byte,所以这可能更多是和apache有关,而不在文件系统层面。

http://en.wikipedia.org/wiki/Comparison_of_file_systems

继续google ...

另:没有使用中文字符

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-18 0:10

有点跑题:
如果没有中文字符,那么地址显得好怪呀,程序的编码设置肯定没有问题吗?或者SEO优化什么的?

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-18 3:05

看这里:http://www.openbsd.org/cgi-bin/man.cgi? ... ormat=html

代码: 全选

      63 ENAMETOOLONG File name too long. A component of a path name exceeded
             255 (MAXNAMLEN) characters, or an entire path name exceeded 1023
             (MAXPATHLEN-1) characters. 

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-20 16:43

leo 写了:有点跑题:
如果没有中文字符,那么地址显得好怪呀,程序的编码设置肯定没有问题吗?或者SEO优化什么的?
地址是比较奇怪。90%可能是因为所使用的程序为保护他们的代码而故意搞的(它的PHP源码都是经过加密的)。

我现在的估计是这个错误和apache的rewrite模块有关。一直没招到有效的解决办法。我现在准备用nginx换掉apache,反正nginx以后要进入base,用它的机会会越来越多。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-20 16:53

ISO编码的rewrite 程序有时会自“自作聪明”地将文章标题做SEO处理并包含在地址里,如果你的标题是中文的,会变成类似这样奇怪的地址,vbulletin的论坛程序的SEO插件VBSEO默认的处理方式就是这样的,这种方式处理英文标题的文章可以提升排名,但是对中文来说恰恰起了反作用(ISO编码的中文),所以discuz和phpwind都不用这种方式rewrite, 只用编号+html的方式。实际上原程序只要做一下UTF-8编码处理野问题不大。——也就是用UTF-8编码输出链接地址,但是不清楚对搜索引擎排名的影响的实际效果了。

还有一个办法,在程序里禁用rewrite, 等找好方案后再使用不迟。

此外,感觉如果需要和PHP配合,NGINX可能还差一些,至少目前在OpenBSD平台上,前几天在当前测试NGINX时出现了论坛后台程序无法执行的问题,换成apache 1.3或者apache2后则没有问题。而且apache和nginx这两者的rewrite代码还不一样,所以更换要留心。

PHP代码加密网上有破解的程序,我的理解需要从程序下手,感觉不是apache的事情。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-21 13:34

leo 写了: 还有一个办法,在程序里禁用rewrite, 等找好方案后再使用不迟。
rewrite是必须的。禁用后程序就完全不能运行了。
leo 写了: 此外,感觉如果需要和PHP配合,NGINX可能还差一些,至少目前在OpenBSD平台上
这可是个坏消息。我对NGINX期望还是比较高的
leo 写了: 而且apache和nginx这两者的rewrite代码还不一样,所以更换要留心。
这两天就在学习nginx的rewrite,昨天重写的rewrite基本可以工作了,但是还有提高的空间。
leo 写了: PHP代码加密网上有破解的程序,我的理解需要从程序下手,感觉不是apache的事情。
也懒得再折腾程序了,实在是时间有限。本来这个程序是在ubuntu+Apache2上的,运行正常。但我把它装到OB上后出现了上述问题。等折腾好了NGINX,再试试OB+Apache2,我觉得有可能是和apache1.3有关

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-23 16:05

nginx+php_fpm 上不会出现这样的错误。接下来试一下apache2.还是觉得和rewrite模块有关。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-26 14:04

看来暂时没有其他的朋友碰到这个问题,但我还是更新一下帖子,留个记录吧,说不定以后自己也会再用到:

我测试了一下OpenBSD上的apache2,默认配置还是会碰到这个问题。

根据下面这个链接,问题的根本原因在于apache把这个URI当作常规文件来处理,而没有把它传给rewrite模块进行处理。从而出现了403错误。

https://issues.apache.org/bugzilla/show ... i?id=45187

不知道ubuntu上的httpd (2.2.17)是如何解决这个问题的。OpenBSD上httpd2的版本是2.2.20却依然出现这个问题。

同样根据上面这个链接中的讨论,apache有些模块可以绕过文件检查(mod_jk,但我没找到这个模块),如果找不到相应的模块的话,要再看看能不能从ubuntu上借用它的httpd的源码来编译一下。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-26 14:53

另外,目前程序跑在nginx+php_fpm上,对于php程序,感觉确实不如apache+php来的稳定。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-28 15:43

我想我发现了问题的根本原因:这个是系统PATH_MAX参数的差别引起的。

Linux上:
include/linux/limits.h, line 12
4 #define NR_OPEN 1024

6 #define NGROUPS_MAX 65536 /* supplemental group IDs are available */
7 #define ARG_MAX 131072 /* # bytes of args + environ for exec() */
8 #define LINK_MAX 127 /* # links a file may have */
9 #define MAX_CANON 255 /* size of the canonical input queue */
10 #define MAX_INPUT 255 /* size of the type-ahead buffer */
11 #define NAME_MAX 255 /* # chars in a file name */
12 #define PATH_MAX 4096 /* # chars in a path name including nul */
13 #define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */
14 #define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */
15 #define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */
16 #define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */
而OpenBSD上:
sys/syslimits.h, line 46
38 #define ARG_MAX (256 * 1024) /* max bytes for an exec function */
39 #define CHILD_MAX 80 /* max simultaneous processes */
40 #define LINK_MAX 32767 /* max file link count */
41 #define MAX_CANON 255 /* max bytes in term canon input line */
42 #define MAX_INPUT 255 /* max bytes in terminal input */
43 #define NAME_MAX 255 /* max bytes in a file name */
44 #define NGROUPS_MAX 16 /* max supplemental group id's */
45 #define OPEN_MAX 64 /* max open files per process */
46 #define PATH_MAX 1024 /* max bytes in pathname */
47 #define PIPE_BUF 512 /* max bytes for atomic pipe writes */
48 #define SYMLINK_MAX PATH_MAX /* max bytes in a symbolic link */
49 #define SYMLOOP_MAX 32 /* max symlinks per path (for loops) */
50
51 #define BC_BASE_MAX INT_MAX /* max ibase/obase values in bc(1) */
52 #define BC_DIM_MAX 65535 /* max array elements in bc(1) */
53 #define BC_SCALE_MAX INT_MAX /* max scale value in bc(1) */
54 #define BC_STRING_MAX INT_MAX /* max const string length in bc(1) */
而我的程序的URL确实超过了1024字节。看来要自己编译内核才能解决问题了。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-29 0:09

希望不影响其它的地方——别牵一发而动全身,那就复杂了,不知道ubuntu内核代码的其它地方有没有做相应的修正,但愿这个参数的修改只涉及文件路径长度不牵扯别的问题。

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-29 10:25

目前还不清楚改动这个参数对系统整体的影响。我会先在虚拟机里测试一下。但是昨天编译内核的时候失败(PF相关代码)。还要再解决这个编译的问题。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-30 7:28

acheng 写了:目前还不清楚改动这个参数对系统整体的影响。我会先在虚拟机里测试一下。但是昨天编译内核的时候失败(PF相关代码)。还要再解决这个编译的问题。
我记着以前在网上肯定看到过这个参数定义还和其它的参数有关系,时间长了,一时找不到了,在官网的搜索只找到了:
http://www.openbsd.org/plus49.html
里提到的:
Put a limit on fnmatch(3) recursion during matching, and reject input of size greater or equal PATH_MAX
如果没用请无视。

代码: 全选

# grep "PATH_MAX" /usr/src -r > PATH_MAX_JR
# cat PATH_MAX_JR
/usr/src/bin/ed/ed.h:# define MAXPATHLEN 255		/* _POSIX_PATH_MAX */
/usr/src/bin/ksh/sh.h:#define	PATH	1024		/* pathname size (todo: PATH_MAX/pathconf()) */
/usr/src/gnu/egcs/gcc/ChangeLog.lib:	* pathmax.h: Fix typo: HAVE_SYS_PATH_MAX_H -> HAVE_SYS_PARAM_H.
/usr/src/gnu/egcs/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/gnu/egcs/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/gnu/egcs/gcc/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/egcs/gcc/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/gnu/lib/libiberty/src/ChangeLog:	to find a MAXPATHLEN or PATH_MAX value from somewhere.
/usr/src/gnu/lib/libiberty/src/lrealpath.c:# if defined (PATH_MAX)
/usr/src/gnu/lib/libiberty/src/lrealpath.c:#  define REALPATH_LIMIT PATH_MAX
/usr/src/gnu/lib/libiberty/src/lrealpath.c:     though, some systems do not limit PATH_MAX (return -1 for
/usr/src/gnu/lib/libiberty/src/lrealpath.c:    long path_max = pathconf ("/", _PC_PATH_MAX);
/usr/src/gnu/lib/libiberty/src/lrealpath.c:	/* PATH_MAX is bounded.  */
/usr/src/gnu/lib/libreadline/examples/rlfe.c:#ifndef PATH_MAX
/usr/src/gnu/lib/libreadline/examples/rlfe.c:#  define PATH_MAX 1024
/usr/src/gnu/lib/libreadline/examples/rlfe.c:  static char procfsbuf[PATH_MAX] = { '\0' };
/usr/src/gnu/lib/libreadline/examples/rlfe.c:  char *ldirname, cwd[PATH_MAX], *retdir, *ld;
/usr/src/gnu/usr.bin/binutils/gdb/ChangeLog-2001:	(gdbtk_test): Use PATH_MAX for home var calculation.
/usr/src/gnu/usr.bin/binutils/gdb/ChangeLog-2002:	(gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:static char nto_procfs_path[PATH_MAX] = { "/proc" };
/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  snprintf (nto_procfs_path, PATH_MAX - 1, "%s%s", nodestr ? nodestr : "", "/proc");
/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:    char buff[_POSIX_PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  char path[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  snprintf (path, PATH_MAX - 1, "%s/%d/as", nto_procfs_path, PIDGET (ptid));
/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  static char buf[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  char *buf, arch_path[PATH_MAX], *nto_root, *endian;
/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  char buf[PATH_MAX * 2], arch_path[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gdb/remote-fileio.c:		  char oldfullpath[PATH_MAX + 1];
/usr/src/gnu/usr.bin/binutils/gdb/remote-fileio.c:		  char newfullpath[PATH_MAX + 1];
/usr/src/gnu/usr.bin/binutils/gdb/solib-osf.c:      target_read_string (lms->nameaddr, &name, PATH_MAX, &errcode);
/usr/src/gnu/usr.bin/binutils/gdb/solib-osf.c:  target_read_string (minf.module_name, &name, PATH_MAX, &errcode);
/usr/src/gnu/usr.bin/binutils/gdb/utils.c:# if defined (PATH_MAX)
/usr/src/gnu/usr.bin/binutils/gdb/utils.c:    char buf[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gdb/utils.c:     though, some systems do not limit PATH_MAX (return -1 for
/usr/src/gnu/usr.bin/binutils/gdb/utils.c:    long path_max = pathconf ("/", _PC_PATH_MAX);
/usr/src/gnu/usr.bin/binutils/gdb/utils.c:	/* PATH_MAX is bounded.  */
/usr/src/gnu/usr.bin/binutils/gdb/gdbserver/linux-low.c:  char filename[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gprof/ChangeLog-9203:	* basic_blocks.c (PATH_MAX): if undefined, define as 1024.
/usr/src/gnu/usr.bin/binutils/gprof/corefile.c:  prev_name_len = PATH_MAX;
/usr/src/gnu/usr.bin/binutils/gprof/corefile.c:  prev_filename_len = PATH_MAX;
/usr/src/gnu/usr.bin/binutils/gprof/gprof.h:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/binutils/gprof/gprof.h:#define PATH_MAX	1024
/usr/src/gnu/usr.bin/binutils/gprof/source.c:  char fname[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/gprof/utils.c:  char buf[PATH_MAX];
/usr/src/gnu/usr.bin/binutils/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:/* for PATH_MAX */
/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:#ifdef PATH_MAX
/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:# define LD_PATHMAX PATH_MAX
/usr/src/gnu/usr.bin/cvs/HACKING:Do not use arbitrary limits (such as PATH_MAX) except perhaps when the
/usr/src/gnu/usr.bin/cvs/emx/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	* system.h: Check for PATHSIZE before falling back to _POSIX_PATH_MAX.
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	change unnecessary, so backed that one out.  Never define PATH_MAX
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	PATH_MAX is used to set array sizes.
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	* system.h: don't touch PATH_MAX or MAXPATHLEN if *both* of them
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	* system.h: don't set PATH_MAX to pathconf(), since PATH_MAX is
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	  the MAXPATHLEN and PATH_MAX tests (from Brad Figg
/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	* system.h: only #undef PATH_MAX if not on an Alpha.  The #undef
/usr/src/gnu/usr.bin/cvs/lib/system.h:**  MAXPATHLEN and PATH_MAX
/usr/src/gnu/usr.bin/cvs/lib/system.h:**     those that this is not true, again most define PATH_MAX in limits.h
/usr/src/gnu/usr.bin/cvs/lib/system.h:**     remaining systems that neither statement is true, _POSIX_PATH_MAX 
/usr/src/gnu/usr.bin/cvs/lib/system.h:**         1. If PATH_MAX is defined just use it.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**         2. If MAXPATHLEN is defined but not PATH_MAX, then define
/usr/src/gnu/usr.bin/cvs/lib/system.h:**            PATH_MAX in terms of MAXPATHLEN.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**            PATH_MAX again.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**         3.1 If we now have PATHSIZE, define PATH_MAX in terms of that.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**             and ignore the rest.  Since _POSIX_PATH_MAX (checked for
/usr/src/gnu/usr.bin/cvs/lib/system.h:**             trust _POSIX_PATH_MAX, several of our buffers are too small.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**         4. If PATH_MAX is still not defined but _POSIX_PATH_MAX is,
/usr/src/gnu/usr.bin/cvs/lib/system.h:**            then define PATH_MAX in terms of _POSIX_PATH_MAX.
/usr/src/gnu/usr.bin/cvs/lib/system.h:**         5. And if even _POSIX_PATH_MAX doesn't exist just put in
/usr/src/gnu/usr.bin/cvs/lib/system.h:#ifndef PATH_MAX  
/usr/src/gnu/usr.bin/cvs/lib/system.h:#    define PATH_MAX                 MAXPATHLEN
/usr/src/gnu/usr.bin/cvs/lib/system.h:#    ifndef PATH_MAX
/usr/src/gnu/usr.bin/cvs/lib/system.h:#         define PATH_MAX               PATHSIZE
/usr/src/gnu/usr.bin/cvs/lib/system.h:#        ifdef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/cvs/lib/system.h:#          define PATH_MAX             _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/cvs/lib/system.h:#          define PATH_MAX             1024
/usr/src/gnu/usr.bin/cvs/lib/system.h:#        endif  /* no _POSIX_PATH_MAX */
/usr/src/gnu/usr.bin/cvs/lib/system.h:#    endif /* no PATH_MAX   */
/usr/src/gnu/usr.bin/cvs/lib/system.h:#endif  /* PATH_MAX   */
/usr/src/gnu/usr.bin/cvs/lib/xgetwd.c:  path_max = (unsigned) PATH_MAX;
/usr/src/gnu/usr.bin/cvs/os2/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-9194:	* cvs.h: wrap definition of PATH_MAX in #ifndef PATH_MAX/#endif
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-9395:	* checkout.c (safe_location): Use PATH_MAX not MAXPATHLEN.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-96:	create_adm.c: Nuke more PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-96:	of PATH_MAX.  Many more such limits surely remain.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	wrapper.c: Nuke PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* cvs.h: Adjust comment to reflect the fact that PATH_MAX is
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	(assuming it meant things like PATH_MAX and earlier, already
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* patch.c, recurse.c, release.c, remove.c, repos.c: Nuke PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* modules.c (do_module): Fix typo in 30 Jan 97 PATH_MAX nuking
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	(fixes thinko in PATH_MAX nuking of 30 Jan 97).
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	Nuke more PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	needed.  Nuke PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* import.c, lock.c: Nuke more PATH_MAX.
/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	ignore.c, history.c: Nuke PATH_MAX arbitrary limits.
/usr/src/gnu/usr.bin/cvs/src/checkout.c:    char hardpath[PATH_MAX+5];
/usr/src/gnu/usr.bin/cvs/src/cvs.h:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/cvs/src/cvs.h:#define	PATH_MAX MAXPATHLEN+2
/usr/src/gnu/usr.bin/cvs/src/cvs.h:#define	PATH_MAX 1024+2
/usr/src/gnu/usr.bin/cvs/src/cvs.h:#endif /* PATH_MAX */
/usr/src/gnu/usr.bin/cvs/src/server.c:    if (getline_safe (&tmp, &tmp_allocated, stdin, PATH_MAX) < 0)
/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&repository, &repository_allocated, stdin, PATH_MAX);
/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&username, &username_allocated, stdin, PATH_MAX);
/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&password, &password_allocated, stdin, PATH_MAX);
/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&tmp, &tmp_allocated, stdin, PATH_MAX);
/usr/src/gnu/usr.bin/cvs/src/subr.c:   (CVS used to allocate arrays of, say, 3000, PATH_MAX (8192, often),
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char from[PATH_MAX], to[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char fname[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char from[PATH_MAX], to[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char f[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char f[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char file1[PATH_MAX], file2[PATH_MAX];
/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:static char CurWorkingDir[PATH_MAX+1];
/usr/src/gnu/usr.bin/cvs/windows-NT/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/gnu/usr.bin/gcc/gcc/ChangeLog.lib:	* pathmax.h: Fix typo: HAVE_SYS_PATH_MAX_H -> HAVE_SYS_PARAM_H.
/usr/src/gnu/usr.bin/gcc/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/gnu/usr.bin/gcc/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/gnu/usr.bin/gcc/gcc/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/gnu/usr.bin/lynx/WWW/Library/Implementation/www_tcp.h:#ifdef PATH_MAX
/usr/src/gnu/usr.bin/lynx/WWW/Library/Implementation/www_tcp.h:#define HT_MAX_PATH PATH_MAX
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_beos.xs:    path = malloc(PATH_MAX);
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_beos.xs:      getcwd(path, PATH_MAX);
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs:    char pathbuf[PATH_MAX + 2];
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs:	if (getcwd(pathbuf, PATH_MAX - strlen(filename))) {
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:  char  filename[PATH_MAX + 3];
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:    char                buf[PATH_MAX + 3];
/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:    char      symname[PATH_MAX + 3];
/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:      PARENB PARMRK PARODD PATH_MAX PIPE_BUF RAND_MAX R_OK SCHAR_MAX
/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:      _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX _PC_PIPE_BUF _PC_VDISABLE
/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:              _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		_POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		_PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:	$path_max = POSIX::fpathconf( $fd, &POSIX::_PC_PATH_MAX );
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:	$path_max = POSIX::pathconf( "/var", &POSIX::_PC_PATH_MAX );
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:_PC_CHOWN_RESTRICTED _PC_LINK_MAX _PC_MAX_CANON _PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX _PC_PIPE_BUF _PC_VDISABLE
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:_POSIX_ARG_MAX _POSIX_CHILD_MAX _POSIX_CHOWN_RESTRICTED _POSIX_JOB_CONTROL _POSIX_LINK_MAX _POSIX_MAX_CANON _POSIX_MAX_INPUT _POSIX_NAME_MAX _POSIX_NGROUPS_MAX _POSIX_NO_TRUNC _POSIX_OPEN_MAX _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SAVED_IDS _POSIX_SSIZE_MAX _POSIX_STREAM_MAX _POSIX_TZNAME_MAX _POSIX_VDISABLE _POSIX_VERSION
/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:ARG_MAX CHAR_BIT CHAR_MAX CHAR_MIN CHILD_MAX INT_MAX INT_MIN LINK_MAX LONG_MAX LONG_MIN MAX_CANON MAX_INPUT MB_LEN_MAX NAME_MAX NGROUPS_MAX OPEN_MAX PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN SSIZE_MAX STREAM_MAX TZNAME_MAX UCHAR_MAX UINT_MAX ULONG_MAX USHRT_MAX
/usr/src/gnu/usr.bin/perl/ext/POSIX/t/sysconf.t:    _PC_NO_TRUNC _PC_PATH_MAX
/usr/src/gnu/usr.bin/perl/ext/File-Glob/bsd_glob.c:#  ifdef PATH_MAX
/usr/src/gnu/usr.bin/perl/ext/File-Glob/bsd_glob.c:#    define	MAXPATHLEN	PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#  ifdef PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#    ifdef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#       if PATH_MAX > _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:/* POSIX 1990 (and pre) was ambiguous about whether PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h: * all explicitly include the null byte in the PATH_MAX.
/usr/src/gnu/usr.bin/perl/perl.h: * Ditto for _POSIX_PATH_MAX. */
/usr/src/gnu/usr.bin/perl/perl.h:#         define MAXPATHLEN PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#         define MAXPATHLEN _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#      define MAXPATHLEN (PATH_MAX+1)
/usr/src/gnu/usr.bin/perl/perl.h:#    ifdef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/perl/perl.h:#       define MAXPATHLEN _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:        char tmp[PATH_MAX+2];
/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:        if (getcwd (tmp,PATH_MAX+1)!=NULL)
/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:    static char expp[PATH_MAX];
/usr/src/gnu/usr.bin/texinfo/ChangeLog:	filename as it is already PATH_MAX bytes.  Added a check so we don't
/usr/src/gnu/usr.bin/texinfo/ChangeLog:	cross PATH_MAX boundary while expanding not-isalnum to hex values.
/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:# define PATH_MAX 512
/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:  char cwd[PATH_MAX + 1];
/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:	  if (!getcwd (cwd, PATH_MAX)) /* should never happen */
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/gnu/usr.bin/texinfo/lib/system.h:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/texinfo/lib/system.h:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/texinfo/lib/system.h:# define _POSIX_PATH_MAX 255
/usr/src/gnu/usr.bin/texinfo/lib/system.h:#define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/texinfo/makeinfo/files.c:  char orig[PATH_MAX + 1];
/usr/src/gnu/usr.bin/texinfo/makeinfo/files.c:    maxlen = PATH_MAX;
/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:      if (strlen (filename) >= PATH_MAX - 20)
/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:  char dirname[PATH_MAX];
/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:      filename = xmalloc (PATH_MAX);
/usr/src/gnu/usr.bin/texinfo/makeinfo/makeinfo.c:  char buf[PATH_MAX];
/usr/src/gnu/usr.bin/texinfo/makeinfo/node.c:	  char filename[PATH_MAX];
/usr/src/gnu/usr.bin/texinfo/makeinfo/node.c:	      char filename[PATH_MAX];
/usr/src/gnu/usr.bin/binutils-2.17/gprof/ChangeLog-9203:	* basic_blocks.c (PATH_MAX): if undefined, define as 1024.
/usr/src/gnu/usr.bin/binutils-2.17/gprof/corefile.c:  prev_name_len = PATH_MAX;
/usr/src/gnu/usr.bin/binutils-2.17/gprof/corefile.c:  prev_filename_len = PATH_MAX;
/usr/src/gnu/usr.bin/binutils-2.17/gprof/gprof.h:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/binutils-2.17/gprof/gprof.h:#define PATH_MAX	1024
/usr/src/gnu/usr.bin/binutils-2.17/gprof/source.c:  char fname[PATH_MAX];
/usr/src/gnu/usr.bin/binutils-2.17/gprof/utils.c:  char buf[PATH_MAX];
/usr/src/gnu/usr.bin/binutils-2.17/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:/* for PATH_MAX */
/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:#ifdef PATH_MAX
/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:# define LD_PATHMAX PATH_MAX
/usr/src/gnu/usr.sbin/sendmail/include/sm/conf.h:#  define MAXPATHLEN	PATH_MAX
/usr/src/gnu/usr.sbin/sendmail/include/sm/conf.h:#  define MAXPATHLEN	PATH_MAX
/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:**  PATH_MAX is defined by the POSIX standard.  All modern systems
/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:# ifndef PATH_MAX
/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:#   define PATH_MAX	MAXPATHLEN
/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:#   define PATH_MAX	2048
/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:# endif /* ! PATH_MAX */
/usr/src/gnu/usr.sbin/sendmail/include/sm/mbdb.h:	char	mbdb_homedir[PATH_MAX];
/usr/src/gnu/usr.sbin/sendmail/include/sm/mbdb.h:	char	mbdb_shell[PATH_MAX];
/usr/src/gnu/usr.sbin/sendmail/libsm/io.html:	char path[PATH_MAX];
/usr/src/gnu/usr.sbin/sendmail/libsm/io.html:	sm_io_snprintf(path, PATH_MAX, "%s/%s", pw->pw_dir, info);
/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char myprogram[PATH_MAX + 2];
/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char path[PATH_MAX + 1];
/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char cwd_buf[PATH_MAX + 1];
/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:		if ((cwd = getcwd(cwd_buf, PATH_MAX + 1)) == NULL)
/usr/src/gnu/gcc/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/gnu/gcc/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/gnu/gcc/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/gnu/gcc/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/gnu/gcc/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/gnu/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/gnu/gcc/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/gnu/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/gnu/gcc/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/gnu/gcc/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/include/limits.h:#define	_POSIX_PATH_MAX		256
/usr/src/include/stdio.h:#define	FILENAME_MAX	1024	/* must be <= PATH_MAX <sys/syslimits.h> */
/usr/src/include/stdio.h:#define	L_tmpnam	1024	/* XXX must be == PATH_MAX */
/usr/src/include/stdio.h:#define	L_ctermid	1024	/* size for ctermid(); PATH_MAX */
/usr/src/kerberosV/src/lib/roken/getcap.c:	    char pbuf[_POSIX_PATH_MAX];
/usr/src/kerberosV/src/lib/sl/slc-gram.y:char cname[PATH_MAX];
/usr/src/kerberosV/src/lib/sl/slc-gram.y:char hname[PATH_MAX];
/usr/src/lib/libc/gen/fnmatch.c:    if (strnlen(pattern, PATH_MAX) == PATH_MAX ||
/usr/src/lib/libc/gen/fnmatch.c:        strnlen(string, PATH_MAX) == PATH_MAX)
/usr/src/lib/libc/gen/getcap.c:	char pbuf[PATH_MAX];
/usr/src/lib/libc/gen/glob.c:	if (strnlen(pattern, PATH_MAX) == PATH_MAX)
/usr/src/lib/libc/gen/statvfs.3:.Dv {PATH_MAX}
/usr/src/lib/libc/gmon/gmon.c:	char  buf[PATH_MAX];
/usr/src/lib/libc/locale/setlocale.c:	char name[PATH_MAX];
/usr/src/lib/libc/locale/setrunelocale.c:	char path[PATH_MAX];
/usr/src/lib/libc/locale/setrunelocale.c:	char path[PATH_MAX];
/usr/src/lib/libc/nls/catopen.c:	char tmppath[PATH_MAX];
/usr/src/lib/libc/nls/catopen.c:					while (*u && t < tmppath + PATH_MAX-1)
/usr/src/lib/libc/nls/catopen.c:					while (*u && t < tmppath + PATH_MAX-1)
/usr/src/lib/libc/nls/catopen.c:					if (t < tmppath + PATH_MAX-1)
/usr/src/lib/libc/nls/catopen.c:				if (t < tmppath + PATH_MAX-1)
/usr/src/lib/libc/stdlib/realpath.3:.Dv PATH_MAX
/usr/src/lib/libc/stdlib/realpath.c: * char *realpath(const char *path, char resolved[PATH_MAX]);
/usr/src/lib/libc/stdlib/realpath.c:	char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX];
/usr/src/lib/libc/stdlib/realpath.c:		resolved = malloc(PATH_MAX);
/usr/src/lib/libc/stdlib/realpath.c:		if (getcwd(resolved, PATH_MAX) == NULL) {
/usr/src/lib/libc/stdlib/realpath.c:				strlcpy(resolved, ".", PATH_MAX);
/usr/src/lib/libc/stdlib/realpath.c:	if (left_len >= sizeof(left) || resolved_len >= PATH_MAX) {
/usr/src/lib/libc/stdlib/realpath.c:			if (resolved_len + 1 >= PATH_MAX) {
/usr/src/lib/libc/stdlib/realpath.c:		resolved_len = strlcat(resolved, next_token, PATH_MAX);
/usr/src/lib/libc/stdlib/realpath.c:		if (resolved_len >= PATH_MAX) {
/usr/src/lib/libc/sys/access.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/acct.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/bind.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/chdir.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/chflags.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/chmod.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/chown.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/chroot.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/connect.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/execve.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/getfh.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/link.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/mkdir.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/mkfifo.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/mknod.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/mount.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/open.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/pathconf.2:.It Dv _PC_PATH_MAX
/usr/src/lib/libc/sys/quotactl.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/readlink.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/rename.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/rmdir.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/stat.2:.Dv PATH_MAX
/usr/src/lib/libc/sys/statfs.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/swapctl.2:.Dv PATH_MAX
/usr/src/lib/libc/sys/utimes.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/symlink.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/truncate.2:.Dv {PATH_MAX}
/usr/src/lib/libc/sys/unlink.2:.Dv {PATH_MAX}
/usr/src/lib/libcurses/curses.priv.h:#ifndef PATH_MAX
/usr/src/lib/libcurses/curses.priv.h:# if defined(_POSIX_PATH_MAX)
/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX _POSIX_PATH_MAX
/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX MAXPATHLEN
/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX 255	/* the Posix minimum path-size */
/usr/src/lib/libcurses/curses.priv.h:	char		trace_fname[PATH_MAX];
/usr/src/lib/libcurses/tic.h:#define MAX_ALIAS	32	/* smaller than POSIX minimum for PATH_MAX */
/usr/src/lib/libcurses/tinfo/access.c:	    && strlen(path) < PATH_MAX) {
/usr/src/lib/libcurses/tinfo/access.c:	    char *leaf, head[PATH_MAX];
/usr/src/lib/libcurses/tinfo/comp_parse.c:		char filename[PATH_MAX];
/usr/src/lib/libcurses/tinfo/lib_setup.c:    char filename[PATH_MAX];
/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char   envterm[PATH_MAX];		/* local copy of $TERMINFO */
/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char   hometerm[PATH_MAX];		/* local copy of $HOME/.terminfo */
/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:	    (void)strlcpy(filename, *fname, PATH_MAX);
/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char path[PATH_MAX];		/* path to terminfo.db */
/usr/src/lib/libcurses/tinfo/read_entry.c:    snprintf(filename, PATH_MAX, "%s", name);
/usr/src/lib/libcurses/tinfo/read_entry.c:	    code = _nc_read_tic_entry(filename, PATH_MAX, path, name, tp);
/usr/src/lib/libcurses/tinfo/read_entry.c:	    snprintf(filename, PATH_MAX, "%s", _nc_get_source());
/usr/src/lib/libcurses/tinfo/read_termcap.c:	char temp[PATH_MAX];
/usr/src/lib/libcurses/tinfo/read_termcap.c:    char cwd_buf[PATH_MAX];
/usr/src/lib/libcurses/tinfo/read_termcap.c:    char pathbuf[PATH_MAX];
/usr/src/lib/libcurses/tinfo/read_termcap.c:	char envhome[PATH_MAX], *h;
/usr/src/lib/libcurses/tinfo/read_termcap.c:	    && (strlen(h) + sizeof(PRIVATE_CAP)) < PATH_MAX) {
/usr/src/lib/libcurses/tinfo/write_entry.c:    char fullpath[PATH_MAX];
/usr/src/lib/libcurses/tinfo/write_entry.c:    char actual[PATH_MAX];
/usr/src/lib/libcurses/tinfo/write_entry.c:    char filename[PATH_MAX];
/usr/src/lib/libcurses/tinfo/write_entry.c:    char linkname[PATH_MAX];
/usr/src/lib/libcurses/tinfo/write_entry.c:    char symlinkname[PATH_MAX];
/usr/src/lib/libcurses/tty/lib_mvcur.c:static char tname[PATH_MAX];
/usr/src/lib/libedit/readline.c:	static char path[PATH_MAX];
/usr/src/lib/libedit/readline.c:	strlcpy(path, p->pw_dir, PATH_MAX);
/usr/src/lib/libedit/readline.c:	strlcat(path, _dothistory, PATH_MAX);
/usr/src/lib/libskey/skeylogin.c:	char *cp, filename[PATH_MAX], *last;
/usr/src/lib/libsndio/aucat.c:	char buf[PATH_MAX], tmp[PATH_MAX], *path;
/usr/src/lib/libsndio/aucat.c:		snprintf(buf, PATH_MAX, "%s/.aucat_cookie", path);
/usr/src/lib/libsndio/aucat.c:	if (strlcpy(tmp, path, PATH_MAX) >= PATH_MAX ||
/usr/src/lib/libsndio/aucat.c:	    strlcat(tmp, ".XXXXXXXX", PATH_MAX) >= PATH_MAX) {
/usr/src/lib/libsndio/mio_rmidi.c:	char path[PATH_MAX];
/usr/src/lib/libsndio/sio_sun.c:	char path[PATH_MAX];
/usr/src/lib/libssl/src/crypto/LPdir_unix.c:   is NAME_MAX.  However, some operating systems use PATH_MAX instead.
/usr/src/lib/libssl/src/crypto/LPdir_unix.c:   Therefore, it seems natural to first check for PATH_MAX and use that,
/usr/src/lib/libssl/src/crypto/LPdir_unix.c:#if defined(PATH_MAX)
/usr/src/lib/libssl/src/crypto/LPdir_unix.c:# define LP_ENTRY_SIZE PATH_MAX
/usr/src/lib/libssl/src/crypto/LPdir_unix.c:/* Of course, there's the possibility that neither PATH_MAX nor NAME_MAX
/usr/src/lib/libssl/src/engines/ccgost/gostsum.c:		char inhash[65],calcsum[65],filename[PATH_MAX];
/usr/src/lib/libssl/src/engines/ccgost/gostsum.c:	i=strlen(fgets(filename,PATH_MAX,f));
/usr/src/lib/libutil/login_fbtab.c:	char	buf[PATH_MAX];
/usr/src/lib/libutil/opendev.c:	static char namebuf[PATH_MAX];
/usr/src/libexec/ld.so/library_subr.c:	char *hint, lp[PATH_MAX + 10], *path;
/usr/src/libexec/ld.so/library_subr.c:			while (path < lp + PATH_MAX &&
/usr/src/libexec/ld.so/library_subr.c:		while (path < lp + PATH_MAX && *pp && *pp != ':' && *pp != ';')
/usr/src/libexec/ld.so/ldconfig/library.c:	char *hint, lp[PATH_MAX + 10], *path;
/usr/src/libexec/ld.so/ldconfig/library.c:			while (path < lp + PATH_MAX &&
/usr/src/libexec/ld.so/ldconfig/library.c:		while (path < lp + PATH_MAX && *pp && *pp != ':' && *pp != ';')
/usr/src/libexec/rpc.rusersd/rusers_proc.c:	char devname[PATH_MAX];
/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/regress/sys/copy/copy.c:	char path[PATH_MAX + 1];
/usr/src/regress/sys/copy/copy.c:	for (i = 0; i < PATH_MAX; i++)
/usr/src/regress/sys/copy/copy.c:	path[PATH_MAX] = '\0';
/usr/src/sbin/fsck_ffs/setup.c:	if (strncmp(dev, realdev, PATH_MAX) != 0) {
/usr/src/sbin/fsck_ffs/setup.c:		if (strncmp(dev, realdev, PATH_MAX) != 0)
/usr/src/sbin/fsck_msdos/check.c:		if (strncmp(fname, realdev, PATH_MAX) != 0)
/usr/src/sbin/isakmpd/x509.c:	char		fullname[PATH_MAX];
/usr/src/sbin/isakmpd/x509.c:	char		file[PATH_MAX];
/usr/src/sbin/isakmpd/x509.c:	char		fullname[PATH_MAX];
/usr/src/sbin/isakmpd/x509.c:	char		file[PATH_MAX];
/usr/src/sbin/isakmpd/monitor.c:	char new_path[PATH_MAX], var_run[PATH_MAX];
/usr/src/sbin/mount_vnd/mount_vnd.c:	char		 saltbuf[128], saltfilebuf[PATH_MAX];
/usr/src/sbin/ncheck_ffs/ncheck_ffs.c:char	rdisk[PATH_MAX];/* resolved name of the disk file */
/usr/src/sbin/pflogd/privsep.c:	char ren[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:	char config_filename[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:	char name[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:	char component[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:	char name[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:		snprintf(name, PATH_MAX, "/dev/raid%dc", fds[i].id);
/usr/src/sbin/raidctl/raidctl.c:			    PATH_MAX) == 0) {
/usr/src/sbin/raidctl/raidctl.c:				    PATH_MAX) == 0) {
/usr/src/sbin/raidctl/raidctl.c:	char dev_name[PATH_MAX];
/usr/src/sbin/raidctl/raidctl.c:		snprintf(dev_name, PATH_MAX, "raid%d", fds[i].id);
/usr/src/sbin/raidctl/raidctl.c:		strncpy(dev_name, "all raid", PATH_MAX);
/usr/src/sbin/raidctl/raidctl.c:		if ((devname[0] = malloc(PATH_MAX)) == NULL)
/usr/src/sbin/raidctl/raidctl.c:			strlcpy(devname[0], name, PATH_MAX);
/usr/src/sbin/raidctl/raidctl.c:				snprintf(devname[0], PATH_MAX, "%s%s%c",
/usr/src/sbin/raidctl/raidctl.c:				snprintf(devname[0], PATH_MAX, "%s%s",
/usr/src/sbin/swapctl/swapctl.c:			char *t, cmd[sizeof(PATH_MOUNT)+PATH_MAX+1+PATH_MAX+1];
/usr/src/sbin/ttyflags/ttyflags.c:	char path[PATH_MAX];
/usr/src/sbin/iked/ca.c:	char			 file[PATH_MAX];
/usr/src/usr.bin/at/at.c:	char cwd[PATH_MAX];
/usr/src/usr.bin/aucat/aucat.c:		snprintf(base, PATH_MAX, "/tmp/aucat");
/usr/src/usr.bin/aucat/aucat.c:		snprintf(base, PATH_MAX, "/tmp/aucat-%u", uid);
/usr/src/usr.bin/aucat/aucat.c:	char base[PATH_MAX], path[PATH_MAX];
/usr/src/usr.bin/aucat/aucat.c:		snprintf(path, PATH_MAX, "%s/%s%u", base, AUCAT_PATH, unit);
/usr/src/usr.bin/csplit/csplit.c:char	 currfile[PATH_MAX];	/* Current output file */
/usr/src/usr.bin/csplit/csplit.c:	if (sufflen + strlen(prefix) >= PATH_MAX)
/usr/src/usr.bin/csplit/csplit.c:	char fnbuf[PATH_MAX];
/usr/src/usr.bin/deroff/deroff.c:char fname[PATH_MAX];
/usr/src/usr.bin/getconf/getconf.c:  { "_POSIX_PATH_MAX",		CONSTANT,	_POSIX_PATH_MAX		},
/usr/src/usr.bin/getconf/getconf.c:  { "PATH_MAX",			PATHCONF,	_PC_PATH_MAX		},
/usr/src/usr.bin/infocmp/infocmp.c:typedef char path[PATH_MAX];
/usr/src/usr.bin/kdump/kdump.c:	char mode[12], timestr[PATH_MAX + 4];
/usr/src/usr.bin/less/filename.c:#define _MAX_PATH	PATH_MAX
/usr/src/usr.bin/make/arch.c:#ifndef PATH_MAX
/usr/src/usr.bin/make/arch.c:#  define PATH_MAX (MAXPATHLEN+1)
/usr/src/usr.bin/make/arch.c:#  define PATH_MAX	1024
/usr/src/usr.bin/make/arch.c:		char buffer[PATH_MAX];
/usr/src/usr.bin/make/arch.c:				if (elen <= 0 || elen >= PATH_MAX)
/usr/src/usr.bin/make/arch.c:			char ename[PATH_MAX];
/usr/src/usr.bin/make/arch.c:			if (elength <= 0 || elength >= PATH_MAX)
/usr/src/usr.bin/make/config.h:#define dogetcwd()	getcwd(emalloc(PATH_MAX), PATH_MAX)
/usr/src/usr.bin/make/main.c:#ifndef PATH_MAX
/usr/src/usr.bin/make/main.c:#  define PATH_MAX (MAXPATHLEN+1)
/usr/src/usr.bin/make/main.c:#  define PATH_MAX	1024
/usr/src/usr.bin/readlink/readlink.c:	char buf[PATH_MAX];
/usr/src/usr.bin/readlink/readlink.c:	if (n > PATH_MAX - 1) {
/usr/src/usr.bin/readlink/readlink.c:		    "readlink: filename longer than PATH_MAX-1 (%d)\n",
/usr/src/usr.bin/readlink/readlink.c:		    PATH_MAX - 1);
/usr/src/usr.bin/sed/compile.c:	char wfile[PATH_MAX], *q;
/usr/src/usr.bin/skeyinit/skeyinit.c:	char    buf[256], key[SKEY_BINKEY_SIZE], filename[PATH_MAX], *ht;
/usr/src/usr.bin/skeyinit/skeyinit.c:	char filename[PATH_MAX];
/usr/src/usr.bin/sort/sort.c:char toutpath[PATH_MAX];
/usr/src/usr.bin/sort/tmp.c:	char path[PATH_MAX];
/usr/src/usr.bin/stat/stat.c:	char buf[PATH_MAX + 4 + 1];
/usr/src/usr.bin/stat/stat.c:	char smode[12], sid[12], path[PATH_MAX + 4];
/usr/src/usr.bin/sudo/ChangeLog:	  parse.c, sudo.c, sudo.h, visudo.c: Use PATH_MAX, not MAXPATHLEN
/usr/src/usr.bin/sudo/check.c:    if (len >= PATH_MAX)
/usr/src/usr.bin/sudo/check.c:	if (len >= PATH_MAX)
/usr/src/usr.bin/sudo/check.c:	if (len >= PATH_MAX)
/usr/src/usr.bin/sudo/compat.h:#ifndef PATH_MAX
/usr/src/usr.bin/sudo/compat.h:#  define PATH_MAX		MAXPATHLEN
/usr/src/usr.bin/sudo/compat.h:#  ifdef _POSIX_PATH_MAX
/usr/src/usr.bin/sudo/compat.h:#   define PATH_MAX		_POSIX_PATH_MAX
/usr/src/usr.bin/sudo/compat.h:#   define PATH_MAX		1024
/usr/src/usr.bin/sudo/find_path.c:    static char command[PATH_MAX]; /* qualified filename */
/usr/src/usr.bin/sudo/find_path.c:    if (strlen(infile) >= PATH_MAX)
/usr/src/usr.bin/sudo/ltmain.sh:#if defined(PATH_MAX)
/usr/src/usr.bin/sudo/ltmain.sh:# define LT_PATHMAX PATH_MAX
/usr/src/usr.bin/sudo/match.c:    char buf[PATH_MAX];
/usr/src/usr.bin/sudo/match.c:	/* ignore paths > PATH_MAX (XXX - log) */
/usr/src/usr.bin/sudo/sudo.c:    if (user_cmnd == NULL && strlen(NewArgv[0]) >= PATH_MAX)
/usr/src/usr.bin/sudo/sudo.h:    char  cwd[PATH_MAX];
/usr/src/usr.bin/sudo/visudo.c:    char buf[PATH_MAX*2];		/* buffer used for copying files */
/usr/src/usr.bin/tic/progs.priv.h:#ifndef PATH_MAX
/usr/src/usr.bin/tic/progs.priv.h:# if defined(_POSIX_PATH_MAX)
/usr/src/usr.bin/tic/progs.priv.h:#  define PATH_MAX _POSIX_PATH_MAX
/usr/src/usr.bin/tic/progs.priv.h:#  define PATH_MAX MAXPATHLEN
/usr/src/usr.bin/tic/progs.priv.h:#  define PATH_MAX 255	/* the Posix minimum pathsize */
/usr/src/usr.bin/tic/tic.c:    char my_tmpname[PATH_MAX];
/usr/src/usr.bin/tip/cmds.c:	char dirname[PATH_MAX];
/usr/src/usr.bin/tip/tip.h:char	fname[PATH_MAX];	/* file name buffer for ~< */
/usr/src/usr.bin/tip/tip.h:char	copyname[PATH_MAX];	/* file name buffer for ~> */
/usr/src/usr.bin/usbhidaction/usbhidaction.c:	char devnamebuf[PATH_MAX];
/usr/src/usr.bin/usbhidctl/usbhid.c:	char devnamebuf[PATH_MAX];
/usr/src/usr.bin/xlint/lint1/scan.l:		if ((fnl = cp++ - fn) > PATH_MAX)
/usr/src/usr.bin/mandoc/mandocdb.c:	char		 pbuf[PATH_MAX],
/usr/src/usr.bin/mandoc/manpath.c:	char		 buf[PATH_MAX];
/usr/src/usr.sbin/acpidump/acpidump.c:	char		name[PATH_MAX];
/usr/src/usr.sbin/acpidump/acpidump.c:	char		name[PATH_MAX];
/usr/src/usr.sbin/bind/ltmain.sh:#if defined(PATH_MAX)
/usr/src/usr.sbin/bind/ltmain.sh:# define LT_PATHMAX PATH_MAX
/usr/src/usr.sbin/bind/lib/isc/log.c:#ifndef PATH_MAX
/usr/src/usr.sbin/bind/lib/isc/log.c:#define PATH_MAX 1024	/* AIX and others don't define this. */
/usr/src/usr.sbin/bind/lib/isc/log.c:	char current[PATH_MAX + 1];
/usr/src/usr.sbin/bind/lib/isc/log.c:	char new[PATH_MAX + 1];
/usr/src/usr.sbin/bind/lib/isc/unix/include/isc/dir.h:	 * is slightly problematic because AIX does not define PATH_MAX.
/usr/src/usr.sbin/httpd/src/ap/ap_fnmatch.c:	if (strnlen(pattern, PATH_MAX) == PATH_MAX ||
/usr/src/usr.sbin/httpd/src/ap/ap_fnmatch.c:	    strnlen(string, PATH_MAX) == PATH_MAX)
/usr/src/usr.sbin/httpd/src/support/suexec.c:#if defined(PATH_MAX)
/usr/src/usr.sbin/httpd/src/support/suexec.c:#define AP_MAXPATH PATH_MAX
/usr/src/usr.sbin/ppp/ppp/bundle.c:  char pidfile[PATH_MAX];
/usr/src/usr.sbin/ppp/ppp/bundle.c:  char pidfile[PATH_MAX];
/usr/src/usr.sbin/ppp/ppp/physical.c:  char fn[PATH_MAX];
/usr/src/usr.sbin/ppp/ppp/physical.c:  char fn[PATH_MAX];
/usr/src/usr.sbin/ppp/ppp/radius.h:    char file[PATH_MAX];	/* Radius config file */
/usr/src/usr.sbin/ppp/ppp/server.h:    char sockname[PATH_MAX];		/* Points to local socket path */
/usr/src/usr.sbin/ppp/ppp/systems.c:  char filename[PATH_MAX];
/usr/src/usr.sbin/relayd/relay.c:	char	 certfile[PATH_MAX];
/usr/src/usr.sbin/smtpd/ssl.c:	char		 certfile[PATH_MAX];
/usr/src/usr.sbin/smtpd/smtpd.h:	char cert[PATH_MAX];
/usr/src/usr.sbin/smtpd/smtpd.h:	char			 ssl_name[PATH_MAX];
/usr/src/usr.sbin/smtpd/smtpd.h:	char			 ssl_cert_name[PATH_MAX];
/usr/src/usr.sbin/smtpd/smtpd.h:	char			to[PATH_MAX];
/usr/src/usr.sbin/smtpd/delivery_maildir.c:	char	 tmp[PATH_MAX], new[PATH_MAX];
/usr/src/usr.sbin/npppd/npppd/privsep.c:	char path[PATH_MAX];
/usr/src/usr.sbin/npppd/npppd/privsep.c:	char path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 sslpath[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 passfile[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 sslcnf[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 extcnf[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 batch[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		file[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 src[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 src[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char			 path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 src[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 oname[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 src[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 dst[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 cmd[PATH_MAX * 2];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 path[PATH_MAX];
/usr/src/usr.sbin/ikectl/ikeca.c:	char		 path[PATH_MAX];
/usr/src/usr.sbin/ldapd/ldapd.h:	char			 ssl_cert_name[PATH_MAX];
/usr/src/usr.sbin/ldapd/ldapd.h:	char			 ssl_name[PATH_MAX];
/usr/src/usr.sbin/ldapd/ssl.c:	char		 certfile[PATH_MAX];
/usr/src/usr.sbin/nginx/src/os/unix/ngx_files.h:#define NGX_MAX_PATH             PATH_MAX
/usr/src/sys/arch/zaurus/stand/zboot/diskprobe.c:	static char path[PATH_MAX];
/usr/src/sys/arch/zaurus/stand/zboot/diskprobe.c:	char path[PATH_MAX];
/usr/src/sys/arch/zaurus/stand/zboot/diskprobe.c:	char path[PATH_MAX];
/usr/src/sys/arch/zaurus/stand/zboot/unixdev.c:	char	path[PATH_MAX];
/usr/src/sys/dev/diskmap.c:	devname = malloc(PATH_MAX, M_DEVBUF, M_WAITOK);
/usr/src/sys/dev/diskmap.c:	if (copyinstr(dm->device, devname, PATH_MAX, NULL))
/usr/src/sys/dev/diskmap.c:	if (disk_map(devname, devname, PATH_MAX, dm->flags) == 0)
/usr/src/sys/dev/diskmap.c:		if (copyoutstr(devname, dm->device, PATH_MAX, NULL))
/usr/src/sys/dev/ic/pdqreg.h:    PDQI_PATH_MAX_TREQ=40,
/usr/src/sys/dev/microcode/aic7xxx/aicasm_scan.l:			char fullname[PATH_MAX];
/usr/src/sys/isofs/cd9660/cd9660_vnops.c:	case _PC_PATH_MAX:
/usr/src/sys/isofs/cd9660/cd9660_vnops.c:		*ap->a_retval = PATH_MAX;
/usr/src/sys/isofs/udf/udf_vnops.c:	case _PC_PATH_MAX:
/usr/src/sys/isofs/udf/udf_vnops.c:		*ap->a_retval = PATH_MAX;
/usr/src/sys/msdosfs/msdosfs_vnops.c:	case _PC_PATH_MAX:
/usr/src/sys/msdosfs/msdosfs_vnops.c:		*ap->a_retval = PATH_MAX;
/usr/src/sys/ntfs/ntfs_vnops.c:	case _PC_PATH_MAX:
/usr/src/sys/ntfs/ntfs_vnops.c:		*ap->a_retval = PATH_MAX;
/usr/src/sys/sys/param.h:#define	MAXPATHLEN	PATH_MAX
/usr/src/sys/sys/syslimits.h:#define	PATH_MAX		 1024	/* max bytes in pathname */
/usr/src/sys/sys/syslimits.h:#define	SYMLINK_MAX	     PATH_MAX	/* max bytes in a symbolic link */
/usr/src/sys/sys/unistd.h:#define	_PC_PATH_MAX		 5
/usr/src/sys/ufs/ufs/ufs_vnops.c:	case _PC_PATH_MAX:
/usr/src/sys/ufs/ufs/ufs_vnops.c:		*ap->a_retval = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/bin/ed/ed.h:# define MAXPATHLEN 255		/* _POSIX_PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/bin/ksh/sh.h:#define	PATH	1024		/* pathname size (todo: PATH_MAX/pathconf()) */
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/ChangeLog.lib:	* pathmax.h: Fix typo: HAVE_SYS_PATH_MAX_H -> HAVE_SYS_PARAM_H.
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/egcs/gcc/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/ChangeLog:	to find a MAXPATHLEN or PATH_MAX value from somewhere.
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/lrealpath.c:# if defined (PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/lrealpath.c:#  define REALPATH_LIMIT PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/lrealpath.c:     though, some systems do not limit PATH_MAX (return -1 for
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/lrealpath.c:    long path_max = pathconf ("/", _PC_PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libiberty/src/lrealpath.c:	/* PATH_MAX is bounded.  */
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libreadline/examples/rlfe.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libreadline/examples/rlfe.c:#  define PATH_MAX 1024
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libreadline/examples/rlfe.c:  static char procfsbuf[PATH_MAX] = { '\0' };
/usr/src/PATH_MAX_JR:/usr/src/gnu/lib/libreadline/examples/rlfe.c:  char *ldirname, cwd[PATH_MAX], *retdir, *ld;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/ChangeLog-2001:	(gdbtk_test): Use PATH_MAX for home var calculation.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/ChangeLog-2002:	(gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:static char nto_procfs_path[PATH_MAX] = { "/proc" };
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  snprintf (nto_procfs_path, PATH_MAX - 1, "%s%s", nodestr ? nodestr : "", "/proc");
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:    char buff[_POSIX_PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-procfs.c:  snprintf (path, PATH_MAX - 1, "%s/%d/as", nto_procfs_path, PIDGET (ptid));
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  static char buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  char *buf, arch_path[PATH_MAX], *nto_root, *endian;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/nto-tdep.c:  char buf[PATH_MAX * 2], arch_path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/remote-fileio.c:		  char oldfullpath[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/remote-fileio.c:		  char newfullpath[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/solib-osf.c:      target_read_string (lms->nameaddr, &name, PATH_MAX, &errcode);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/solib-osf.c:  target_read_string (minf.module_name, &name, PATH_MAX, &errcode);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/utils.c:# if defined (PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/utils.c:    char buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/utils.c:     though, some systems do not limit PATH_MAX (return -1 for
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/utils.c:    long path_max = pathconf ("/", _PC_PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/utils.c:	/* PATH_MAX is bounded.  */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gdb/gdbserver/linux-low.c:  char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/ChangeLog-9203:	* basic_blocks.c (PATH_MAX): if undefined, define as 1024.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/corefile.c:  prev_name_len = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/corefile.c:  prev_filename_len = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/gprof.h:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/gprof.h:#define PATH_MAX	1024
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/source.c:  char fname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/gprof/utils.c:  char buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:/* for PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:#ifdef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils/ld/sysdep.h:# define LD_PATHMAX PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/HACKING:Do not use arbitrary limits (such as PATH_MAX) except perhaps when the
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/emx/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	* system.h: Check for PATHSIZE before falling back to _POSIX_PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	change unnecessary, so backed that one out.  Never define PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	PATH_MAX is used to set array sizes.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog:	* system.h: don't touch PATH_MAX or MAXPATHLEN if *both* of them
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	* system.h: don't set PATH_MAX to pathconf(), since PATH_MAX is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	  the MAXPATHLEN and PATH_MAX tests (from Brad Figg
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/ChangeLog.fsf:	* system.h: only #undef PATH_MAX if not on an Alpha.  The #undef
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**  MAXPATHLEN and PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**     those that this is not true, again most define PATH_MAX in limits.h
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**     remaining systems that neither statement is true, _POSIX_PATH_MAX 
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**         1. If PATH_MAX is defined just use it.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**         2. If MAXPATHLEN is defined but not PATH_MAX, then define
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**            PATH_MAX in terms of MAXPATHLEN.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**            PATH_MAX again.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**         3.1 If we now have PATHSIZE, define PATH_MAX in terms of that.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**             and ignore the rest.  Since _POSIX_PATH_MAX (checked for
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**             trust _POSIX_PATH_MAX, several of our buffers are too small.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**         4. If PATH_MAX is still not defined but _POSIX_PATH_MAX is,
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**            then define PATH_MAX in terms of _POSIX_PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:**         5. And if even _POSIX_PATH_MAX doesn't exist just put in
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#ifndef PATH_MAX  
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#    define PATH_MAX                 MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#    ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#         define PATH_MAX               PATHSIZE
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#        ifdef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#          define PATH_MAX             _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#          define PATH_MAX             1024
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#        endif  /* no _POSIX_PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#    endif /* no PATH_MAX   */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/system.h:#endif  /* PATH_MAX   */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/lib/xgetwd.c:  path_max = (unsigned) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/os2/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-9194:	* cvs.h: wrap definition of PATH_MAX in #ifndef PATH_MAX/#endif
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-9395:	* checkout.c (safe_location): Use PATH_MAX not MAXPATHLEN.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-96:	create_adm.c: Nuke more PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-96:	of PATH_MAX.  Many more such limits surely remain.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	wrapper.c: Nuke PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* cvs.h: Adjust comment to reflect the fact that PATH_MAX is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	(assuming it meant things like PATH_MAX and earlier, already
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* patch.c, recurse.c, release.c, remove.c, repos.c: Nuke PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* modules.c (do_module): Fix typo in 30 Jan 97 PATH_MAX nuking
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	(fixes thinko in PATH_MAX nuking of 30 Jan 97).
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	Nuke more PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	needed.  Nuke PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	* import.c, lock.c: Nuke more PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/ChangeLog-97:	ignore.c, history.c: Nuke PATH_MAX arbitrary limits.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/checkout.c:    char hardpath[PATH_MAX+5];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/cvs.h:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/cvs.h:#define	PATH_MAX MAXPATHLEN+2
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/cvs.h:#define	PATH_MAX 1024+2
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/cvs.h:#endif /* PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/server.c:    if (getline_safe (&tmp, &tmp_allocated, stdin, PATH_MAX) < 0)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&repository, &repository_allocated, stdin, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&username, &username_allocated, stdin, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&password, &password_allocated, stdin, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/server.c:    getline_safe (&tmp, &tmp_allocated, stdin, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/src/subr.c:   (CVS used to allocate arrays of, say, 3000, PATH_MAX (8192, often),
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char from[PATH_MAX], to[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char fname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char from[PATH_MAX], to[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char f[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char f[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:    char file1[PATH_MAX], file2[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/vms/filesubr.c:static char CurWorkingDir[PATH_MAX+1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/cvs/windows-NT/filesubr.c:    char	   buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/ChangeLog.lib:	* pathmax.h: Fix typo: HAVE_SYS_PATH_MAX_H -> HAVE_SYS_PARAM_H.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/gcc/gcc/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/lynx/WWW/Library/Implementation/www_tcp.h:#ifdef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/lynx/WWW/Library/Implementation/www_tcp.h:#define HT_MAX_PATH PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_beos.xs:    path = malloc(PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_beos.xs:      getcwd(path, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs:    char pathbuf[PATH_MAX + 2];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs:	if (getcwd(pathbuf, PATH_MAX - strlen(filename))) {
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:  char  filename[PATH_MAX + 3];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:    char                buf[PATH_MAX + 3];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/DynaLoader/dl_mpeix.xs:    char      symname[PATH_MAX + 3];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:      PARENB PARMRK PARODD PATH_MAX PIPE_BUF RAND_MAX R_OK SCHAR_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:      _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX _PC_PIPE_BUF _PC_VDISABLE
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/Makefile.PL:              _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		_POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pm:		_PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:	$path_max = POSIX::fpathconf( $fd, &POSIX::_PC_PATH_MAX );
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:	$path_max = POSIX::pathconf( "/var", &POSIX::_PC_PATH_MAX );
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:_PC_CHOWN_RESTRICTED _PC_LINK_MAX _PC_MAX_CANON _PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX _PC_PIPE_BUF _PC_VDISABLE
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:_POSIX_ARG_MAX _POSIX_CHILD_MAX _POSIX_CHOWN_RESTRICTED _POSIX_JOB_CONTROL _POSIX_LINK_MAX _POSIX_MAX_CANON _POSIX_MAX_INPUT _POSIX_NAME_MAX _POSIX_NGROUPS_MAX _POSIX_NO_TRUNC _POSIX_OPEN_MAX _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SAVED_IDS _POSIX_SSIZE_MAX _POSIX_STREAM_MAX _POSIX_TZNAME_MAX _POSIX_VDISABLE _POSIX_VERSION
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/POSIX.pod:ARG_MAX CHAR_BIT CHAR_MAX CHAR_MIN CHILD_MAX INT_MAX INT_MIN LINK_MAX LONG_MAX LONG_MIN MAX_CANON MAX_INPUT MB_LEN_MAX NAME_MAX NGROUPS_MAX OPEN_MAX PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN SSIZE_MAX STREAM_MAX TZNAME_MAX UCHAR_MAX UINT_MAX ULONG_MAX USHRT_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/POSIX/t/sysconf.t:    _PC_NO_TRUNC _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/File-Glob/bsd_glob.c:#  ifdef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/ext/File-Glob/bsd_glob.c:#    define	MAXPATHLEN	PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#  ifdef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#    ifdef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#       if PATH_MAX > _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:/* POSIX 1990 (and pre) was ambiguous about whether PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h: * all explicitly include the null byte in the PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h: * Ditto for _POSIX_PATH_MAX. */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#         define MAXPATHLEN PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#         define MAXPATHLEN _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#      define MAXPATHLEN (PATH_MAX+1)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#    ifdef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/perl.h:#       define MAXPATHLEN _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:        char tmp[PATH_MAX+2];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:        if (getcwd (tmp,PATH_MAX+1)!=NULL)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/perl/djgpp/djgpp.c:    static char expp[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/ChangeLog:	filename as it is already PATH_MAX bytes.  Added a check so we don't
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/ChangeLog:	cross PATH_MAX boundary while expanding not-isalnum to hex values.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:# define PATH_MAX 512
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:  char cwd[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/info/pcterm.c:	  if (!getcwd (cwd, PATH_MAX)) /* should never happen */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/lib/system.h:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/lib/system.h:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/lib/system.h:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/lib/system.h:#define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/files.c:  char orig[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/files.c:    maxlen = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:      if (strlen (filename) >= PATH_MAX - 20)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:  char dirname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/html.c:      filename = xmalloc (PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/makeinfo.c:  char buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/node.c:	  char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/texinfo/makeinfo/node.c:	      char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/ChangeLog-9203:	* basic_blocks.c (PATH_MAX): if undefined, define as 1024.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/corefile.c:  prev_name_len = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/corefile.c:  prev_filename_len = PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/gprof.h:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/gprof.h:#define PATH_MAX	1024
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/source.c:  char fname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/gprof/utils.c:  char buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/ChangeLog:	Include to get _PC_PATH_MAX defined on system having it.
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#if !defined(PATH_MAX) && defined(MAXPATHLEN)
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/intl/dcgettext.c:      path_max = (unsigned) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:/* for PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:#ifdef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.bin/binutils-2.17/ld/sysdep.h:# define LD_PATHMAX PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/conf.h:#  define MAXPATHLEN	PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/conf.h:#  define MAXPATHLEN	PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:**  PATH_MAX is defined by the POSIX standard.  All modern systems
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:# ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:#   define PATH_MAX	MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:#   define PATH_MAX	2048
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/limits.h:# endif /* ! PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/mbdb.h:	char	mbdb_homedir[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/include/sm/mbdb.h:	char	mbdb_shell[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/io.html:	char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/io.html:	sm_io_snprintf(path, PATH_MAX, "%s/%s", pw->pw_dir, info);
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char myprogram[PATH_MAX + 2];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char path[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:	char cwd_buf[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/gnu/usr.sbin/sendmail/libsm/mpeix.c:		if ((cwd = getcwd(cwd_buf, PATH_MAX + 1)) == NULL)
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/gcc/config/rs6000/t-beos:# PATH_MAX.
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/gcc/config/sparc/gmon-sol2.c:    char		 buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:   PATH_MAX but might cause redefinition warnings when sys/param.h is
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:#ifndef _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:# define _POSIX_PATH_MAX 255
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:#if !defined PATH_MAX && defined MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:# define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/gnu/gcc/intl/dcigettext.c:      path_max = (unsigned int) PATH_MAX;
/usr/src/PATH_MAX_JR:/usr/src/include/limits.h:#define	_POSIX_PATH_MAX		256
/usr/src/PATH_MAX_JR:/usr/src/include/stdio.h:#define	FILENAME_MAX	1024	/* must be <= PATH_MAX <sys/syslimits.h> */
/usr/src/PATH_MAX_JR:/usr/src/include/stdio.h:#define	L_tmpnam	1024	/* XXX must be == PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/include/stdio.h:#define	L_ctermid	1024	/* size for ctermid(); PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/kerberosV/src/lib/roken/getcap.c:	    char pbuf[_POSIX_PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/kerberosV/src/lib/sl/slc-gram.y:char cname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/kerberosV/src/lib/sl/slc-gram.y:char hname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gen/fnmatch.c:    if (strnlen(pattern, PATH_MAX) == PATH_MAX ||
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gen/fnmatch.c:        strnlen(string, PATH_MAX) == PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gen/getcap.c:	char pbuf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gen/glob.c:	if (strnlen(pattern, PATH_MAX) == PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gen/statvfs.3:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/gmon/gmon.c:	char  buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/locale/setlocale.c:	char name[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/locale/setrunelocale.c:	char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/locale/setrunelocale.c:	char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/nls/catopen.c:	char tmppath[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/nls/catopen.c:					while (*u && t < tmppath + PATH_MAX-1)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/nls/catopen.c:					while (*u && t < tmppath + PATH_MAX-1)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/nls/catopen.c:					if (t < tmppath + PATH_MAX-1)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/nls/catopen.c:				if (t < tmppath + PATH_MAX-1)
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.3:.Dv PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c: * char *realpath(const char *path, char resolved[PATH_MAX]);
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:	char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:		resolved = malloc(PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:		if (getcwd(resolved, PATH_MAX) == NULL) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:				strlcpy(resolved, ".", PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:	if (left_len >= sizeof(left) || resolved_len >= PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:			if (resolved_len + 1 >= PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:		resolved_len = strlcat(resolved, next_token, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/stdlib/realpath.c:		if (resolved_len >= PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/access.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/acct.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/bind.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/chdir.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/chflags.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/chmod.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/chown.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/chroot.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/connect.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/execve.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/getfh.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/link.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/mkdir.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/mkfifo.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/mknod.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/mount.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/open.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/pathconf.2:.It Dv _PC_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/quotactl.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/readlink.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/rename.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/rmdir.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/stat.2:.Dv PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/statfs.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/swapctl.2:.Dv PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/utimes.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/symlink.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/truncate.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libc/sys/unlink.2:.Dv {PATH_MAX}
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:#ifndef PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:# if defined(_POSIX_PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX _POSIX_PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX MAXPATHLEN
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:#  define PATH_MAX 255	/* the Posix minimum path-size */
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/curses.priv.h:	char		trace_fname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tic.h:#define MAX_ALIAS	32	/* smaller than POSIX minimum for PATH_MAX */
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/access.c:	    && strlen(path) < PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/access.c:	    char *leaf, head[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/comp_parse.c:		char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/lib_setup.c:    char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char   envterm[PATH_MAX];		/* local copy of $TERMINFO */
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char   hometerm[PATH_MAX];		/* local copy of $HOME/.terminfo */
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:	    (void)strlcpy(filename, *fname, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_bsd_terminfo.c:    char path[PATH_MAX];		/* path to terminfo.db */
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_entry.c:    snprintf(filename, PATH_MAX, "%s", name);
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_entry.c:	    code = _nc_read_tic_entry(filename, PATH_MAX, path, name, tp);
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_entry.c:	    snprintf(filename, PATH_MAX, "%s", _nc_get_source());
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_termcap.c:	char temp[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_termcap.c:    char cwd_buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_termcap.c:    char pathbuf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_termcap.c:	char envhome[PATH_MAX], *h;
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/read_termcap.c:	    && (strlen(h) + sizeof(PRIVATE_CAP)) < PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/write_entry.c:    char fullpath[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/write_entry.c:    char actual[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/write_entry.c:    char filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/write_entry.c:    char linkname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tinfo/write_entry.c:    char symlinkname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libcurses/tty/lib_mvcur.c:static char tname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libedit/readline.c:	static char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libedit/readline.c:	strlcpy(path, p->pw_dir, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libedit/readline.c:	strlcat(path, _dothistory, PATH_MAX);
/usr/src/PATH_MAX_JR:/usr/src/lib/libskey/skeylogin.c:	char *cp, filename[PATH_MAX], *last;
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/aucat.c:	char buf[PATH_MAX], tmp[PATH_MAX], *path;
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/aucat.c:		snprintf(buf, PATH_MAX, "%s/.aucat_cookie", path);
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/aucat.c:	if (strlcpy(tmp, path, PATH_MAX) >= PATH_MAX ||
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/aucat.c:	    strlcat(tmp, ".XXXXXXXX", PATH_MAX) >= PATH_MAX) {
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/mio_rmidi.c:	char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libsndio/sio_sun.c:	char path[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/crypto/LPdir_unix.c:   is NAME_MAX.  However, some operating systems use PATH_MAX instead.
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/crypto/LPdir_unix.c:   Therefore, it seems natural to first check for PATH_MAX and use that,
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/crypto/LPdir_unix.c:#if defined(PATH_MAX)
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/crypto/LPdir_unix.c:# define LP_ENTRY_SIZE PATH_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/crypto/LPdir_unix.c:/* Of course, there's the possibility that neither PATH_MAX nor NAME_MAX
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/engines/ccgost/gostsum.c:		char inhash[65],calcsum[65],filename[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libssl/src/engines/ccgost/gostsum.c:	i=strlen(fgets(filename,PATH_MAX,f));
/usr/src/PATH_MAX_JR:/usr/src/lib/libutil/login_fbtab.c:	char	buf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/lib/libutil/opendev.c:	static char namebuf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/library_subr.c:	char *hint, lp[PATH_MAX + 10], *path;
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/library_subr.c:			while (path < lp + PATH_MAX &&
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/library_subr.c:		while (path < lp + PATH_MAX && *pp && *pp != ':' && *pp != ';')
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/ldconfig/library.c:	char *hint, lp[PATH_MAX + 10], *path;
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/ldconfig/library.c:			while (path < lp + PATH_MAX &&
/usr/src/PATH_MAX_JR:/usr/src/libexec/ld.so/ldconfig/library.c:		while (path < lp + PATH_MAX && *pp && *pp != ':' && *pp != ';')
/usr/src/PATH_MAX_JR:/usr/src/libexec/rpc.rusersd/rusers_proc.c:	char devname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/regress/lib/libc/telldir/telldir.c:	char file[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/regress/sys/copy/copy.c:	char path[PATH_MAX + 1];
/usr/src/PATH_MAX_JR:/usr/src/regress/sys/copy/copy.c:	for (i = 0; i < PATH_MAX; i++)
/usr/src/PATH_MAX_JR:/usr/src/regress/sys/copy/copy.c:	path[PATH_MAX] = '\0';
/usr/src/PATH_MAX_JR:/usr/src/sbin/fsck_ffs/setup.c:	if (strncmp(dev, realdev, PATH_MAX) != 0) {
/usr/src/PATH_MAX_JR:/usr/src/sbin/fsck_ffs/setup.c:		if (strncmp(dev, realdev, PATH_MAX) != 0)
/usr/src/PATH_MAX_JR:/usr/src/sbin/fsck_msdos/check.c:		if (strncmp(fname, realdev, PATH_MAX) != 0)
/usr/src/PATH_MAX_JR:/usr/src/sbin/isakmpd/x509.c:	char		fullname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/isakmpd/x509.c:	char		file[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/isakmpd/x509.c:	char		fullname[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/isakmpd/x509.c:	char		file[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/isakmpd/monitor.c:	char new_path[PATH_MAX], var_run[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/mount_vnd/mount_vnd.c:	char		 saltbuf[128], saltfilebuf[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/ncheck_ffs/ncheck_ffs.c:char	rdisk[PATH_MAX];/* resolved name of the disk file */
/usr/src/PATH_MAX_JR:/usr/src/sbin/pflogd/privsep.c:	char ren[PATH_MAX];
/usr/src/PATH_MAX_JR:/usr/src/sbin/raidctl/raidctl.c:	char config_filename[PATH_MAX];

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-30 14:13

我也是在源码中搜索了一遍,发现其实大部分头文件都是引用syslimits.h中的PATH_MAX,另外需要改动的应该还有stdio.h中有两处相应要改。其它的应该还好。
第一次我只改了syslimits.h,发现不解决问题(但是apache的错误日志有了一些小的变化)。今天又改动了stdio.h,正在make build ...
/usr/src/include/stdio.h:#define FILENAME_MAX 1024 /* must be <= PATH_MAX <sys/syslimits.h> */
/usr/src/include/stdio.h:#define L_tmpnam 1024 /* XXX must be == PATH_MAX */

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: file name too long 错误 - apache

帖子 leo » 2011-12-31 1:04

userland里也有相关的定义和说明, 恐怕要考虑的地方不少。
例如文件 /usr/src/gnu/usr.bin/cvs/lib/system.h

代码: 全选

/*
**  MAXPATHLEN and PATH_MAX
**
**     On most systems MAXPATHLEN is defined in sys/param.h to be 1024. Of
**     those that this is not true, again most define PATH_MAX in limits.h
**     or sys/limits.h which usually gets included by limits.h. On the few
**     remaining systems that neither statement is true, _POSIX_PATH_MAX
**     is defined.
**
**     So:
**         1. If PATH_MAX is defined just use it.
**         2. If MAXPATHLEN is defined but not PATH_MAX, then define
**            PATH_MAX in terms of MAXPATHLEN.
**         3. If neither is defined, include limits.h and check for
**            PATH_MAX again.
**         3.1 If we now have PATHSIZE, define PATH_MAX in terms of that.
**             and ignore the rest.  Since _POSIX_PATH_MAX (checked for
**             next) is the *most* restrictive (smallest) value, if we
**             trust _POSIX_PATH_MAX, several of our buffers are too small.
**         4. If PATH_MAX is still not defined but _POSIX_PATH_MAX is,
**            then define PATH_MAX in terms of _POSIX_PATH_MAX.
**         5. And if even _POSIX_PATH_MAX doesn't exist just put in
**            a reasonable value.
**         *. All in all, this is an excellent argument for using pathconf()
**            when at all possible.  Or better yet, dynamically allocate
**            our buffers and use getcwd() not getwd().
**
**     This works on:
**         Sun Sparc 10        SunOS 4.1.3  &  Solaris 1.2
**         HP 9000/700         HP/UX 8.07   &  HP/UX 9.01
**         Tektronix XD88/10   UTekV 3.2e
**         IBM RS6000          AIX 3.2
**         Dec Alpha           OSF 1 ????
**         Intel 386           BSDI BSD/386
**         Intel 386           SCO OpenServer Release 5
**         Apollo              Domain 10.4
**         NEC                 SVR4
*/

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2011-12-31 17:57

大部分文件都是引用syslimits.h中的定义,就像注释中说的: If PATH_MAX is defined just use it. userland中有一部分程序是自己定义PATH_MAX的,比如sendmail,groff等等.但是改动syslimits.h应该不至于影响它们的功能.

目前我更新了syslimits.h和stdio.h后重新编译,可以解决这个问题.

但是如果我使用以package方式安装的apache2的话,问题就会重现.说明编译好的apache2 package是引用了编译环境中的PATH_MAX(也就是默认的1024). 一会我会在自己的机子上重新编译apache2在测试一下. 我相信这样应该不会重现.

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: file name too long 错误 - apache

帖子 none » 2012-03-09 0:00

应该是Apache的问题,我翻看了下,Apache的日志里是解码了的,没有照搬URL编码呢。Apache必须将URL解码成系统编码才能找得到真正的文件来IO,我写过HTTPD服务,不可能安装URL编码去找文件的,除非是代理转发这个URL

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: file name too long 错误 - apache

帖子 acheng » 2012-03-14 14:18

根据我的测试,我改了syslimits.h和stdio.h中的参数以后类似的错误就不见了,说明和系统的这两个设置是有关的。如果Apache先将URL转换成UNIX的文件路径再去打开文件的话 ,1024字节的PATH_MAX应该足够了。或许apache在转换URL的时候会调用stdio中的某些函数,从而在URL转换完成之前就出错。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客