From owner-cvs-all Wed Dec 18 17: 0:13 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83C2E37B401; Wed, 18 Dec 2002 17:00:12 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2836D43EDC; Wed, 18 Dec 2002 17:00:11 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id MAA21001; Thu, 19 Dec 2002 12:00:09 +1100 Date: Thu, 19 Dec 2002 12:01:16 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Johan Karlsson Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/bin/realpath realpath.c In-Reply-To: <200212181020.gBIAKeJw081000@repoman.freebsd.org> Message-ID: <20021219115633.J28208-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 18 Dec 2002, Johan Karlsson wrote: > johan 2002/12/18 02:20:40 PST > > Modified files: > bin/realpath realpath.c > Log: > - 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 explictly unportable, but we (mainly imp) usually replace MAXPATHLEN by PATH_MAX. (The compile-time constant PATH_MAX should not be confused with the POSIX limit {PATH_MAX} or used if it is not defined, but MAXPATHLEN is always defined on BSD systems.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message