32 lines
1.4 KiB
HTML
32 lines
1.4 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - uselib</TITLE>
|
|
<P>Go to the <A HREF="syscalls_110.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_110.html">previous</A>, <A HREF="syscalls_112.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_112.html">next</A> section.<P>
|
|
<H2><A NAME="SEC111" HREF="syscalls_toc.html#SEC111" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC111">uselib</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int uselib(const char *<VAR>library</VAR>);</CODE>
|
|
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>library</VAR>: [in] points to the path of the shared library to load.
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Loads and map a shared library in the current task address space.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success zero is returned. On error -1 is returned and <CODE>errno</CODE> is
|
|
set to one of the following values:
|
|
<P>
|
|
<UL>
|
|
<LI>all the possible error values of <CODE>open</CODE> and <CODE>mmap</CODE>.
|
|
<LI><CODE>NOEXEC</CODE>: the file does not have the necessary magic number
|
|
or it is not executable.
|
|
</UL>
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_110.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_110.html">previous</A>, <A HREF="syscalls_112.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_112.html">next</A> section.<P>
|