summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2015-11-13revert 0b documentation.christos
2015-11-13Remove trailing whitespace.wiz
2015-11-12Now that our source tree has binary constants, recognize them.christos
2015-11-07Use Dv for NULL.wiz
2015-11-07Sort SEE ALSO.wiz
2015-11-07Add the C11 function aligned_alloc to libc.nros
2015-09-01ANSIfy getopt(3) - this is the REPLACE_GETOPT version from getopt_long(3)kamil
For the reference, this version still passes the current set of ATF tests for the getopt(3) function. This version is by default unused.
2015-09-01Constness correction for the getopt(3) function under REPLACE_GETOPTkamil
Use the __UNCONST() macro, which is used in the other parts for the same argument nargv, but under the !REPLACE_GETOPT namespace.
2015-08-20Minor alterations to reallocarr(3)kamil
Add comment about division. Mark error branches with __predict_false(). Reduce one branch with the OR trick.
2015-08-20Fix portability.joerg
2015-07-28Compatibility fixes in reallocarr(3)kamil
Make this work on !NetBSD platforms: - replace __CTASSERT() with platform agnostic solution SQRT_SIZE_MAX - include nbtool_config.h for cross builds to get definition of __RCSID() - restore errno in the last rare code path for platforms affecting errno(2) in memcpy(2) While there: rename parameter name 'num' to 'number' to be in sync with the calloc(3) parameter naming. Reported by scole_mail at the current-users ml.
2015-07-26Spacing; Fn -> Xr for jemalloc.wiz
2015-07-26Defer using pthread keys until we are threaded.martin
From Christos, fixes PR port-arm/50087 by allowing malloc calls prior to libpthread initialization.
2015-07-26Add history of allocatorskamil
Idea accepted by <christos> No objctions from <riastradh>
2015-07-26From Timo Buhrmester: Fix wrong parameter descriptionchristos
2015-07-26mandoc lintkamil
2015-07-26Add license header (the NetBSD 2-clause version) with (C) TNFkamil
2015-07-26reallocarray(3) cleanupkamil
Add missing NetBSD CVS Id Don't define twice _OPENBSD_SOURCE
2015-07-16Reorder memcpy(3) and save errnokamil
This change is for safety as memcpy(3) might change it. Approved by <riastradh>
2015-07-11Add missing Fc.wiz
2015-07-11Add missing Fc which broke man page on the web. Remove superfluous Pp.wiz
2015-05-03Sort SEE ALSO.wiz
2015-05-03Sort ERRORS and SEE ALSO.wiz
2015-05-01- new test for strtoichristos
- namespace protection for strto{i,u} - separate manpages for strto{i,u} from the ones for strto{u,}l From: Kamil Rytarowski
2015-04-19Redo __aeabi_atexit by shuffling the arguments and dropping the code injoerg
libstdc++.
2015-04-18Add __aeabi_atexit alias for another case of NIH on ARM.joerg
2015-03-11Use existing month for Dd.wiz
2015-03-10Behave in an OpenBSD compatible way for 0.christos
2015-03-10PR/49640: Kamil Rytarowski: Improve error printingchristos
2015-03-10The OpenBSD strtonum() only accepts base 10 keywords. (Kamil Rytarowski)christos
2015-02-19Add EXAMPLES section, from Youri Mouton.wiz
Bump date.
2015-02-18Fix Xref. Split line, Ox doesn't take word arguments.wiz
2015-02-17use reallocarr()christos
2015-02-17Move reallocarray under _OPENBSD_SOURCE where it belongs.joerg
2015-02-17Introduce reallocarr(3) for easy (re)allocation of memory with overflowjoerg
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.
2015-02-06Remove trailing whitespace.wiz
2015-02-05Remove incorrect comment about size; mention that the malloc ambiguity ischristos
part of the C standard.
2015-02-05Revert addition to reallocarray to the malloc man page, but keepchristos
the examples. Add separate manual page to reallocarray explaining what are the problems with it.
2015-02-05Add and use reallocarray() to prevent a multiplication overflow in allocation.christos
Reported by Guido Vranken, thanks!
2015-02-05cast to return typechristos
2015-01-20Fix non _REENTRANT build.christos
2015-01-19Fix date. Sort section. Sort errors. Sort SEE ALSO. Break too longwiz
lines.
2015-01-18cleanups from (Kamil Rytarowski)christos
2015-01-18man page for strtonum.3christos
2015-01-16Remove trailing whitespace.wiz
2015-01-16Add strtonum implemented as a wrapper of strtoi.christos
2015-01-16strtoi and strtou additionschristos
2014-12-10Add two more Makefile conditionals required for RUMPRUN=yespooka
* do not build _errno.c (different thread/tls handling) * do not build either phk- or jemalloc (different backing page allocation) Somehow I missed these in the previous commit, but now libc built with RUMPRUN=yes works also with rumprun-posix, so there's reasonably high confidence that I didn't miss anything anymore.
2014-09-19Tell it about riscv. Fix mips64 case so that SIZEOF_PTR_2POW is 3.matt
2014-09-19Sort sections. From Henning Petersen in PR 49222.wiz