summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-07-20get in the bug fix for pow, from fdlibm 5.3. also adapt it forMartynas Venckus
powf, the float version of it > 1. e_pow.c incorrect results when > x is very close to -1.0 and y is very large, e.g. > pow(-1.0000000000000002e+00,4.5035996273704970e+15) = 0 > pow(-9.9999999999999978e-01,4.5035996273704970e+15) = 0 > Correct results are close to -e and -1/e. while here merge more changes for pow, fixes sign in oflow/uflow cases ok millert@
2008-07-20use more accurate algorithm for tan. from fdlibm 5.3:Martynas Venckus
> 2. k_tan.c error was > 1 ulp target for FDLIBM > 5.2: Worst error at least 1.45 ulp at > tan(1.7765241907548024E+269) = 1.7733884462610958E+16 > 5.3: Worst error 0.96 ulp ok millert@
2008-07-18fix cases, found by lint:Martynas Venckus
- actually raise inexacts for expm1, and support - __exp__E always returns, because inexact check always succeeds. add NOTREACHED - some cases in lgamma FALLTHROUGH, as intended ok millert@
2008-07-17properly raise inexact; ok millert@Martynas Venckus
2008-07-16some archaic 'n = a(b), c(d)' use that confused lintMartynas Venckus
ok millert@
2008-07-16install infnan.3 only for vax. pointed out by millert@Martynas Venckus
ok millert@
2008-07-16ansify infnan example. sure millert@Martynas Venckus
2008-07-10- handle sign of negative zero. use sign dtoa setsMartynas Venckus
- remove 'value < 0' cruft, dtoa already clears sign bit for us discussed with, and tested by phessler@ ok millert@, who noticed to remove now-unused variable, and phessler@
2008-07-07Application-specified thread stacks didn't work with libpthreadPhilip Guenthe
because it treated the supplied memory as holding an internal data structure instead of as the stack space itself ok kurt@, "looks ok" otto@, tested on hppa by kettenis@
2008-07-06oops, fix getpwent() use of wrong buffersTheo de Raadt
found by alexander.schrijver
2008-07-05- correct .Dt for pthread_attr_setstack.3Jason McIntyre
- new sentence, new line
2008-07-05Add manpage for pthread_attr_[sg]etstack(3)Philip Guenthe
Correct misnaming in STANDARDS section ok brad@ otto@
2008-06-30document that mquery(2) is non-standard; hint and ok deraadt@Otto Moerbeek
2008-06-30xref mqueryOtto Moerbeek
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-25- expressions such as x != x and x == x are prone to errors andMartynas Venckus
ugly, when we have isnan and isinf - no need to check for _IEEE, when checking for not-a-number - remove some impossible checks - while here, drem->remainder, as drem is just an obsolete alias now ok millert@
2008-06-25`Li' needs an argument;Jason McIntyre
2008-06-25Change a very long selective list of all architectures which do IEEE intoTheo de Raadt
just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod
2008-06-25Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112Todd C. Miller
now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
2008-06-25Implement _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX,Todd C. Miller
and _SC_THREAD_SAFE_FUNCTIONS for sysconf(3). OK deraadt@
2008-06-25Add _PW_BUF_LEN define and use it instead of hard-coding 1024 forTodd C. Miller
the buffer size. OK deraadt@
2008-06-25Build pic versions of crt0, crtbegin & crtend for amd64, i386, powerpc,Kurt Miller
sparc64. The rest will come later. okay drahn@ no objection miod@ "Get it in" deraadt@
2008-06-25Make pic compatiable. From and okay drahn@ no objection miod@Kurt Miller
"Slackers!" deraadt@
2008-06-24crank major because of two new interfacesTheo de Raadt
2008-06-24create a private getpwent()-like interface which does not walk the YPTheo de Raadt
groups map but instead tells us that it is there. then use this interface in getgrouplist(), and do a single lookup against netid.byname instead to get all the groups associated with that user ok kurt, testing by many others
2008-06-24implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of theTheo de Raadt
entire file. much help from kurt, and tested by many
2008-06-21cleaning up, no functional changesMartynas Venckus
- no support for National 32000, removing ns32000/national ifdefs maze - remove tahoe defs - ansify looks fine to millert@; who also noticed rint removal
2008-06-20Adjust the _SEM_CHECK_VALIDITY macro to detect NULL sem_t instead ofKurt Miller
segfaulting. okay marc@ todd@
2008-06-16fix some errors found by lint, e.g. declaration w/o types, makeMartynas Venckus
zero const. also do the same fix as was found for ieee's trunc by lint; ok millert@. tested on VAX
2008-06-16- update list of functions. add functions that have been added inMartynas Venckus
the past years, including round, trunc, fmod, tgamma, finite - add missing ulp values - better descriptions for isnan/isinf - sort - remove man page column. we have mlinks so just mention man pages directly "yeah, that's the way to go" jmc@; ok millert@
2008-06-15add a procedure NLM_SM_NOTIFY (in version 0), used by statd to sendNikolay Sturm
notifications to lockd. from NetBSD bump minor "just get it in" deraadt
2008-06-15Swap the code for a calling function and what it calls, so that the calledTheo de Raadt
function is in scope and a pointer is not returned via an int ok dtucker
2008-06-14remove _thread_malloc_init prototypeOtto Moerbeek
2008-06-14zap last thread_malloc_init reference. otto@ okFederico G. Schwindt
2008-06-14slightly more robust fix in not relying on utf-8 sequences being wellPeter Valchev
formed after discussion w/ upstream
2008-06-14accidentally deleted a little bit too much, oopsTheo de Raadt
2008-06-13grammar fixes;Jason McIntyre
2008-06-13Remove all comments so that this code is 100% 'portable interface', andTheo de Raadt
thus attackable because Sun used a poor copyright notice
2008-06-13document xdr_{u_}int64_t() functionsTheo de Raadt
2008-06-13Add definitions for nlm version 4 (for use with NFSv3).Nikolay Sturm
from NetBSD minor bump, discussed w/ deraadt
2008-06-13remove _MALLOC_LOCK_INIT; major bump; ok deraadt@Otto Moerbeek
2008-06-13implement xdr_int64_t, xdr_u_int64_tNikolay Sturm
from NetBSD
2008-06-13Add strtof() to libc, some ports seem to like it. Currently it's a simpleLandry Breuil
call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
2008-06-12spacing, add rcs ids, no binary changeMartynas Venckus
2008-06-12some cleanup for noieee_src, as asked by millert@: remove fictionalMartynas Venckus
includes, include math.h where needed and remove redundant declarations ok millert@
2008-06-12shut up lint; pointed out by theoMartynas Venckus
ok millert@
2008-06-12fix parser crash w/ invalid UTF-8 char sequences (all apps that use expatPeter Valchev
for XML parsing are affected) reported & fixed in upstream cvs
2008-06-12add isinff and isnanf. no objection millert@Martynas Venckus
2008-06-12use ALTENTRY; was ok millert@Martynas Venckus
2008-06-12- no need for ifdef dance (21), we have isnan, finite for vaxMartynas Venckus
- TEST_FMOD doesn't belong here, remove - remove ifdef _ANSI_SOURCE and assume it's default ok millert@