Peter Tribble wrote:
> I've been tinkering with a java jni interface to /proc and thought - wouldn't
> it be nice to convert the project id to a project name when I display it?
> 
> That's easy - call getprojbyid(). However, that requires libproject.so, and
> where that comes, several kitchen sinks follow.
> 
> It's not *just* the fact that I pull in a dozen extra libraries. I'm also 
> seeing
> strange breakage in my application with some java versions.
> 
> So, is there a particular reason why the name <-> id lookup functions
> for projects are hidden away in their own library rather than in libc like
> other lookups? (For example, converting between a zone name and
> a zone id is in libc.)

Probably the same reason the RBAC ones are "hidden away" in libsecdb and 
the automounter ones in automountd and the sendmail ones in sendmail. 
They just aren't used as much as getpw*() etc so no need for them to be 
in libc.   Historically that might have saved something.   However I 
think realistically we are saving little to nothing and they should be 
moved - the libsecdb ones need to be moved into libc as well.

-- 
Darren J Moffat

Reply via email to