summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-18external page headers use an RB tree to find the page headerdlg1-30/+25
containing an item when its returned to the pool. this means you need to do an inexact comparison between an items address and the page address, cos a pool page can contain many items. previously this used RB_FIND with a compare function that would do math on every node comparison to see if one node (the key) was within the other node (the tree element). this cuts it over to using RB_NFIND to find the closest tree node instead of the exact tree node. the node compares turns into simple < and > operations, which inline very nicely with the RB_NFIND. the constraint (an item must be within a page) is then checked only once after the NFIND call. feedback from matthew@ and tedu@
2014-08-17Use %#o instead of %#x for mode_tguenther1-4/+6
2014-08-17Display symbolicly the mode argument of mkdir, mkfifo, mknod, and umaskguenther1-1/+7
2014-08-17typo, sorryschwarze1-2/+2
2014-08-17While all current callers pass valid data to ascii_hspan() only,schwarze1-2/+2
it's safer to assume incoming enum data might be invalid and catch it instead of happily returning an unitialized int. No functional change right now.
2014-08-17typo; Steven Honeyman <stevenhoneyman at gmail dot com>schwarze1-3/+3
2014-08-17Sync regress/usr.sbin/relayd with recent http.h changesdoug1-2/+2
2014-08-17don;t mark up {};jmc1-3/+3
2014-08-17Segfault fixes from kristaps@.schwarze8-9/+62
Note that .It and .Nm blocks without bodies cannot be generated by valid mdoc(7) syntax but are a adequate representations of invalid mdoc(7) constructs like Bl -hang It Bo Sh and Sh SYNOPSIS Nm Bo Sh.
2014-08-17Execute /etc/netstart using sh(1) instead of sourcing it.ajacoutot1-2/+2
Committing early to make sure we have time to fix any side-effect. ok deraadt@
2014-08-17When running interactively, display the output of the "check" actionajacoutot1-2/+4
(ok or failed) like we do with all other actions. ok jung@ rpe@
2014-08-17Fix regression tests for ld.sodoug6-1/+18
It now runs correctly with 'make depend regress'
2014-08-17On kernels compiled with R10000 support, ignore (by simply returning)miod1-1/+28
`bus error upon instruction fetch' exceptions where the faulting address is in the kernel, and at the very beginning of an I$ cache line. (I've experienced these on an R16000 Fuel since several months already)
2014-08-17i broke the userland shim used for the extent regress test when idlg1-8/+15
made it so struct pool was only visible to _KERNEL. tedu broke it too when he added the size argument to the kernel free functions. this fixes both issues. the main change is to provide a local version of struct pool with just the bit (pr_size) needed for extent to run. if extents take advantage of more malloc/pool features (eg, {M,PR}_ZERO then this will need to be updated again. found by and based on a diff from Theo Buehler ok mpi@
2014-08-17sync with hackathons.htmljsg1-1/+14
2014-08-17update the built-ins list:jmc2-15/+15
- "times" is both promoted to posix and special (ooh!) - "pwd" is promoted to posix, but not special (aah!) while here, jiggle the text somewhat to clarify that "non-POSIX" actually meant when posix mode is off, not mandated by posix joint work with guenther
2014-08-16repair operation of kern.arandom, which will only allow a buffer ofderaadt1-2/+4
512 bytes. As a result, it stopped working... ok miod
2014-08-16Cover execvpe() in the description of what the envp arg means.guenther1-3/+5
from Justus Baumgartner (meddev50 (at) gmail.com) ok jmc@
2014-08-16If a stray .It follows .El, we are no longer in the list,schwarze4-4/+14
even though the list is still the last processed macro. This fixes a regression introduced in mdoc_macro.c rev. 1.95: Ulrich Spoerlein <uqs at FreeBSD> reports that various of their kernel manuals trigger assertions.
2014-08-16replace sprintf/strdup with asprintf in engine testbcook1-8/+5
2014-08-16only build the getrandom path if SYS_getrandom is defined.bcook2-6/+14
like the sysctl path
2014-08-16Fixed typo in "distinct".tobias1-3/+3
ok jmc@
2014-08-16use C rather than C++ array initialization syntaxbcook1-37/+37
this causes errors with stricter C compilers
2014-08-16getrandom(2) support for getentropy_linuxbcook2-26/+20
This enables support for the new getrandom(2) syscall in Linux 3.17. If the call exists and fails, return a failure in getentropy(2) emulation as well. This adds a EINTR check in case the urandom pool is not initialized. Tested on Fedora Rawhide with 3.17rc0 and Ubuntu 14.04 ok deraadt@
2014-08-16reduce cutoff for "hours only" start times to reduce window of ambiguity.tedu1-2/+2
ok deraadt
2014-08-16I found a number of interactive events which can cause signals, and goderaadt4-23/+45
down paths not previously marked as signal handled unsafe. Try to clean up a few of them especially regarding errno, mark others as unsafe, and repair a few by avoiding stdio. Glanced at by misc people in Slovenia, but considered too risky before release..
2014-08-16syncderaadt23-85/+10
2014-08-15use void * instead of char *. ok jsingtedu2-6/+6
2014-08-15Update to tzdata2014f from ftp.iana.org.millert17-2044/+2429
2014-08-15Public key operations are no longer supportedmikeb2-13/+5
2014-08-15Remove support for public key operationsmikeb2-287/+2
2014-08-15Remove support for public key operationsmikeb2-939/+2
2014-08-15Convert 3DES regress test from /dev/crypto to using kernel source codemikeb2-96/+65
directly with a simplified CBC implementation.
2014-08-15Convert AES-CTR regress test from /dev/crypto to using kernel sourcemikeb2-87/+70
code directly. This test is converted the same way jsing@ has recently converted an XTS test by pulling in xform.c code.
2014-08-15Convert AES regress test from /dev/crypto to using kernel source codemikeb2-112/+32
directly. This test case uses ECB vectors, therefore no chaining is required.
2014-08-15lofn(4) and nofn(4) are gonemikeb5-142/+7
2014-08-15With deprecation of crypto(4) interface lofn(4) and nofn(4) becomemikeb6-1885/+0
obsolete. No objections from the usual suspects.
2014-08-15unlink lofn(4) and nofn(4)mikeb1-11/+1
2014-08-15lofn(4) and nofn(4) are going awaymikeb8-20/+8
2014-08-15Align install.md files with installer style.rpe9-26/+26
- { foo ; bar ; } -> { foo; bar; } - if foo ; then -> if foo; then OK halex@
2014-08-15shorten share/doc/{html,mg} to share/doc, since nothing currentlyjmc1-12/+2
gets installed in html (i think!);
2014-08-15admission of hawaii happened in 1959, not 1984;jmc1-2/+2
from the freebsd bugs database, bug 192651: Reported: 2014-08-14 13:17 UTC by Richard
2014-08-15XPG requires insque() and remque() to work with linear lists and not justguenther5-101/+26
circular lists. Amazingly, they managed to extend the requirements to no longer match the behavior of the VAX instructions they were modeled after, so the trivial VAX ASM versions have to go. Nice job breaking it, X/Open! Based on a diff from enh (at) google.com ok miod@
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)guenther9-79/+51
on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
2014-08-15Create a function which loads sgd in the mfi_iop_ops struct so that skinnyyasuoka3-22/+74
adapters can use "IEEE sgl". tested dlg yasuoka ok dlg jsg
2014-08-14Some compilers apparently worry that abort() might returnschwarze1-2/+3
and then throw a "may be used uninitialized" warning, so sprinkle some /* NOTREACHED */. No functional change. Noticed by Thomas Klausner <wiz at NetBSD dot org>.
2014-08-14Clarify that .Em and .Sy are physical, not semantic markup,schwarze1-14/+41
explain appropriate usage, and provide some examples. ok jmc@
2014-08-14regenmillert2-4/+14
2014-08-14Add USB hubs found on Intel Z97 chipset boards (one attached tomillert1-1/+3
each EHCI root hub). OK deraadt@ jsg@
2014-08-14double word fix-o;jmc1-3/+3