Glenn Fowler <[EMAIL PROTECTED]> wrote:

>
> On Thu, 22 Feb 2007 17:18:12 +0100 [EMAIL PROTECTED] (Joerg Schilling) wrote:
> > Glenn Fowler <[EMAIL PROTECTED]> wrote:
> > >   int b_test(int argc, char *argv[],void *extra)
>
> > Well, I did plan to do something like:
>
> > if ((fp = dlsym(RTLD_DEFAULT, "b_test")) != NULL)
> >     we have b_test() available.
>
> > The problem is that not all platforms might support RTLD_DEFAULT.
>
> you can get a global handle from dlopen() using a path of 0:

Thank you, I forgot about this...

> you may need to check for "_b_test" if "b_test" fails on some implementations

OK, thank you for this hint too.

But first, I would like to know some basic things:

-       How is the I/O redirection done for ksh93 builtins?

-       How does ksh93 look for shared libs and how does it
        find which builtin commands are inside a shared lib?

-       How does ksh93 e.g. know to load libcmd and now does
        it e.g. know that there is a b_ls() inside?



Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to