Seth Woolley's Man Viewer

uselib(2) - uselib, uselib - select shared library - man 2 uselib

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

USELIB(2)                  Linux Programmer's Manual                 USELIB(2)



NAME
       uselib - select(2,7,2 select_tut) shared library

SYNOPSIS
       #include <unistd.h>

       int uselib(const char *library);

DESCRIPTION
       uselib selects the shared library binary that will be used by the call-
       ing process.

RETURN VALUE
       On success, zero is returned.  On error(8,n), -1 is returned, and  errno  is
       set(7,n,1 builtins) appropriately.

ERRORS
       In  addition to all of the error(8,n) codes returned by open(2,3,n)(2) and mmap(2),
       the following may also be returned:


       EACCES The library specified by library is not readable, or the  caller
              does  not  have  search permission for one of the directories in(1,8)
              the path prefix. (See also path_resolution(2).)

       ENFILE The system limit on the total number  of  open(2,3,n)  files  has  been
              reached.

       ENOEXEC
              The  file(1,n)  specified  by  library is not executable, or does not
              have the correct magic(4,5) numbers.

CONFORMING TO
       uselib() is Linux specific, and should not be used in(1,8) programs intended
       to be portable.

SEE ALSO
       ar(1), gcc(1), ld(1,8)(1), ldd(1), mmap(2), open(2,3,n)(2), capability(7), ld.so(8)



Linux 2.6.7                       2004-06-23                         USELIB(2)

References for this manual (incoming links)