Jason Evans
bd6a7799c4
Optimize realloc() to reallocate in place if the old and new sizes are
...
close enough to each other that reallocation would allocate a new region
of the same size. This improves the performance of repeated incremental
reallocations by up to three orders of magnitude. [1]
Fix arena_new() to properly constrain run size if a small chunk size was
specified during runtime configuration.
Suggested by: se [1]
2006-03-19 18:28:06 +00:00
Ruslan Ermilov
fcaa466865
Provide alternate default for SHLIBDIR before bsd.own.mk does this.
...
Reported by: phk
2006-03-18 11:01:06 +00:00
Ruslan Ermilov
e1fe3dba5c
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Jason Evans
2d07e432d4
Modify allocation policy, in order to avoid excessive fragmentation for
...
allocation patterns that involve a relatively even mixture of many
different size classes.
Reduce the chunk size from 16 MB to 2 MB. Since chunks are now carved up
using an address-ordered first best fit policy, VM map fragmentation is
much less likely, which makes smaller chunks not as much of a risk. This
reduces the virtual memory size of most applications.
Remove redzones, since program buffer overruns are no longer as likely to
corrupt malloc data structures.
Remove the C MALLOC_OPTIONS flag, and add H and S.
2006-03-17 09:00:27 +00:00
Daniel Eischen
96e022f7f3
Allow bsd.lib.mk to generate the symbol version map.
2006-03-16 15:16:23 +00:00
Ruslan Ermilov
d7ce16692e
Fix comment.
2006-03-16 14:27:17 +00:00
Ruslan Ermilov
3029eff743
Desupport the undocumented NO_QUAD option, just don't compile
...
the quad support on 64-bit platforms.
2006-03-16 14:22:19 +00:00
Ruslan Ermilov
91545fccf9
Add a non-optional newline after ".Bx".
2006-03-15 14:45:45 +00:00
Andre Oppermann
7727f485de
Revert previous changes as we do support the .Ox macro for OpenBSD.
...
Pointed out by: ceri, ru, delphij
2006-03-15 14:05:41 +00:00
Andrey A. Chernov
7768950fe3
POSIXed strtoll() (and ours one too) can set errno to EINVAL, so check
...
it first.
Approved by: andre
2006-03-14 19:53:03 +00:00
Andre Oppermann
b0b2326781
Fix HISTORY and point to OpenBSD.
2006-03-14 17:01:21 +00:00
Andre Oppermann
c74dfa2faf
Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
...
providing proper error checking and other improvements.
Obtained from: OpenBSD
Requested by: flz (to port Open[BGP|OSPF]D)
MFC after: 3 days
2006-03-14 16:57:30 +00:00
Daniel Eischen
ed323e898c
ns_name_skip was recently redefined to __ns_name_skip
...
like the others in <include/arpa/nameser.h>.
Submitted by: ume
2006-03-13 04:49:40 +00:00
Daniel Eischen
e6f18831f2
Make _spinunlock() point to the spinunlock stub, not the
...
spinlock stub.
2006-03-13 01:17:39 +00:00
Daniel Eischen
6fad3aaf15
Add each directory's symbol map file to SYM_MAPS.
2006-03-13 01:15:01 +00:00
Daniel Eischen
c053f1f8ac
Add hooks to build libc with symbol versioning. This is
...
disabled by default; add SYMVER_ENABLED=true to /etc/make.conf
to enable it. libc should get a version bump before this is
enabled by default.
Reviewed by: davidxu
2006-03-13 00:56:02 +00:00
Daniel Eischen
cce72e8860
Add symbol maps and initial symbol version definitions to libc.
...
Reviewed by: davidxu
2006-03-13 00:53:21 +00:00
David Xu
764fc0fbfc
Add entries for new pthread stubs.
2006-03-10 09:58:18 +00:00
David Xu
be957ba522
Remove mq.c, the POSIX mqueue is implemented in librt.
...
Suggested by: deischen
2006-03-08 23:42:41 +00:00
Daniel Eischen
f4cd2a5b5c
Add some more pthread stubs so that librt can use them.
...
The thread jump table has been resorted, so you need to
keep libc, libpthread, and libthr in sync.
Submitted by: xu
2006-03-05 18:10:28 +00:00
Christian Brueffer
f92b647c38
Remove a useless word.
...
PR: 94087
Submitted by: Tadaaki Nagao <nagao@iij.ad.jp>
MFC after: 3 days
2006-03-05 10:32:15 +00:00
Jesus R. Camou
68dac191af
Sync with actual code.
...
PR: docs/87681
Noticed by: Andreas Kohn <andreas@syndrom23.de>
Reviewed by: brooks
Approved by: trhodes (mentor)
MFC after: 3 days
2006-03-03 13:58:43 +00:00
Poul-Henning Kamp
981332f102
Fix the %Q printf extension to behave as expected
2006-03-02 08:53:45 +00:00
Hajimu UMEMOTO
3a0b3b6739
Handle the errors returned by res_querydomain() in same manner.
...
Reported by: yar
Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com>
MFC after: 1 week
2006-03-01 15:53:49 +00:00
David Xu
b8211fabf1
Disconnect mqueue from buildworld, as I will implement it in seperated
...
library.
2006-03-01 06:25:46 +00:00
Daniel Eischen
0411773be7
Const'ify arguments to a couple of functions to fix breakage
...
with -O2.
2006-02-28 16:02:26 +00:00
Xin LI
30b86e872b
Don't do a time travel to 12006...
2006-02-28 07:36:25 +00:00
Daniel Eischen
235baf269e
Staticize a couple of functions.
...
Remove a few unused locks.
Remove locks from application namespace.
2006-02-27 22:10:59 +00:00
Daniel Eischen
fc9ae54dca
Correct a comment.
...
Staticize two tables thare are not visible in <resolv.h>
and which are also local in Solaris' libresolv.
Remove two functions that are not referenced in libc nor
anywhere else I can find, not visible in <resolv.h> and
which are also local in Solaris libresolv.
2006-02-27 22:08:16 +00:00
Wojciech A. Koszek
9d0e4617f3
Fix typo in manual page reference.
...
Approved by: cognet (mentor)
MFC after: 3 days
2006-02-26 23:01:11 +00:00
Hajimu UMEMOTO
12d96fe63f
Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includes
...
an IPv6 support.
PR: kern/93740
Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz>
Obtained from: BIND9
MFC after: 1 week
2006-02-26 05:44:21 +00:00
Hajimu UMEMOTO
5ecccefb4a
- Just query 'as is', if there is a trailing dot in the name.
...
- Don't query 'as is' twice.
PR: bin/62139
Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Tested by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Obtained from: BIND9 (with some modification)
MFC after: 1 week
2006-02-24 16:53:42 +00:00
Yaroslav Tykhiy
36ab780431
Tell the truth about a) how to get the first fileid, and
...
b) what return values from kldstat(2) can be expected.
Bump .Dd.
MFC after: 3 days
2006-02-22 15:11:12 +00:00
Brad Davis
209462832d
- Massage wording to make it easier to understand and fix some grammar.
...
Submitted by: sbahra at gwu dot edu
Reviewed by: ru@
Approved by: ceri@
MFC after: 3 days
2006-02-16 09:56:31 +00:00
Alexander Kabaev
129d4752a0
Remove extra slash from pty slave device name returned by ptsname.
2006-02-13 00:04:04 +00:00
Poul-Henning Kamp
8dcefe6112
Remove spurious "union arg" from printf.h
...
Make sure to always print something in the alternate time format.
2006-02-04 14:35:01 +00:00
Jason Evans
d8a1377b1b
Fix calculation of the number of arenas to use on multi-processor systems.
2006-02-04 01:11:30 +00:00
Joel Dahl
fbf9b468d5
Expand contractions.
2006-02-01 14:33:14 +00:00
Poul-Henning Kamp
f0107b2c5d
Add missing 's' suffix on alternate rendition of time.
2006-01-31 08:09:37 +00:00
Gleb Smirnoff
61fb9bd80c
- In pipe() return the error returned by pipe_create(), rather then
...
hardcoded ENFILES, which is incorrect. pipe_create() can fail due
to ENOMEM.
- Update manual page, describing ENOMEM return code.
Reviewed by: arch
2006-01-30 08:25:04 +00:00
Olivier Houchard
9b1fa2482e
If the sysctl kern.pts.enable doesn't exist, check that /dev/ptmx is there,
...
and if so, use the pts system.
Suggested by: rwatson
2006-01-29 00:02:57 +00:00
Jason Evans
4fae5e8fda
Remove unwarranted uses of 'goto'.
2006-01-27 07:46:22 +00:00
Jason Evans
a3d0ab47a6
Add NO_MALLOC_EXTRAS, so that various extra features that can cause
...
performance degradation can be disabled via something like the following
in /etc/malloc.conf:
CFLAGS+=-DNO_MALLOC_EXTRAS
Suggested by: deischen
2006-01-27 04:42:10 +00:00
Jason Evans
7138ef5b1d
Fix the type of a statistics counter (unsigned --> unsigned long).
2006-01-27 04:36:39 +00:00
Jason Evans
842e5e3d91
Clean up statistics gathering and printing.
2006-01-27 02:36:44 +00:00
Pawel Jakub Dawidek
c3b878a8c6
Remove debug printf.
2006-01-26 11:15:08 +00:00
Jason Evans
499168546f
Optimize arena_bin_pop() to reduce the number of separator operations.
...
Remove the block of code that tries to use delayed regions in LIFO order,
since from a policy perspective, it conflicts with LRU caching of newly
coalesced regions in arena_undelay(). There are numerous policy
alternatives, and it isn't readily obvious which (if any) is superior;
this change at least has the virtue of being consistent with policy.
2006-01-26 08:11:23 +00:00
Olivier Houchard
af09c34069
Make getttyent() report what the pts ptys as well.
2006-01-26 01:34:26 +00:00
Olivier Houchard
67c7201e18
ptsname() bits for pts.
2006-01-26 01:33:55 +00:00
Poul-Henning Kamp
6dbacee284
Make the %V{is} extension handle a NULL pointer like %s does: output "(null)"
...
Add %M{essage} extension which prints an errno value as the
corresponding string if possible or numerically otherwise.
It is not currently possible to do the syslog(3) like %m extension
because errno would need to get capatured on entry to the first
function in the printf family, so %M requires you to supply errno
as an argument.
Add %Q{uote} extension which will print a string in double quotes with
appropriate back-slash escapes (only) if necessary.
2006-01-25 12:45:24 +00:00