Project

General

Profile

Actions

Feature #3240

open

Move some functions from libproject into libc

Added by Igor Pashev almost 10 years ago. Updated over 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2012-09-29
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

libproject provides some functions which in nature are used to be a part of libc like getpwent(), setpwent() or getspent().

These functions in libproject are: setprojent(), endprojent(), getprojent(), getprojbyname(), getprojbyid(). Maybe others.

Such functions are implemented through NSS and do not require anything outside of libc (+libsocket and libnsl). But libproject depends on may other libraries, thus even getent(1) depends on libxml2 or libsmbios:

ldd /usr/bin/getent 
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libproject.so.1 =>       /usr/lib/libproject.so.1
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libsecdb.so.1 =>         /lib/libsecdb.so.1
        libproc.so.1 =>  /lib/libproc.so.1
        libpool.so.1 =>  /usr/lib/libpool.so.1
        librtld_db.so.1 =>       /lib/librtld_db.so.1
        libelf.so.1 =>   /lib/libelf.so.1
        libctf.so.1 =>   /lib/libctf.so.1
        libxml2.so.2 =>  /lib/libxml2.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libnvpair.so.1 =>        /lib/libnvpair.so.1
        libexacct.so.1 =>        /usr/lib/libexacct.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libz.so.1 =>     /lib/libz.so.1
        libm.so.2 =>     /lib/libm.so.2
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libsmbios.so.1 =>        /usr/lib/libsmbios.so.1

I attached a patch for getent(1) showing what should go to libc and stay in project.h


Files

getent-avoid-libproject.patch (6.68 KB) getent-avoid-libproject.patch Patched getent Igor Pashev, 2012-09-29 10:29 PM
Actions

Also available in: Atom PDF