How clever Jhon.

I know that a void function cannot return a value, the same is also true of
destructors and constractors, to be exact.

I asked, how I can make dlopen return an error from the shared object's
_init function, and not what value I should return from the void function to
fail dlopen.

I mean what function shall I call from _init so that dlopen will return
error. I am sure it is possible, because dlopen calls _init prior to
returning.

----- Original Message -----
From: John Polstra <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 06, 1999 8:59 PM
Subject: Re: Dynamic linking


> In article <[EMAIL PROTECTED]>,
> Andrew Iltchenko  <[EMAIL PROTECTED]> wrote:
> > Hi everyone!
> >
> > Is there a way of making dlopen return an error from the shared object's
> > _init function?
>
> No.  The _init function by definition is "void _init(void)", and so
> it cannot return a value.
>
> John
> --
>   John Polstra
[EMAIL PROTECTED]
>   John D. Polstra & Co., Inc.                        Seattle, Washington
USA
>   "No matter how cynical I get, I just can't keep up."        -- Nora
Ephron



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to