SETLOGMASK(3POSIX)

🌸 SETLOGMASK β€” bestie edition πŸ’…

okay so this one lives in the POSIX Programmer's Manual, section 3, and it's called setlogmask β€” yes, that's the whole vibe of this page, we're setting the log priority mask ✨


🌈 PROLOG 🌈

Heads up, bestie, before you do anything: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go consult the corresponding Linux manual page for the details on Linux behavior, fr fr), or β€” and this is the part that gets me 😭 β€” the interface may not even be implemented on Linux. Vibe check your system first, no cap.


πŸ‘‘ NAME πŸ‘‘

setlogmask β€” set the log priority mask πŸ’–

Like, that's literally her whole job. Setting the log priority mask. Iconic behavior.


✨ SYNOPSIS ✨

#include <syslog.h>

int setlogmask(int maskpri);

Look at her. Two lines. So clean. So demure. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the actual description here just says: refer to closelog(). That's it. That's the whole tea. πŸ“

So if you want the real rundown, you gotta go read closelog(), bestie β€” this page is just pointing you in the right direction like the world's most helpful little arrow. 🫢


Okay now the serious part, and I'm gonna give it to you straight because this is the kind of thing where you cannot be sloppy:

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

🚨 Real talk: if this page and the original standard ever disagree, the original standard wins. Periodt. Not this page. The standard. Don't @ me, that's just the rules.

Also, any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

So if something looks cursed in here, blame the conversion, not the standard, and go report it at that link πŸ’€


And that's the whole page, bestie!! 🌈 This one came to you from IEEE/The Open Group, dated 2017, and it's filed under SETLOGMASK(3POSIX) β€” mwah, love that for us πŸ’‹βœ¨πŸ¦‹