summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-30move the description of flags from the SYNOPSIS to the DESCRIPTION;schwarze1-19/+25
from <kaspars at bankovskis dot net>, minimally tweaked by me; ok guenther@ jmc@
2014-11-30panic if the kernel requests W | X pages; ok kettenisderaadt1-1/+8
2014-11-30restructure libc/string + libc/arch/*/string coperation regardingderaadt47-523/+1930
(potentially) MD versions (function dependent, not filename dependent) split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex Bring back amd64 .S versions And the final touch: switch all architectures temporarily to MI memcpy.c, which contains syslog + abort for overlapping copies. A nice harsh undefined behaviour. We will clean the entire userland of the remaining issues in this catagory, then switch to the optimised memcpy which skips the memmove check. I tried to cut this change into pieces, but testing each sub-step on every architecture is too time consuming and mindnumbing. ok miod
2014-11-30Mask out EFER_LMA when restoring saved EFER on zzz/ZZZ resume as it's amlarkin2-5/+5
read only bit. Also fix some comments describing EFER bits that were obviously wrong. ok deraadt@
2014-11-30Fix comment: We don't use RC4 anymore, it's better to be moredcoppa1-2/+2
generic. ok miod@
2014-11-30much simpler checks, always enforce root/bin (or root/wheel for symlinks)espie1-12/+12
for files without @owner/@group annotations, independently of who you are. This should fix building-as-root for good, even without twiddling FAKE_AS_ROOT.
2014-11-30interactive/progressmeter clean-upespie1-5/+2
2014-11-30much cleaner way to handle progress meter wipes: have state methods thatespie3-24/+13
do print something call sync_display (which does nothing by default), and override THAT one for the progressmeter case to go clear. Should sync by default now.
2014-11-30mandoc -Tlint fixes from <kaspars at bankovskis dot net>schwarze3-9/+7
2014-11-30get rid of some of the unadorned printfsespie1-5/+5
2014-11-30missed some.espie2-4/+4
2014-11-30forgot to take that out...espie1-11/+1
2014-11-30In mopFileRead(), make sure to never increment e_cursec beyond e_nsec, somiod1-2/+3
that the next call to this function will not access e_sections[] out of bounds. Repairs mopa.out(1) behaviour noticed by sebastia@
2014-11-30clear progress meter before asking questionsespie1-1/+2
From Carlin Bingham
2014-11-30Remove dead code, from Thomas Adam.nicm2-35/+2
2014-11-30Remove passing an override of INSTALL_PROGRAM to thebrad2-6/+2
autoconf script. It doesn't seem to serve any purpose. ok sthen@
2014-11-30Multiple fixes with respect to .Pf:schwarze11-25/+59
* The first argument of .Pf is not parsed. * Normal delimiter handling does not apply to the first argument of .Pf. * Warn if nothing follows a prefix (inspired by groff_mdoc(7)). * In that case, do not suppress spacing.
2014-11-30Even though not callable, "Ed" is a macro name, so for clarity,schwarze8-24/+24
escape it when it appears on a macro line.
2014-11-30warn about attempts to call non-callable macros;schwarze3-11/+21
inspired by a similar warning in the groff_mdoc(7) macros
2014-11-30Remove non-portable use of .Pf that doesn't work with groff;schwarze2-16/+8
found because the groff_mdoc(7) macros warn about it.
2014-11-30rxr ioctl handling.brad1-1/+6
2014-11-30Don't check for hardware address change unless link was up. Delaykrw1-28/+30
construction of default client identifier until link is up (i.e. do it in state_reboot()).
2014-11-29rxr ioctl handling.brad1-4/+8
ok sf@
2014-11-29Explicitly initialize client->state to S_REBOOTING rather thankrw1-4/+4
relying on S_REBOOTING being 0.
2014-11-29Reapply a patch to stop rebuilding libperl with incorrect flagsafresh12-33/+33
Help from miod@ and kettenis@ OK kettenis@ millert@
2014-11-29it should not be necessary to clear the direction flagtedu16-26/+8
ok deraadt
2014-11-29restore the "hot" memcpy that existed before recent conversion flipfloptedu1-5/+5
2014-11-29simplify the interactive code into its own little object with simplerespie8-105/+115
interface, so that most is it interactive tests vanish from the main program.
2014-11-29Reduce code duplication by reusing the same argument parserschwarze1-19/+21
for in_line_eoln() macros and .Bl -column phrases. No functional change.
2014-11-29Provide a helper function macro_or_word() and use it to prune theschwarze3-131/+71
same chunk of argument parsing code out of five of the eight callback functions. The other three have too much special handling to participate. As a bonus, let lookup() and mdoc_args() deal with line macros and retire the lookup_raw() helper and the mdoc_zargs() internal interface function. No functional change, minus 40 lines of code.
2014-11-29The startup script is /etc/rc.d/nsdmillert1-9/+3
OpenBSD doesn't need a /dev/log socket in the chroot for syslog to work. OK deraadt@ miod@ sthen@
2014-11-28Fold the loop around mdoc_argv() into the function itself,schwarze3-127/+85
it was the same in all four cases. As a bonus, get rid of one enum type that was used for internal communication. No functional change, minus 40 lines of code.
2014-11-28Add some missing OpenBSD RCS markersschwarze17-19/+27
and a few missing <sys/types.h> inclusions; no code change.
2014-11-28AT&T is unlikely to release an new version of Research UNIX any time soon.schwarze2-43/+17
So, it's pointless to make adding version strings easy for downstream. One source file less to maintain.
2014-11-28Retire support for CSRG supplementary document titles. These areschwarze6-119/+11
long obsolete and were never written in mdoc(7) in the first place. Removes 100 lines from source files.
2014-11-28Drop useless architecture table. Validating architecture namesschwarze10-182/+17
is a job for makewhatis(8)/mandoc.db(5), not for the parser. Removes 150 lines from source files and 4k (1%) from the binary. Bloat found by deraadt@.
2014-11-28Remove bulky, irrelevant library description string tablesschwarze12-182/+16
not used by a single manual in OpenBSD and just print library names; will remain in the portable version for use by FreeBSD and NetBSD. Removes 150 lines from source tree and 16 Kilobytes (4%) from binary. Bloat found by deraadt@.
2014-11-28mop up and #ifdef turd deraadt@ stepped intoschwarze1-9/+3
2014-11-28Be more careful about meta->name. For weird input, it can be NULL.schwarze1-7/+11
Fixing a NULL access jsg@ found with afl.
2014-11-28consistency in calling usage, from Fritjof Bornebuschotto1-2/+2
2014-11-28regenkettenis2-2/+17
2014-11-28Add a few entries for SPARC T3/T4/T5/M5 machines. The IDT 89H64H16G3 entrykettenis1-1/+4
is a bit of a guess, but it is the only PCIe Gen3 part listed on their website that has enough lanes/ports.
2014-11-28Simplify by making the eqn and tbl steering functions void;schwarze4-45/+28
no functional change, minus 15 lines of code.
2014-11-28Simplify by making many functions in the man(7) parser void,schwarze6-289/+186
and some cleanup; no functional change, minus 70 lines.
2014-11-28Simplify by making the mdoc parser callbacks void, and some cleanup;schwarze3-218/+140
no functional change, minus 50 lines of code.
2014-11-28Simplify the code by making various mdoc parser helper functions void.schwarze4-434/+271
No functional change, minus 130 lines of code.
2014-11-28Simplify code by making mdoc validation handlers void.schwarze4-417/+288
No functional change, minus 90 lines of code.
2014-11-27Downgrade .Bd -file from FATAL to ERROR.schwarze6-6/+33
Since this was the last remaining FATAL error in this area, this change will allow major simplifications in the mdoc(7) parser.
2014-11-27Use if_nametoindex() to get the interface index, and thereby checkkrw2-3/+5
the validity of the interface name as soon the actual name is known. i.e. right after 'egress' is expanded. One less thing for get_hw_address() to do.
2014-11-27Multiple fixes with respect to .Eo:schwarze10-31/+97
1. Correctly parse stray .Ec without preceding .Eo, avoiding an assertion violation found by jsg@ with afl. 2. Correctly parse .Ec arguments when breaking another block. 3. Correct spacing around closing delimiter when breaking another block. 4. Sync some related formatting control from -Tascii to -Thtml.