opnsense-src/lib/libc/nls
Xin LI 4188ba1a3b Fix race condition in catopen(3).
The current code uses a rwlock to protect the cached list, which
in turn holds a list of catentry objects, and increments reference
count while holding only read lock.

Fix this by converting the reference counter to use atomic operations.

While I'm there, also perform some clean ups around memory operations.

PR:		202636
Reported by:	Henry Hu <henry.hu.sh@gmail.com>
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24095
2020-03-19 06:33:06 +00:00
..
be_BY.UTF-8.msg - Add Belarusian catalog 2009-03-24 23:31:41 +00:00
C.msg Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
ca_ES.ISO8859-1.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
catclose.3
catgets.3
catopen.3 Use mdoc(7) macros to handle parenthesis 2015-04-26 10:54:52 +00:00
de_DE.ISO8859-1.msg Improve the German translation. 2009-03-25 12:36:37 +00:00
el_GR.ISO8859-7.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
es_ES.ISO8859-1.msg - Update the Spanish NLS catalog 2009-12-03 19:27:12 +00:00
fi_FI.ISO8859-1.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
fr_FR.ISO8859-1.msg libc: Fix typo in French translation. 2013-04-14 11:44:47 +00:00
gl_ES.ISO8859-1.msg - Update Galician catalog 2010-01-21 11:36:40 +00:00
hu_HU.ISO8859-2.msg - Update Hungarian libc catalog 2009-11-17 18:57:44 +00:00
it_IT.ISO8859-15.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
ja_JP.eucJP.msg Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP, 2009-11-10 03:56:51 +00:00
ja_JP.UTF-8.msg Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP, 2009-11-10 03:56:51 +00:00
ko_KR.eucKR.msg Sync with C.msg r199083. 2009-11-16 19:10:09 +00:00
ko_KR.UTF-8.msg Sync with C.msg r199083. 2009-11-16 19:10:09 +00:00
Makefile.inc Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
mn_MN.UTF-8.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
msgcat.c Fix race condition in catopen(3). 2020-03-19 06:33:06 +00:00
nl_NL.ISO8859-1.msg Synchronize with C.msg revision 199083 and improve some existing messages. 2009-11-11 18:28:12 +00:00
no_NO.ISO8859-1.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
pl_PL.ISO8859-2.msg
pt_BR.ISO8859-1.msg - Fix typo 2009-03-18 14:33:10 +00:00
ru_RU.KOI8-R.msg Merge from English r198040: add C message catalogue entries for newer 2010-06-20 06:52:10 +00:00
sk_SK.ISO8859-2.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
sv_SE.ISO8859-1.msg - Reenable Native Language Support in libc. This feature was disabled due 2009-03-13 10:40:38 +00:00
Symbol.map
uk_UA.UTF-8.msg - Strip trailing CRs 2009-11-08 11:55:03 +00:00
zh_CN.GB2312.msg Add derived versions for common Simplified Chinese encodings. 2012-12-28 01:23:12 +00:00
zh_CN.GB18030.msg Add derived versions for common Simplified Chinese encodings. 2012-12-28 01:23:12 +00:00
zh_CN.UTF-8.msg Add zh_CN.UTF-8 catalog. 2012-12-28 01:09:30 +00:00