summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/hcreate.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-04-04POSIX says tdelete() returns the parent of the deleted node. Sadly theotto1-1/+9
root node doesn't have a parent, and POSIX does not say what should be done in that case. Warn developers that different implementations may do different things.
2006-04-04When tdelete() is used to delete the root node, don't return amoritz2-3/+5
pointer to the freed root node, but return a pointer to the new root node. POSIX does not define, what should be returned in that case. Fixes Coverity CID 2528. ok millert@ otto@
2006-04-03be more careful with atoi() result; ok ottoderaadt1-3/+5
2006-04-02Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX andotto2-4/+4
remove redundant check on size. ok millert@ deraadt@
2006-04-01Use NFILES for starting point instead of hardcoded constotto1-2/+2
2006-03-31(char)to{upper,lower}()deraadt2-6/+6
2006-03-31oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);deraadt1-1/+1
is not valid code; found by lint
2006-03-29Xr to strtonum(3), because vice versa is already the casegrunk1-1/+2
ok jmc@ otto@
2006-03-26Add warning about malloc(num * size) and recommend calloc() instead,ray1-5/+40
or if malloc must be used suggest check. Get rid of "one". OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
2006-03-25hook telldirotto1-2/+2
2006-03-25telldir/seekdir regress tesst. Fails on -current, since seekdir(x),otto2-0/+111
telldir() does not return x. This will we fixed.
2006-03-22Pass size of correct variable to memset().ray1-2/+2
From Alexey Dobriyan. OK otto@
2006-03-15Removes extraneous variables from getopt(3). Inspired by one ofray1-3/+1
David Hill's diffs. ok otto
2006-03-14make BN_is_prime() realise that 2 is, in fact, a prime number.djm2-2/+6
from OpenSSL CVS; ok otto@ deraadt@
2006-03-10Hook up getcap test.ray1-2/+2
2006-03-10Regression test for truncated file.ray3-0/+37
ok otto and millert
2006-02-22Avouid a race in atexit() handling by introducing a lock. Problemotto2-10/+32
originally reported by Gergely Kovacs; help from dhartmei@; ok tedu@ millert@
2006-02-14quick path for free(0)espie1-5/+5
`looks to be safe' millert, okay tedu.
2006-02-11type correctness; from Ray Lai in PR 5011; ok millert@otto1-2/+2
2006-02-01remove obsolete code; from Ray Lai in PR 4998; ok tedu@ beck@otto1-8/+1
2006-01-31use "proxy_protocol" as the arg to -X, not "proxy_version";jmc1-2/+2
from ray lai;
2006-01-30document posixness;jmc2-9/+7
fixes pr #4996, from joachim schipper;
2006-01-25implement HTTP proxy authentication support, very useful in a ssh_configdjm3-23/+95
ProxyCommand; ok beck@
2006-01-20Explicitly include limits.h if we are going to use its contents.millert1-1/+2
2006-01-18missing auxillary verbjakemsr1-2/+2
"yes, that is correct." jmc@ (a while back)
2006-01-17Include limits.h directly instead of depending on another headermillert2-2/+4
to include it for us.
2006-01-17Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert1-2/+2
2006-01-15back out previous - imaxabs is already listed;jmc1-2/+1
2006-01-14Xr imaxabs()millert1-1/+2
2006-01-14fix the .Fn line; ok millertjmc1-2/+2
2006-01-14sort SEE ALSO;jmc1-2/+2
2006-01-13Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()millert17-74/+685
2006-01-10Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)millert2-11/+15
Remove an extraneous check for dtoa returning Inf/Nan
2006-01-10Use localeconv() to get the locale-specific radix char like printf does.millert1-3/+6
2006-01-10Nan and Infinity can be negativemillert1-6/+12
Decimal point was missing for some exponential output Only divide sign by 10 once per loop Add a missing NUL terminator for one case If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)
2005-12-30Currently sys/socket.h needs sys/types.h so add #include <sys/types.h> toclaudio3-3/+6
the list of necessary includes. Now the manpages match reality. OK mpf@ millert@
2005-12-23Prototypes live in <search.h>millert1-1/+2
2005-12-22handle chroot and res_init calls better. diagnosis assistance from otto.tedu1-21/+18
ok deraadt otto.
2005-11-30Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a timeotto3-51/+16
and remove fallback code. If somebody is dumb enough to make the sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls on process startup. looks good miod@ ok deraadt@ tedu@
2005-11-27ISOXXX/ISO-XXX -> ISO XXXjmc1-3/+3
2005-11-24use WANTLINT= (on all architectures)deraadt2-2/+4
2005-11-15Do not clobber errno when calling close(2) in example code.otto1-2/+6
From form@ via mpech@
2005-11-15Use a forward declaration of struct timespec instead of assumingmillert1-1/+2
it has already been defined by previous includes. While this is true at the moment, it will no longer be true after a pending includes cleanup. OK marc@
2005-11-13save errno in example code. from mpech@ ok jmc@otto1-1/+3
2005-11-10add $OpenBSD$ tags, as requested by dtucker.espie2-0/+2
2005-10-29Activate missing wcswidth, as noted by Alexander Bluhm.espie1-2/+2
okay deraadt@, otto@ Minor bump (nobody stepped forward with other changes, so let's do this one)
2005-10-26Remove obsolete comment. ok deraadt@otto1-5/+1
2005-10-26clarifications from ray lai;jmc1-3/+5
tweaked by tedu@ and myself;
2005-10-25dont' -> don't in comments;jmc1-2/+2
from ray lai;
2005-10-25Make set_common_sockopts() a void since it doesn't return anything anyway.dtucker1-3/+3
Makes netcat -Wall clean. ok djm@