#
559a218c |
|
01-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
libc: Purge unneeded cdefs.h These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
|
#
1d386b48 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
|
10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
|
#
5b5fa75a |
|
04-Aug-2022 |
Ed Maste <emaste@FreeBSD.org> |
libc: drop "All rights reserved" from Foundation copyrights This has already been done for most files that have the Foundation as the only listed copyright holder. Do it now for files that list multiple copyright holders, but have the Foundation copyright in its own section. Sponsored by: The FreeBSD Foundation
|
#
529575be |
|
03-Feb-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
lnumeric.c: replace some space*8 by tabs Reported by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
87151b60 |
|
02-Feb-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
__numeric_load(): check for calloc() failure Noted and reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34140
|
#
1aa669c5 |
|
02-Feb-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
libc/locale/lnumeric.c: minor style Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34140
|
#
7eb138a9 |
|
17-Sep-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/locale: Fix races between localeconv(3) and setlocale(3) Each locale embeds a lazily initialized lconv which is populated by localeconv(3) and localeconv_l(3). When setlocale(3) updates the global locale, the lconv needs to be (lazily) reinitialized. To signal this, we set flag variables in the locale structure. There are two problems: - The flags are set before the locale is fully updated, so a concurrent localeconv() call can observe partially initialized locale data. - No barriers ensure that localeconv() observes a fully initialized locale if a flag is set. So, move the flag update appropriately, and use acq/rel barriers to provide some synchronization. Note that this is inadequate in the face of multiple concurrent calls to setlocale(3), but this is not expected to work regardless. Thanks to Henry Hu <henry.hu.sh@gmail.com> for providing a test case demonstrating the race. PR: 258360 MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31899
|
#
d915a14e |
|
25-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
libc: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
|
#
3c87aa1d |
|
20-Nov-2011 |
David Chisnall <theraven@FreeBSD.org> |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
683fe113 |
|
26-Jun-2003 |
Alexey Zelkin <phantom@FreeBSD.org> |
. style(9) . fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values
|
#
3dfdc427 |
|
12-Jun-2003 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
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
|
#
befb332a |
|
20-Mar-2003 |
Andrey A. Chernov <ache@FreeBSD.org> |
decimal_point can't be "" according to C99, so set it to standard "." in that case.
|
#
76692b80 |
|
07-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
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).
|
#
ecc4c620 |
|
07-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Style fixes in preparation of code rewritting
|
#
333fc21e |
|
22-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
#
74f2b975 |
|
11-Dec-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
* Add my e-mail to copyrights * style(9)'ify
|
#
39d2c772 |
|
13-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
catch up to __part_load_locale() interface change
|
#
b161fb00 |
|
12-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
Make comparsions more clear (per style(9))
|
#
9040b756 |
|
11-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
Don't try to convert grouping strings in case if C or POSIX locale was explicitly specified. Submitted by: ache
|
#
1bd7723d |
|
10-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
. Fix semantics of grouping (LC_MONETARY::mon_grouping, LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also.
|
#
96be743f |
|
09-Feb-2001 |
Andrey A. Chernov <ache@FreeBSD.org> |
According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back out all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv()
|
#
d2712eaf |
|
09-Feb-2001 |
Andrey A. Chernov <ache@FreeBSD.org> |
Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)
|
#
1506a668 |
|
09-Feb-2001 |
Andrey A. Chernov <ache@FreeBSD.org> |
Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY, LC_NUMERIC fields, but only for *grouping fields - other fields are converted to a chars in localeconv(), so final change is: "-1" -> "127" 127 here is because CHAR_MAX supposed, which is _positive_ (SUSv2 requirement), not negative as 255. It is still a bit of hack. To find real CHAR_MAX will be better to sprintf() it once somewhere in static buffer. *grouping parsing still broken and missing and needs to be implemented.
|
#
051f867f |
|
09-Feb-2001 |
Andrey A. Chernov <ache@FreeBSD.org> |
NOTE: according to SUSV2 and other implementations, numeric elements in LC_MONETARY, LC_NUMERIC are byte-arrays, not ASCII strings! Fix "C" locale, change "-1" to {CHAR_MAX, '\0'} according to standards. This is only partial fix - locale loading procedure remains broken as before and load too big values for all locales. All numeric strings there should be converted with something like atoi() and placed into bytes. Maybe I do it later, if someone will not fix it faster.
|
#
90423ece |
|
08-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
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
|