David Korn wrote:
> 
> Subject: Re: Re: [ksh93-integration-discuss] Patch to remove some gloval vars 
> in  libcmd...
> --------
> 
> > But there's a bigger issue: any variable in a program
> > will be mapped to the libcmd variable of the same name, so
> > in essence libcmd steals a large chunk of user namespace and may
> > cause application breakage as a result.
> 
> With Solaris, is there a way to specify the set of symbols that you want
> to be visible from the library or are all symbols that need to be
> shared between modules within the library visible no matter what?

AFAIKM Casper's comment is only about the "public interfaces". Since the
global variables I was thinking about are all marked as |static| they
only affect the source file where they are defined in.

Solaris has a way to define the "public interfaces" (e.g. visible
symbols) via "cc"'s -M option (I guess Mike Kupfer can explain this
better, AFAIK there is a detailed paper+documentation which describes
this but I can't find it anymore... ;-( ) to define a mapping file
(called "mapfile-vers" in OS/Net) which describes all the symbols.
However this is not neccesary in this case (and for the ksh93 version in
OS/Net we're already using this option to make sure that we don't export
anything which may harm other applications as casper was worrying).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to