.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1994 Mike Battersby .\" .\" %%%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 aeb, 960721 .\" 2005-11-21, mtk, added descriptions of sigisemptyset(), sigandset(), .\" and sigorset() .\" 2007-10-26 mdw added wording that a sigset_t must be initialized .\" prior to use .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SIGSETOPS 3 "21. prosince 2020" Linux "Linux \- příručka programátora" .SH JMÉNO sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- operace POSIXu se sadami signálů .SH POUŽITÍ \fB#include \fP .PP \fBint sigemptyset(sigset_t *\fP\fIset\fP\fB);\fP .PP \fBint sigfillset(sigset_t *\fP\fIset\fP\fB);\fP .PP \fBint sigaddset(sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP \fBint sigdelset(sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP \fBint sigismember(const sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP .RS -4 Požaduje množinu testovacích maker pro glibc (viz \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fBsigemptyset\fP(), \fBsigfillset\fP(), \fBsigaddset\fP(), \fBsigdelset\fP(), \fBsigismember\fP(): .RS 4 _POSIX_C_SOURCE .RE .ad b .SH POPIS These functions allow the manipulation of POSIX signal sets. .PP Funkce \fBsigemptyset\fP() inicializuje sadu signálů \fIset\fP na prázdnou (všechny signály jsou z ní vyloučeny). .PP Funkce \fBsigfillset\fP() zařadí do sady \fIset\fP všechny signály. .PP Funkce \fBsigaddset\fP() a \fBsigdelset\fP() slouží k přidání, respektive vymazání signálu \fIsignum\fP ze sady \fIset\fP. .PP Funkce \fBsigismember\fP() testuje, je\-li signál \fIsignum\fP zahrnut do sady \fIset\fP. .PP Objekty typu \fIsigset_t\fP musí být inicializovány voláním buď \fBsigemptyset\fP() nebo \fBsigfillset\fP() před tím než budou zaslány funkcím \fBsigaddset\fP(), \fBsigdelset\fP() a \fBsigismember\fP() nebo jiným glibc funkcím popsaným níže (\fBsigsemptyset\fP(), \fBsigandset\fP() a \fBsigorset\fP()). Výsledek není definován pokud toto není provedeno. .SH "NÁVRATOVÉ HODNOTY" Funkce \fBsigemptyset\fP(), \fBsigfillset\fP(), \fBsigaddset\fP() a \fBsigdelset\fP vracejí nulu při úspěšném průběhu a \-1 při chybě. .PP Funkce \fBsigismember\fP() vrací 1, je\-li signál \fIsignum\fP v sadě \fIset\fP, 0 pokud v ní není, a \-1 při chybě. .PP On error, these functions set \fIerrno\fP to indicate the cause of the error. .SH "CHYBOVÉ STAVY" .TP \fBEINVAL\fP Parametr \fIsignum\fP není platné číslo signálu. .SH ATRIBUTY Vysvětlení pojmů použitých v této části viz \fBattributes\fP(7). .TS allbox; lbw31 lb lb l l l. Rozhraní Atribut Hodnota T{ \fBsigemptyset\fP(), \fBsigfillset\fP(), .br \fBsigaddset\fP(), \fBsigdelset\fP(), .br \fBsigismember\fP(), \fBsigisemptyset\fP(), .br \fBsigorset\fP(), \fBsigandset\fP() T} Thread safety MT\-Safe .TE .SH "SPLŇUJE STANDARDY" POSIX.1\-2001, POSIX.1\-2008. .SH POZNÁMKY .\" When creating a filled signal set, the glibc \fBsigfillset\fP() function does not include the two real\-time signals used internally by the NPTL threading implementation. See \fBnptl\fP(7) for details. .SS "Glibc extensions" Pokud je definováno \fB_GNU_SOURCE\fP feature test makro pak jsou v hlavičkovém souboru \fI\fP k dispozici další tři funkce pro manipulaci signálových množin: .PP .nf \fBint sigisemptyset(const sigset_t *\fP\fIset\fP\fB);\fP \fBint sigorset(sigset_t *\fP\fIdest\fP\fB, const sigset_t *\fP\fIleft\fP\fB,\fP \fB const sigset_t *\fP\fIright\fP\fB);\fP \fBint sigandset(sigset_t *\fP\fIdest\fP\fB, const sigset_t *\fP\fIleft\fP\fB,\fP \fB const sigset_t *\fP\fIright\fP\fB);\fP .fi .PP \fBsigisemptyset\fP() vrací 1 pokud je množina \fIset\fP prázdná, jinak vrací 0. .PP \fBsigorset\fP() places the union of the sets \fIleft\fP and \fIright\fP in \fIdest\fP. \fBsigandset\fP() places the intersection of the sets \fIleft\fP and \fIright\fP in \fIdest\fP. Both functions return 0 on success, and \-1 on failure. .PP Tyto funkce jsou nestandardní (několik dalších systémů poskytuje podobné funkce) a proto by tyto funkce neměly být používány v přenositelných aplikacích. .SH "DALŠÍ INFORMACE" \fBsigaction\fP(2), \fBsigpending\fP(2), \fBsigprocmask\fP(2), \fBsigsuspend\fP(2) .SH TIRÁŽ Tato stránka je součástí projektu Linux \fIman\-pages\fP v5.10. Popis projektu a informace o hlášení chyb najdete na \%https://www.kernel.org/doc/man\-pages/. .PP .SH PŘEKLAD Překlad této příručky do španělštiny vytvořili Marek Kubita a Pavel Heimlich . .PP Tento překlad je bezplatná dokumentace; Přečtěte si .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE nebo novější ohledně podmínek autorských práv. Neexistuje ŽÁDNÁ ODPOVĚDNOST. .PP Pokud narazíte na nějaké chyby v překladu této příručky, pošlete e-mail na adresu .MT translation-team-cs@lists.sourceforge.net .ME .