Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Mar 2001 14:32:19 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        "Jacques A. Vidrine" <n@nectar.com>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/make arch.c main.c 
Message-ID:  <200103012132.f21LWJd51319@harmony.village.org>
In-Reply-To: Your message of "Thu, 01 Mar 2001 14:51:42 CST." <20010301145142.A20573@hamlet.nectar.com> 
References:  <20010301145142.A20573@hamlet.nectar.com>  <200103011743.MAA01724@khavrinen.lcs.mit.edu> <200103010603.f2163IM00616@freefall.freebsd.org> <200103011743.MAA01724@khavrinen.lcs.mit.edu> <200103011817.f21IHZd50132@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

In message <20010301145142.A20573@hamlet.nectar.com> "Jacques A. Vidrine" writes:
: Note that {PATH_MAX} _does not_ include a terminating null, and that
: in sys/param.h we define MAXPATHLEN = PATH_MAX.  A quick look through
: the sources reveals lots & lots of `bugs' due to this.

It does include the terminating NUL character, at least in FreeBSD.
PATH_MAX is 1024 and the longest path you can have is 1023 bytes.
Garrett sent me verbage, which I included in another message, that
says that IEEE clarified this to include the terminating NUL.

Warner

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?200103012132.f21LWJd51319>