History log of /freebsd-10.1-release/lib/libc/nls/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


250250 04-May-2013 pluknet

POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.


250234 04-May-2013 pluknet

Add entry for errno ECAPMODE.

MFC after: 3 days


249471 14-Apr-2013 jilles

libc: Fix typo in French translation.

PR: kern/177704
Submitted by: martymac
MFC after: 1 week


244757 28-Dec-2012 delphij

Add derived versions for common Simplified Chinese encodings.

MFC after: 2 weeks


244756 28-Dec-2012 delphij

Add zh_CN.UTF-8 catalog.

Reviewed by: alphachi <alphachi mediaspirit.org>
MFC after: 2 weeks


244358 17-Dec-2012 eadler

Fix warning from valgrind when a failed entry is tested.

PR: kern/173008
Submitted by: Zhihao Yuan <lichray@gmail.com>
Reviewed by: gabor
Approved by: cperciva (implicit)
MFC after: 1 week


241046 29-Sep-2012 jilles

libc: Use O_CLOEXEC for various internal file descriptors.

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.


209360 20-Jun-2010 maxim

Merge from English r198040: add C message catalogue entries for newer
errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE.

PR: docs/147983
Submitted by: pluknet
MFC after: 1 week


204110 20-Feb-2010 gabor

- More style(9) fixups

Approved by: delphij (mentor)


203719 09-Feb-2010 gabor

- Deal with some special cases [1]
- style(9) nits

Pointed out by: jilles [1]
Approved by: delphij (mentor)


203174 29-Jan-2010 gabor

- Fix some style(9) bugs

Pointed out by: bde


202993 25-Jan-2010 gabor

- style(9)

Approved by: delphij


202992 25-Jan-2010 gabor

Cache failing and opened catalogs in catopen() and related functions.
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


202743 21-Jan-2010 gabor

- Update Galician catalog


200077 03-Dec-2009 gabor

- Update the Spanish NLS catalog

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


199417 17-Nov-2009 gabor

- Update Hungarian libc catalog


199329 16-Nov-2009 jkim

Sync with C.msg r199083.


199190 11-Nov-2009 rene

Synchronize with C.msg revision 199083 and improve some existing messages.

Reviewed by: remko
Approved by: remko


199128 10-Nov-2009 ume

Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,
ENOLINK, EPROTO, ENOTCAPABLE.


199092 09-Nov-2009 ume

Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.


199083 09-Nov-2009 ume

Add NLS catalogs support to gai_strerror(3).
Controlled by NLS define.


199082 09-Nov-2009 ume

Fix comment.

Pointed out by: nyan
MFC after: 1 week


199081 09-Nov-2009 ume

Add ja_JP.eucJP catalog.

Reviewed by: hrs, nork, takawata
MFC after: 1 week


199080 09-Nov-2009 ume

Add ja_JP.UTF-8 catalog.

Reviewed by: hrs, nork, takawata
MFC after: 1 week


199044 08-Nov-2009 gabor

- Strip trailing CRs

Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)


199042 08-Nov-2009 gabor

- Update Ukranian catalog

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)


198040 13-Oct-2009 rwatson

Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,
ENOLINK, EPROTO, ENOTCAPABLE.

Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com>
MFC after: 3 days (most)


197534 27-Sep-2009 gabor

- Add Galician NLS catalog


192653 23-May-2009 des

More bogus props.


192646 23-May-2009 des

Remove bogus props


192599 22-May-2009 des

Expand $FreeBSD$


190410 25-Mar-2009 netchild

Improve the German translation.
Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon.

Discussed with: brueffer, gabor (previous version)


190397 24-Mar-2009 gabor

- Add Belarusian catalog

PR: conf/133004
Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com>


190196 21-Mar-2009 maxim

o Spell.


190193 20-Mar-2009 gabor

- Add Ukranian catalog

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)


189963 18-Mar-2009 gabor

- Fix typo

