summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/2.2.8_cvscvs2svn1999-01-218-8/+12
| | | | | | | 'RELENG_2_2_8_RELEASE'. This commit was manufactured to restore the state of the 2.2.8-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC: Handle a zero elements argument.Robert Nordier1998-11-041-0/+3
| | | | Notes: svn path=/stable/2.2/; revision=40897
* As theatened two weeks ago: merge the major changes from -current's pthreadThomas Gellekum1998-11-043-27/+43
| | | | | | | | | | | | implementation. This includes file locking based on FILE *, signal fixes, read/write-locks, better POSIX compliance and better performance. Not included are changes relating to realtime scheduling. Famous last words: I've now built the world several times with these changes, so they shouldn't break anything. Notes: svn path=/stable/2.2/; revision=40895
* MFC: doc fixes, casts, cosmetic.Jordan K. Hubbard1998-07-192-3/+4
| | | | Notes: svn path=/stable/2.2/; revision=37751
* MFC part 5: Fix recursion problem which occurs when a signal is receivedThomas Gellekum1998-04-301-3/+12
| | | | | | | | during a malloc. The signal handler creates a thread which requires a malloc... For now, the only thing to do is to block signals. Notes: svn path=/stable/2.2/; revision=35532
* MFC part 2: Static initializers for mutexes and condition variables.Thomas Gellekum1998-04-231-2/+2
| | | | Notes: svn path=/stable/2.2/; revision=35400
* MFC: indentDima Ruban1998-04-201-1/+1
| | | | Notes: svn path=/stable/2.2/; revision=35359
* remove bogus bugs section.Jordan K. Hubbard1998-04-131-8/+0
| | | | | | | Submitted by: Niall Smart <rotel@indigo.ie> Notes: svn path=/stable/2.2/; revision=35164
* MFC: bring in arc4random code.Jordan K. Hubbard1998-03-013-55/+144
| | | | Notes: svn path=/stable/2.2/; revision=33947
* MFC: constify.Jordan K. Hubbard1998-02-171-2/+2
| | | | Notes: svn path=/stable/2.2/; revision=33499
* MFC: symlink loop checking in realpath().Jordan K. Hubbard1998-02-172-1/+6
| | | | Notes: svn path=/stable/2.2/; revision=33498
* MFC: minor improvements to radixsort.Jordan K. Hubbard1998-02-172-5/+5
| | | | Notes: svn path=/stable/2.2/; revision=33497
* MFC: getopt() wants to use -1 instead of EOF now.Jordan K. Hubbard1998-02-172-16/+24
| | | | Notes: svn path=/stable/2.2/; revision=33496
* MFC: Fix ``Integer overflow in expression''.Thomas Gellekum1998-01-221-1/+1
| | | | Notes: svn path=/stable/2.2/; revision=32700
* environmental -> environmentPhilippe Charnier1997-09-191-2/+2
| | | | Notes: svn path=/stable/2.2/; revision=29599
* Merge malloc from current.Poul-Henning Kamp1997-07-244-408/+434
| | | | Notes: svn path=/stable/2.2/; revision=27649
* YAMFC part IIIJulian Elischer1997-06-241-3/+7
| | | | | | | | | | Submitted by: john Birrell (a long time ago) probably a bit more to do as well Part of the pthreads upgrade (from not really working to mostly working) :) Notes: svn path=/stable/2.2/; revision=26866
* YAMFC: .Tn cleanup and other misc cleanup.Mike Pritchard1997-03-252-5/+5
| | | | Notes: svn path=/stable/2.2/; revision=24230
* YAMFC (check for overflow in size argument)Poul-Henning Kamp1997-03-181-2/+4
| | | | Notes: svn path=/stable/2.2/; revision=23983
* YAMFC (sort cross references).Bruce Evans1997-03-031-2/+2
| | | | Notes: svn path=/stable/2.2/; revision=23338
* YAMFC:Mike Pritchard1997-02-284-6/+6
| | | | | | | | | | | | | | | | | | | | Commit all of the -current changes that apply to 2.2. These fall into several categories: - Cosmetic/mdoc changes. They don't really afect the output at all, but having them in 2.2 will make it easier to diff the man pages later when looking for real changes. - Update some man pages to reflect the current 2.2 header files. - Sort xrefs. - A few typo fixes. - And a few changes that actualy added text to the man page that should be reflected in 2.2. - Add some missing MLINKS. Requested by: bde Notes: svn path=/stable/2.2/; revision=23174
* YAMFC: various minor man page cleanupsMike Pritchard1997-01-022-4/+6
| | | | Notes: svn path=/stable/2.2/; revision=21220
* Bring in thread locking fix from rev 1.19.Alexander Langer1996-12-301-2/+2
| | | | | | | Approved by: jkh Notes: svn path=/stable/2.2/; revision=21035
* This commit was manufactured by cvs2svn to create branch 'RELENG_2_2'.cvs2svn1996-11-022-254/+0
| | | | Notes: svn path=/stable/2.2/; revision=19327
* If you run with option Z and malloc fails, memset gets calledPoul-Henning Kamp1996-10-291-4/+6
| | | | | | | | | | with a NULL pointer (archie) Explain that minsize is also the smallest alignment. Submitted by: Archie Cobbs <archie@whistle.com> Notes: svn path=/head/; revision=19257
* Note that streams are now flushed on abort.Alexander Langer1996-10-261-2/+2
| | | | | | | Change standards section to reflect POSIX 1003.1-1990 conformance. Notes: svn path=/head/; revision=19196
* Various cosmeticsPoul-Henning Kamp1996-10-261-48/+28
| | | | | | | | | Improve chances of troublefree 64bit operation. [imp] Noticed by: Warner Losh <imp@village.org> Notes: svn path=/head/; revision=19191
* POSIX requires stdio buffers be flushed on abort.Alexander Langer1996-10-261-0/+8
| | | | | | | Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG> Notes: svn path=/head/; revision=19189
* malloc_pages should be static.Poul-Henning Kamp1996-10-201-187/+103
| | | | | | | | | | | | | | | | | | | Add progname to warning/error message layout. (joerg) Remove inline assembler, no speed impact, not need for the obfuscation (bde) Remove on the fly calculation of parameters, no longer critical. Make D & U flags valid even if we don't support them. Don't call imalloc until we're done initializing. Zap contents on free() if we have "Junk" set. [*] Various nitpicking. [*] As a sideeffect of this change, if you are worried about sensitive data lingering in memory, you can use the 'Junk' option now to make sure phkmalloc zaps memory when it is returned. add char * malloc_options = "J"; to your source. Obviously there is a performance impact. Notes: svn path=/head/; revision=19057
* Improve seeding, the random sequence did not vary matchAndrey A. Chernov1996-10-092-14/+75
| | | | | | | with the seed. Old variant will be available via libcompat soon. Notes: svn path=/head/; revision=18832
* Don't use malloc, pessimize to use sbrk.Poul-Henning Kamp1996-09-271-1/+2
| | | | | | | fix sbrk manpage while we're at it. Notes: svn path=/head/; revision=18516
* Fix a typo.Søren Schmidt1996-09-251-2/+2
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=18495
* A number of minor bogons and portability things from jdp.Poul-Henning Kamp1996-09-251-28/+37
| | | | | | | Submitted by: jdp Notes: svn path=/head/; revision=18493
* add missing comma(s) in .Xr macrosWolfram Schneider1996-09-231-3/+4
| | | | Notes: svn path=/head/; revision=18480
* phkmalloc/3Poul-Henning Kamp1996-09-232-196/+342
| | | | | | | | | | | Various neat features added. More documentation in the manpage. If your machine has very little RAM, I guess that would be < 16M these days :-(, you may want to try this: ln -fs 'H<' /etc/malloc.conf check the manpage. Notes: svn path=/head/; revision=18479
* Fix a very rare error condition: The code to free VM back to the kernelPoul-Henning Kamp1996-09-171-3/+4
| | | | | | | | | | as done after a quasi-recursive call to free() had modified what we thought we knew about the last chunk of pages. This bug manifested itself when I did a "make obj" from src/usr.sbin/lpr, then make would coredump in the lpd directory. Notes: svn path=/head/; revision=18333
* Don't depend in the kernel on the gcc feature of doing arithmetic onBruce Evans1996-08-311-10/+10
| | | | | | | pointers of type `void *'. Warn about this in future. Notes: svn path=/head/; revision=17971
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-222-2/+4
| | | | | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages. Notes: svn path=/head/; revision=17782
* Update a bunch of man pages to use .Fn insteadMike Pritchard1996-08-221-1/+1
| | | | | | | of .Nm when referencing funciton names. Notes: svn path=/head/; revision=17780
* Correctly document when getopt returns EOF and '?', and some otherMike Pritchard1996-08-211-5/+7
| | | | | | | minor cleanup. Notes: svn path=/head/; revision=17748
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-1211-40/+43
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Isolated all the crap for thread-safe so I can see what goes on again...Poul-Henning Kamp1996-07-031-61/+48
| | | | Notes: svn path=/head/; revision=16941
* Oops, replace a rather important line that was lost in transit 8-(James Raynard1996-06-081-1/+2
| | | | Notes: svn path=/head/; revision=16228
* Submitted by: (based on code in "Advanced Programming in the Unix Environment"James Raynard1996-06-052-18/+36
| | | | | | | | | | | | | | | | | | | by W.Richard Ste vens. EINTR handling suggested by bde@freebsd.org). Code cleanup: 1. Add missing return type. 2. Replace 'union wait' by int. 3. Use Posix-style signal handling instead of signal(). 4. Use fork() instead of deprecated vfork(). 5. Block signals before fork()'ing, instead of after. 6. Return -1 if fork() fails, instead of 0. 7. Add EINTR handling for waitpid() call. Also add claim of Posix conformance to man page. Notes: svn path=/head/; revision=16117
* Fixed various problems: typos, grammer, missing include filesMike Pritchard1996-05-231-1/+1
| | | | | | | | wrong function type declarations, and wrong argument type declarations. Notes: svn path=/head/; revision=15874
* Don't include <sys/types.h> when it isn't used.Bruce Evans1996-04-192-4/+2
| | | | | | | | This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx. Notes: svn path=/head/; revision=15312
* Xref sysexits(3).Joerg Wunsch1996-03-311-1/+7
| | | | Notes: svn path=/head/; revision=14964
* Added missing section numbers to a bunch of .Xr macros, orMike Pritchard1996-03-271-4/+9
| | | | | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems. Notes: svn path=/head/; revision=14855
* Fixed a bunch of man page cross references that wereMike Pritchard1996-02-151-1/+1
| | | | | | | | | | | in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section. Notes: svn path=/head/; revision=14101
* Correct a bunch of man page cross references and generallyMike Pritchard1996-02-113-5/+5
| | | | | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however. Notes: svn path=/head/; revision=14038