USELIB(2)

NAME
uselib - select shared library.

SYNOPSIS
#include <unistd.h>
int uselib (char *library);

DESCRIPTION
uselib() selects the shared library binary that will be used by this processes. 0 is returned on success, a negative value on failure.

ERRORS
-ENOENT is returned if library does not exist.

-EINVAL is returned if the limits are insufficient.

FILES
linux/fs/exec.c
/usr/include/linux/sys.h
/usr/include/unistd.h
user built shared libraries

SEE ALSO
swapon(2), gcc(1), ar(1), ld(1)

BUGS
No validation is performed on the file type of library.