text
stringlengths 0
234
|
---|
.br pthread_spin_unlock ()
|
on a lock that is not held by the caller results in undefined behavior.
|
.sh return value
|
on success, these functions return zero.
|
on failure, they return an error number.
|
.sh errors
|
.br pthread_spin_lock ()
|
may fail with the following errors:
|
.tp
|
.b edeadlock
|
.\" not detected in glibc
|
the system detected a deadlock condition.
|
.pp
|
.br pthread_spin_trylock ()
|
fails with the following errors:
|
.tp
|
.b ebusy
|
the spin lock is currently locked by another thread.
|
.sh versions
|
these functions first appeared in glibc in version 2.2.
|
.sh conforming to
|
posix.1-2001.
|
.sh notes
|
applying any of the functions described on this page to
|
an uninitialized spin lock results in undefined behavior.
|
.pp
|
carefully read notes in
|
.br pthread_spin_init (3).
|
.sh see also
|
.ad l
|
.nh
|
.\" fixme . .br pthread_mutex_lock (3),
|
.br pthread_spin_destroy (3),
|
.br pthread_spin_init (3),
|
.br pthreads (7)
|
.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/stailq.3
|
.so man2/process_vm_readv.2
|
.so man3/ctime.3
|
.\" copyright (c) 1992 drew eckhardt (drew@cs.colorado.edu), march 28, 1992
|
.\"
|
.\" %%%license_start(verbatim)
|
.\" permission is granted to make and distribute verbatim copies of this
|
.\" manual provided the copyright notice and this permission notice are
|
.\" preserved on all copies.
|
.\"
|
.\" permission is granted to copy and distribute modified versions of this
|
.\" manual under the conditions for verbatim copying, provided that the
|
.\" entire resulting derived work is distributed under the terms of a
|
.\" permission notice identical to this one.
|
.\"
|
.\" since the linux kernel and libraries are constantly changing, this
|
.\" manual page may be incorrect or out-of-date. the author(s) assume no
|
.\" responsibility for errors or omissions, or for damages resulting from
|
.\" the use of the information contained herein. the author(s) may not
|
.\" have taken the same level of care in the production of this manual,
|
.\" which is licensed free of charge, as they might when working
|
.\" professionally.
|
.\"
|
.\" formatted or processed versions of this manual, if unaccompanied by
|
.\" the source, must acknowledge the copyright and authors of this work.
|
.\" %%%license_end
|
.\"
|
.\" modified by michael haardt <michael@moria.de>
|
.\" modified 1993-07-24 by rik faith <faith@cs.unc.edu>
|
.\" modified 1996-10-22 by eric s. raymond <esr@thyrsus.com>
|
.\" modified 2004-06-23 by michael kerrisk <mtk.manpages@gmail.com>
|
.\" modified 2005-01-09 by aeb
|
.\"
|
.th uselib 2 2021-03-22 "linux" "linux programmer's manual"
|
.sh name
|
uselib \- load shared library
|
.sh synopsis
|
.nf
|
.b #include <unistd.h>
|
.pp
|
.bi "int uselib(const char *" library );
|
.fi
|
.pp
|
.ir note :
|
no declaration of this system call is provided in glibc headers; see notes.
|
.sh description
|
the system call
|
.br 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.