summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2014-02-25Powerpc seems to expect minimum 8 byte alignment from malloc as well.martin
2014-02-17Bounce the minimum allocation alignement for sparc64 and amd64 as well,martin
to sync with their default gcc configuration. We could relax this again later, after a filing a defect report with the ISO C comitee and getting an answer contradicting the gcc teams interpretation (and then fix the gcc target configurations instead).
2014-02-05Err on the safe side for small memory allocations and provide 4byteskrll
alignment by default. Override this to 8byte alignment for alpha and arm eabi. Someone (tm) can review this change once the standards and compiler(s) have sorted themselves out.
2014-01-10whitespace.wiz
2014-01-08return the same errors as linux for ptsname_rchristos
2014-01-08add ptsname_rchristos
2013-12-11Allow kernel code to access constant databases by moving cdbr(3) and thejoerg
required mi_vector_hash(3) into src/common.
2013-12-02changed lua_Number to int64_tlneto
2013-10-22Reduce amount of casts and make LP64 safe.matt
2013-09-12NetBSD certainly supports TLS in static applications if it supports TLSjoerg
on the platform at all.
2013-09-09Don't scrub the environment unless we are going to change it. This shouldtron
prevent crashes in applications which carefully and manually construct a temporary environment and later restore the original environment like Emacs 24. Problem reported by Thomas Klausner on "pkgsrc-users" mailing list.
2013-08-19Put the startup code in .text.startupmatt
2013-07-20Use Mt for email addresses.wiz
2013-04-26Bump date for adding the function to NetBSD. Fix xref.wiz
2013-04-26Add commas in list.wiz
2013-04-26Bump date after adding function to NetBSD.wiz
2013-04-26add {at_,}quick_exit(3) from FreeBSDchristos
2013-04-25Remove weak_alias since that's now in the compat_putenv.cmatt
2013-04-16Add strtol_l and friends. Switch _citrus_bcs_strtol to use plainjoerg
strtol_l unless in tools mode. Add note to retire the BCS code on the next libc major bump.
2012-12-30typo in comment, from Abhinav Upadhyay in PR 47385dholland
2012-10-24Whitespace improvements.wiz
2012-10-24explain a bit more what's wrong with alloca(3)christos
2012-10-19Use the correct field name when describing the equivalence betweenapb
ptsname(3) and ioctl TIOCPTSNAME. It should be pm.sn, not pm.ps.
2012-06-25Update old-style definitions to ANSI, remove a couple of registerabs
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-24fix old style definitions; XXX: gcc should have picked them up but it did not.christos
2012-06-12Use correct macro (.Nm is only used within the NAME section, for section 3jdf
manpages). Patch provided by Bug Hunting.
2012-06-08ANSI prototypesabs
2012-05-26don't trigger diagassert for a null array with 0 elements or 0 elementsize.christos
2012-03-21rename umax2s->size_t2s function per apb's request.christos
2012-03-21unsigned char portability castschristos
2012-03-21Use C89 function definitionmatt
2012-03-21Cast an int argument to umax2s() to size_t.he
2012-03-21uintmax_t -> size_t (never called with larger than size_t)christos
2012-03-20Remove use of __Pmatt
Switch to using C89 definitions.
2012-03-13PR/45989: Martin Husemann: lint invocation does include -w only on i386christos
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds) approved by core@
2012-03-04base0 == NULL is allowed when nmemb == 0, in fact the nsdispatch code callschristos
bsearch this way.
2012-01-02Clarify the behavior of exit(x) for out-of-range x. PR 45769dholland
2011-10-22Put a recursion limit to avoid DoS attacks (Maksymilian Arciemowicz)christos
While there do minor KNF, and do as the manual says: exit with EXIT_FAILURE
2011-10-21sys/endian.h might not exist in the src/tools casejoerg
2011-10-15Mention POSIX conformance of some functions, when they appeared, sprinkle .Xr.rmind
2011-10-06Provide symbol definitions for environ and __progname. These are duplicatechristos
definitions to the ones provided by csu, but harmless since the linker resolves them. There are 3 non weak data symbols provided in crt0.o: D __progname [initialized data, assigned to ""] B __ps_strings [BSS since assigned to 0] C environ [common, uninitialized] __ps_strings had already a second definition in libc (in BSS), now we added __progname and __ps_strings (in BSS). To get rid of the duplicate definition, we can remove them from csu, and move the assignments to libc. This is done so that libc has no undefined symbols so that linker maps that want to do: ... local: *; ... don't end up producing link failures for libc.
2011-09-17remove the advertising clause so it can be used by the OpenJDK.christos
2011-09-15Various fixes, mostly missing words or letters.wiz
2011-09-14add re-entrant versions of the hash functions based on the GNU api.christos
2011-09-11Note memoryallocators(9) in this perhaps too generally named page.jruoho
2011-08-14no need for the snprintf/asprintf dance; use fixed width formats.christos
2011-06-21Sort sections.wiz
2011-06-21Note the potential danger in the options. Fixes PR lib/31112.jruoho
2011-06-08Fix prologue macros order.njoly
2011-05-18Remove __P()dsl