summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-10-03reduce rbyte cache to 512 bytes, no measurable slowdown (even in theOtto Moerbeek
threaded case) but much smaller working set; prompted by and ok deraadt@
2008-10-03save and restore errno on success. while it is not stricly needed forOtto Moerbeek
non-syscalls, there's just too much code not doing the right thing on error paths; prompted by and ok deraadt@
2008-10-03zap __arc4_getbyte(), it was only used by the old malloc; ok millert@Otto Moerbeek
kurt@
2008-10-03when increasing the size of a larger than a page allocation tryOtto Moerbeek
mapping the region next to the existing one first; there's a pretty high chance there's a hole there we can use; ok deraadt@ tedu@
2008-10-03avoid spitting up regions when purging stuff from the cache, it putsOtto Moerbeek
too much pressure on the amaps. ok tedu@ deraadt@
2008-10-03Make sigwait() work correctly. In particular, it'll work when thePhilip Guenthe
signal is already pending in the calling thread or the main thread and there's no longer a race condition where the signal could be diverted but sigwait() would still block. There were some off-by-one errors too. (The checking of the main thread's pending list is just until a pending list for the process can be added to struct process. For now, such signals end up as pending on the main thread.) oks tedu@ and art@
2008-10-02the license on this is PD; david leonard says soTheo de Raadt
2008-10-02Fix PR #5942: preserve errno across fd flag updates, so that successfulTheo de Raadt
calls to close(), closefrom(), and dup2() don't change it. ok tedu@, deraadt@, kurt@, millert@, art@, marco@ (miscommit: originally by guenther@)
2008-10-02the license on this is PD; david leonard says soTheo de Raadt
2008-10-02simplify and clarify login_getstyle; ok deraadt@Todd C. Miller
2008-10-01POSIX character class support for fnmatch(3) and glob(3). OK deraadt@Todd C. Miller
2008-10-01Simplify the loop used for bp overflow detection to match what I'mTodd C. Miller
using on the list server.
2008-10-01Fix for sequential retrieval failure when using large key/data pairs.Todd C. Miller
Closes PR 2764. Has been running on the list server for years. OK deraadt@
2008-10-01Assert my copyright on files I gave to d@ back in 1998.Dale Rahn
2008-09-29Use large pic asm for access to errno (needed for pie). Originally fromKurt Miller
drahn@ but tweaked to use same scratch reg as PIC_PROLOGUE. okay miod@ drahn@
2008-09-26Remove PICFLAG= setting, it is overridden in bsd.prog.mk. tested on landisk.Dale Rahn
Caught and ok kurt@
2008-09-19fix some cause of bad TEXTREL on i386 and amd64Otto Moerbeek
- global function calls in .init sections (diff makes them via PLT) - calls to global functions in aes-586.S (made static or local) - global variable accesses in rc4-x86_64.S (now made via GOT) from djm@large; ok miod@
2008-09-16remove d_cbrt, dcbrt, d_sqrt. ok millert@Martynas Venckus
2008-09-16typo: is -> if. ok millert@Martynas Venckus
2008-09-16gc unused files, the functions are in libc. ok millert@Martynas Venckus
2008-09-16Add PIOD_READ_AUXV, a way to get the ELF auxilliary vector through ptrace(2).Mark Kettenis
ok miod@
2008-09-15add missing header needed by strlen().Charles Longeau
ok millert@
2008-09-15- describe how printf(1) and printf(3) %e, %E, %g, %G, %a, %A behaveMartynas Venckus
when the argument is infinity/not-a-number ok millert@, jmc@
2008-09-14describe %a/%A. from freebsdMartynas Venckus
tweaks/ok millert@, jmc@
2008-09-13document strtold. ok millert@Martynas Venckus
2008-09-13strtof has been introduced in c99Martynas Venckus
from Thomas Pfaff. ok millert@
2008-09-13remove z_abs. ok millert@Martynas Venckus
2008-09-12the last example doesn't need a ctx variable;Damien Miller
from Loic Tortay via jmc@
2008-09-12as we did for reboot(8), do not attempt to list architecturesJason McIntyre
which do or do not support certain options: it just goes horribly out of date;
2008-09-11since these got no ieee-specific code anymore, add fmin, fmax, fdim,Martynas Venckus
fminf, fmaxf, fdimf, fdiml for VAX. looks good to millert@
2008-09-11- make much more readable: don't reimplement isnan, signbit eachMartynas Venckus
time we need them ok millert@
2008-09-10use one call to arc4random_buf() instead of lots of arc4random()Damien Miller
2008-09-09sigh, gamma got lostMartynas Venckus
2008-09-08turn off CAST assembler code (i.e. use C implementation) as it has badDamien Miller
relocations that lead to libcrypto.so being marked TEXTREL; linker-fu from drahn@ "go ahead" deraadt@
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
2008-09-07sparc now requires this bloated library to be -fPICTheo de Raadt
2008-09-07Fix merge botch.Mark Kettenis
ok miod@
2008-09-07Fix param list for xdrrec_eof. Found during coding some stuff that usesMarco Peereboom
xdr goo.
2008-09-06remove duplicate definition of OPENSSL_DSA_MAX_MODULUS_BITS spottedDamien Miller
by dtucker@
2008-09-06remerge local tweaks, update per-arch configuration headers, updateDamien Miller
Makefiles, crank shlib_version
2008-09-06resolve conflictsDamien Miller
2008-09-06import of OpenSSL 0.9.8hDamien Miller
2008-09-06crank for sha2 changesDamien Miller
2008-09-06Rename SHA256/384/512 API to avoid namespace collisions withDamien Miller
forthcoming OpenSSL update. Function names lose their underscore (SHA256_Init => SHA256Init) and the various SHA256_CTX, SHA512_CTX are merged into a single SHA2_CTX that is used for all these hashes. ok millert@ manpage bits jmc@ "please commit" deraadt@
2008-09-03remove now obsolete calloc implementation; prompted by miodOtto Moerbeek
2008-09-01do not overflow for large prefix len (e.g. 2147483649)Markus Friedl
report Maksymilian Arciemowicz; ok djm, deraadt
2008-08-27comment fixesMartynas Venckus
2008-08-26- add FMartynas Venckus
- make inf INF nan NAN comply to standards (eEfFgG) - extend man page bits ok millert@. w/ a man page tweak and ok jmc@
2008-08-26don't zero-pad special values. ok millert@Martynas Venckus
2008-08-25correct +name handling; schwarze@usta.deTheo de Raadt