summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Old patch I had lying around: correctly cast the argument to is*().des2007-12-183-24/+25
| | | | | | IWBNI gcc could warn about this the way it warns about printf() abuse. MFC after: 1 week
* Use fixed point integer math instead of floating point math whenjasone2007-12-181-42/+47
| | | | | | | | | | calculating run sizes. Use of the floating point unit was a potential pessimization to context switching for applications that do not otherwise use floating point math. [1] Reformat cpp macro-related comments to improve consistency. Submitted by: das
* Fix logical bug in the bzip2 reading code, which results in bogus EIOsobomax2007-12-182-2/+48
| | | | | | | | | | | | | | | | | | | | | returned on a perfectly valid bzip2 stream whose decompressed size is multiple of read-ahead buffer size. Reproduce the problem is easy: create some power-of-two sized file (truncate -s 1m file will do), bzip2 it and try to load it as md_image from loader. See how it fails. The bug doesn't affect gzip code (which most of bzip2-reading code was copied from) probably due to the fact that libgzip doesn't report Z_STREAM_END with the last block, but requires extra call to inflate() to retrieve it and has some extra data in the input stream at that time. However, apply similar fix to gzipfs.c just in the case the API will change in the future to do what bzip2 code does. Add some ifdef'ed code to enable testing bzipfs.c from witin normal FreeBSD environment as opposed to the restricted loader one, so that one can use gdb and whatnot. Sponsored by: Sippy Software, Inc., http://www.sippysoft.com/ MFC in: 7 days
* Catch up with vfprintf.c,v 1.77.das2007-12-181-0/+1
|
* Remove z_abs(). The z_*() functions were in libf77, and for some reasondas2007-12-182-8/+0
| | | | | | | | someone thought it would be a good idea to copy z_abs() to libm in 1994. However, it's never been declared or documented anywhere, and I'm reasonably confident that nobody uses it. Discussed with: bde, deischen, kan
* Oops, the previous commit was not needed -- the file was committed butbde2007-12-171-1/+1
| | | | not checked out due to my checkout error.
* Translate from the i386 so that this compiles and runs.bde2007-12-171-1/+1
| | | | | | | I hope that this and the i386 version of it will not be needed, but this is currently about 16 cycles or 36% faster than the C version, and the i386 version is about 8 cycles or 19% faster than the C version, due to poor optimization of the C version.
* Moved logging out of the nss_method_lookup() in order not tobushman2007-12-171-9/+13
| | | | flood logs with failed fallback method lookup attempts.
* Don't try to build s_nanl.c before it is committed.bde2007-12-171-1/+1
|
* Add logbl(3) to libm.das2007-12-179-32/+184
|
* Add function prototypes.davidxu2007-12-171-1/+7
|
* Refactor features a bit in order to make it possible to disable lazyjasone2007-12-171-52/+127
| | | | | | | | | deallocation and dynamic load balancing via the MALLOC_LAZY_FREE and MALLOC_BALANCE knobs. This is a non-functional change, since these features are still enabled when possible. Clean up a few things that more pedantic compiler settings would cause complaints over.
* Document the fact that we have nan(3) now, and make some minor clarificationsdas2007-12-171-10/+14
| | | | in other places.
* Remove hacks to allow libkse to export its symbols in the LIBTHREAD_1_0deischen2007-12-16102-481/+0
| | | | | version namespace which was needed before the library version was bumped.
* Implement and document nan(), nanf(), and nanl(). This commitdas2007-12-168-8/+302
| | | | | | | adds two new directories in msun: ld80 and ld128. These are for long double functions specific to the 80-bit long double format used on x86-derived architectures, and the 128-bit format used on sparc64, respectively.
* Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace sodas2007-12-165-0/+17
| | | | libm can use it.
* Arrange so that the NaN returned by strtod("nan", NULL) is the same asdas2007-12-165-27/+27
| | | | the NaN returned by strtod("nan()", NULL).
* Add a berase() function which uses ioctl(DIOCGDELETE) to erase a slabphk2007-12-164-8/+42
| | | | of the disk.
* 1. Add csqrt{,f}(3).das2007-12-151-2/+10
| | | | | 2. Put carg{,f}(3) under the FBSD_1.1 namespace where it belongs (requested by kan@)
* Implement and document csqrt(3) and csqrtf(3).das2007-12-154-2/+290
|
* Increment the version namespace for 8.0-current. New symbols anddeischen2007-12-141-0/+5
| | | | symbols whose ABI has changed should be added to FBSD_1.1.
* Clean up namespace violations.des2007-12-147-314/+314
| | | | MFC after: 1 week
* Update the standards section, and make a minor clarification about thedas2007-12-141-5/+10
| | | | return value of sqrt.
* 1. Add function pthread_mutex_setspinloops_np to turn a mutex's spindavidxu2007-12-143-29/+114
| | | | | | | | loop count. 2. Add function pthread_mutex_setyieldloops_np to turn a mutex's yield loop count. 3. Make environment variables PTHREAD_SPINLOOPS and PTHREAD_YIELDLOOPS to be only used for turnning PTHREAD_MUTEX_ADAPTIVE_NP mutex.
* Typo in previous commitdas2007-12-141-2/+2
|
* Symbol.map additions for carg and cargf. (They're in C99, so I didn'tdas2007-12-141-0/+2
| | | | add a new version for them.)
* Update posix_openpt(3) to handle 512 ptys. This was missed in the earlierjhb2007-12-131-2/+2
| | | | | | pty(4) changes. MFC after: 3 days
* s/C90/C99/das2007-12-121-1/+1
|
* Add a "STANDARDS" section.das2007-12-121-0/+9
|
* Implement carg(3) and cargf(3).das2007-12-125-9/+120
| | | | Rotting in an old src tree since: March 2005
* Remove license clause 3 to agree with the now-standard BSD license.wes2007-12-123-14/+0
| | | | Prompted by: Glenn Halperin, Symbian Software
* - Fix setting of MK_GSSAPI option by bsd.own.mk; its value shouldru2007-12-121-5/+1
| | | | | | | | | | | default to the value of MK_KERBEROS unless set explicitly by WITH_GSSAPI/WITHOUT_GSSAPI. (This introduces another type of MK_* variables which itself is questionable.) - Teach tools/build/options/makeman script that generates the src.conf(5) manpage about the new type of MK_* variables. - Fix broken logic in lib/Makefile.
* Implementing 'fallback' nsswitch source. 'fallback' source is usedbushman2007-12-123-116/+220
| | | | | | | | | | | | when particular function can't be found in nsswitch-module. For example, getgrouplist(3) will use module-supplied 'getgroupmembership' function (which can work in an optimal way for such source as LDAP) and will fall back to the stanard iterate-through-all-groups implementation otherwise. PR: ports/114655 Submitted by: Michael Hanselmann <freebsd AT hansmi DOT ch> Reviewed by: brooks (mentor)
* Remove 3rd clause of licensephantom2007-12-121-4/+0
| | | | Per request of: glenn halperin at symbian.com
* Fix typo in the commentache2007-12-111-1/+1
|
* Enclose all code for macro ENQUEUE_MUTEX in do while statement, anddavidxu2007-12-111-5/+7
| | | | | | add missing brackets. MFC: after 1 day
* Hide the building and installation of libgssapi behind thedougb2007-12-101-1/+9
| | | | | | | | | | | | | | | | | | WITHOUT_KERBEROS knob. While GSS can be used for other things some third party software (most notably ports/x11/kdelibs3) takes the presence of libgssapi as an indication that kerberos is available, and attempts to link with the kerberos libs. If they are not available, the build will fail. Because you might want to use GSS but not kerberos, add a knob to re-enable it if WITHOUT_KERBEROS is present. Document the new knob, and the new behavior of WITHOUT_KERBEROS. Not objected and/or generally agreed to by: freebsd-arch Problem discussed/analyzed in: PR: ports/116484
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)das2007-12-092-8/+0
|
* Fix handling of subnormals on i386/ia64/amd64.das2007-12-091-2/+0
| | | | PR: 85080
* Make the warning a bit less 'broad' then it used to be. The accessremko2007-12-081-1/+10
| | | | | | | | | is seems to be a problem for SUID applications, which we like to prevent as much as possible. PR: docs/39530 Submitted by: Soren Spies <sspies at apple dot com> MFC After: 3 days
* Improve style(9) compliance and trim a long text line.jkoshy2007-12-071-128/+109
|
* Set the tcb (thread control block) in the child process after a fork.deischen2007-12-061-0/+13
| | | | | | | | | | This protects against a race with an upcall in the parent during the fork which can clobber the parent's tcb before the vm space is copied in the child. The child then gets a corrupted tcb that is either null or that points to another thread that doesn't exist in the child (after a fork, only the fork()ing thread exists in the child). Reported by: Arno J. Klaassen (arno at heho / snv / jussieu / fr)
* The __used (== __attribute__((__used)) ) silences the warning producedkib2007-12-041-1/+1
| | | | | | by unreferenced symbol. Apply __used instead of rev. 1.5. Requested by: kan
* If a Zip entry has the "length at end" flag set, then just ignorekientzle2007-12-041-1/+2
| | | | | | | a length field of zero; it does not mean the body is empty. Thanks to: Lapo Luchini for sending me a JAR archive that demonstrated this bug MFC after: 3 days
* Merge BIND 9.4.2 into main chunk.ume2007-12-032-18/+25
|
* This commit was generated by cvs2svn to compensate for changes in r174223,ume2007-12-031-2/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.4.2ume2007-12-033-21/+32
| |
| * Vendor import of BIND 9.4.1ume2007-06-031-2/+7
| |
* | Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are nodes2007-12-034-11/+11
| | | | | | | | longer required.
* | Restore the branding of the ELF executables. The structure was optimized out.kib2007-12-031-1/+1
| | | | | | | | MFC after: 3 days
OpenPOWER on IntegriCloud