| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
POSIX 2001 instead of POSIX.1c suggested by millert@ and jmc@, ok jmc@
|
| |
|
|
|
|
|
|
|
| |
messages, to avoid pulling in piles of other machinery unnecessarily
problem observed by schwarze@
ok deraadt@ millert@
|
|
|
|
| |
ok tedu@
|
|
|
|
|
| |
found with regress/usr.bin/mandoc/db/dbm_dump;
OK jmc@
|
| |
|
| |
|
|
|
|
| |
definite value in the size == 0 case
|
|
|
|
| |
what the reader is using.
|
|
|
|
| |
is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
|
|
|
|
|
|
| |
prefix if the character following it is a valid hex char. The C99
standard is clear that given the string "0xy" zero should be returned
and endptr set to point to the "x". OK deraadt@ espie@
|
|
|
|
| |
From Klemens Nanni
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/lib/libc/gen/tree.c is a copy of src/sys/kern/subr_tree.c, but with
annotations for symbol visibility. changes to one should be reflected
in the other.
the malloc debug code that uses RB code is ported to RBT.
because libc provides the RBT code, procmap doesn't have to reach into
the kernel and build subr_tree.c itself now.
mild enthusiasm from many
ok guenther@
|
|
|
|
| |
insertion sort (when the number of elements is < 7).
|
|
|
|
|
| |
Previously they would be swapped a byte at a time when sizeof(int)
!= sizeof(long). Idea from FreeBSD.
|
|
|
|
| |
exceeds 2 lg N and add a reference to the introsort paper.
|
|
|
|
|
|
| |
when the recursion depth reaches 2*lg(n + 1). This avoids quicksort's
quadratic behavior for pathological input without appreciably
changing the average run time.
|
|
|
|
|
|
|
|
| |
side of the array being partitioned to save on stack space. Greater
savings can be gained by choosing recursion for the smaller side
of the partition and eliminating recursion for the larger side.
This also results in a small but measurable performance gain.
OK otto@ schwarze@
|
|
|
|
| |
From "fenderq" on freenode via tj@
|
|
|
|
|
| |
- document posix_memalign() does not play nice with reacallocarray(3) and
freezero(3)
|
| |
|
|
|
|
| |
negative. Quiets a warning from clang. OK bluhm@
|
| |
|
|
|
|
|
|
|
|
| |
size if canaries are enabled. In that case we have the exact requested
size of the allocation. But we can at least check the given size
against the chunk size if C is not enabled. Plus add some braces
so my brain doesn't have to scan for dangling else problems when I
see this code.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This gives fast access to the address on systems that implement
the UserLocal register. TCB caching is still used when running
in the single-threaded mode in order not to penalize old systems.
The kernel counterpart of this change must be in place before
using this diff!
With guenther@
|
|
|
|
| |
and ok jeremy@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
version uses the two-way string matching algorithm and is faster
than the old implementation. With this change, ports that check
for strstr having linear complexity time strstr will no longer
replace the libc strstr with a private version.
OK deraadt@ espie@
|
| |
|
|
|
|
|
|
| |
no longer has access to the content of a memmory object. It does
this by either clearing (if the object memory remains cached) or
by calling munmap(2). ok millert@, deraadt@, guenther@
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
detected wrt recallocarray()
|
| |
|
| |
|
|
|
|
| |
ok jmc@ deraadt@
|
|
|
|
| |
from David CARLIER
|
|
|
|
| |
never occur
|
|
|
|
|
|
|
| |
- use internal meta-data to do more consistency checking (especially with
option C)
- use cheap free if possible
ok deraadt@
|
| |
|
|
|
|
|
| |
make the behaviour -> use case connection.
help from jmc and jsing
|
|
|
|
| |
help and ok from tom@ and deraadt@
|
|
|
|
|
| |
with the added feature that released memory is cleared. Much input from various
developers. ok deraadt@ tom@
|
| |
|
|
|
|
|
| |
crash when given a large hex number as part of the dotted quad.
OK deraadt@ jsg@
|
|
|
|
|
|
|
|
|
|
|
|
| |
RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing
queries. The resolver is then supposed to set the AD bit in the reply
if it managed to validate the answer through DNSSEC. Useful when the
application doesn't implement validation internally. This scheme
assumes that the validating resolver is trusted and that the
communication channel between the validating resolver and and the client
is secure.
ok eric@ gilles@
|
|
|
|
|
|
|
| |
EDNS allows for various DNS extensions, among which UDP DNS packets size
bigger than 512 bytes. The default is still to not advertize anything.
ok eric@
|
|
|
|
|
|
| |
free() error path.
ok otto@
|