summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/merge.c
AgeCommit message (Collapse)Author
2018-05-23Simplify to avoid pointless null pointer arithmetic.joerg
2017-08-12PR lib/50316: Gracefully handle a zero number of members argument.ginsbach
Taken from FreeBSD (which fixed this same issue long ago). XXX: pullup-8 XXX: pullup-7 XXX: pullup-6
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@
2011-05-18Remove __P()dsl
2009-02-12fix sign-compare issuelukem
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2000-01-22Delint.mycroft
Remove trailing ; from uses of __weak_alias(). The macro inserts this if needed.
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
_DIAGASSERT() is still retained.
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls. the first two items result in the addition of code similar to the following in various functions: _DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
1998-11-15delintchristos
1998-02-03remove obsolete register declarationsperry
1997-07-21If port provides __weak_alias(), provide an Standard C and POSIX purejtc
identifier namespace by renaming non standard functions and variables such that they have a leading underscore. The library will use those names internally. Weak aliases are used to provide the original names to the API. This is only the first part of this change. It is most of the functions which are implemented in C for all NetBSD ports. Subsequent changes are to add the same support to the remaining C files, to assembly files, and to the automagically generated assembly source used for system calls. When all of the above is done, ports with weak alias support should add a definition for __weak_alias to <sys/cdefs.h>.
1997-07-13Add local.h for local prototypes.christos
Fix namespace issues for strtoq and strtouq Fix gcc warnings. Fix RCSID's
1995-12-28New-style RCS ids.thorpej
1994-06-16Add RCS ids.mycroft
1994-06-16Import from 4.4-Lite.mycroft