[osol-code] Re: [ksh93-integration-discuss] libfind ready for external tests
Joerg Schilling
Joerg.Schilling at fokus.fraunhofer.de
Thu Feb 22 13:34:05 PST 2007
Glenn Fowler <gsf at research.att.com> wrote:
>
> On Thu, 22 Feb 2007 17:18:12 +0100 Joerg.Schilling at fokus.fraunhofer.de (Joerg Schilling) wrote:
> > Glenn Fowler <gsf at research.att.com> 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:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
More information about the ksh93-integration-discuss
mailing list