uselib2
Load shared library
Usage
#include <unistd.h>
[[deprecated]] int uselib(const char *library);
Overview
The system call uselib() serves to load a shared library to be used by the calling process. It is given a pathname. The address where to load is found in the library itself. The library can have any recognized binary format.
Return value
On success, zero is returned. On error, -1 is returned, and errno is set to indicate the error.
Errors
In addition to all of the error codes returned by open(2) and mmap(2), the following may also be returned:
- EACCES
-
The library specified by library does not have read or execute permission, or the caller does not have search permission for one of the directories in the path prefix. (See also path_resolution(7).)
- ENFILE
-
The system-wide limit on the total number of open files has been reached.
- ENOEXEC
-
The file specified by library is not an executable of a known type; for example, it does not have the correct magic numbers.
Releases
19 releases since Debian 1.1 (Buzz); the text changed 16 times.