setlogmask(3) Library Functions Manual setlogmask(3) setlogmask - LIBRARY Standard C library (libc, -lc) #include int setlogmask(int mask); , , syslog(3) . . , mask. , . The setlogmask() 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. : LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO LOG_DEBUG. , p, LOG_MASK(p). LOG_UPTO(p) p. . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |setlogmask() | | MT-Unsafe race:LogMask | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. LOG_UPTO() will be included in the next release of the POSIX specification (Issue 8). . closelog(3), openlog(3), syslog(3) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 1 2023 . setlogmask(3)