Bruce Evans
8a4599117b
Don't include <sys/types.h> when it isn't used.
...
This commit covers most of the ANSI library functions. Many others only
need <sys/types.h> because they use u_xxx.
1996-04-19 18:40:25 +00:00
Joerg Wunsch
4567abc2fa
Xref sysexits(3).
1996-03-31 22:31:51 +00:00
Mike Pritchard
064f007493
Added missing section numbers to a bunch of .Xr macros, or
...
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.
1996-03-27 20:49:07 +00:00
Mike Pritchard
e1f4e80c88
Fixed a bunch of man page cross references that were
...
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.
1996-02-15 20:07:05 +00:00
Mike Pritchard
78b0b234eb
Correct a bunch of man page cross references and generally
...
try and silence "manck".
ncurses, rpc, and some of the gnu stuff are still a big mess, however.
1996-02-11 22:38:05 +00:00
Mike Pritchard
a5ed710ccd
Fix even more spelling errors in some more man pages.
1996-01-30 16:34:52 +00:00
Julian Elischer
f70177e76e
Reviewed by: julian and (hsu?)
...
Submitted by: John Birrel(L?)
changes for threadsafe operations
1996-01-22 00:02:33 +00:00
Jordan K. Hubbard
4fab558b60
Return pointer to new hash node when search inserts it (e.g. there
...
was some datum given).
1996-01-13 14:25:04 +00:00
Poul-Henning Kamp
926cb56114
Fix a fencepost error.
...
Found by: Lars Fredriksen <fredriks@mcs.com>
1996-01-05 23:30:41 +00:00
Peter Wemm
6065a0be11
This commit was generated by cvs2svn to compensate for changes in r13122,
...
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Bruce Evans
432889653c
Added prototypes.
1995-12-26 13:25:13 +00:00
Poul-Henning Kamp
9100bbac3d
Preallocate a small structure, so we can sbrk(2) further back.
...
Reviewed by: phk
Submitted by: Kaleb Keithly <kaleb@x.org>
1995-12-18 12:03:54 +00:00
Peter Wemm
04936d2e08
Change phkmalloc so that the page directory is now floating and allocated
...
via mmap() up around the shared library area. Previously the directory
was allocated from space from it's own memory pool. Because of the way it
was being extended on processes with large malloced data segments (ie: inn)
once the page directory was extended for some reason, it was not possible
to lower the heap size any more to return pages to the OS.
(If my understanding is correct, page directory expansion occurs at 4MB,
12MB, 20MB, 28MB, etc.) I was seeing INN allocate a large amount of short
term memory, pushing it over the 28MB mark, and once it's transient demands
hit 28MB, it never freed it's pages and swap space again.)
I've been running this in my libc for about a month...
Also, seperate MALLOC_STATS from EXTRA_SANITY.. I found it useful to call
malloc_dump() from within INN from a ctlinnd command to see where the hell
all the memory was going.. :-) I've left MALLOC_STATS enabled, as it has
no run-time or data storage cost.
Reviewed by: phk
1995-12-11 14:28:12 +00:00
Poul-Henning Kamp
88640ee125
Mino cleanup, #includes & unused vars.
1995-10-22 14:53:17 +00:00
Poul-Henning Kamp
f824233e9e
Remove EXTRA_SANITY, fix a unused var.
1995-10-22 14:47:00 +00:00
David Greenman
283e0c0eb7
Doubled the performance of getenv()/__findenv() by rewriting it to not
...
use strncmp()..
1995-10-17 21:37:41 +00:00
Poul-Henning Kamp
7aa70c9e8e
phkmalloc/2
...
"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. (!!)
1995-10-08 18:44:20 +00:00
Poul-Henning Kamp
182b05e19e
A buglet when dumping and a stylistic point from Mike.
...
Submitted by: Mike Pritchard <mpp@mpp.minn.net>
1995-09-22 14:11:00 +00:00
Poul-Henning Kamp
81df7b69ef
``phkmalloc''
...
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.
1995-09-16 09:28:13 +00:00
Andrey A. Chernov
765d5b0d6f
Make strtod conforms manpage, use isspace to skip initial whitespaces
...
instead of hardcoded whitespaces
1995-08-01 22:20:16 +00:00
Andrey A. Chernov
e7241b8ffe
Similar changes like in strtol, all this family is VERY broken
...
in 8bit environment (isalpha at the end of digits)
1995-08-01 22:04:57 +00:00
Andrey A. Chernov
2bdca0d9f0
strtol and atoi VERY broken in 8bit chars locale, i.e. if you pass something
...
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.)
1995-08-01 21:38:00 +00:00
Rodney W. Grimes
6c06b4e2aa
Remove trailing whitespace.
1995-05-30 05:51:47 +00:00
Jordan K. Hubbard
71e60921ff
Fix a missing _hash() to prevent namespace pollution with the db/hash routines.
...
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.
1995-03-28 08:41:02 +00:00
Andrey A. Chernov
d030a0729f
Hash 8bit chars without sign extension
1995-03-26 19:32:24 +00:00
Jordan K. Hubbard
4796867161
Add the strhash family of routines. They provide a number of features
...
that the db/hash functions don't, and they're much simpler to use for
low-overhead string hashing.
1995-03-26 10:21:55 +00:00
Bruce Evans
5dddb8148b
Don't attempt to lstat() the POSIXLY invalid empty pathname.
...
realpath() still accepts "" as an arg and converts it to a canonical
pathname for the current directory.
1995-02-25 16:06:07 +00:00
Bruce Evans
7e80dad5c6
u_int -> unsigned int, so that we don't have to include <sys/types.h>
...
or depend on <stdio.h> bogusly including it.
1994-09-05 13:26:40 +00:00
Garrett Wollman
2ceb2ce9ee
First crack at making libc work with the new make macros. It compiles on
...
my machine, and a simple static (genassym) and shared (sysctl) executable
both work. Still to be done: RPCand YP merge.
1994-08-05 01:19:12 +00:00
Rodney W. Grimes
58f0484fa2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00