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: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Fri, 4 Apr 2008 16:51:21 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 04 Apr 2008 07:52:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C41BFA2C.1ECFA%keir.fraser@xxxxxxxxxxxxx>
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>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20080404141720.GB4075@implementation> <C41BFA2C.1ECFA%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Keir Fraser, le Fri 04 Apr 2008 15:30:52 +0100, a écrit :
> 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.

That's possible indeed, I'm just making sure we try to avoid adding
others :)

> 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?

Ah, right, realpath has a bad semantic indeed.  The intent of SUS is to
have it allocate the string if NULL is given, but that's not necessarily
implemented yet.  In the wild, I only know GNU/Hurd which doesn't have
any PATH_MAX limit, and it happens that that one has the allocation
behavior.

Samuel

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

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