PR: kern/132773
Reported by: Alan R. S. Bueno <alan.bsd@gmail.com>
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>


189883 16-Mar-2009 gabor

- Add Brazilian Portuguese catalog [1]
- Fixes for German catalog [2]

PR: kern/132694 [1], conf/80504 [2]
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1],
brueffer [2]


189850 15-Mar-2009 gabor

- Create the buildworld object directories with mtree instead of various
mkdir calls
- Remove the ugly workaroung from libc NLS, which was to create some of
these directories


189777 13-Mar-2009 gabor

- Fix object directory creation when running threaded buildworld


189765 13-Mar-2009 gabor

- Reenable Native Language Support in libc. This feature was disabled due
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


169092 29-Apr-2007 deischen

Use C comments since we now preprocess these files with CPP.


156613 13-Mar-2006 deischen

Add each directory's symbol map file to SYM_MAPS.


156608 13-Mar-2006 deischen

Add symbol maps and initial symbol version definitions to libc.

Reviewed by: davidxu


148355 23-Jul-2005 pjd

Better translation.


148073 16-Jul-2005 jkim

Use better Korean translation for `trap'

Requested by: many Korean users from bsdforum.or.kr
Submitted by: perky
Approved by: anholt (mentor)


147402 15-Jun-2005 ru

Assorted markup fixes.

Approved by: re


143247 07-Mar-2005 phantom

Add korean NLS message catalogs for libc

Submitted by: Hye-Shik Chang <perky@FreeBSD.org>
PR: misc/78290


142924 01-Mar-2005 pjd

Add polish version of libc NLS catalog.


142718 27-Feb-2005 phantom

Backout NLS catalog handling, until all edge cases are resolved


142676 27-Feb-2005 phantom

Enable processing of NLS catalogs while building/installing of libc


142675 27-Feb-2005 phantom

Add russian version of libc NLS catalog

Translated by: Valeriy Kravchuk <openxs@ipnet.kiev.ua>
Alexey Dokuchaev <danfe@nsu.ru>


142672 27-Feb-2005 phantom

Add template NLS catalog for strerror(), strerror_r() and strsignal()
localization support


142665 27-Feb-2005 phantom

. Bump .Dd's
. Note POSIX 1003.1-2001 conformation
. Add ERRORS section for catgets(3)
. Note what catopen(3) returns EINVAL, if catalog is corrupt


142664 27-Feb-2005 phantom

Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean and removing of stdio dependency from NLS
functions (catalog files now are processed via mmap())

Also following changes were done (against NetBSD version):

. If mmap() failed, set errno to EINVAL and do not try to munmap() file

Obtained from: NetBSD


141118 01-Feb-2005 phantom

Cleanup prototypes and remove dead code

MFC After: 3 days


121667 29-Oct-2003 tjr

Remove incomplete support for running FreeBSD userland on old NetBSD kernels
lacking the issetugid() and utrace() syscalls.


114443 01-May-2003 nectar

Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.


114256 29-Apr-2003 nectar

`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
technique) so that we don't wind up calling into an application's
version if the application defines them.

Inspired by: qpopper's interfering and buggy version of strlcpy


107052 18-Nov-2002 ru

libc_r wasn't so tied to libc for 22 months.


106053 27-Oct-2002 wollman

Do not include <sys/syslimits.h> directly; it is not intended for general
consumption.


101727 12-Aug-2002 ache

Now, malloc is fixed, remove ENOMEM hardcode


101494 07-Aug-2002 ache

Set errno to ENOMEM for strdup too (due to malloc errno bug)


101490 07-Aug-2002 ache

Always set errno to ENOMEM after malloc failed (as workaround).
Our malloc sometimes forget to set errno, f.e. for size overflow case.


101450 07-Aug-2002 ache

Close descriptor, if error happens in loadCat()


101316 04-Aug-2002 ache

