summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-07-09Some parsing code cleanup: add parse_boolean(); pass literal formatkrw3-38/+52
chars to parse_decimal() instead of less obvious *fmt; refactor to eliminate need for the 'alloc:' and 'bad_flag:' labels and the invidious backwards goto's to them.
2017-07-09document PROGS, okay jmc@espie1-1/+30
2017-07-09document more reality.espie1-14/+31
proper english usage and okay jmc@
2017-07-09use working boilerplate for yacc/lex instead of homemade rules.espie2-10/+6
okay millert@ (forgot the obvious scanner.l tweak in my diff)
2017-07-09add support to compile several progs at once usespie1-16/+52
by using alternate setup PROGS = a b c along with SRCS_a = ... , SRCS_b = ... , SRCS_c = ... okay millert@
2017-07-09zap empty depends/silence empty installs.espie110-547/+217
okay millert@
2017-07-09there's no need to fork/exec to execute commentsespie1-1/+5
okay millert@
2017-07-09have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediateespie10-38/+28
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
2017-07-09Whitespace tweaks to assuage auto-indent.krw3-10/+10
2017-07-09Ignore prefixes with a pltime < ND6_PRIV_MAX_DESYNC_FACTOR secondsflorian1-4/+23
(512 in our case) for privacy addresses as per RFC 4941.
2017-07-09If we lower the pltime for privacy addresses skew it byflorian1-2/+3
ND6_PRIV_MAX_DESYNC_FACTOR like RFC 4941 tells us to. Toss in a arc4random_uniform for good measure like the kernel always did.
2017-07-09Remove old junk. From Matthew Martintb5-79/+0
ok bentley
2017-07-09vmd/vmctl: Add ability to pause / unpause vmspd12-37/+338
With help from Ashwin Agrawal ok reyk@ mlarkin@
2017-07-08this program was infected with lint era casts. i think we're past that now.tedu1-17/+17
2017-07-08remove ARGSUSED, from Scott Cheloha.tedu1-10/+6
and while we're cleaning, switch __progname to getprogname.
2017-07-08use crypt_newhash to protect the password. from Scott Chelohatedu1-2/+5
2017-07-08clean up some unused variables. also, making a variable global isn't thetedu1-6/+4
best way to zero initialize it if that's all you need.
2017-07-08instead of using time(), refer to getitimer to find out how long thetedu1-12/+9
timeout is. from Scott Cheloha
2017-07-08can just continue after readpassphrase returns null, the sighandler willtedu1-3/+4
have already printed a message. from Scott Cheloha
2017-07-08update the little endian processor list to give it a chance of matchingtedu2-6/+6
what the reader is using.
2017-07-08Unhook tables.c from Makefile.krw1-2/+2
2017-07-08Fold tables.c into options.c and stop exporting the onekrw5-65/+387
table (dhcp_options) involved. Provide functions code_to_name(), name_to_code(), code_to_format() and replace direct access to dhcp_options with them. Eliminate unneeded 'struct option'. Unhook tables.c from Makefile.
2017-07-08Remove duplicate typedesf that are now provided by linux_types.h.kettenis1-9/+2
2017-07-08slightly rework previous, to avoid an article issue;jmc1-4/+4
2017-07-08spelling fix from Hiltjo Posthumatedu1-2/+2
2017-07-08Simplify by creating struct roff_node syntax tree nodes for tbl(7)schwarze7-84/+59
right from roff_parseln() rather than delegating to read.c, similar to what i just did for eqn(7). The interface function roff_span() becomes obsolete and is deleted, the former interface function roff_addtbl() becomes static, the interface functions tbl_read() and tbl_cdata() become void, and minus twelve linus of code. No functional change.
2017-07-08Consistently use if ((option & F_FOO) && (option & F_BAR)) instead offlorian1-4/+4
if (option & F_FOO && option & F_BAR). Prompted by a reverse diff from Klemens Nanni. Both forms are equivalent due to operator precedence, I consider the later to be easier on the eyes.
2017-07-08Consistently use if (option & F_FOO); from Klemens Nanni, thanks!florian1-6/+6
2017-07-08Enable slaacd on the installer and temporarily neuter routerflorian2-6/+6
advertisement processing and solicitation sending like we already did for the non-install kernels. Next step will be to tedu all that code from the kernel. OK rpe@ for the installer bits move forward deraadt@
2017-07-08hook up slaacd to the installer on media where we have INET6florian15-15/+29
2017-07-08_slaacd user/group for installerflorian2-0/+2
move forward deraadt@
2017-07-08slaacd needs libevent on the ramdiskflorian3-6/+6
move forward deraadt@
2017-07-08Increase size to make slaacd fit.florian2-7/+7
Size problem noted by me, correct fix from deraadt@
2017-07-08fix an assertion failure triggered by .ce in next-line scope;schwarze1-2/+3
found by jsg@ with afl(1)
2017-07-08Always use strcasecmp() when comparing user input to optionkrw1-2/+2
names, not just 2 out of 3.
2017-07-081. Eliminate struct eqn, instead use the existing membersschwarze13-197/+121
of struct roff_node which is allocated for each equation anyway. 2. Do not keep a list of equation parsers, one parser is enough. Minus fifty lines of code, no functional change.
2017-07-08- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waitingkevlo3-37/+58
for firmware to get ready. It fixes "urtwn0: could not load firmware page" while running stsp@'s script: dhclient urtwn0; ifconfig urtwn0 down; ifconfig urtwn0 scan in a loop. - Minor cleanup for rtwn_read_rom()/rtwn_get_txpower(); no need to use callbacks. Tested by stsp@ and me. ok stsp@
2017-07-08Correctly handle horizontal spans at the beginning of rows,schwarze1-9/+10
fixing an assertion failure found by jsg@ with afl(1). While here, also drop printing of whitespace in tbl_data() which makes no difference because column positioning code in term_tbl() already takes care of that.
2017-07-08fix typo in commenttb1-2/+2
from Hiltjo Posthuma
2017-07-08Revert grabbing the socket lock in kqueue filters.mpi3-23/+9
It is unsafe to sleep while iterating the list of pending events in kqueue_scan(). Reported by abieber@ and juanfra@
2017-07-08add a hint about subjectAltName. this isn't great, but i'm not sure howtedu1-2/+12
to improve it without muddying up the whole page, and at a minimum it gives the reader a clue about some concepts to search the web for. if you can do better, make it so. :)
2017-07-08Always use uintNN_t instead of sometimes u_intNN_tkrw10-97/+98
and sometimes uintNN_t.
2017-07-08Run malloc0test with all possible malloc options.bluhm1-1/+7
2017-07-07Remove all references to "make depend" from regress.bluhm9-21/+16
2017-07-07Remove useless make depend targets.bluhm13-53/+24
2017-07-07garbage collect unused enum member EQN_ROOTschwarze2-6/+2
2017-07-07Only access offset if canaries are enabled *and* size > 0, otherwise offsetotto1-2/+2
is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
2017-07-07add parentheses to the output where required for disambiguationschwarze10-16/+38
2017-07-07You win some, you los some. The Linux 4.4 code is still sub-standard butkettenis1-2/+2
triggers different warnings now. ok naddy@
2017-07-07Handle carp(4) as HTYPE_ETHER.reyk1-6/+7
This fixes "dhcrelay -i carpX" that used to work when dhcrelay didn't care. Reported and tested by Kapetanakis Giannis bilias at edu.physics.uoc.gr