Subject: Re: The mysterious NEEDED crtend.so
To: None <current-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 11/01/2002 03:01:34
--=..r.5Q_dTh/7iZo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Jason R Thorpe <thorpej@wasabisystems.com> wrote:

> On Fri, Nov 01, 2002 at 07:01:09AM +0900, Ryo HAYASAKA wrote:
> Ah, newer binutils sources do not have this problem ... they use a
> different function (lbasename) which provides the semantics they want.

IMHO, the specifications of basename() and dirname() are a little silly.
For absolute portability you'll will nearly always have to write your own
little wrapper as these functions may return a pointer to a static buffer
and/or modify the argument. Especially, as many people (like me) might
only read the man pages of the unix-like OS they're using instead of
reading the posix papers or at least the more general information from the
Opengroup. BTW, I highly appreciate STANDARDS section in man pages of
NetBSD. Such information is even missing from the man pages of commercial
OS's like Solaris. (On the other hand they offer infomation about the
thread-safeness of functions...).

Christian

--=..r.5Q_dTh/7iZo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (NetBSD)

iD8DBQE9weCM0KQix3oyIMcRAjMBAJ9bupXiHRhUIt6bntIzcj63d2ps/ACff+3z
ZdqIPTq0fg4GP8JP7uc8M/A=
=6WfK
-----END PGP SIGNATURE-----

--=..r.5Q_dTh/7iZo--