From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4721 invoked by alias); 27 Nov 2001 20:42:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4631 invoked from network); 27 Nov 2001 20:42:14 -0000 Received: from unknown (HELO thor.inter.net.il) (192.114.186.11) by hostedprojects.ges.redhat.com with SMTP; 27 Nov 2001 20:42:14 -0000 Received: from zaretsky ([192.116.55.139]) by thor.inter.net.il (Mirapoint) with ESMTP id ACF29622; Tue, 27 Nov 2001 22:41:59 +0200 (IST) Date: Wed, 14 Nov 2001 20:58:00 -0000 From: "Eli Zaretskii" To: orjan.friberg@axis.com Message-Id: <9743-Tue27Nov2001224135+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: gdb-patches@sources.redhat.com In-reply-to: <3C03D84E.26E8B4F9@axis.com> (message from Orjan Friberg on Tue, 27 Nov 2001 19:15:42 +0100) Subject: Re: [RFC]: Solib search (Was: Re: Cross solib support; continued) Reply-to: Eli Zaretskii References: <3BEAA3A0.586B3046@axis.com> <20011108110955.A12240@nevyn.them.org> <3C03AB51.DB27B3D4@axis.com> <3405-Tue27Nov2001175932+0200-eliz@is.elta.co.il> <3C03D84E.26E8B4F9@axis.com> X-SW-Source: 2001-11/txt/msg00292.txt.bz2 > Date: Tue, 27 Nov 2001 19:15:42 +0100 > From: Orjan Friberg > > Eli Zaretskii wrote: > > > > This is not how one should test for an absoulte file name portably, > > and incrementing in_pathname by one is not how you portably make it a > > relative file name. > > Yes, I know (from my original post): > > > (It won't work with DOS based file > > systems, as the dir separator could be '\\', but that would be easy to add.) I've seen that, but you only mentioned the backslash nuisance. My point was that there are more subtle problems: the first character of an absolute file name doesn't have to be a slash or a backslash. > Thanks for the suggestion on how to do it correctly though; I'll > incorporate it. You are welcome. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: orjan.friberg@axis.com Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC]: Solib search (Was: Re: Cross solib support; continued) Date: Tue, 27 Nov 2001 12:42:00 -0000 Message-ID: <9743-Tue27Nov2001224135+0200-eliz@is.elta.co.il> References: <3BEAA3A0.586B3046@axis.com> <20011108110955.A12240@nevyn.them.org> <3C03AB51.DB27B3D4@axis.com> <3405-Tue27Nov2001175932+0200-eliz@is.elta.co.il> <3C03D84E.26E8B4F9@axis.com> X-SW-Source: 2001-11/msg00507.html Message-ID: <20011127124200.SvFr0e6em0mgBFJlXOnCGozG-cQj7L8lALRrNhJgLdc@z> > Date: Tue, 27 Nov 2001 19:15:42 +0100 > From: Orjan Friberg > > Eli Zaretskii wrote: > > > > This is not how one should test for an absoulte file name portably, > > and incrementing in_pathname by one is not how you portably make it a > > relative file name. > > Yes, I know (from my original post): > > > (It won't work with DOS based file > > systems, as the dir separator could be '\\', but that would be easy to add.) I've seen that, but you only mentioned the backslash nuisance. My point was that there are more subtle problems: the first character of an absolute file name doesn't have to be a slash or a backslash. > Thanks for the suggestion on how to do it correctly though; I'll > incorporate it. You are welcome.