summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Separate completely full runs from runs that are merely almost full, sojasone2006-03-201-61/+71
| | | | | | | that no linear searching is necessary if we resort to allocating from a run that is known to be mostly full. There are pathological edge cases that could have caused severely degraded performance, and this change fixes that.
* Optimize realloc() to reallocate in place if the old and new sizes arejasone2006-03-191-105/+167
| | | | | | | | | | | 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]
* Provide alternate default for SHLIBDIR before bsd.own.mk does this.ru2006-03-181-1/+2
| | | | Reported by: phk
* Reimplementation of world/kernel build options. For details, see:ru2006-03-172-5/+7
| | | | | | | | 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)
* Modify allocation policy, in order to avoid excessive fragmentation forjasone2006-03-172-2503/+1070
| | | | | | | | | | | | | | | 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.
* Allow bsd.lib.mk to generate the symbol version map.deischen2006-03-161-14/+6
|
* Fix comment.ru2006-03-161-1/+1
|
* Desupport the undocumented NO_QUAD option, just don't compileru2006-03-165-21/+4
| | | | the quad support on 64-bit platforms.
* Add a non-optional newline after ".Bx".ru2006-03-151-1/+2
|
* Revert previous changes as we do support the .Ox macro for OpenBSD.andre2006-03-151-2/+4
| | | | Pointed out by: ceri, ru, delphij
* POSIXed strtoll() (and ours one too) can set errno to EINVAL, so checkache2006-03-141-1/+1
| | | | | | it first. Approved by: andre
* Fix HISTORY and point to OpenBSD.andre2006-03-141-5/+2
|
* Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)andre2006-03-144-3/+227
| | | | | | | | providing proper error checking and other improvements. Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days
* ns_name_skip was recently redefined to __ns_name_skipdeischen2006-03-131-1/+1
| | | | | | like the others in <include/arpa/nameser.h>. Submitted by: ume
* Make _spinunlock() point to the spinunlock stub, not thedeischen2006-03-131-1/+1
| | | | spinlock stub.
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-1328-1/+48
|
* Add hooks to build libc with symbol versioning. This isdeischen2006-03-131-0/+14
| | | | | | | | 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
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-1329-0/+3241
| | | | Reviewed by: davidxu
* Add entries for new pthread stubs.davidxu2006-03-101-0/+30
|
* Remove mq.c, the POSIX mqueue is implemented in librt.davidxu2006-03-081-73/+0
| | | | Suggested by: deischen
* Add some more pthread stubs so that librt can use them.deischen2006-03-053-31/+168
| | | | | | | The thread jump table has been resorted, so you need to keep libc, libpthread, and libthr in sync. Submitted by: xu
* Remove a useless word.brueffer2006-03-051-1/+1
| | | | | | PR: 94087 Submitted by: Tadaaki Nagao <nagao@iij.ad.jp> MFC after: 3 days
* Sync with actual code.jcamou2006-03-031-2/+6
| | | | | | | | PR: docs/87681 Noticed by: Andreas Kohn <andreas@syndrom23.de> Reviewed by: brooks Approved by: trhodes (mentor) MFC after: 3 days
* Fix the %Q printf extension to behave as expectedphk2006-03-021-19/+9
|
* Handle the errors returned by res_querydomain() in same manner.ume2006-03-012-0/+40
| | | | | | Reported by: yar Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com> MFC after: 1 week
* Disconnect mqueue from buildworld, as I will implement it in seperateddavidxu2006-03-011-1/+1
| | | | library.
* Const'ify arguments to a couple of functions to fix breakagedeischen2006-02-281-2/+2
| | | | with -O2.
* Don't do a time travel to 12006...delphij2006-02-281-1/+1
|
* Staticize a couple of functions.deischen2006-02-2723-71/+106
| | | | | | Remove a few unused locks. Remove locks from application namespace.
* Correct a comment.deischen2006-02-273-22/+6
| | | | | | | | | 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.
* Fix typo in manual page reference.wkoszek2006-02-261-1/+1
| | | | | Approved by: cognet (mentor) MFC after: 3 days
* Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includesume2006-02-263-85/+420
| | | | | | | | | an IPv6 support. PR: kern/93740 Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz> Obtained from: BIND9 MFC after: 1 week
* - Just query 'as is', if there is a trailing dot in the name.ume2006-02-242-18/+40
| | | | | | | | | | - 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
* Tell the truth about a) how to get the first fileid, andyar2006-02-221-5/+10
| | | | | | | | b) what return values from kldstat(2) can be expected. Bump .Dd. MFC after: 3 days
* - Massage wording to make it easier to understand and fix some grammar.brd2006-02-161-4/+4
| | | | | | | Submitted by: sbahra at gwu dot edu Reviewed by: ru@ Approved by: ceri@ MFC after: 3 days
* Remove extra slash from pty slave device name returned by ptsname.kan2006-02-131-1/+1
|
* Remove spurious "union arg" from printf.hphk2006-02-041-2/+3
| | | | Make sure to always print something in the alternate time format.
* Fix calculation of the number of arenas to use on multi-processor systems.jasone2006-02-041-1/+1
|
* Expand contractions.joel2006-02-011-1/+1
|
* Add missing 's' suffix on alternate rendition of time.phk2006-01-311-1/+1
|
* - In pipe() return the error returned by pipe_create(), rather thenglebius2006-01-301-1/+3
| | | | | | | | hardcoded ENFILES, which is incorrect. pipe_create() can fail due to ENOMEM. - Update manual page, describing ENOMEM return code. Reviewed by: arch
* If the sysctl kern.pts.enable doesn't exist, check that /dev/ptmx is there,cognet2006-01-291-2/+7
| | | | | | and if so, use the pts system. Suggested by: rwatson
* Remove unwarranted uses of 'goto'.jasone2006-01-271-203/+153
|
* Add NO_MALLOC_EXTRAS, so that various extra features that can causejasone2006-01-271-3/+16
| | | | | | | | | performance degradation can be disabled via something like the following in /etc/malloc.conf: CFLAGS+=-DNO_MALLOC_EXTRAS Suggested by: deischen
* Fix the type of a statistics counter (unsigned --> unsigned long).jasone2006-01-271-1/+1
|
* Clean up statistics gathering and printing.jasone2006-01-271-71/+64
|
* Remove debug printf.pjd2006-01-261-1/+0
|
* Optimize arena_bin_pop() to reduce the number of separator operations.jasone2006-01-261-13/+10
| | | | | | | | 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.
* Make getttyent() report what the pts ptys as well.cognet2006-01-261-1/+38
|
* ptsname() bits for pts.cognet2006-01-261-5/+45
|
OpenPOWER on IntegriCloud