text
stringlengths 0
234
|
|---|
.br setregid32 (),
|
supporting 32-bit ids.
|
the glibc
|
.br setreuid ()
|
and
|
.br setregid ()
|
wrapper functions transparently deal with the variations across kernel versions.
|
.\"
|
.ss c library/kernel differences
|
at the kernel level, user ids and group ids are a per-thread attribute.
|
however, posix requires that all threads in a process
|
share the same credentials.
|
the nptl threading implementation handles the posix requirements by
|
providing wrapper functions for
|
the various system calls that change process uids and gids.
|
these wrapper functions (including those for
|
.br setreuid ()
|
and
|
.br setregid ())
|
employ a signal-based technique to ensure
|
that when one thread changes credentials,
|
all of the other threads in the process also change their credentials.
|
for details, see
|
.br nptl (7).
|
.sh see also
|
.br getgid (2),
|
.br getuid (2),
|
.br seteuid (2),
|
.br setgid (2),
|
.br setresuid (2),
|
.br setuid (2),
|
.br capabilities (7),
|
.br credentials (7),
|
.br user_namespaces (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/mkstemp.3
|
.\" copyright (c) 2002 andries brouwer <aeb@cwi.nl>
|
.\"
|
.\" %%%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
|
.\"
|
.\" this replaces an earlier man page written by walter harms
|
.\" <walter.harms@informatik.uni-oldenburg.de>.
|
.th gsignal 3 2021-03-22 "" "linux programmer's manual"
|
.sh name
|
gsignal, ssignal \- software signal facility
|
.sh synopsis
|
.nf
|
.b #include <signal.h>
|
.pp
|
.b typedef void (*sighandler_t)(int);
|
.pp
|
.bi "int gsignal(int " signum );
|
.pp
|
.bi "sighandler_t ssignal(int " signum ", sighandler_t " action );
|
.fi
|
.pp
|
.rs -4
|
feature test macro requirements for glibc (see
|
.br feature_test_macros (7)):
|
.re
|
.pp
|
.br gsignal (),
|
.br ssignal ():
|
.nf
|
since glibc 2.19:
|
_default_source
|
glibc 2.19 and earlier:
|
_svid_source
|
.fi
|
.sh description
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.