.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2001 Andries Brouwer . .\" .\" %%%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 file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SETLOGMASK 3 "9 Junio 2020" "" "Manual del Programador de Linux" .SH NOMBRE setlogmask \- establece la máscara de prioridad de registro .SH SINOPSIS .nf \fB#include \fP .PP \fBint setlogmask(int \fP\fImask\fP\fB);\fP .fi .SH DESCRIPCIÓN Un proceso tiene una máscara de prioridad de registro que determina qué llamadas a \fBsyslog\fP(3) serán procesadas. Todas las demás llamadas serán ignoradas. El registro se habilita para las prioridades que tienen el correspondiente bit activo en \fImask\fP. La máscara inicial permite el registro para todas las prioridades. .PP The \fBsetlogmask\fP() function sets this logmask for the calling process, and returns the previous mask. If the mask argument is 0, the current logmask is not modified. .PP Las ocho prioridades son \fBLOG_EMERG\fP, \fBLOG_ALERT\fP, \fBLOG_CRIT\fP, \fBLOG_ERR\fP, \fBLOG_WARNING\fP, \fBLOG_NOTICE\fP, \fBLOG_INFO\fP y \fBLOG_DEBUG\fP. El bit correspondiente a la prioridad \fIp\fP está determinado por \fILOG_MASK(p)\fP. Algunos sistemas suministran también una macro \fILOG_UPTO(p)\fP para el enmascaramiento de todas las prioridades de la lista de arriba hasta e incluyendo a \fIp\fP. .SH "VALOR DEVUELTO" Esta función devuelve la máscara de prioridad de registro previa. .SH ERRORES .\" .SH NOTES .\" The glibc logmask handling was broken in versions before glibc 2.1.1. Ninguno. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lbw22 l l l. Interfaz Atributo Valor T{ \fBsetlogmask\fP() T} Seguridad del hilo MT\-Unsafe race:LogMask .TE .sp 1 .SH "CONFORME A" .\" Note that the description in POSIX.1-2001 is flawed. POSIX.1\-2001, POSIX.1\-2008. .PP .\" FIXME . https://www.austingroupbugs.net/view.php?id=1033 \fBLOG_UPTO\fP() will be included in the next release of the POSIX specification (Issue 8). .SH "VÉASE TAMBIÉN" \fBcloselog\fP(3), \fBopenlog\fP(3), \fBsyslog\fP(3) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org>. .ME .