History log of /netbsd-src/include/stdlib.h (Results 1 – 25 of 128)
Revision Date Author Comments
# fc9238f1 02-Nov-2024 nia <nia@NetBSD.org>

libc: Expose mkostemp(3) to POSIX.1-2024 applications.


# 85ba5148 11-Oct-2024 riastradh <riastradh@NetBSD.org>

stdlib.h: Expose reallocarray only for POSIX 2024 or NetBSD/OpenBSD.

reallocarray(3) is new in POSIX 2024, so it should not be exposed if
you ask for an older POSIX standard like _POSIX_C_SOURCE=200

stdlib.h: Expose reallocarray only for POSIX 2024 or NetBSD/OpenBSD.

reallocarray(3) is new in POSIX 2024, so it should not be exposed if
you ask for an older POSIX standard like _POSIX_C_SOURCE=200809L.

PR standards/58741

show more ...


# f46ca6fa 09-Sep-2024 riastradh <riastradh@NetBSD.org>

stdlib.h: Use same test for def. of lldiv_t as for decl. of lldiv(3).

The !_ANSI_SOURCE conditional was a leftover from before we had
_NETBSD_SOURCE in sys/featuretest.h already defined conditionall

stdlib.h: Use same test for def. of lldiv_t as for decl. of lldiv(3).

The !_ANSI_SOURCE conditional was a leftover from before we had
_NETBSD_SOURCE in sys/featuretest.h already defined conditionally on
!_ANSI_SOURCE.

So just nix the !_ANSI_SOURCE part -- and while here, reorder and
reformat the conditional around lldiv_t so it matches the conditional
around lldiv(3) byte-for-byte, just to make it more obvious.

PR standards/56402: Definition of lldiv_t with ANSI_SOURCE and
POSIX_SOURCE

show more ...


# dd8db245 28-Oct-2022 wiz <wiz@NetBSD.org>

put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

As discussed on tech-userlevel

show more ...


# c68ac3ce 05-Oct-2022 nia <nia@NetBSD.org>

Remove hacky gcc2-specific alloca definition.


# d9a86489 03-Jul-2021 christos <christos@NetBSD.org>

PR/56250: Michael Forney: mkstemp/mkdtemp not declared with
_POSIX_C_SOURCE=200809L


# 5262cf8c 26-May-2020 joerg <joerg@NetBSD.org>

Avoid depending on namespace pollution in stdlib.h.


# b3991c88 05-Jan-2019 maya <maya@NetBSD.org>

We can make a stronger guarantee than __pure.
abs/labs don't read global memory.

Make GCC 9 happier.


# a9fb6a0f 15-Aug-2018 martin <martin@NetBSD.org>

PR standards/53525: move getsubopt() to stdlib.h


# 96a83291 07-Oct-2017 christos <christos@NetBSD.org>

remove recallocarray


# 345c6946 07-Oct-2017 christos <christos@NetBSD.org>

add recallocarray (used by openssh-7.6)


# d32f1d2f 01-Jul-2016 christos <christos@NetBSD.org>

add hmac(3)


# b16a5c9d 07-Nov-2015 nros <nros@NetBSD.org>

Add the C11 function aligned_alloc to libc.


# 9b5f3d57 17-Feb-2015 joerg <joerg@NetBSD.org>

Move reallocarray under _OPENBSD_SOURCE where it belongs.


# c9baa596 17-Feb-2015 joerg <joerg@NetBSD.org>

Introduce reallocarr(3) for easy (re)allocation of memory with overflow
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend

Introduce reallocarr(3) for easy (re)allocation of memory with overflow
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend on malloc(0) != NULL
for correct error checking. Compared to plain realloc, it also avoids
the problem of intermediate integer overflows. The trade-off is the use
of void * to side step C type system with regard to generic pointer to
pointer.

show more ...


# 7f04eb91 05-Feb-2015 christos <christos@NetBSD.org>

add reallocarray


# f1e6017c 18-Jan-2015 christos <christos@NetBSD.org>

remove restrict to match with OpenBSD prototype (Kamil Rytarowski)


# 5bdc2761 16-Jan-2015 christos <christos@NetBSD.org>

Add strtonum protected with _OPENBSD_SOURCE


# e00a3615 18-Jun-2014 christos <christos@NetBSD.org>

add mkostemp{s,} mkstemps from FreeBSD


# b27e1354 12-Jun-2014 christos <christos@NetBSD.org>

rename to 60


# 1eb0dcbb 12-Jun-2014 christos <christos@NetBSD.org>

fix srandom and initstate signatures (from enh at google)


# eabc0dd1 08-Jan-2014 christos <christos@NetBSD.org>

add ptsname_r


# c4c409af 26-Apr-2013 christos <christos@NetBSD.org>

add at_quick_exit and quick_exit


# 2e24f900 26-Apr-2013 joerg <joerg@NetBSD.org>

Provide the long long routines for C++11 code.


# 3c1c8515 19-Apr-2013 joerg <joerg@NetBSD.org>

Add MB_CUR_MAX_L.


123456