mirror of git://sourceware.org/git/glibc.git
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>
This commit is contained in:
parent
0242c9f9e6
commit
ad9c4c5361
|
|
@ -498,10 +498,7 @@ The symbols referred to in this section are declared in the file
|
||||||
|
|
||||||
@deftypefun int setlogmask (int @var{mask})
|
@deftypefun int setlogmask (int @var{mask})
|
||||||
@standards{BSD, syslog.h}
|
@standards{BSD, syslog.h}
|
||||||
@safety{@prelim{}@mtunsafe{@mtasurace{:LogMask}}@asunsafe{}@acsafe{}}
|
@safety{@prelim{}@mtsafe{}@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.
|
|
||||||
|
|
||||||
@code{setlogmask} sets a mask (the ``logmask'') that determines which
|
@code{setlogmask} sets a mask (the ``logmask'') that determines which
|
||||||
future @code{syslog} calls shall be ignored. If a program has not
|
future @code{syslog} calls shall be ignored. If a program has not
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue