WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 04 Apr 2008 15:30:52 +0100
Delivery-date: Fri, 04 Apr 2008 07:33:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080404141720.GB4075@implementation>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciWYHvpuoN5bgJTEd2H5AAX8io7RQ==
Thread-topic: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.
User-agent: Microsoft-Entourage/11.4.0.080122
If there are better alternatives I'd be happy to use them instead. But we
already use PATH_MAX elsewhere in the tools, so this might be a
wider-ranging cleanup than you think. The original impetus for this change
was due to bugchecks applied in some cases by glibc's realpath()
implementation. But actually is realpath() deprecated anyway?

 -- Keir

On 4/4/08 15:17, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

> Hello,
> 
> Using PATH_MAX is not a good idea: POSIX says that that definition
> is facultative, in case the system does not impose any limit on path
> length.  Some systems may also set PATH_MAX to a quite high value, and
> we would hence consume a lot of stack.
> 
> Samuel
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>