summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-10-18Move the test implementation into the Makefile. Then we have onlybluhm3-170/+71
one place to look at. Make prints the commands it executes to assist debugging and analysis. If the test fails, there are simple regress targets that can be run to reproduce the error easily.
2017-10-18Pad the holes in the struct to make sure compilers do not choose topatrick1-1/+8
pad the structs in a different way.
2017-10-18Make blacklist entries override the whitelist. When running spamdmillert4-17/+133
in greylisting mode, it is not uncommon for an IP to get whitelisted before it shows up on a spam blacklist. With this change, spamd will check its blacklists before adding a WHITE entry to the <spamd-white> pf table. If the IP matches a blacklist, the WHITE entry will be removed. OK phessler@
2017-10-18When reusing an mbuf at the upper end of the network stack, stripbluhm2-11/+17
off the mbuf properties with m_resethdr(). It is a new packet, especially M_LOOP indicating that it was running through lo(4) should be cleared. Use the ph_loopcnt to prevent looping at the upper end of the stack. Although not strictly necessary in icmp reflect, it is a good idea to increase and check the counter here, like in socket splicing. OK mpi@ sashan@
2017-10-18add support for printing function arguments when displaying a tracejasper1-4/+20
from DDB. this uses CTF to get the correct number of arguments. ok mpi@
2017-10-18Read and extract the channel number from the chanspec to beautify thepatrick2-3/+8
scan results. Since the channel number is encoded on both IO types in the same way, we don't need to implement per IO type helpers for now.
2017-10-18It turns out that using the packed attribute on most structs was a badpatrick1-15/+15
idea since the brcmfmac implementation relies on the compiler generated padding. Removing the packed attribute allows reading correct data from the BSS info. As a next step it might be a good idea to pad the structs manually.
2017-10-18The return value of this function isn't used.jca1-6/+4
ok anton@ tb@
2017-10-18Fixup previous; noticed by canacar@mikeb1-3/+3
2017-10-18Setting the IPV6_MINMTU flag in the call to ip6_output() was movedbluhm2-8/+9
from icmp6_reflect() to ip6_send_dispatch() when ip6_send() was introduced. Move the comment that explains this flag also to the place where it is used. from sashan@
2017-10-18Stop handling SIOCSIFMTU like in the wireless stack.mpi1-9/+1
This driver does not use the net80211 stack, so let ether_ioctl() handle it like any other Ethernet driver. Suggested by and ok patrick@, ok stsp@
2017-10-18Extract supported frequencies and HT/VHT mode from the firmware insteadpatrick2-23/+65
of assuming the chip supports both 2.4GHz and 5Ghz. Based on a diff from Jared McNeill.
2017-10-18Set TSC timecounter frequency to the CPU frequency estimate if unknownmikeb2-6/+7
ok mlarkin
2017-10-18Revert previous commit, since not all interfaces behaved the same.patrick1-5/+3
2017-10-18Only overwrite the caller's variable if we successfully read data frompatrick1-3/+5
the chip.
2017-10-18Add missing SHN_XINDEX needed by devel/ctftools.mpi1-1/+2
Reported by and ok naddy@
2017-10-18Typo, from Hiltjo Posthuma.mpi1-2/+2
2017-10-18remove unused Pp;jmc1-2/+1
2017-10-18In the description of pattern-lists, clarify negated matches bydjm1-2/+15
explicitly stating that a negated match will never yield a positive result, and that at least one positive term in the pattern-list must match. bz#1918
2017-10-17add missing HISTORY; based on CVS logs and release announcementsschwarze29-83/+229
2017-10-17Full rewrite:schwarze1-25/+39
Remove much that was outdated, misleading, or irrelevant. Add some lacking information instead. Joint work with deraadt@, using much feedback from guenther@ and naddy@, OK deraadt@ jmc@ naddy@.
2017-10-17Don't do crazy bullshit when this is included by the bootblocks.deraadt1-2/+2
2017-10-17remove the remaining references to .depend files since nothing creates themnaddy17-38/+31
any longer; ok espie@ deraadt@
2017-10-17Simplify code that determines the number of arguments for a given function.jasper2-23/+12
For amd64 this means removing db_numargs() and directly setting narg to the correct value (instead of capping it during iteration). On i386 rename db_numargs() to db_i386_numargs() and only call it when we fail to get the correct number out of CTF. discussed with an ok mpi@
2017-10-17syncderaadt1-0/+1
2017-10-17Add a machine-independent implementation for the mplock.visa10-220/+242
This reduces code duplication and makes it easier to instrument lock primitives. The MI mplock uses the ticket lock code that has been in use on amd64, i386 and sparc64. These are the architectures that now switch to the MI code. The lock_machdep.c files are unhooked from the build but not removed yet, in case something goes wrong. OK mpi@, kettenis@
2017-10-17Correctly handle frequency measurement failuresmikeb1-5/+6
Issue observed by Joe Gidi and canacar@. While here, make sure that the success rate is at least 2 out of 3 measurements but with an increased threshold.
2017-10-17Use a binary search to speed up blacklist lookups. OK phessler@millert2-38/+132
2017-10-17<elf.h> should make it easier to port our ELF-related tools to other Unices.mpi2-2/+14
For the moment it only includes <sys/exec_elf.h> but the goal is to stop pulling it directly and also replace <elf_abi.h> at least for base applications. ok deraadt@, jasper@, naddy@
2017-10-17Do not print an extra line if the 'get' command succeeds.mpi1-3/+3
Fix a regression introduced in previous.
2017-10-17Update matching regexp now that the pid is included.mpi1-1/+1
From bluhm@
2017-10-17Print the pid of the most recent program that failed to send a logmpi1-6/+10
via sendsyslog(2) along with the corresponding errno. Help when troubleshooting which program is triggering an error, like an overflow. ok bluhm@
2017-10-16Remove stray, pointless and potentially confusing line.krw1-2/+1
2017-10-16Allow a more fine grained control about which ciphers to use.patrick2-8/+31
2017-10-16Handle wpa parameters using the ieee80211 ioctl so we can startpatrick1-1/+4
setting and allowing only the specified parameters.
2017-10-16Clear up some defines regarding WPA cipher settings. This allows mepatrick2-12/+41
to attach to my WiFi AP. It looks like even though it's thought of as a bitvector, the settings are exclusive. More tests will have to occur to verify that theory. Add a comment to enabling the firmware supplicant, mentioning its use is not really awesome.
2017-10-16syncnaddy14-104/+90
2017-10-16Make it explicit that there is only one type of random device:naddy1-7/+6
Create only /dev/urandom as device. Create /dev/random and /dev/arandom as symlinks. Drop /dev/srandom, which has been unused for a long time. /dev/arandom will go away at a later point. Discussed with guenther@, ok deraadt@
2017-10-16Infrastructure for drawing status lines of more than one line in height,nicm6-77/+129
still only one is allowed but this lets tmux draw bigger ones.
2017-10-16draft-ietf-tcpm-initcwnd was published as rfc 6928mikeb1-3/+3
2017-10-16Utilize scatter/gather DMA with the newer MMC controller.visa2-36/+128
2017-10-16Add test for memcpy() -> memmove() regression.anton2-1/+39
2017-10-16Specify the xargs binary to test using a variable.anton2-4/+8
While here, do not suppress the command executed by make.
2017-10-16Remove kernel support for the following ioctl(2)s, deprecated since 2001:mpi3-116/+5
- SIOCSIFPHYADDR - SIOCSIFPHYADDR_IN6 - SIOCGIFPSRCADDR - SIOCGIFPSRCADDR_IN6 - SIOCGIFPDSTADDR - SIOCGIFPDSTADDR_IN6 ok bluhm@
2017-10-16Print the correct message and return an error code when no route entrympi1-6/+1
matches the corresponding RTM_GET request. Based on a submission from Julien Dhaille, ok bluhm@
2017-10-16Multiple tweaks:mpi1-34/+33
- Assert that all drivers declare a if_ioctl function pointer and stop checking it against NULL. - Do not use return statements in ifioctl() where a lock is needed. - Call if_setlladdr() only if the underlying driver did not report an error. ok bluhm@
2017-10-16Handle the case where the parent of a carp(4) is being destroyedmpi1-2/+9
while packets where being passed to IPsec tasks. Found the hardway by Hrvoje Popovski. ok phessler@, claudio@
2017-10-16Favor memmove() over memcpy() since dst and src originates from the sameanton1-2/+2
allocation and may therefore overlap. ok deraadt@
2017-10-16Typo in header dump, from sbz@FreeBSDmpi1-2/+2
2017-10-16Sort & update syntax comments to match code. Sortkrw1-102/+109
TOK_* case:'s alphabetically to make it easier to find things.