- trixie-backports 4.30.0-1~bpo13+1
- testing 4.30.0-1
- unstable 4.30.0-1
| prctl(2) | System Calls Manual | prctl(2) |
BEZEICHNUNG¶
prctl - Aktionen auf einen Prozess oder Thread
BIBLIOTHEK¶
Standard-C-Bibliothek (libc, -lc)
ÜBERSICHT¶
#include <linux/prctl.h> /* Definition der PR_*-Konstanten */ #include <sys/prctl.h>
int prctl(int Aktion, …);
BESCHREIBUNG¶
prctl() verändert verschiedene Aspekte des Verhaltens des aufrufenden Threads oder Prozesses.
Beim Aufruf von prctl() wird die gewünschte Änderung im ersten Argument übergeben und weitere Argumente mit Bedeutung hängen vom ersten ab. Das erste Argument kann folgende Werte annehmen:
- PR_CAP_AMBIENT
- PR_CAPBSET_READ
- PR_CAPBSET_DROP
- PR_SET_CHILD_SUBREAPER
- PR_GET_CHILD_SUBREAPER
- PR_SET_DUMPABLE
- PR_GET_DUMPABLE
- PR_SET_ENDIAN
- PR_GET_ENDIAN
- PR_SET_FP_MODE
- PR_GET_FP_MODE
- PR_SET_FPEMU
- PR_GET_FPEMU
- PR_SET_FPEXC
- PR_GET_FPEXC
- PR_SET_IO_FLUSHER
- PR_GET_IO_FLUSHER
- PR_SET_KEEPCAPS
- PR_GET_KEEPCAPS
- PR_MCE_KILL
- PR_MCE_KILL_GET
- PR_SET_MM
- PR_SET_VMA
- PR_MPX_ENABLE_MANAGEMENT
- PR_MPX_DISABLE_MANAGEMENT
- PR_SET_NAME
- PR_GET_NAME
- PR_SET_NO_NEW_PRIVS
- PR_GET_NO_NEW_PRIVS
- PR_PAC_RESET_KEYS
- PR_SET_PDEATHSIG
- PR_GET_PDEATHSIG
- PR_SET_PTRACER
- PR_SET_SECCOMP
- PR_GET_SECCOMP
- PR_SET_SECUREBITS
- PR_GET_SECUREBITS
- PR_GET_SPECULATION_CTRL
- PR_SET_SPECULATION_CTRL
- PR_SVE_SET_VL
- PR_SVE_GET_VL
- PR_SET_SYSCALL_USER_DISPATCH
- PR_SET_TAGGED_ADDR_CTRL
- PR_GET_TAGGED_ADDR_CTRL
- PR_TASK_PERF_EVENTS_DISABLE
- PR_TASK_PERF_EVENTS_ENABLE
- PR_SET_THP_DISABLE
- PR_GET_THP_DISABLE
- PR_GET_TID_ADDRESS
- PR_SET_TIMERSLACK
- PR_GET_TIMERSLACK
- PR_SET_TIMING
- PR_GET_TIMING
- PR_SET_TSC
- PR_GET_TSC
- PR_SET_UNALIGN
- PR_GET_UNALIGN
- PR_GET_AUXV
- PR_SET_MDWE
- PR_GET_MDWE
RÜCKGABEWERT¶
Im Erfolgsfall wird eine nichtnegative Zahl zurückgeliefert. Im Fehlerfall wird -1 zurückgeliefert und errno gesetzt, um den Fehler anzuzeigen.
FEHLER¶
VERSIONEN¶
IRIX hat einen Systemaufruf prctl() (der in Linux 2.1.44 auch als irix_prctl auf der MIPS-Architektur eingeführt wurde). Er hat den Prototyp
ptrdiff_t prctl(int Aktion, int Arg2, int Arg3);
und Aktionen, um die maximale Anzahl von Prozessen pro Benutzer oder die maximale Anzahl an Prozessoren, die der aufrufende Prozess verwenden kann, zu ermitteln oder herauszufinden, ob ein bestimmter Prozess derzeit blockiert ist oder die maximale Stapelgröße zu setzen oder zu ermitteln usw.
STANDARDS¶
Linux.
GESCHICHTE¶
Linux 2.1.57, Glibc 2.0.6
WARNUNGEN¶
Der Prototyp des Libc-Wrappers verwendet eine variadische Argumentenliste. Daher müssen die Argumente mit der richtigen Breite übergeben werden. Bei der Übergabe numerischer Konstanten wie 0, verwenden Sie einen Suffix: 0L.
Leichtfertige Benutzung einiger prctl()-Aktionen kann die Laufzeitumgebung im Anwendungsraum durcheinanderbringen, daher sollten die Aktionen mit Bedacht ausgeführt werden.
SIEHE AUCH¶
signal(2), PR_CAP_AMBIENT(2const), PR_CAPBSET_READ(2const), PR_CAPBSET_DROP(2const), PR_SET_CHILD_SUBREAPER(2const), PR_GET_CHILD_SUBREAPER(2const), PR_SET_DUMPABLE(2const), PR_GET_DUMPABLE(2const), PR_SET_ENDIAN(2const), PR_GET_ENDIAN(2const), PR_SET_FP_MODE(2const), PR_GET_FP_MODE(2const), PR_SET_FPEMU(2const), PR_GET_FPEMU(2const), PR_SET_FPEXC(2const), PR_GET_FPEXC(2const), PR_SET_IO_FLUSHER(2const), PR_GET_IO_FLUSHER(2const), PR_SET_KEEPCAPS(2const), PR_GET_KEEPCAPS(2const), PR_MCE_KILL(2const), PR_MCE_KILL_GET(2const), PR_SET_MM(2const), PR_SET_VMA(2const), PR_MPX_ENABLE_MANAGEMENT(2const), PR_MPX_DISABLE_MANAGEMENT(2const), PR_SET_NAME(2const), PR_GET_NAME(2const), PR_SET_NO_NEW_PRIVS(2const), PR_GET_NO_NEW_PRIVS(2const), PR_PAC_RESET_KEYS(2const), PR_SET_PDEATHSIG(2const), PR_GET_PDEATHSIG(2const), PR_SET_PTRACER(2const), PR_SET_SECCOMP(2const), PR_GET_SECCOMP(2const), PR_SET_SECUREBITS(2const), PR_GET_SECUREBITS(2const), PR_SET_SPECULATION_CTRL(2const), PR_GET_SPECULATION_CTRL(2const), PR_SVE_SET_VL(2const), PR_SVE_GET_VL(2const), PR_SET_SYSCALL_USER_DISPATCH(2const), PR_SET_TAGGED_ADDR_CTRL(2const), PR_GET_TAGGED_ADDR_CTRL(2const), PR_TASK_PERF_EVENTS_DISABLE(2const), PR_TASK_PERF_EVENTS_ENABLE(2const), PR_SET_THP_DISABLE(2const), PR_GET_THP_DISABLE(2const), PR_GET_TID_ADDRESS(2const), PR_SET_TIMERSLACK(2const), PR_GET_TIMERSLACK(2const), PR_SET_TIMING(2const), PR_GET_TIMING(2const), PR_SET_TSC(2const), PR_GET_TSC(2const), PR_SET_UNALIGN(2const), PR_GET_UNALIGN(2const), PR_GET_AUXV(2const), PR_SET_MDWE(2const), PR_GET_MDWE(2const), core(5)
ÜBERSETZUNG¶
Die deutsche Übersetzung dieser Handbuchseite wurde von
erstellt.
Diese Übersetzung ist Freie Dokumentation; lesen Sie die GNU General Public License Version 3 oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen.
Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an die Mailingliste der Übersetzer: debian-l10n-german@lists.debian.org.
| 1. Juni 2024 | Linux man-pages 6.9.1 |