| #
2db69065 |
| 09-Dec-2024 |
nros <nros@NetBSD.org> |
memccpy, strdup and strndup are in C23
7.26.2.2 memccpy 7.26.2.6 strdup 7.26.2.7 strndup
|
| #
b7152c32 |
| 02-Nov-2024 |
riastradh <riastradh@NetBSD.org> |
memset_explicit(3): Add C23 alias for explicit_memset.
PR standards/58607: C23: <string.h> memset_explicit
|
| #
2dd10e69 |
| 01-Nov-2024 |
riastradh <riastradh@NetBSD.org> |
string.h: Fix various symbol visibility issues.
1. Order declarations according to POSIX 2024 to make this easier to review side-by-side with the spec. 2. Fix visibility of memccpy: XSI-only, not
string.h: Fix various symbol visibility issues.
1. Order declarations according to POSIX 2024 to make this easier to review side-by-side with the spec. 2. Fix visibility of memccpy: XSI-only, not POSIX in general; require _XOPEN_SOURCE, not just _POSIX_C_SOURCE. 3. Omit redundant _XOPEN_SOURCE test around stpcpy/stpncpy. 4. Hide strdup in POSIX 2001. Not POSIX (without XSI) until 2008. 5. Hide strerror_r until POSIX 2001. Can't find evidence of it in any earlier POSIX or X/Open. (Not 100% sure on this one, maybe someone can double-check my research.) 6. Add restrict to strlcat/strlcpy. 7. Omit redundant _XOPEN_SOURCE test around strndup and strnlen. 8. Hide strtok_r until POSIX 2001. Can't find evidence of it in any earlier POSIX or X/Open. (Not 100% sure on this one, maybe someone can double-check my research.)
Carry the restrict qualifiers on strlcat/strlcpy to libkern too.
Main reference: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/string.h.html
PR standards/58804: string.h: wrong visibility for memccpy
show more ...
|
| #
0e03e9aa |
| 01-Nov-2024 |
nia <nia@NetBSD.org> |
libc: Expose some newly-standard C functions in POSIX.1-2024 mode
|
| #
b515b595 |
| 01-Aug-2023 |
christos <christos@NetBSD.org> |
Add companion mempcpy to wmempcpy, bump.
|
| #
6584ea56 |
| 09-Aug-2021 |
andvar <andvar@NetBSD.org> |
fix various typos in compatibility, mainly in comments.
|
| #
4f2f27c8 |
| 20-Feb-2018 |
kamil <kamil@NetBSD.org> |
Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001
|
| #
12b4355e |
| 12-Oct-2016 |
christos <christos@NetBSD.org> |
add strchrnull
|
| #
2a4b16ea |
| 10-Mar-2016 |
leot <leot@NetBSD.org> |
strndup() is part of XSI from The Open Group Base Specification Issue 7 and had a similar history of stpcpy(), stpncpy() and strnlen(). Make it visible under XOPEN_SOURCE>=700 too (not just _NETBSD_S
strndup() is part of XSI from The Open Group Base Specification Issue 7 and had a similar history of stpcpy(), stpncpy() and strnlen(). Make it visible under XOPEN_SOURCE>=700 too (not just _NETBSD_SOURCE).
ok dholland@
show more ...
|
| #
155fdf39 |
| 24-Sep-2014 |
christos <christos@NetBSD.org> |
add strnstr from FreeBSD
|
| #
1239c2bb |
| 28-Aug-2013 |
riastradh <riastradh@NetBSD.org> |
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
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)
show more ...
|
| #
495fdb7e |
| 28-Aug-2013 |
riastradh <riastradh@NetBSD.org> |
Make explicit_memset match memset's return value.
|
| #
cc1cb97e |
| 27-Aug-2013 |
joerg <joerg@NetBSD.org> |
Remove outdated comment.
|
| #
7efdee83 |
| 19-Aug-2013 |
joerg <joerg@NetBSD.org> |
Add strerror_l.
|
| #
82db4b98 |
| 24-Jun-2013 |
riastradh <riastradh@NetBSD.org> |
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.
Pa
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.
show more ...
|
| #
e9c87d77 |
| 21-Apr-2013 |
joerg <joerg@NetBSD.org> |
__BEGIN_DECLS/__END_DECLS
|
| #
e81d3f1e |
| 19-Apr-2013 |
joerg <joerg@NetBSD.org> |
Add dummy strcoll_l and strxfrm_l.
|
| #
8588929d |
| 30-Aug-2012 |
drochner <drochner@NetBSD.org> |
Add "consttime_bcmp" and "explicit_bzero" functions for both kernel abd userland, as proposed on tech-security, with explicit_bzero using a volatile function pointer as suggested by Alan Barrett. Bot
Add "consttime_bcmp" and "explicit_bzero" functions for both kernel abd userland, as proposed on tech-security, with explicit_bzero using a volatile function pointer as suggested by Alan Barrett. Both do what the name says. For userland, both are prefixed by "__" to keep them out of the user namespace. Change some memset/memcmp uses to the new functions where it makes sense -- these are just some examples, more to come.
show more ...
|
| #
2839b8fc |
| 20-Apr-2012 |
joerg <joerg@NetBSD.org> |
Do not wrap other header files with extern "C".
|
| #
9be46036 |
| 22-Jul-2009 |
kleink <kleink@NetBSD.org> |
Declare strsignal(3) in <string.h>, per POSIX-2008, and adjust documentation accordingly.
Fixes PR standards/41325 from Perry E. Metzger.
|
| #
b1606298 |
| 01-May-2009 |
perry <perry@NetBSD.org> |
note that we have strsignal but it is in the wrong include file.
|
| #
bdb0c5fb |
| 01-May-2009 |
perry <perry@NetBSD.org> |
Add prototypes for stpcpy, stpncpy, strnlen, added in the latest POSIX.
Implementations in libc to follow.
For POSIX compliance, we are still missing:
strcoll_l strerror_l strsignal strxfrm_l
|
| #
84e3ca2d |
| 10-Apr-2009 |
christos <christos@NetBSD.org> |
add memrchr
|
| #
e2347743 |
| 19-Oct-2007 |
christos <christos@NetBSD.org> |
kill _NETBSD_TOOLS.
|
| #
6c189078 |
| 18-Oct-2007 |
christos <christos@NetBSD.org> |
Introduce _NETBSD_TOOLS for symbols the are needed in tools build
|