History log of /freebsd-10-stable/lib/libc/locale/ldpart.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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

# 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.


# 128650 25-Apr-2004 ache

Rewrite split_lines() to operate safely

PR: 62694
Submitted by: moulin p <moulin.p@calyopea.com>


# 116875 26-Jun-2003 phantom

. style(9)
. fix/add comments (to cover changes done thru last 20 months)
. extend monetary testcase to cover int_* values


# 116274 12-Jun-2003 jkh

Fixes to locale code to properly use indirect pointers in order to prevent
memory leaks (fixes bugs earlier purported to be fixed).
Submitted by: Ed Moy <emoy@apple.com>
Obtained from: Apple Computer, Inc.
MFC after: 2 weeks


# 106053 27-Oct-2002 wollman

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


# 101498 08-Aug-2002 ache

Rewrite locale loading procedures, so any load failure will not affect
currently cached data. It allows a number of nice things, like: removing
fallback code from single locale loading, remove memory leak when LC_CTYPE
data loaded again and again, efficient cache use, not only for
setlocale(locale1); setlocale(locale1), but for setlocale(locale1);
setlocale("C"); setlocale(locale1) too (i.e. data file loaded only once).


# 101470 07-Aug-2002 ache

Style fixes in preparation of code rewritting


# 101307 04-Aug-2002 ache

Use errno to indicate failure reason.
Remove incomplete checks for 'name' and 'PatchLocale', they must be
already checked at this point.


# 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.


# 88309 20-Dec-2001 phantom

style(9)'ify


# 87658 11-Dec-2001 phantom

* Add my e-mail to copyrights
* style(9)'ify


# 75367 10-Apr-2001 deischen

Include <unistd.h> so that read(2) and write(2) don't cause warnings.


# 73253 01-Mar-2001 deischen

s/fstat/_fstat/

Approved by: phantom


# 72442 13-Feb-2001 phantom

add additional function parameter: bufsize_min. it's possible
to check two sizes per one function invocation now.

Suggested by: ache


# 72331 10-Feb-2001 phantom

Use "namespace.h" and "un-namespace.h"

Requested by: deischen


# 72165 08-Feb-2001 phantom

Make FreeBSD locale support complete: add support for rest locale categories
LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they
don't need anymore.

Reviewed by: silence on -i18n