.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (C) 2001 Andries Brouwer . .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH setlogmask 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE setlogmask \- establece la máscara de prioridad de registro .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .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 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; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBsetlogmask\fP() T} Seguridad del hilo MT\-Unsafe race:LogMask .TE .sp 1 .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL .\" Note that the description in POSIX.1-2001 is flawed. POSIX.1\-2001. .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) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP 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. .PP 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 .