riastradh
82db4b9858
Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
...
consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.
Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.
2013-06-24 04:21:19 +00:00
joerg
85a67e61f7
Add mbsnrtowcs and wcsnrtombs. Approved by core.
2013-05-28 16:57:56 +00:00
joerg
844ef71922
Too many endif.
2013-05-17 14:11:55 +00:00
joerg
2aac8b87b0
Only provide LC_C_LOCALE under _NETBSD_SOURCE.
2013-05-17 13:00:40 +00:00
joerg
e0ac190e1e
Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
...
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
christos
df2bc3e4f8
add the signal safe prototypes
2013-05-04 18:30:14 +00:00
riz
05108b4611
Add missing #endif (Hi, Christos!)
2013-05-04 00:37:47 +00:00
christos
017320144a
PR/25827, PR/32373: addr AI_SRV
2013-05-03 19:34:13 +00:00
matt
8c629cb493
Add getbyteorder(void) prototype.
2013-05-02 07:17:35 +00:00
joerg
81d0329e8d
Make that to process PATH_LOCALE the first time _find_category is
...
called. Use this to implement newlocale and provide duplocale/freelocale
as well. Based on patches by Takehiko Nozaki with simplications and fix
for the init order by myself.
2013-04-30 00:45:04 +00:00
matt
0b64d3196d
Enable fenv support for arm.
2013-04-28 21:07:36 +00:00
joerg
668d06e93f
Include at least ctype_bits.h, even when not providing the macros.
2013-04-28 19:39:56 +00:00
joerg
89a508fbb5
Systematically include sys/featuretest.h when _NETBSD_SOURCE is used.
...
Some are redundant, but make verification with grep much easier.
2013-04-27 21:35:24 +00:00
joerg
e8c1e0eee9
Include sys/featuretest.h before using _NETBSD_SOURCE.
2013-04-27 21:24:27 +00:00
joerg
cce2130bb3
machine/ansi.h is included by sys/ansi.h.
2013-04-27 21:22:05 +00:00
christos
c4c409af9e
add at_quick_exit and quick_exit
2013-04-26 18:07:43 +00:00
joerg
3be70ab6e0
Define __bool_true_false_are_defined for C++ as well.
2013-04-26 17:41:34 +00:00
joerg
cd8f66ed62
Don't pollute the name space with the various stdio macros for C++.
2013-04-26 17:37:06 +00:00
joerg
2e24f90028
Provide the long long routines for C++11 code.
2013-04-26 17:36:24 +00:00
joerg
a74df2a38d
Do not define the ctype(3) interface via macros for C++.
2013-04-26 17:35:52 +00:00
joerg
49082f1e71
Do not define the C++ alternative operator names as macros.
2013-04-26 10:58:45 +00:00
joerg
a4f8ad4bfc
Do not define bool/true/false for C++.
2013-04-26 10:58:22 +00:00
joerg
e9c87d7728
__BEGIN_DECLS/__END_DECLS
2013-04-21 18:41:32 +00:00
joerg
e91cf89069
strftime_l is part of POSIX2008.
2013-04-21 17:54:56 +00:00
joerg
99fac95b50
Store time-specific locale data directly in the locale.
...
Ad dstrftime_l, strftime_lz and strptime_l.
2013-04-21 17:45:46 +00:00
joerg
d1548b5ebd
More __BEGIN_DECLS / __END_DECLS wrappers.
2013-04-19 23:45:15 +00:00
joerg
6c5ca8f80c
Add missing __BEGIN_DECLS/__END_DECLS.
2013-04-19 23:42:26 +00:00
joerg
9790c07a61
Add scanf_l and wscanf_l families.
2013-04-19 23:32:16 +00:00
joerg
e81d3f1ebf
Add dummy strcoll_l and strxfrm_l.
2013-04-19 23:28:47 +00:00
joerg
386426dedd
If __FLT_EVAL_METHOD__ exists and is in {0,1,2}, provide float_t and
...
double_t.
2013-04-19 16:40:59 +00:00
joerg
2561b63430
Add explicit locale versions for the printf family. Replace asprintf,
...
snprintf and sprintf with simple wrappers around the corresponding
va_list functions to reduce code duplication.
2013-04-19 15:22:24 +00:00
joerg
3c1c8515c7
Add MB_CUR_MAX_L.
2013-04-19 14:35:31 +00:00
joerg
10e0e4a06b
Add wcscoll_l, wcsxfrm_l, wcsncasecmp_l, wcscasecmp_l, btowc_l,
...
mbrlen_l, mbsinit_l, mbsrtowcs_l, wcrtomb_l, wcsrtombs_l and wctob_l.
2013-04-18 23:24:26 +00:00
joerg
9a7fa6ff3c
Add wcstof_l, wcstod_l and wcstold_l.
2013-04-18 22:23:17 +00:00
joerg
ceb51ddcad
Add mblen_l, mbstowcs_l, wctomb_l, mbtowc_l and wcstombs_l.
2013-04-18 22:22:20 +00:00
joerg
c99aac45e5
Add strtof_l, strtod_l and strtold_l.
2013-04-18 21:54:10 +00:00
joerg
6ffcdd8d70
Add localeconv_l.
2013-04-17 20:40:13 +00:00
joerg
58520523b5
White space
2013-04-17 09:07:32 +00:00
joerg
a67fde0356
Add strtol_l and friends. Switch _citrus_bcs_strtol to use plain
...
strtol_l unless in tools mode. Add note to retire the BCS code on the
next libc major bump.
2013-04-16 21:44:06 +00:00
joerg
444e318434
Add support for wcstoimax_l and friends.
2013-04-16 16:52:13 +00:00
joerg
2eb3224ae9
Also add prototypes for wcwidth_l and wcswidth_l.
2013-04-16 11:55:02 +00:00
joerg
b7970e3b60
Add wcwidth_l, wcswidth_l and the wctype.h family of *_l functions.
2013-04-16 11:39:13 +00:00
joerg
4e2459a9e6
Add isalpha_l and friends.
2013-04-16 11:29:12 +00:00
joerg
14b179f1c9
Rename struct _locale_impl_t to struct _locale, since it will end up as
...
locale_t later.
2013-04-14 23:30:15 +00:00
christos
4ce5b0bd1b
PR/47617: Thorsten Brehm: Memory and socket leak in librpc
2013-03-04 17:29:03 +00:00
christos
88d1b254b8
More fixes from J.R. Oldroyd. We introduce a new function that can
...
retrieve and return if there has been a conversion error, so that
it can keep performing char-by-char processing if a multi-byte
conversion occurred. Also some more code cleanups in the "extra"
processing.
2013-02-20 17:01:15 +00:00
matt
aa951aade1
FP_ILOGBNAN should be INT_MAX
2013-02-11 07:29:21 +00:00
matt
05393fd8a6
Define FP_ILOGB0 and FP_ILOGBNAN
2013-02-09 22:56:20 +00:00
matt
6c1355b4ee
Add missing long double prototypes.
2013-01-28 23:19:50 +00:00
matt
1ab62a3abe
Add missing long double functions
2013-01-28 23:19:28 +00:00