summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: Pentium/Athlon-optimised implementation of wcslen().tjr2003-03-142-1/+69
|
* Merge vfprintf.c revision 1.52.tjr2003-03-141-2/+2
|
* Kludge around a bug that results from printf() assuming thatdas2003-03-141-1/+1
| | | | | | | | | dtoa() is buggy. The bug would cause incorrect output to be generated when format strings such as '%5.0f' were used with nonzero numbers whose magnitude is less than 1. Reported by: df(1) by way of periodic(8) Reviewed by: mike
* Unexpand RCS tag.tjr2003-03-141-1/+1
|
* Clean up the way gdtoa sources are found.obrien2003-03-132-8/+7
| | | | OK'ed by: das
* Document return type of wordfree() (void). Reduce the space betweentjr2003-03-131-3/+4
| | | | | struct member names and the corresponding comments so the lines don't wrap on 80-column terminals.
* MFp4: Implementations of the wcstof() and wcstold() functions.tjr2003-03-134-10/+195
|
* MFp4: Catch up to recent __dtoa() interface changes and removal of cvt()'stjr2003-03-131-11/+10
| | | | last argument.
* Document strtof() and strtold(). Update vendor license.das2003-03-121-32/+75
| | | | Reviewed by: bde (briefly), mike (mentor), obrien
* Replace our ancient dtoa/strtod implementation with the gdtoadas2003-03-1220-10/+286
| | | | | | | | | | | | | | | | | | package, a more recent, generalized set of routines. Among the changes: - Declare strtof() and strtold() in stdlib.h. - Add glue to libc to support these routines for all kinds of ``long double''. - Update printf() to reflect the fact that dtoa works slightly differently now. As soon as I see that nothing has blown up, I will kill src/lib/libc/stdlib/strtod.c. Soon printf() will be able to use the new routines to output long doubles without loss of precision, but numerous bugs in the existing code must be addressed first. Reviewed by: bde (briefly), mike (mentor), obrien
* Ditch a static global and the mutex that protected it. Achieve themtm2003-03-121-27/+18
| | | | | | | | desired strptime(3) reentrancy by adding an extra argument to _strptime() instead. Approved by: markm (mentor) MFC: 4 weeks
* Document the fact that hdestory calls free on the keys added withdwmalone2003-03-121-5/+25
| | | | | | | hsearch(.., ENTER). Make the example reflect this. PR: 49951 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
* Update sendfile.2 to include a TUNING section that documents theseanc2003-03-121-0/+38
| | | | | | | various tunables that are applicable to sendfile(2). Update tuning.7 to mention a reference to sendfile.2. Approved by: keramida
* MFp4: Reduce code size by 26 bytes by only aligning the jump targets thattjr2003-03-121-10/+1
| | | | are at the top of loops.
* MFp4: Make `spanp' const.tjr2003-03-121-3/+4
|
* MFp4: Pentium/Athlon-optimised implementation of wmemchr().tjr2003-03-122-1/+115
|
* MFp4: Pentium-optimised implementation of wcscmp(). Performs significantlytjr2003-03-102-1/+80
| | | | better than the code generated by gcc in many cases.
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" texttjr2003-03-092-0/+6
| | | | to the Errors section.
* Clean up some signed/unsigned issues in the XDR code.nectar2003-03-073-12/+18
| | | | Obtained from: OpenBSD
* Remove NS and ISO stuff.peter2003-03-057-737/+3
|
* Fix threaded applications on ia64 that are linked dynamicly. We didmarcel2003-03-051-3/+5
| | | | | | | | | | | | | | | | | not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again.
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforemarcel2003-03-051-2/+2
| | | | | | | | | | | the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and remove J_SIG1. The main reason for this change is that the 128-bit sigset_t is now aligned on a 16-byte boundary, which allows us to use 16-byte atomic loads and stores on CPUs that support it. The removal of J_SIG1 is done to avoid confusion: it is never accessed and should not be. Renaming J_SIG0 to J_SIGSET is the icing on the cake that's better done now than later.
* Restore vendor ID.obrien2003-03-031-2/+2
|
* Use __FBSDID.obrien2003-03-0335-44/+85
|
* Eliminate 19 warnings in libc (at level WARNS=2) of thenectar2003-02-2714-5/+33
| | | | `implicit declaration of function' variety.
* ia64 actually uses 80-bit long doubles and must support big and littlemike2003-02-262-3/+27
| | | | | | endian at compile-time. Reviewed by: das
* Fix typo.robert2003-02-251-1/+1
|
* Catch up with change to kse_release syscall.julian2003-02-251-2/+2
| | | | | | | The background info in this man page needs rewriting in some parts since the last major changes to the code, however it still accuratly reflects how to use the API.
* Fixed copyright.ru2003-02-241-20/+32
| | | | | | Tidy up the markup. Only describe the new, post-2.0 behavior. Added the RETURN VALUES and ERRORS sections.
* mdoc(7) police: Scheduled sweep.ru2003-02-244-23/+26
|
* Mention CLOCK_MONOTONIC.phk2003-02-231-2/+3
|
* mdoc(7) police: markup laundry.ru2003-02-239-35/+39
|
* mdoc(7) police: kill self-xref.ru2003-02-231-1/+0
|
* Punctuation.ru2003-02-231-1/+1
|
* Typo.ru2003-02-231-1/+1
|
* Grammar.ru2003-02-231-0/+1
|
* More changes from NetBSD:mikeh2003-02-231-9/+11
| | | | | | | | * use correct error detection of realloc failure * strtol negative return check * use strtol to validate string instead of rolling our own validation code * terminate the command sequence correctly
* Grab some changes from NetBSD:mikeh2003-02-231-5/+6
| | | | | | fix const poisoning add cast to silence warning pull in unistd.h
* Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specificzarzycki2003-02-221-3/+3
|
* Use strlcpy instead of strncpy.johan2003-02-221-2/+1
| | | | | Submitted by: imp Reviewed by: silence on -audit
* Fix a bad free() call that would occur if some #if 0'd code was used.tjr2003-02-221-4/+6
|
* Mention that dlerror() is also applicable to retrieve error message afterphantom2003-02-211-0/+2
| | | | dladdr() and dlinfo() functions calls.
* Fix the description for mkdtemp(), which creates directories, not files.gshapiro2003-02-191-1/+1
| | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval
* Update errors.trhodes2003-02-181-8/+8
| | | | | PR: 48125 Submitted by: Per Hedeland <per@hedeland.org> (original version)
* Whack 28 unused variables.nectar2003-02-188-19/+9
|
* Remove these from libc; they are now system calls.deischen2003-02-182-532/+0
| | | | Prompted by: mini
* Call the weak symbol for sigprocmask, so that it can be overridden.mini2003-02-171-1/+1
|
* Back out "drop first N values" method of removing monotonically increasedache2003-02-171-7/+1
| | | | | | | | | | | | | | | seed->first value correlation. It breaks rand_r()... Other possible methods like shuffling inside aray will breaks rand_r() too, because it assumes only one word state, i.e. nothing extra can be added after seed assignment in srand(). BTW, for old formulae seed->first value correlation is not so monotonically increased as with other Linear Congruential Generators of this type only becase arithmetic overflow happens. But overflow affects distribution and lower bits very badly, as many articles says, such type of overflow not improves PRNG. So, monotonically increased seed->first value correlation problem remains...
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-1637-39/+74
| | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
* Add dlinfo(3) manual page to the rank of base system manpagesphantom2003-02-151-2/+2
|
OpenPOWER on IntegriCloud