summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make the %V{is} extension handle a NULL pointer like %s does: output "(null)"phk2006-01-255-1/+187
| | | | | | | | | | | | | 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.
* Remove a redundant variable assignment in arena_reg_frag_alloc().jasone2006-01-251-1/+0
|
* If no coalesced exact-fit small regions are available, but delayed exact-jasone2006-01-251-173/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fit regions are available, use the delayed regions in LIFO order, in order to increase locality of reference. We might expect this to cause delayed regions to be removed from the delay ring buffer more often (since we're now re-using more recently buffered regions), but numerous tests indicate that the overall impact on memory usage tends to be good (reduced fragmentation). Re-work arena_frag_reg_alloc() so that when large free regions are exhausted, it uses small regions in a way that favors contiguous allocation of sequentially allocated small regions. Use arena_frag_reg_alloc() in this capacity, rather than directly attempting over-fitting of small requests when no large regions are available. Remove the bin overfit statistic, since it is no longer relevant due to the arena_frag_reg_alloc() changes. Do not specify arena_frag_reg_alloc() as an inline function. It is too large to benefit much from being inlined, and it is also called in two places, only one of which is in the critical path (the other call bloated arena_reg_alloc()). Call arena_coalesce() for a region before caching it with arena_mru_cache(). Add assertions that detect the attempted caching of adjacent free regions, so that we notice this problem when it is first created, rather than in arena_coalesce(), when it's too late to know how the problem arose. Reported by: Hans Blancke
* Make the 'C' and 'c' malloc options consistent with other options; 'C'jasone2006-01-231-2/+2
| | | | doubles the cache size, and 'c' halves the cache size.
* In arena_chunk_reg_alloc(), try to avoid touching the last page in thejasone2006-01-231-7/+24
| | | | | chunk during initialization, in order to avoid physically backing the page unless data are allocated there.
* Back out the previous change to rename.2. The previous rename()truckman2006-01-223-9/+8
| | | | | | | | | | | | | | behaviour of returning EINVAL when ".." is passed as either argument has been restored. rmdir("..") now returns EINVAL instead of EPERM. Document the previously undocumented behaviour of rmdir(".") returning EINVAL as required by POSIX and SUSv3. Bump the man page change date. undelete("..") now returns EINVAL instead of EPERM. Bump the man page change date. MFC after: 3 days
* rename(), rmdir(), and undelete() fail with EPERM if the last componenttruckman2006-01-213-0/+9
| | | | | | of the path is "..". MFC after: 3 days
* Use uintptr_t rather than size_t when casting pointers to integers. Also,jasone2006-01-201-44/+45
| | | | | | | fix the few remaining casting style(9) errors that remained after the functional change. Reported by: jmallett
* Revert addtion of assertions in revision 1.99. These assertions causejasone2006-01-191-7/+0
| | | | | | problems in cases where regions are faked up for the purposes of red-black tree searches, since those faked region headers reside on the stack, rather than in a malloc chunk.
* Add assertions that detect some forms of region separator corruption.jasone2006-01-191-0/+7
|
* Remove loops in arena_coalesce(). They are no longer necessary, now thatjasone2006-01-191-4/+5
| | | | | internal allocation does not rely on recursive arena use (base_arena was removed in revision 1.95).
* Make all internal variables and functions static.jasone2006-01-191-12/+15
| | | | Reported by: ache
* Return NULL if there is an OOM error during initialization, rather thanjasone2006-01-191-35/+50
| | | | | | | | allowing the error to be fatal. Move a label in order to make sure to properly handle errors in malloc(0). Reported by: Alastair D'Silva, Saneto Takanori
* Add a separate simple internal base allocator and remove base_arena, so thatjasone2006-01-161-151/+175
| | | | | | | | | | there is never any need to recursively call the main allocation functions. Remove recursive spinlock support, since it is no longer needed. Allow chunks to be as small as the page size. Correctly propagate OOM errors from arena_new().
* Define NO_TLS on ia64. The dynamic TLS implementation on ia64 ismarcel2006-01-161-0/+1
| | | | | | | | | broken for non-threaded shared processes in that __tls_get_addr() assumes the thread pointer is always initialized. This is not the case. When arenas_map is referenced in choose_arena() and it is defined as a thread-local variable, it will result in a SIGSEGV. PR: ia64/91846 (describes the TLS/ia64 bug).
* Replace malloc(), calloc(), posix_memalign(), realloc(), and free() withjasone2006-01-132-1107/+4597
| | | | | | | a scalable concurrent allocator implementation. Reviewed by: current@ Approved by: phk, markm (mentor)
* Fix a bitwise logic error in posix_memalign().jasone2006-01-121-2/+2
| | | | Reported by: glebius
* Use posix_memalign() in valloc() rather than making assumptions aboutjasone2006-01-122-20/+20
| | | | | | the alignment of malloc()ed memory. Approved by: markm (mentor)
OpenPOWER on IntegriCloud