Try harder to check lang as path component (".", "..", / inside).
Try harder to not overwrite failure errno.
style(9) whitespace reformatting for code readability.


92986 22-Mar-2002 obrien

Fix the style of the SCM ID's.
I believe have made all of libc .c's as consistent as possible.


84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


81586 13-Aug-2001 ru

Removed duplicate VCS ID tags, as per style(9).


79754 15-Jul-2001 dd

Remove whitespace at EOL.


74870 27-Mar-2001 ru

MAN[1-9] -> MAN.


72404 12-Feb-2001 phantom

Use .Rv macro instead of hardcoded message


71579 24-Jan-2001 deischen

Remove _THREAD_SAFE and make libc thread-safe by default by
adding (weak definitions to) stubs for some of the pthread
functions. If the threads library is linked in, the real
pthread functions will pulled in.

Use the following convention for system calls wrapped by the
threads library:
__sys_foo - actual system call
_foo - weak definition to __sys_foo
foo - weak definition to __sys_foo

Change all libc uses of system calls wrapped by the threads
library from foo to _foo. In order to define the prototypes
for _foo(), we introduce namespace.h and un-namespace.h
(suggested by bde). All files that need to reference these
system calls, should include namespace.h before any standard
includes, then include un-namespace.h after the standard
includes and before any local includes. <db.h> is an exception
and shouldn't be included in between namespace.h and
un-namespace.h namespace.h will define foo to _foo, and
un-namespace.h will undefine foo.

Try to eliminate some of the recursive calls to MT-safe
functions in libc/stdio in preparation for adding a mutex
to FILE. We have recursive mutexes, but would like to avoid
using them if possible.

Remove uneeded includes of <errno.h> from a few files.

Add $FreeBSD$ to a few files in order to pass commitprep.

Approved by: -arch


70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


68854 17-Nov-2000 ru

mdoc(7) police: use certified section headers wherever possible.


66412 27-Sep-2000 phantom

Fix typo

PR: misc/21596
Submitted by: TOGAWA Satoshi <toga@puyo.org>


65609 08-Sep-2000 ache

Prevent buffer overflow if NLSPATH is too long


65521 06-Sep-2000 ache

Add .El


65485 05-Sep-2000 ache

Document %-macros and NLSPATH better.


65476 05-Sep-2000 ache

Fully implement NLSPATH processing as described in SUSv2


65472 05-Sep-2000 phantom

Oops! don't set errno to ENOMEM explicitly if malloc() failed.

Found by: ache


65437 04-Sep-2000 phantom

* move $FreeBSD$ tag to its usual place (bottom of copyright)
* mdoc cleanup
* document missing errno values (ERRORS section)

Reviewed by: sheldonh


65436 04-Sep-2000 phantom

Finaly cleanup libc/nls code:

* rewrite catopen() to remove duplicate code chunks and optimize
* if empty string is passed to catopen() as name argument then
catopen() will set errno to ENOENT (File not found), not EINVAL
* move search code to LOOKUP() macro to shrink amount of duplicated code
* move common resource freeing actions to __nls_free_resources() function
* exclude from build code related to MCLoadAll defintion since it is not
using at all
* style(9) related whitespace changes

Reviewed by: ache


65417 03-Sep-2000 ache

Rewrite using stdio. It cause program speedup since eliminates lots of small
read() syscalls. It not cause static binary size increasing because stdio
already picked via setlocale() called from catopen()


65330 01-Sep-2000 ache

Treat empty lang as "C" lang too


65326 01-Sep-2000 phantom

Set rcsid to correct value
Resort #include files
Remove SYSV compatibility chunks


65325 01-Sep-2000 phantom

protect .h file contents correctly.


65324 01-Sep-2000 phantom

Remove unused indirect references to cat* functions.


65323 01-Sep-2000 phantom

Fix memory leak introduced by kris in rev 1.22


65321 01-Sep-2000 ache

setlocale may return NULL, handle this case too by resetting to "C"


