summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-12-08BSD getopt() supports '-' in the optstring so we should too.millert1-8/+15
This is used by a few programs such as man and su.
2002-12-07Add test for fix in revision 1.5 of getopt_long.cmillert3-1/+26
2002-12-07Fix pasto in last commit.millert1-3/+3
2002-12-07For getopt_long_only() we *do* want to match single-character optionsmillert1-41/+36
as shortcuts for long ones, but only if this would not conflict with a short option in optstring. Now binutils gas works.
2002-12-06In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead.millert1-10/+27
We don't want to use the sysctl() by default since we are reading more than just a few bytes of entropy when setting up the state.
2002-12-06Fix two compatibility issues with our getopt_long_only() vs. the GNU version:millert1-28/+61
o Check for long options even when not at the beginning of an option. For instance, if -a is a short option w/o an arg and -static is a boolean long option then -astatic is valid for getopt_long_only(). o If a potential long argument does not match longopts and the first character is not a short option, print a warning and skip the rest of the argument. Also clean up some trailing whitespace and change return value of parse_long_options() from -2 to -1 when unmatched and in long_only mode. With these fixes the binutils ld seems happy with our getopt_long_only()
2002-12-05update test resultsmillert1-10/+10
2002-12-05excercise "-W longopt"millert2-10/+10
2002-12-05Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;"millert1-6/+8
is in optstring.
2002-12-05Reorganize this so that getopt_only_only() works correctly.millert1-221/+208
In order for getopt_only_only() to work we need to check for long options before short ones. I have merged getopt_internal and getopt_long_internal into a single function with the actual long args parsing broken out into a separate function. This also simplifies the flow of control.
2002-12-05simple regress for getopt_long() and getopt_long_only()millert3-0/+204
2002-12-05make getopt_long and getopt_long_only protos match getopt.hmillert1-3/+3
2002-12-04Add "RETURN VALUES" sectionsmillert2-2/+52
2002-12-04.Xr getopt_longmillert1-1/+2
2002-12-03Whoops, add missing #ifdef REPLACE_GETOPTmillert1-2/+4
2002-12-03fix typomillert1-1/+1
2002-12-03GNU-like getopt_long() from NetBSD with changes by me to supportmillert3-8/+845
getopt_long_only(). At some point this should replace the BSD getopt(3) but we are not there yet. While I am here add protection from the multiple getopt() definitions due to conflicting standards.
2002-12-03Crank all library major numbers. Needed due to the fact that wemillert3-3/+3
now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
2002-12-02Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.millert5-9/+396
2002-11-27Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.tdeval1-6/+11
2002-11-25Warn if atexit(3) fails. Change some tabs to spaces. Usecloder1-5/+5
STDERR_FILENO instead of 2. OK millert@
2002-11-21.Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page.millert4-9/+26
2002-11-21Take advantage of the libc minor bump and add atoll(3)millert3-7/+125
2002-11-21Add strerror_r and functions versions of getchar_unlocked andmarc3-3/+53
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
2002-11-14Updates from http://www.isc.org/products/BIND/patches/bind4910.diffmillert1-22/+37
o check __dn_skipname() return value for errors o fix sanity checking of reverse records, getnetbyname() may not have been working before.
2002-11-14$ in front of commandsderaadt1-13/+13
2002-11-13update usage; ok ericj@markus1-3/+4
2002-11-05thread safe libc -- 2nd try. OK miod@, millert@marc3-93/+44
Thanks to miod@ for m68k and vax fixes
2002-11-03back out previous patch.. there are still some vax/m68k issuesmarc3-44/+93
2002-11-03libc changes for thread safety. Tested on:marc3-93/+44
alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
2002-10-26Describe the actual operation of inet_net_pton with a few examples.marc1-32/+65
Also add caution regarding dst field initialization. operation text OK millert@
2002-10-21do not use an absolute path in include; dhartmei@ okmickey2-3/+4
2002-10-09install SSL_do_handshake(3) as well; markus@ okfgsch1-1/+2
2002-09-26do not install mdc2 man pages; markus okderaadt1-18/+1
2002-09-26remove MDC2; patentsmarkus5-14/+11
2002-09-25missing arg; peterw@ifost.org.auderaadt1-2/+2
2002-09-25remove rc5markus2-218/+0
2002-09-23pull in fix from openssl-0.9.7-stable-SNAP-20020921:markus2-32/+10
*) Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes). [Bodo Moeller]
2002-09-17use arc4random instead of /dev/arandom,markus2-60/+22
allows RAND_poll after chroot, ok deraadt, fgsch
2002-09-17undo local change, HMAC_Init() already does HMAC_CTX_init if(key && md)markus2-2/+0
2002-09-16add -elapsed to usage() for USE_TOD, toomarkus1-1/+1
2002-09-16sync with 0.9.7-beta3markus2-0/+8
2002-09-16remove old filesmarkus6-1680/+0
2002-09-16remove generated file (from -beta3)markus2-360/+0
2002-09-14Move __cleanup into mprotect'ed page to prevent unintentional modificationsdhartmei5-27/+90
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
2002-09-14merge with openssl-0.9.7-stable-SNAP-20020911,markus153-1211/+2465
new minor for libcrypto (_X509_REQ_print_ex) tested by miod@, pb@
2002-09-12import openssl-0.9.7-stable-SNAP-20020911 (without idea)markus128-519/+6497
2002-09-12import openssl-0.9.7-stable-SNAP-20020911 (without idea)markus41-331/+1189
2002-09-10evp.h should not pull in all other header files, especiallymarkus2-114/+0
since it's supposed to hid the specific ciphers. this change also avoids problems when evp is used together with kerberos (and <des.h>). ok deraadt@
2002-09-10merge openssl-0.9.7-beta3, tested on vax by miod@markus354-4344/+9951