From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27448 invoked by alias); 12 Nov 2002 17:20:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27387 invoked from network); 12 Nov 2002 17:20:21 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 12 Nov 2002 17:20:21 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 189503D08; Tue, 12 Nov 2002 12:20:21 -0500 (EST) Message-ID: <3DD13854.4010407@redhat.com> Date: Tue, 12 Nov 2002 09:20:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch / rfc / 5.3] Attempt N++ for gdb_realpath() References: <3DCFDF46.7000900@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00346.txt.bz2 > Hello, > > This is trying to fix http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=656 > > It breaks the host system down into: > > - realpath() and constant pathmax > > - canonicalize file name > > - realpath() and pathconf() > > - xstrdup() > > realpath() is split into two cases - the easy / common one and the nasty horrible pathconf() one. The latter (which was causing grief on GNU) has been moved to the end. > > comments? For 5.3 and mainline. I've checked this in. Now to see what breaks :-/ Andrew > 2002-11-09 Andrew Cagney > > * utils.c (gdb_realpath): Rewrite. Try realpath() with a constant > buffer, cannonicalize_file_name(), realpath() with a pathconf() > defined buffer, xstrdup(). >