Dan Price wrote:
> It would seem to me to make a lot more sense to move the existing (in
> Solaris) libcmd.so over to libcmd_private.so (or fold it into libuutil
> or some such), and update the consumers.  Since libcmd is undocumented
> and private, this should be straightforward (although it might be
> possible that there is some libcmd proliferation into JDS or CDE
> or other places, which would be good to cleanse anyway).

libcmd has spread to at least CDE, X, & GNOME - dtlogin uses it, dating back
to the CDE 1.0/Solaris 2.4 days when it used the private PAM interfaces that
required it, according to the Imakefile comments.   It still uses defopen()
etal for reading/parsing /etc/default/login.   sys-suspend (originally OW,
now in CDE) does the same.

In X, xlock similarly uses def*() for /etc/default/login, though xdm does not.

I see defopen in a nm of /usr/bin/gdm as well, but strangely not in 
gnome-sys-suspend, which was just a port of sys-suspend from Motif to GTK.

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to