summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* phkmalloc/2phk1995-10-082-311/+370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "zero' and 'junk' options to help find and diagnose malloc abuse. EXTRA_SANITY defaults "junk" to on. Don't dump the internal state, unless EXTRA_SANITY. General code cleanup. Error messages cleaned up a bit, more checking earlier. EXTRA_SANITY is default at this time (just in case). Performance (without EXTRA_SANITY) is better, beats gnumalloc in both time & space most of the time: # In-memory test. ./malloc 50000000 2000 8192 159.2u 1.5s 2:41.85 99.3% 5+7742k 0+0io 0pf+0w ./gnumalloc 50000000 2000 8192 272.6u 0.4s 4:35.01 99.3% 5+8533k 0+0io 0pf+0w # Swap-space test. ./malloc 500000 14000 8192 6.5u 4.1s 4:08.87 4.3% 5+49209k 0+0io 9772pf+0w ./gnumalloc 500000 14000 8192 16.2u 14.5s 15:36.14 3.2% 5+54100k 0+0io 47651pf+0w # Small items test. ./malloc 20000000 20000 2048 67.0u 0.3s 1:07.83 99.2% 5+18199k 0+0io 4pf+0w ./gnumalloc 20000000 20000 2048 66.2u 0.3s 1:07.03 99.3% 5+18107k 0+0io 0pf+0w SANITY is not an option anymore. (!!)
* A buglet when dumping and a stylistic point from Mike.phk1995-09-221-8/+8
| | | | Submitted by: Mike Pritchard <mpp@mpp.minn.net>
* ``phkmalloc''phk1995-09-163-373/+1123
| | | | | | | Performance is comparable to gnumalloc if you have sufficient RAM, and it screams around it if you don't. Compiled with "EXTRA_SANITY" until further notice. see malloc.3 for more details.
* Make strtod conforms manpage, use isspace to skip initial whitespacesache1995-08-011-7/+3
| | | | instead of hardcoded whitespaces
* Similar changes like in strtol, all this family is VERY brokenache1995-08-015-5/+15
| | | | in 8bit environment (isalpha at the end of digits)
* strtol and atoi VERY broken in 8bit chars locale, i.e. if you pass somethingache1995-08-011-1/+3
| | | | | | like 38400<any 8bit char, isalpha> it not detect this stuff and produce very big number instead. Fixed by operating with unsigned char and checking for isascii. (secure/telnetd hits by it f.e.)
* Remove trailing whitespace.rgrimes1995-05-3010-71/+78
|
* Fix a missing _hash() to prevent namespace pollution with the db/hash routines.jkh1995-03-281-5/+7
| | | | | | | Grrr. If the dbhash routines weren't grossly overengineered I wouldn't even need to do this! :-( Also now export the hash_stats routine. Manpage coming RSN - I promise.
* Hash 8bit chars without sign extensionache1995-03-261-3/+8
|
* Add the strhash family of routines. They provide a number of featuresjkh1995-03-262-2/+416
| | | | | that the db/hash functions don't, and they're much simpler to use for low-overhead string hashing.
* Don't attempt to lstat() the POSIXLY invalid empty pathname.bde1995-02-251-1/+1
| | | | | realpath() still accepts "" as an arg and converts it to a canonical pathname for the current directory.
* u_int -> unsigned int, so that we don't have to include <sys/types.h>bde1994-09-051-2/+2
| | | | or depend on <stdio.h> bogusly including it.
* First crack at making libc work with the new make macros. It compiles onwollman1994-08-051-4/+8
| | | | | my machine, and a simple static (genassym) and shared (sysctl) executable both work. Still to be done: RPCand YP merge.
* This commit was generated by cvs2svn to compensate for changes in r1573,rgrimes1994-05-2762-0/+9451
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * BSD 4.4 Lite Lib Sourcesrgrimes1994-05-2762-0/+9451
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-272-0/+250
OpenPOWER on IntegriCloud