summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memccpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-11-26Fix typo, okay jmc@.pedro1-3/+3
2008-11-24Correctly jump over routing headers and calculate the size of the if_dataclaudio1-7/+14
struct in the if_msghdr instead of using sizeof() blindly. This allows us to grow if_data without causing issues for the getifaddrs() users. OK deraadt@ (who needs this for some cool upcomming stuff)
2008-11-20move allocations between half a page and a page as close to the end ofotto2-4/+5
the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@
2008-11-20Reduce the leeway malloc allows when moving allocations to the end ofotto1-2/+2
a page to 0. P default will be changed in a separate commit. ok millert@ art@ krw@
2008-11-13To allow for easier playing with more strict settings introduceotto1-5/+14
a separate symbolic constant for the leeway we allow when moving allocations towards the end of a page. No functional change.
2008-11-12avoid a few strlen calls for constant strings; prompted by tg; ok djm@otto1-10/+10
2008-11-06if the freeprot flag (F) is set, do not do delayed frees for chunksotto1-6/+10
(might catch errors closer to the trouble spot) and junk fill pages just before reuse instead of immediate (we can't access the page anyway) since we set PROT_NONE in the F case. ok djm@
2008-11-03sync to openssl-0.9.8i;jmc1-18/+22
i still haven't folded in x509v3_config.pod, since i'm not entirely sure what to do with it.
2008-11-02fix markup of example line and description of G flag; partly from andotto1-5/+4
ok jmc@
2008-11-02remove distinction between warnings and errors, ok deraadt@ djm@otto2-73/+38
2008-10-29if MALLOC_STATS is defined, record how many "cheap reallocs" wereotto1-1/+8
tried and how many actually succeeded.
2008-10-20oops, assign errno the right way. caught by david running regress testsotto1-2/+2
2008-10-03reduce rbyte cache to 512 bytes, no measurable slowdown (even in theotto1-2/+2
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 forotto1-4/+14
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@otto1-14/+1
kurt@
2008-10-03when increasing the size of a larger than a page allocation tryotto1-3/+41
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 putsotto1-17/+10
too much pressure on the amaps. ok tedu@ deraadt@
2008-10-02Hook up fnmatch and glob regress.millert1-5/+5
2008-10-01Regress driver for fnmatch(3). Needs more tests.millert3-0/+58
2008-10-01Regress driver for glob(3). Needs more tests.millert4-0/+244
2008-09-19documentation tweaks; synchronize synopsis and usage.sobrado2-10/+11
written with help by jmc@ ok jmc@
2008-09-19fix some cause of bad TEXTREL on i386 and amd64otto10-28/+128
- 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-13document strtold. ok millert@martynas2-11/+25
2008-09-13strtof has been introduced in c99martynas1-4/+6
from Thomas Pfaff. ok millert@
2008-09-10use one call to arc4random_buf() instead of lots of arc4random()djm2-16/+4
2008-09-08turn off CAST assembler code (i.e. use C implementation) as it has baddjm1-3/+3
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-15martynas8-2504/+309
- 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 -fPICderaadt1-1/+5
2008-09-07Fix merge botch.kettenis2-6/+0
ok miod@
2008-09-06remove duplicate definition of OPENSSL_DSA_MAX_MODULUS_BITS spotteddjm2-4/+0
by dtucker@
2008-09-06update for openssl-0.9.8hdjm2-49/+96
2008-09-06remerge local tweaks, update per-arch configuration headers, updatedjm31-118/+900
Makefiles, crank shlib_version
2008-09-06resolve conflictsdjm1188-25827/+68210
2008-09-06import of OpenSSL 0.9.8hdjm564-10621/+67300
2008-09-06import of OpenSSL 0.9.8hdjm917-31309/+67049
2008-09-06import of OpenSSL 0.9.8hdjm276-871/+82581
2008-09-03remove now obsolete calloc implementation; prompted by miodotto1-50/+0
2008-09-01do not overflow for large prefix len (e.g. 2147483649)markus1-3/+3
report Maksymilian Arciemowicz; ok djm, deraadt
2008-08-25Make all combinations of G, P, J and zero-fill work with as littleotto1-5/+20
effort as possible in most cases; ok djm@
2008-08-23unbreak MALLOC_OPTIONS=G that I broke in my last commit;djm1-3/+3
slightly kludgey solution for until otto fixes it properly; ok otto@
2008-08-23fix calloc() for MALLOC_OPTIONS=J case: SOME_JUNK was being filled intodjm1-2/+2
the freshly mmaped pages disrupting their pure zeroness; ok otto@ deraadt@
2008-08-23unbreak wcschr(string, L'\0') which was incorrectly returning NULLdjm1-3/+5
rather than a pointer to the terminating nul; ok deraadt@
2008-08-22make sure we always map and unmap multiples of MALLOC_PAGESIZE;otto1-5/+14
case spotted by beck, one by me; ok deraadt@ beck@
2008-08-22Smarter implementation of calloc(3), which uses the fact that mmap(2)otto2-8/+57
returns zero filled pages; remember to replace this function as well if you provide your own malloc implementation; ok djm@ deraadt@
2008-08-15Add resolv.conf(5) option to force lookups by TCP: "options tcp"djm1-18/+20
Also Extend "nameserver" declaration syntax to support port numbers. To avoid ambiguity these are only parsed when the address is enclosed in square brackets, e.g. "nameserver [127.0.0.1]:5353" Together these changes make forwarding DNS over a SSH tunnel very easy, but unfortunately some programs in ports/ implement their own resolvers (e.g. firefox). These will need to be modified to support these options separately. fixes jsing@ reyk@ ok deraadt@ millert@ krw@ + "I like it" from lots
2008-08-07small cleanup of error/warning stringsotto2-7/+7
2008-07-28Install man pages for the BIO_* libcrypto functions, but not bio.3jsg1-1/+126
as the page doesn't directly describe any functions. ok deraadt@
2008-07-28man page bits for new malloc; ok jmc@otto1-43/+33
2008-07-28Almost complete rewrite of malloc, to have a more efficient dataotto1-1443/+835
structure of tracking pages returned by mmap(). Lots of testing by lots of people, thanks to you all. ok djm@ (for a slighly earlier version) deraadt@
2008-07-25i have to crank this for a ridiculous reason, to save me about 4 hours of workderaadt1-1/+1