summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Document how the backoff delay is calculated.brueffer2006-04-191-1/+4
| | | | | Submitted by: markus MFC after: 3 days
* Correct usage example.ceri2006-04-181-1/+1
| | | | | | PR: docs/95059 Submitted by: Jos Backus MFC after: 4 days
* o dbm_close(3) returns void not zero or anything else. Touch .Dd.maxim2006-04-161-5/+1
| | | | | | PR: docs/80070 Submitted by: Aleksej Saushev MFC after: 2 weeks
* For _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq",marius2006-04-161-4/+4
| | | | | | | this means they should set the cmpe flag when calling __fpu_compare(). Submitted by: stefanf MFC after: 2 weeks
* - make reentrant version of netdb functions glibc style API, andume2006-04-1516-705/+1258
| | | | | | | expose them to outside of libc. - make netdb functions NSS friendly. Reviewed by: arch@ and current@ (no objection)
* Don't export __gdtoa. The only known ports that rely ondeischen2006-04-151-5/+1
| | | | | | | this or the deprecated POSIX functions {e,g,f}cvt() have newer versions that do not (rely on them). Requested by: marius
* o Document SO_NOSIGPIPE, touch .Dd.maxim2006-04-151-1/+9
| | | | | | PR: docs/78479 Submitted by: Mikko Tyolajarvi MFC after: 2 weeks
* List pwritev in the NAME section.ru2006-04-141-1/+2
|
* s/soley/solelyschweikh2006-04-131-1/+1
|
* Apply style.Makefile(5) here.ru2006-04-131-5/+5
|
* Install the shared library under /usr/lib; it's not used by anythingru2006-04-131-1/+0
| | | | | | in /bin or /sbin. Not objected to by: phk
* Place shared libpcap library under /lib, currently needed byru2006-04-131-0/+2
| | | | | | /sbin/ipf and /sbin/pflogd. OK'ed by: mlaier
* Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY.delphij2006-04-134-10/+10
| | | | Ok'ed by: davidxu
* Fix a symlink.ru2006-04-121-1/+1
|
* Install shared libpthread library into /lib; needed by someru2006-04-123-1/+7
| | | | /sbin programs.
* use pwrite to always write at the begining of the file.. If multiple callsjmg2006-04-111-1/+1
| | | | | | | | to pidfile_write happen, the pidfile will have nul characters prepended due to the cached file descriptor offset... Reviewed by: scottl MFC after: 3 days
* - Move _Qp_* and __dtoul from FBSDprivate to the list of FBSD_1.0 symbolsmarius2006-04-111-35/+18
| | | | | | | | | | | | | | | | | | | | | | | as well as add __sparc_utrap_install to FBSD_1.0; these are required by the SCD libc 64 psABI and thus meant to be officially exported symbols. - Remove the __fpu_* entries as well as the __sigtramp entry altogether as these are internal to the libc FPU emulation and the signal trampoline initialization in sigaction(2) respectively and thus don't need to be externally visible. - Add __sparc_utrap_setup to the list of FBSDprivate symbols as it's used in src/lib/csu/sparc64/crt1.c to initialize the libc FPU emulation (I think alternatively src/lib/csu/sparc64/crt1.c could be changed to use __sparc_utrap_install instead, at the expense of increasing the size of executables a bit). - Add an entry for the vfork symbol to the FBSD_1 list and entries for it's associated symbols generated by the RSYSCALL() macro to the FBSDprivate list. There's some magic in place that automatically generates code for vfork() if there's no explicit MD code for it so it might make sense to move these symbols from the MD symbol map files to a MI one. The last two changes make the libc symbol versioning useable on sparc64. Ok'ed by: deischen
* Document that VIS_CSTYLE encodes space (040) as '\s'.brueffer2006-04-091-1/+3
| | | | | | PR: 95546 Submitted by: Jan Schaumann <jschauma@netmeister.org> MFC after: 3 days
* Don't test if RES_INIT is set to see res_state structure isume2006-04-081-1/+1
| | | | | initialized. Some application may reset RES_INIT. Use the way in __res_vinit(), instead.
* Do not check validity of timeout if a mutex can be acquired immediately.davidxu2006-04-083-80/+103
| | | | | Completly drop recursive mutex in pthread_cond_wait and restore recursive after resumption. Reorganize code to make gcc to generate better code.
* Add an unreachable return statement, in order to avoid a compiler warningjasone2006-04-051-0/+1
| | | | | | for non-standard optimization levels. Reported by: Michael Zach <zach@webges.com>
* Only initialize the first per-chunk page map element for free runs. Thisjasone2006-04-051-31/+16
| | | | makes run split/coalesce operations of complexity lg(n) rather than n.
* Add malloc_usable_size() to the RETURN VALUES section.jasone2006-04-041-1/+6
|
* Add init_lock, and use it to protect against allocator initializationjasone2006-04-041-8/+21
| | | | | | | | races. This isn't currently necessary for libpthread or libthr, but without it external threads libraries like the linuxthreads port are not safe to use. Reported by: ganbold@micom.mng.net
* Refactor per-run bitmap manipulation functions so that bitmap offsets onlyjasone2006-04-041-69/+131
| | | | | | | | | | | | | | | | | have to be calculated once per allocator operation. Make nil const. Update various comments. Remove/avoid division where possible. For the one division operation that remains in the critical path, add a switch statement that has a case for each small size class, and do division with a constant divisor in each case. This allows the compiler to generate optimized code that does not use hardware division [1]. Obtained from: peter [1]
* Remove declaration of _thr_initial from MD header file, it is no longerdavidxu2006-04-042-4/+0
| | | | needed.
* Simplify _get_curthread() and _tcb_ctor because libc and rtld nowdavidxu2006-04-044-15/+6
| | | | | already allocate thread pointer space in tls block for initial thread. Only i386 and amd64 have been done, others still have to be tested.
* WARNS level 4 cleanup.davidxu2006-04-0445-199/+252
|
* Add missing #if's for NO_FLOATING_POINTphk2006-04-015-4/+16
|
* fix indent.ume2006-04-011-9/+9
|
* Add __gdtoa to the list of FreeBSD private symbols. Unfortunately,deischen2006-04-011-0/+4
| | | | | | | | this is used by some 3rd party applications when {e,f,g}cvt() are not found. POSIX defines the xcvt() funtions but says they are deprecated in favor or sprintf(). We'll import these functions from OpenBSD and remove __gdtoa() from the exported interfaces when libc version is bumped.
* Optimize runtime performance, primary using the following techniques:jasone2006-03-301-285/+294
| | | | | | | | | | | | | | | * Avoid choosing an arena until it's certain that an arena is needed for allocation. * Convert division/multiplication to bitshifting where possible. * Avoid accessing TLS variables in single-threaded code. * Reduce the amount of pointer dereferencing. * Move lock acquisition in critical paths to only protect the the code that requires synchronization, and completely remove locking where possible.
* Expose res_update and friends again. At least, ports/mail/spamilterume2006-03-306-117/+33
| | | | | | | | | uses them. Now, we have res_nupdate and res_nmkupdate as well, but they are still based on our old resolver for binary backward compatibility. So, they don't provide new features such as TSIG support. Reported by: pointyhat via kris
* Fix a bug where, for 6-byte sequences, the top 6 bits get compared totrhodes2006-03-301-1/+1
| | | | | 111111 rather than the top 7 bits being compared against 1111110 causing illegal bytes fe and ff being treated the same as legal bytes fc and fd.
* Add __collate_load_error and __collate_range_cmp to the list ofdeischen2006-03-303-0/+4
| | | | | | | | | | | | | FBSDprivate locale symbols. These functions are needed by libcompat. Add _cleanup to the list of stdio FBSDprivate symbols. Some third party applications use this. This will be removed and replaced by fcloseall() once libc version is bumped. Add _res to the list of resolv symbols. Found by: portbuilder runs (thanks Kris!)
* Add symbol versioning.deischen2006-03-292-0/+37
| | | | Reviewed by: davidxu
* Bring libpthread up to WARNS level 2.des2006-03-296-16/+32
| | | | Reviewed by: deischen
* Account for recent changes in namespace.h. Use _pthread_createdeischen2006-03-291-4/+4
| | | | instead of pthread_create.
* Add malloc_usable_size(3).jasone2006-03-284-3/+47
| | | | Discussed with: arch@
* Fix prototype mismatch and use of un-namespaced pthread functions.des2006-03-282-22/+14
|
* Fix prototype mismatch.des2006-03-281-1/+2
|
* Use the correct type for and argument. Recent changes to namespace.hdeischen2006-03-282-2/+2
| | | | | | exposed this bug. Reported by: kris
* Add semaphore functions, and remove some dupes from the #if 0 section.des2006-03-282-4/+20
|
* Add a bunch of missing pthread functions, and move out-of-order functions.des2006-03-282-13/+128
|
* If the query choked with EDNS0, retry without EDNS0.ume2006-03-281-8/+24
| | | | Obtained from: res_nquery() of BIND9.
* Allocate space for thread pointer, this allows thread library to accessdavidxu2006-03-281-3/+3
| | | | its pointer from begin, and simplifies _get_curthread() in libthr.
* Add symbol versioning to libm.deischen2006-03-2716-0/+246
|
* Remove priority mutex code because it does not work correctly,davidxu2006-03-277-1199/+200
| | | | | | | | | to make it work, turnstile like mechanism to support priority propagating and other realtime scheduling options in kernel should be available to userland mutex, for the moment, I just want to make libthr be simple and efficient thread library. Discussed with: deischen, julian
* Comment out -g compiler option, found by 'FreeBSD Build Options Survey'.davidxu2006-03-271-1/+1
|
* Allow the 'n' option to decrease the number of arenas below the default,jasone2006-03-261-2/+16
| | | | | to as little as one arena. Also, limit the number of arenas to avoid a potential invariant violation in base_alloc().
OpenPOWER on IntegriCloud