matt
a9c8f9282e
Make ptrdiff_t available in the kernel.
2013-12-12 17:53:03 +00:00
joerg
aceb213538
Allow kernel code to access constant databases by moving cdbr(3) and the
...
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
joerg
fcff7df126
Add cdbr_open_mem.
2013-12-05 21:17:23 +00:00
christos
115f51c7be
add new internal functions
2013-12-01 00:23:11 +00:00
christos
96c26aba65
use a TAILQ instead of a CIRCLEQ, from FreeBSD
2013-11-22 16:25:01 +00:00
degroote
0809f57592
Expose properly vfwscanf and friends for POSIX_SOURCE >= 200112L
2013-11-21 09:09:52 +00:00
christos
53e3f1af8a
gcc-4.8.1 is has a builtin stpncpy, but is missing the __builtin_ ssp
...
equivalent. go figure.
2013-11-07 02:00:54 +00:00
tron
fb23e6a8a9
Revert my last change. I'm not convinced it is correct and while it seems
...
to fix some build problems it might cause others.
2013-11-07 00:02:58 +00:00
tron
24f67c8710
Add missing declarations for SSP versions of stpcpy(3) and stpncpy(3).
2013-11-06 21:33:12 +00:00
christos
c15ffc1416
add stp{,n}cpy
2013-11-06 16:31:08 +00:00
njoly
0d88813605
Follow OpenGroup online specification[1], move
...
fchmodat/mkdirat/mkfifoat/mknodat prototypes to <sys.stat.h>.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
2013-10-09 09:38:21 +00:00
martin
cc4812f36b
Allow archs to provide __isinf() and __isnan() as inline functions instead
...
of macros.
2013-09-16 15:54:42 +00:00
riastradh
1239c2bb08
Publish explicit_memset and consttime_memequal in userland libc.
...
Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.
As discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)
2013-08-28 17:47:07 +00:00
riastradh
495fdb7e9a
Make explicit_memset match memset's return value.
2013-08-28 15:46:23 +00:00
joerg
cc1cb97e40
Remove outdated comment.
2013-08-27 18:29:28 +00:00
joerg
7efdee83f2
Add strerror_l.
2013-08-19 13:03:12 +00:00
joerg
9c11b12444
Add nl_langinfo_l, catopen_l and wcsftime_l.
2013-08-19 08:03:33 +00:00
christos
2c0b172d86
fix gethostbyaddr prototype per TOG.
2013-08-19 07:18:42 +00:00
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