devfs
[Top] [All Lists]

Re: [PATCH] devfsd, compiling on glibc22x

To: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Subject: Re: [PATCH] devfsd, compiling on glibc22x
From: Ulrich Drepper <drepper@xxxxxxxxxx>
Date: 05 Feb 2001 17:56:03 -0800
Cc: Mikael Pettersson <mikpe@xxxxxxxxx>, david@xxxxxxxxx, devfs@xxxxxxxxxxx, pierre.rousselet@xxxxxxxxxx
In-reply-to: Richard Gooch's message of "Mon, 5 Feb 2001 18:42:58 -0700"
References: <200102051242.NAA13138@harpo.it.uu.se> <m3zog13xpw.fsf@otr.mynet.cygnus.com> <200102060142.f161gw701607@vindaloo.ras.ucalgary.ca>
Reply-to: drepper@xxxxxxxxxx (Ulrich Drepper)
Sender: owner-devfs@xxxxxxxxxxx
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
Richard Gooch <rgooch@xxxxxxxxxxxxxxx> writes:

> The problem lies in the (lack of) documentation.

Then why don't you write any if you want to see it?

> Furthermore, under libc 5 there *is no* RTLD_DEFAULT, so it's hardly
> surprising that RTLD_NEXT is what people have been using.  Does glibc
> still claim to be binary compatible with libc 5?

What are you talking about?  Glibc never was compatible with libc 5.

> Finally, why don't you have error checking in your library? If the
> usage is in fact wrong, isn't is cleaner to return NULL from dlsym(),
> rather than having it segfault?

You completely misunderstand the concept of a runtime library.  It is
assumed that programs are correct and have to be executed as fast as
possible.  There are no checks for programmer errors.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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