aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/nls
Commit message (Collapse)AuthorAgeFilesLines
* Use current locale (f.e. set by thread). It was global locale alwaysAndrey A. Chernov2016-08-241-5/+5
| | | | | | | | | previously. MFC after: 7 days Notes: svn path=/head/; revision=304755
* Move logic to destroy a struct catentry to its own function.Bryan Drewery2016-02-021-9/+17
| | | | | | | | | | This will be used later for memory leak handling. Obtained from: OneFS Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295176
* Use mdoc(7) macros to handle parenthesisBaptiste Daroussin2015-04-261-1/+1
| | | | Notes: svn path=/head/; revision=282006
* When catopen(3) returns an error, it caches the result of that errorBryan Drewery2015-02-101-0/+1
| | | | | | | | | | | | | | | from r202992. The refcount on the cache entry is not initialized, so any attempt to clean the cache will skip over this item since it likely has a >0 value. This change is currently a NOP. There is work in progress to support freeing the cache which requires this change to avoid a memory leak. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=278530
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-2/+2
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.Sergey Kandaurov2013-05-041-0/+4
| | | | Notes: svn path=/head/; revision=250250
* Add entry for errno ECAPMODE.Sergey Kandaurov2013-05-041-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=250234
* libc: Fix typo in French translation.Jilles Tjoelker2013-04-141-1/+1
| | | | | | | | | PR: kern/177704 Submitted by: martymac MFC after: 1 week Notes: svn path=/head/; revision=249471
* Add derived versions for common Simplified Chinese encodings.Xin LI2012-12-283-0/+596
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=244757
* Add zh_CN.UTF-8 catalog.Xin LI2012-12-282-0/+296
| | | | | | | | Reviewed by: alphachi <alphachi mediaspirit.org> MFC after: 2 weeks Notes: svn path=/head/; revision=244756
* Fix warning from valgrind when a failed entry is tested.Eitan Adler2012-12-171-0/+1
| | | | | | | | | | | PR: kern/173008 Submitted by: Zhihao Yuan <lichray@gmail.com> Reviewed by: gabor Approved by: cperciva (implicit) MFC after: 1 week Notes: svn path=/head/; revision=244358
* libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker2012-09-291-1/+1
| | | | | | | | | | | | This fixes a race condition where another thread may fork() before CLOEXEC is set, unintentionally passing the descriptor to the child process. This commit only adds O_CLOEXEC flags to open() or openat() calls where no fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still leaves a race window so it should be fixed later. Notes: svn path=/head/; revision=241046
* Merge from English r198040: add C message catalogue entries for newerMaxim Konovalov2010-06-201-0/+10
| | | | | | | | | | | errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE. PR: docs/147983 Submitted by: pluknet MFC after: 1 week Notes: svn path=/head/; revision=209360
* - More style(9) fixupsGabor Kovesdan2010-02-201-26/+29
| | | | | | | Approved by: delphij (mentor) Notes: svn path=/head/; revision=204110
* - Deal with some special cases [1]Gabor Kovesdan2010-02-091-30/+54
| | | | | | | | | | - style(9) nits Pointed out by: jilles [1] Approved by: delphij (mentor) Notes: svn path=/head/; revision=203719
* - Fix some style(9) bugsGabor Kovesdan2010-01-291-17/+16
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=203174
* - style(9)Gabor Kovesdan2010-01-251-25/+25
| | | | | | | Approved by: delphij Notes: svn path=/head/; revision=202993
* Cache failing and opened catalogs in catopen() and related functions.Gabor Kovesdan2010-01-251-17/+131
| | | | | | | | | | | | | | | | Continuous catopen() calls cause 4 failig stat(2) each, which means a lot of overhead. It is also a good idea to keep the opened catalogs in the memory to speed up further catopen() calls to the same catalog since these catalogs are not big at all. In this case, we count references and only free() the allocated space when the reference count reaches 0. The reads and writes to the cache are syncronized with an rwlock when these functions are called from a threaded program. Requested by: kib Approved by: delphij Notes: svn path=/head/; revision=202992
* - Update Galician catalogGabor Kovesdan2010-01-211-0/+46
| | | | Notes: svn path=/head/; revision=202743
* - Update the Spanish NLS catalogGabor Kovesdan2009-12-031-5/+51
| | | | | | | | | | | | | | Reviewed by: carvay, the.infamous.paul@gmail.com, Joan Picanyol i Puig <lists-freebsd-es@biaix.org>, Ing . Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>, eskanete@gmail.com, Jose M Rodriguez <josemi@freebsd.jazztel.es>, Guillermo Hernandez <guillermo@QuerySoft.es>, dani.doni@gmail.com Notes: svn path=/head/; revision=200077
* - Update Hungarian libc catalogGabor Kovesdan2009-11-171-0/+46
| | | | Notes: svn path=/head/; revision=199417
* Sync with C.msg r199083.Jung-uk Kim2009-11-162-2/+94
| | | | Notes: svn path=/head/; revision=199329
* Synchronize with C.msg revision 199083 and improve some existing messages.Rene Ladan2009-11-111-30/+57
| | | | | | | | Reviewed by: remko Approved by: remko Notes: svn path=/head/; revision=199190
* Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,Hajimu UMEMOTO2009-11-102-0/+20
| | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Notes: svn path=/head/; revision=199128
* Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.Hajimu UMEMOTO2009-11-092-0/+72
| | | | Notes: svn path=/head/; revision=199092
* Add NLS catalogs support to gai_strerror(3).Hajimu UMEMOTO2009-11-091-0/+36
| | | | | | | Controlled by NLS define. Notes: svn path=/head/; revision=199083
* Fix comment.Hajimu UMEMOTO2009-11-092-2/+2
| | | | | | | | Pointed out by: nyan MFC after: 1 week Notes: svn path=/head/; revision=199082
* Add ja_JP.eucJP catalog.Hajimu UMEMOTO2009-11-092-0/+250
| | | | | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week Notes: svn path=/head/; revision=199081
* Add ja_JP.UTF-8 catalog.Hajimu UMEMOTO2009-11-092-0/+250
| | | | | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week Notes: svn path=/head/; revision=199080
* - Strip trailing CRsGabor Kovesdan2009-11-081-259/+259
| | | | | | | Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail) Notes: svn path=/head/; revision=199044
* - Update Ukranian catalogGabor Kovesdan2009-11-081-0/+10
| | | | | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail) Notes: svn path=/head/; revision=199042
* Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,Robert Watson2009-10-131-0/+10
| | | | | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com> MFC after: 3 days (most) Notes: svn path=/head/; revision=198040
* - Add Galician NLS catalogGabor Kovesdan2009-09-272-0/+250
| | | | Notes: svn path=/head/; revision=197534
* Improve the German translation.Alexander Leidinger2009-03-251-6/+6
| | | | | | | | | Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon. Discussed with: brueffer, gabor (previous version) Notes: svn path=/head/; revision=190410
* - Add Belarusian catalogGabor Kovesdan2009-03-242-0/+250
| | | | | | | | PR: conf/133004 Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com> Notes: svn path=/head/; revision=190397
* o Spell.Maxim Konovalov2009-03-211-4/+4
| | | | Notes: svn path=/head/; revision=190196
* - Add Ukranian catalogGabor Kovesdan2009-03-202-0/+250
| | | | | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail) Notes: svn path=/head/; revision=190193
* - Fix typoGabor Kovesdan2009-03-181-1/+1
| | | | | | | | | PR: kern/132773 Reported by: Alan R. S. Bueno <alan.bsd@gmail.com> Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> Notes: svn path=/head/; revision=189963
* - Add Brazilian Portuguese catalog [1]Gabor Kovesdan2009-03-163-41/+273
| | | | | | | | | | | - Fixes for German catalog [2] PR: kern/132694 [1], conf/80504 [2] Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1], brueffer [2] Notes: svn path=/head/; revision=189883
* - Create the buildworld object directories with mtree instead of variousGabor Kovesdan2009-03-151-6/+0
| | | | | | | | | mkdir calls - Remove the ugly workaroung from libc NLS, which was to create some of these directories Notes: svn path=/head/; revision=189850
* - Fix object directory creation when running threaded buildworldGabor Kovesdan2009-03-131-1/+1
| | | | Notes: svn path=/head/; revision=189777
* - Reenable Native Language Support in libc. This feature was disabled dueGabor Kovesdan2009-03-1314-0/+3269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to possible breakages in the catalog handling code. Since then, that code has been replaced by the secure code from NetBSD but NLS in libc remained turned off. Tests have shown that the feature is stable and working so we can now turn it on again. - Add several new catalog files: - ca_ES.ISO8859-1 - de_DE.ISO8859-1 - el_GR.ISO8859-7 (by manolis@ and keramida@) - es_ES.ISO8859-1 (kern/123179, by carvay@) - fi_FI.ISO8859-1 - fr_FR.ISO8859-1 (kern/78756, by thierry@) - hu_HU.ISO8859-2 (by gabor@) - it_IT.ISO8859-15 - nl_NL.ISO8859-1 (corrections by rene@) - no_NO.ISO8859-1 - mn_MN.UTF-8 (by ganbold@) - sk_SK.ISO8859-2 - sv_SE.ISO8859-1 (The catalogs without explicit source has been obtained from NetBSD.) Approved by: attilio Notes: svn path=/head/; revision=189765
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-1/+3
| | | | Notes: svn path=/head/; revision=169092
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+7
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* Better translation.Pawel Jakub Dawidek2005-07-231-1/+1
| | | | Notes: svn path=/head/; revision=148355
* Use better Korean translation for `trap'Jung-uk Kim2005-07-162-6/+6
| | | | | | | | | Requested by: many Korean users from bsdforum.or.kr Submitted by: perky Approved by: anholt (mentor) Notes: svn path=/head/; revision=148073
* Assorted markup fixes.Ruslan Ermilov2005-06-151-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=147402
* Add korean NLS message catalogs for libcAlexey Zelkin2005-03-072-0/+498
| | | | | | | | Submitted by: Hye-Shik Chang <perky@FreeBSD.org> PR: misc/78290 Notes: svn path=/head/; revision=143247
* Add polish version of libc NLS catalog.Pawel Jakub Dawidek2005-03-011-0/+249
| | | | Notes: svn path=/head/; revision=142924