Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Nigel Metheringham <Nigel.Metheringham@theplanet.net>
Subject: Re: Problem compiling 1.3.94 on PC64
Date: Tue, 23 Apr 1996 10:00:58 +0100	[thread overview]
Message-ID: <e4c5b15d69a84d88c49a8a613421823b.axp-list@archive.invalid> (raw)

Jaccard@Dial.Eunet.Ch said:
} Shouldn't the 'strrchr' be changed to 'strchr' in dir.c ? I changed 
} it and it compiled ok. 

But you have completely changed the meaning of of the code...
Now instead of finding the last \ (backslash) in a pathname its 
finding the first one...

Your problem is that the kernel has no strrchr available, or the code 
should be rewritten to do this a different way.  Since the 386 has an 
assembly strrchr in include/asm-i386/string-486.h then the other 
architectures should have this available.

I suggest you code one in C initially just to try it (its only used 
in one place so efficiency isn't going to be that bad!).

	Nigel.

-- 
[ Nigel.Metheringham@theplanet.net   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House     Tel : +44 113 2345566 x 612 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656       ]

             reply	other threads:[~1996-04-23  9:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-23  9:00 Nigel Metheringham [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-04-22 23:35 Problem compiling 1.3.94 on PC64 Francois Jaccard
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox