summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* According to C99 decimal_point can't be the empty string, mention it.Andrey A. Chernov2003-03-201-1/+2
| | | | Notes: svn path=/head/; revision=112426
* decimal_point can't be "" according to C99, so set it to standard "."Andrey A. Chernov2003-03-201-1/+6
| | | | | | | in that case. Notes: svn path=/head/; revision=112425
* - Revamp the function _nis_initshells() to make getusershell() backedRobert Drehmel2003-03-191-35/+30
| | | | | | | | | | by NIS work, like nsswitch.conf(5) promises to be able to. (These modifications will be fed back to NetBSD, of course) - In endusershell(), do not set `sl' to NULL if we know it already has that value. Notes: svn path=/head/; revision=112407
* If realloc(3) fails in copyline(), do not make matters worse byRobert Drehmel2003-03-191-6/+11
| | | | | | | leaving without deallocating `data' thereby creating a memory leak. Notes: svn path=/head/; revision=112404
* The gdtoa import apparently hasn't caused anything or anyone toDavid Schultz2003-03-151-2429/+0
| | | | | | | | explode, so nix the old strtod() / dtoa(). This change is part of the gdtoa patches reviewed on standards@. Notes: svn path=/head/; revision=112257
* MFp4: Pentium/Athlon-optimised implementation of wcslen().Tim J. Robbins2003-03-142-1/+69
| | | | Notes: svn path=/head/; revision=112232
* Merge vfprintf.c revision 1.52.Tim J. Robbins2003-03-141-2/+2
| | | | Notes: svn path=/head/; revision=112229
* Kludge around a bug that results from printf() assuming thatDavid Schultz2003-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 Notes: svn path=/head/; revision=112224
* Unexpand RCS tag.Tim J. Robbins2003-03-141-1/+1
| | | | Notes: svn path=/head/; revision=112223
* Clean up the way gdtoa sources are found.David E. O'Brien2003-03-132-8/+7
| | | | | | | OK'ed by: das Notes: svn path=/head/; revision=112202
* Document return type of wordfree() (void). Reduce the space betweenTim J. Robbins2003-03-131-3/+4
| | | | | | | | struct member names and the corresponding comments so the lines don't wrap on 80-column terminals. Notes: svn path=/head/; revision=112190
* MFp4: Implementations of the wcstof() and wcstold() functions.Tim J. Robbins2003-03-134-10/+195
| | | | Notes: svn path=/head/; revision=112177
* MFp4: Catch up to recent __dtoa() interface changes and removal of cvt()'sTim J. Robbins2003-03-131-11/+10
| | | | | | | last argument. Notes: svn path=/head/; revision=112174
* Document strtof() and strtold(). Update vendor license.David Schultz2003-03-121-32/+75
| | | | | | | Reviewed by: bde (briefly), mike (mentor), obrien Notes: svn path=/head/; revision=112164
* Replace our ancient dtoa/strtod implementation with the gdtoaDavid Schultz2003-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 Notes: svn path=/head/; revision=112163
* Ditch a static global and the mutex that protected it. Achieve theMike Makonnen2003-03-121-27/+18
| | | | | | | | | | | desired strptime(3) reentrancy by adding an extra argument to _strptime() instead. Approved by: markm (mentor) MFC: 4 weeks Notes: svn path=/head/; revision=112156
* Document the fact that hdestory calls free on the keys added withDavid Malone2003-03-121-5/+25
| | | | | | | | | | hsearch(.., ENTER). Make the example reflect this. PR: 49951 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au> Notes: svn path=/head/; revision=112143
* Update sendfile.2 to include a TUNING section that documents theSean Chittenden2003-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 Notes: svn path=/head/; revision=112134
* MFp4: Reduce code size by 26 bytes by only aligning the jump targets thatTim J. Robbins2003-03-121-10/+1
| | | | | | | are at the top of loops. Notes: svn path=/head/; revision=112132
* MFp4: Make `spanp' const.Tim J. Robbins2003-03-121-3/+4
| | | | Notes: svn path=/head/; revision=112131
* MFp4: Pentium/Athlon-optimised implementation of wmemchr().Tim J. Robbins2003-03-122-1/+115
| | | | Notes: svn path=/head/; revision=112129
* MFp4: Pentium-optimised implementation of wcscmp(). Performs significantlyTim J. Robbins2003-03-102-1/+80
| | | | | | | better than the code generated by gcc in many cases. Notes: svn path=/head/; revision=112059
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" textTim J. Robbins2003-03-092-0/+6
| | | | | | | to the Errors section. Notes: svn path=/head/; revision=112019
* Clean up some signed/unsigned issues in the XDR code.Jacques Vidrine2003-03-073-12/+18
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=111962
* Remove NS and ISO stuff.Peter Wemm2003-03-057-737/+3
| | | | Notes: svn path=/head/; revision=111920
* Fix threaded applications on ia64 that are linked dynamicly. We didMarcel Moolenaar2003-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. Notes: svn path=/head/; revision=111897
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforeMarcel Moolenaar2003-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. Notes: svn path=/head/; revision=111894
* Restore vendor ID.David E. O'Brien2003-03-031-2/+2
| | | | Notes: svn path=/head/; revision=111778
* Use __FBSDID.David E. O'Brien2003-03-0335-44/+85
| | | | Notes: svn path=/head/; revision=111777
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-2714-5/+33
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* ia64 actually uses 80-bit long doubles and must support big and littleMike Barcroft2003-02-262-3/+27
| | | | | | | | | endian at compile-time. Reviewed by: das Notes: svn path=/head/; revision=111555
* Fix typo.Robert Drehmel2003-02-251-1/+1
| | | | Notes: svn path=/head/; revision=111503
* Catch up with change to kse_release syscall.Julian Elischer2003-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. Notes: svn path=/head/; revision=111476
* Fixed copyright.Ruslan Ermilov2003-02-241-20/+32
| | | | | | | | | Tidy up the markup. Only describe the new, post-2.0 behavior. Added the RETURN VALUES and ERRORS sections. Notes: svn path=/head/; revision=111449
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-244-23/+26
| | | | Notes: svn path=/head/; revision=111447
* Mention CLOCK_MONOTONIC.Poul-Henning Kamp2003-02-231-2/+3
| | | | Notes: svn path=/head/; revision=111301
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-239-35/+39
| | | | Notes: svn path=/head/; revision=111285
* mdoc(7) police: kill self-xref.Ruslan Ermilov2003-02-231-1/+0
| | | | Notes: svn path=/head/; revision=111282
* Punctuation.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111281
* Typo.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111280
* Grammar.Ruslan Ermilov2003-02-231-0/+1
| | | | Notes: svn path=/head/; revision=111278
* More changes from NetBSD:Mike Heffner2003-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 Notes: svn path=/head/; revision=111274
* Grab some changes from NetBSD:Mike Heffner2003-02-231-5/+6
| | | | | | | | | fix const poisoning add cast to silence warning pull in unistd.h Notes: svn path=/head/; revision=111273
* Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specificDave Zarzycki2003-02-221-3/+3
| | | | Notes: svn path=/head/; revision=111262
* Use strlcpy instead of strncpy.Johan Karlsson2003-02-221-2/+1
| | | | | | | | Submitted by: imp Reviewed by: silence on -audit Notes: svn path=/head/; revision=111261
* Fix a bad free() call that would occur if some #if 0'd code was used.Tim J. Robbins2003-02-221-4/+6
| | | | Notes: svn path=/head/; revision=111237
* Mention that dlerror() is also applicable to retrieve error message afterAlexey Zelkin2003-02-211-0/+2
| | | | | | | dladdr() and dlinfo() functions calls. Notes: svn path=/head/; revision=111213
* Fix the description for mkdtemp(), which creates directories, not files.Gregory Neil Shapiro2003-02-191-1/+1
| | | | | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval Notes: svn path=/head/; revision=111117
* Update errors.Tom Rhodes2003-02-181-8/+8
| | | | | | | | PR: 48125 Submitted by: Per Hedeland <per@hedeland.org> (original version) Notes: svn path=/head/; revision=111103
* Whack 28 unused variables.Jacques Vidrine2003-02-188-19/+9
| | | | Notes: svn path=/head/; revision=111082