*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> uselib (2)              



NAME    [Toc]    [Back]

       uselib - select shared library

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       int uselib(const char *library);

DESCRIPTION    [Toc]    [Back]

       uselib selects the shared library binary that will be used by the calling

RETURN VALUE    [Toc]    [Back]

       On success, zero is returned.  On error, -1 is returned, and  errno  is
       set appropriately.

ERRORS    [Toc]    [Back]

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

       ENOEXEC    [Toc]    [Back]
	      The file specified by library is not  executable,  or  does  not
	      have the correct magic numbers.

       EACCES The library specified by library is not readable.

CONFORMING TO    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

       ar(1), gcc(1), ld(1), ldd(1), mmap(2), open(2), ld.so(8)

Linux 0.99.11			  1993-07-24			     USELIB(2)
[ Back ]
 Similar pages
Name OS Title
library-specs OpenBSD shared library name specifications
dh_shlibdeps Linux calculate shared library dependancies
ldd Linux print shared library dependencies
ldconfig OpenBSD configure the shared library cache
ldconfig FreeBSD configure the shared library cache
nshmget Tru64 Returns (or creates) the ID for a shared memory region (libnuma library)
plock HP-UX lock process, text, data, stack, or shared library in memory
libgss HP-UX shared library for GSSAPI (Generic Security Service Application Programming Interface)
shm_open FreeBSD open or create a shared memory object shm_unlink -- remove a shared memory object
RSA_set_method OpenBSD select RSA method
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service