1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH SETLOGMASK 3 2021-03-22 GNU "Linux Programmer's Manual"
7 setlogmask \- set log priority mask
10 .RI ( libc ", " \-lc )
13 .B #include <syslog.h>
15 .BI "int setlogmask(int " mask );
18 A process has a log priority mask that determines which calls to
21 All other calls will be ignored.
22 Logging is enabled for the priorities that have the corresponding
25 The initial mask is such that logging is enabled for all priorities.
29 function sets this logmask for the calling process,
30 and returns the previous mask.
31 If the mask argument is 0, the current logmask is not modified.
33 The eight priorities are
43 The bit corresponding to a priority
47 Some systems also provide a macro
50 of all priorities in the above list up to and including
53 This function returns the previous log priority mask.
57 .\" The glibc logmask handling was broken in versions before glibc 2.1.1.
59 For an explanation of the terms used in this section, see
67 Interface Attribute Value
70 T} Thread safety MT-Unsafe race:LogMask
76 POSIX.1-2001, POSIX.1-2008.
77 .\" Note that the description in POSIX.1-2001 is flawed.
80 will be included in the next release of the POSIX specification (Issue 8).
81 .\" FIXME . https://www.austingroupbugs.net/view.php?id=1033