text
stringlengths 0
234
|
---|
in the library itself.
|
the library can have any recognized
|
binary format.
|
.sh return value
|
on success, zero is returned.
|
on error, \-1 is returned, and
|
.i errno
|
is set to indicate the error.
|
.sh errors
|
in addition to all of the error codes returned by
|
.br open (2)
|
and
|
.br mmap (2),
|
the following may also be returned:
|
.tp
|
.b eacces
|
the library specified by
|
.i 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
|
.br path_resolution (7).)
|
.tp
|
.b enfile
|
the system-wide limit on the total number of open files has been reached.
|
.tp
|
.b enoexec
|
the file specified by
|
.i library
|
is not an executable of a known type;
|
for example, it does not have the correct magic numbers.
|
.sh conforming to
|
.br uselib ()
|
is linux-specific, and should not be used in programs
|
intended to be portable.
|
.sh notes
|
this obsolete system call is not supported by glibc.
|
no declaration is provided in glibc headers, but, through a quirk of history,
|
glibc versions before 2.23 did export an abi for this system call.
|
therefore, in order to employ this system call,
|
it was sufficient to manually declare the interface in your code;
|
alternatively, you could invoke the system call using
|
.br syscall (2).
|
.pp
|
in ancient libc versions (before glibc 2.0),
|
.br uselib ()
|
was used to load
|
the shared libraries with names found in an array of names
|
in the binary.
|
.\" .pp
|
.\" .\" libc 4.3.1f - changelog 1993-03-02
|
.\" since libc 4.3.2, startup code tries to prefix these names
|
.\" with "/usr/lib", "/lib" and "" before giving up.
|
.\" .\" libc 4.3.4 - changelog 1993-04-21
|
.\" in libc 4.3.4 and later these names are looked for in the directories
|
.\" found in
|
.\" .br ld_library_path ,
|
.\" and if not found there,
|
.\" prefixes "/usr/lib", "/lib" and "/" are tried.
|
.\" .pp
|
.\" from libc 4.4.4 on only the library "/lib/ld.so" is loaded,
|
.\" so that this dynamic library can load the remaining libraries needed
|
.\" (again using this call).
|
.\" this is also the state of affairs in libc5.
|
.\" .pp
|
.\" glibc2 does not use this call.
|
.pp
|
since linux 3.15,
|
.\" commit 69369a7003735d0d8ef22097e27a55a8bad9557a
|
this system call is available only when the kernel is configured with the
|
.b config_uselib
|
option.
|
.sh see also
|
.br ar (1),
|
.br gcc (1),
|
.br ld (1),
|
.br ldd (1),
|
.br mmap (2),
|
.br open (2),
|
.br dlopen (3),
|
.br capabilities (7),
|
.br ld.so (8)
|
.sh colophon
|
this page is part of release 5.13 of the linux
|
.i man-pages
|
project.
|
a description of the project,
|
information about reporting bugs,
|
and the latest version of this page,
|
can be found at
|
\%https://www.kernel.org/doc/man\-pages/.
|
.so man3/pthread_mutexattr_setrobust.3
|
.\" copyright 2001 john levon <moz@compsoc.man.ac.uk>
|
.\" based on mkstemp(3), copyright 1993 david metcalfe (david@prism.demon.co.uk)
|
.\" and gnu libc documentation
|
.\"
|
.\" %%%license_start(verbatim)
|
.\" permission is granted to make and distribute verbatim copies of this
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.