diff options
| author | Carlos O'Donell <carlos@redhat.com> | 2025-02-13 14:27:55 -0500 |
|---|---|---|
| committer | Carlos O'Donell <carlos@redhat.com> | 2025-02-19 16:22:54 -0500 |
| commit | ad9c4c536115ba38be3e63592a632709ec8209b4 (patch) | |
| tree | 7835f992b1fb94b6204d9d2998e535fd903754f7 | |
| parent | 0242c9f9e606ade838651dadea13c251e3cc4ac2 (diff) | |
| download | glibc-ad9c4c536115ba38be3e63592a632709ec8209b4.tar.xz glibc-ad9c4c536115ba38be3e63592a632709ec8209b4.zip | |
manual: Document setlogmask as MT-safe.
setlogmask(3) was made MT-safe in glibc-2.33 with the fix for
bug 26100.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
| -rw-r--r-- | manual/syslog.texi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/manual/syslog.texi b/manual/syslog.texi index 02f84d6e6f..90a6487c02 100644 --- a/manual/syslog.texi +++ b/manual/syslog.texi @@ -498,10 +498,7 @@ The symbols referred to in this section are declared in the file @deftypefun int setlogmask (int @var{mask}) @standards{BSD, syslog.h} -@safety{@prelim{}@mtunsafe{@mtasurace{:LogMask}}@asunsafe{}@acsafe{}} -@c Read and modify are not guarded by syslog_lock, so concurrent changes -@c or even uses are undefined. This should use an atomic swap instead, -@c at least for modifications. +@safety{@prelim{}@mtsafe{}@asunsafe{}@acsafe{}} @code{setlogmask} sets a mask (the ``logmask'') that determines which future @code{syslog} calls shall be ignored. If a program has not |
