Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 21:00:05 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Johan Karlsson <johan@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/bin/realpath realpath.c
Message-ID:  <20021219205223.D30429-100000@gamplex.bde.org>
In-Reply-To: <20021219081755.GA35556@numeri.campus.luth.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Dec 2002, Johan Karlsson wrote:

> On Thu, Dec 19, 2002 at 12:01 (+1100) +0000, Bruce Evans wrote:
> > On Wed, 18 Dec 2002, Johan Karlsson wrote:
> > >   - use MAXPATHLEN per realpath(3)
> >
> > This is sort of backwards.  realpath(3) is standard in POSIX.1.2001 and
> > spells the limit {PATH_MAX}.  MAXPATHLEN has the advantage of being

> My commit made the code consistent with the manpage for realpath(3) which
> says to use MAXPATHLEN. If that is wrong then we should change
> the manpage to say PATH_MAX.
>
> Should I revert this and change the manpage?

Up to you.  Lots of things should be changed to say something like
{PATH_MAX} (not PATH_MAX) eventually.  {PATH_MAX} is POSIX's markup
for the the value that is PATH_MAX if PATH_MAX is defined and
pathconf(mumble) in general.  Most man pages don't even use MAXPATHLEN
yet.  They hard-code MAXPATHLEN - 1 as 1023.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219205223.D30429-100000>