Roland Mainz <roland.mainz at nrubsig.org> wrote:

> > Actually, considering the nature of the routines I don't find it at
> > all a surprize that others have latched on to these.  As a matter of
> > fact I recall a discussion about making these routies Public, but
> > that was decided against because we didn't want to encourage the
> > use of /etc/default when we knew SMF was coming.
>
> Making the |def*()| functions "public" should be avoided. Both the API
> and the implementation can only be described as hack where hacks have
> been tacked-on where hacks have been added where then additional hacks
> have been added and hacks were introduced to deal with other broken
> hacks. IMO it may be nice to create a lightwheight (e.g. no other
> library dependicies than libc), threadsafe and locking-free replacement
> API which should then live in libcmdutils.so.1 (and I volunteer to do
> the work after ksh93 has been putback - that's easy... :-) ).

As libcmd has not been public before, I created this kind of library in 1997.
The name lis libdeflt and it comes with star, cdrtools, ...

The names are a bit different:

SCHILY_1.0 {
global:
        defltopen;
        defltfirst;
        defltclose;
        defltcntl;
        defltnext;
        defltread;

local:
        *;
}

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

Reply via email to