summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/calloc.c
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for a new malloc implementation:Jason Evans2006-01-121-61/+0
| | | | | | | | | | | | | | | | * Add posix_memalign(). * Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf). * Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock. Approved by: phk, markm (mentor) Notes: svn path=/head/; revision=154248
* Nonexistent SIZE_MAX -> SIZE_T_MAXAndrey A. Chernov2002-08-041-1/+1
| | | | Notes: svn path=/head/; revision=101291
* Signal an error instead of giving the caller less memory than they askedTim J. Robbins2002-08-041-0/+7
| | | | | | | | | for when num * size would cause integer overflow. MFC after: 1 week Notes: svn path=/head/; revision=101290
* Remove 'register' keyword.David E. O'Brien2002-03-211-2/+4
| | | | Notes: svn path=/head/; revision=92889
* malloc_sysv used before initialized, reported in PR4002 byPoul-Henning Kamp1997-07-011-0/+52
| | | | | | | | | | | | | | | | | | Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Various cleanup from Keith Bostic Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect. PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com> Notes: svn path=/head/; revision=27152
* Integrate calloc with the rest of the gang.Poul-Henning Kamp1997-06-221-52/+0
| | | | | | | | | | | | | | Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary. Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com> Notes: svn path=/head/; revision=26816
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-1/+1
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+52
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573