]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: Document setlogmask as MT-safe.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 13 Feb 2025 19:27:55 +0000 (14:27 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Wed, 19 Feb 2025 21:22:54 +0000 (16:22 -0500)
setlogmask(3) was made MT-safe in glibc-2.33 with the fix for
bug 26100.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
manual/syslog.texi

index 02f84d6e6f3756aef85faa44d1c69fe5fd8ff8e0..90a6487c027b91bc8e191c740f445aa3d7ea280d 100644 (file)
@@ -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