65320 01-Sep-2000 ache

Move protection code down to handle NL_CAT_LOCALE case too.


65319 01-Sep-2000 ache

Protect from badly formed LANG variable


65256 30-Aug-2000 ache

catgets: detect if fd becomes invalid after exec and return default response

cosmetique, use NULL for pointers comparison


65251 30-Aug-2000 ache

Explicetely describe catalog descriptor lifetime


64274 05-Aug-2000 kris

Prevent internal buffer overflow due to expansion of $LANG and/or name
argument in catopen().

Reviewed by: chris, -audit


59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


57686 02-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


56698 27-Jan-2000 jasone

Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),
just use _foo() <-- foo(). In the case of a libpthread that doesn't do
call conversion (such as linuxthreads and our upcoming libpthread), this
is adequate. In the case of libc_r, we still need three names, which are
now _thread_sys_foo() <-- _foo() <-- foo().

Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(),
nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().

Remove all internal libc usage of: creat(), pause(), sleep(), system(),
tcdrain(), wait(), and waitpid().

Make thread cancellation fully POSIX-compliant.

Suggested by: deischen


55837 12-Jan-2000 jasone

Add three-tier symbol naming in support of POSIX thread cancellation
points. For library functions, the pattern is __sleep() <--
_libc_sleep() <-- sleep(). The arrows represent weak aliases. For
system calls, the pattern is _read() <-- _libc_read() <-- read().


51577 22-Sep-1999 phantom

Add gencat(1) to SEE ALSO section.

PR: docs/13658
Submitted by: Zahemszky Gabor <zgabor@code.hu>


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


37643 14-Jul-1998 ache

Provide meaningful errno value on error return


35556 30-Apr-1998 ache

Add reference to setlocale(3)


35552 30-Apr-1998 ache

Return -1 for invalid descriptor in catclose


35550 30-Apr-1998 ache

If passed catgets descriptor is NULL or -1, return default string immediately


35549 30-Apr-1998 ache

Force loadType to 0


35548 30-Apr-1998 ache

Implement NL_CAT_LOCALE
Manpages cleanup


35546 30-Apr-1998 ache

Prototypes/typedefs cleanup
Fix error return codes


32524 15-Jan-1998 jb

Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() which
do not exist in NetBSD 1.3.


30447 15-Oct-1997 bde

Removed the subdirectory paths from the definitions of MAN[1-9]. They
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.


25642 10-May-1997 ache

Plug even more failure memory leaks


25641 10-May-1997 ache

Cleanup
Plug failure memory leaks
Use issetugid now
PR: 3492


25401 03-May-1997 jb

Changed all paths to be relative to src/lib instead of src/lib/libc
so that all these makefiles can be used to build libc_r too.

Added .if ${LIB} == "c" tests to restrict man page builds to libc
to avoid needlessly building them with libc_r too.

Split libc Makefile into Makefile and Makefile.inc to allow the
libc_r Makefile to include Makefile.inc too.


24254 25-Mar-1997 imp

Restricting $LANG was a really bad idea

Pointed out by: Everybody but Jordan.


24197 24-Mar-1997 imp

Don't honor LANG or NLSPATH if we're setuid/setgid.

Fixes PR 2582

Submitted by: Julian Assange


22993 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21907 20-Jan-1997 wosch

Sort cross references.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


17141 12-Jul-1996 jkh

General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>


13998 09-Feb-1996 jkh

Fixed docs/521.


13750 30-Jan-1996 mpp

Fix even more spelling errors in some more man pages.


11662 22-Oct-1995 phk

and so on...


9245 17-Jun-1995 ache

Add /usr/local/share/nls to default search path


8870 30-May-1995 rgrimes

Remove trailing whitespace.


7596 02-Apr-1995 ache

Fix manpage rule


7494 30-Mar-1995 jkh

Add the nls code for XPG3-style message catalogs to libc.
Obtained from: NetBSD