dlg [Mon, 10 Jul 2017 23:49:10 +0000 (23:49 +0000)]
make malloc(9) mpsafe by using a mutex instead of splvm.
this is almost a straightforward change of spl ops with mutex ops,
except the accounting has been shuffled around. memory is counted
as used before an attempt to allocate it from uvm is made to prevent
overcommitting memory. this is modelled on how pools limit allocations.
the uvm bits have been eyeballed by kettenis@ who says they should be safe.
visa@ found some nits which have been fixed.
tested by chris@ and amit kulkarni
ok kettenis@ visa@ mpi@
schwarze [Mon, 10 Jul 2017 22:48:00 +0000 (22:48 +0000)]
Fix non-portable .Lk usage that results in complete garbage with groff
and looks better, but still not good with mandoc.
Issue pointed out by Jan Stary <hans at stare dot cz>.
tedu [Mon, 10 Jul 2017 21:39:38 +0000 (21:39 +0000)]
prefer getprogname to the magic global __progname.
from Matthew Martin
tedu [Mon, 10 Jul 2017 21:37:26 +0000 (21:37 +0000)]
if there are no changes for kevent, pass in NULL instead.
this has no effect except to make ktrace output prettier.
ok bluhm mpi
espie [Mon, 10 Jul 2017 21:30:37 +0000 (21:30 +0000)]
remove misc. depend and yacc nits that no longer matter.
okay millert@
espie [Mon, 10 Jul 2017 19:52:09 +0000 (19:52 +0000)]
zap depend ghost.
add a comment explaining why keywords.h is in the source tree even though
it's exactly what keywords.sh generates, so that people don't try adding
the generating rule again.
okay millert@
bluhm [Mon, 10 Jul 2017 18:56:23 +0000 (18:56 +0000)]
ld.so and nfs regress were using PROGS variable before it was added
to bsd.prog.mk. Remove local additions and use global rules.
bluhm [Mon, 10 Jul 2017 18:48:37 +0000 (18:48 +0000)]
The libtool regress used PROGS as a regular variable. Rename it
to avoid the new special meaning in bsd.prog.mk.
krw [Mon, 10 Jul 2017 17:13:24 +0000 (17:13 +0000)]
Take some of the mystery out of who does what by
renaming "if_register_bpf()" to "get_bpf_sock()",
"if_register_send()" to "get_udp_sock()" and
"if_register_receive()" to "configure_bpf_sock()".
Pull back interface_info knowledge and just pass
the interface name, rdomain and bpf socket fd as
required.
visa [Mon, 10 Jul 2017 16:31:29 +0000 (16:31 +0000)]
Update BUGS.
visa [Mon, 10 Jul 2017 16:17:51 +0000 (16:17 +0000)]
Keep refusing SDIO initialization. The driver cannot work properly
with SDIO because it does not handle card interrupts.
sthen [Mon, 10 Jul 2017 15:42:46 +0000 (15:42 +0000)]
Switch sample path for black/whitelist files from /var/mail (which is meant to
be for mailboxes) to /etc/mail. Fritjof Bornebusch reported that security(8)
complains about files in /var/mail and suggested a subdirectory, but /etc
seems a better idea all-round, and matches hier(7). ok jmc@
krw [Mon, 10 Jul 2017 14:11:47 +0000 (14:11 +0000)]
Use ioctlfd/routefd sockets rather than rolling one's own
for resolving 'egress' and adding a route. Move creation
of main()'s ioctlfd up so it can be used for the
'egress' resolution.
espie [Mon, 10 Jul 2017 14:09:59 +0000 (14:09 +0000)]
zap redundant Makefile variables.
okay djm@
schwarze [Mon, 10 Jul 2017 11:25:44 +0000 (11:25 +0000)]
two minor tweaks and two minor fixes; OK espie@
bluhm [Mon, 10 Jul 2017 11:18:48 +0000 (11:18 +0000)]
Test if an acct file exists before trying to rename it. This silences
false warnings in the frist three daily mails after process accounting
has been turned on.
from Raf Czlonka
otto [Mon, 10 Jul 2017 09:44:16 +0000 (09:44 +0000)]
one more instance of the previous commit; also initialize ->offset to a
definite value in the size == 0 case
espie [Mon, 10 Jul 2017 07:59:00 +0000 (07:59 +0000)]
re-add unintentionally removed cleandir part that rm tags from the .CURDIR
espie [Mon, 10 Jul 2017 07:51:37 +0000 (07:51 +0000)]
Thinko. It's called BUILDAFTER
"noticed" by Ingo.
ajacoutot [Mon, 10 Jul 2017 07:28:26 +0000 (07:28 +0000)]
Set XSRCDIR to /usr/xenocara if it's not defined. Matches what
/usr/X11R6/share/mk/bsd.xorg.mk does.
ok robert@
bluhm [Mon, 10 Jul 2017 07:10:29 +0000 (07:10 +0000)]
Also check for NUL termination at the first character of tstr in
the error path of VarModifiers_Apply(). This prevents a sporadic
crash in make's regress target t41.
OK espie@
dlg [Mon, 10 Jul 2017 06:38:07 +0000 (06:38 +0000)]
replace Fifos with FIFOs.
ok jmc@ visa@
mortimer [Mon, 10 Jul 2017 00:59:24 +0000 (00:59 +0000)]
Replace codepatch nopsleds with trapsleds.
ok sf@ mlarkin@
suggested by deraadt@
krw [Mon, 10 Jul 2017 00:47:47 +0000 (00:47 +0000)]
Use a modern spacious idiom on all function local variable
declarations.
bluhm [Sun, 9 Jul 2017 22:43:07 +0000 (22:43 +0000)]
Make pkg-config regress tests pass:
- Allow to override PKG_CONFIG and check correct place in logfile.
- Replace "if ...; then false; fi" with a simple ! .
- Remove comments about failing test which do not fail.
- Adapt regress to changes in pkg-config rev 1.64 and 1.72 regarding
static and missing tests.
OK jasper@
nicm [Sun, 9 Jul 2017 22:33:09 +0000 (22:33 +0000)]
Some extra logging to show why tmux might exit.
krw [Sun, 9 Jul 2017 21:29:19 +0000 (21:29 +0000)]
Be consistent. "return (e);" -> "return e;"
espie [Sun, 9 Jul 2017 21:23:18 +0000 (21:23 +0000)]
remove redundant variable declarations in Makefiles, since those are
the default.
okay millert@
krw [Sun, 9 Jul 2017 19:19:58 +0000 (19:19 +0000)]
Be consistent. "return (e);" -> "return e;"
krw [Sun, 9 Jul 2017 18:45:27 +0000 (18:45 +0000)]
Some parsing code cleanup: add parse_boolean(); pass literal format
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.
espie [Sun, 9 Jul 2017 18:28:44 +0000 (18:28 +0000)]
document PROGS, okay jmc@
espie [Sun, 9 Jul 2017 17:17:46 +0000 (17:17 +0000)]
document more reality.
proper english usage and okay jmc@
espie [Sun, 9 Jul 2017 15:32:09 +0000 (15:32 +0000)]
use working boilerplate for yacc/lex instead of homemade rules.
okay millert@
(forgot the obvious scanner.l tweak in my diff)
espie [Sun, 9 Jul 2017 15:29:52 +0000 (15:29 +0000)]
add support to compile several progs at once us
by using alternate setup
PROGS = a b c along with SRCS_a = ... , SRCS_b = ... , SRCS_c = ...
okay millert@
espie [Sun, 9 Jul 2017 15:28:34 +0000 (15:28 +0000)]
zap empty depends/silence empty installs.
okay millert@
espie [Sun, 9 Jul 2017 15:28:00 +0000 (15:28 +0000)]
there's no need to fork/exec to execute comments
okay millert@
espie [Sun, 9 Jul 2017 14:04:50 +0000 (14:04 +0000)]
have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate
files. This fixes up parallel builds in the default case.
FreeBSD does something similar.
okay millert@
krw [Sun, 9 Jul 2017 12:38:47 +0000 (12:38 +0000)]
Whitespace tweaks to assuage auto-indent.
florian [Sun, 9 Jul 2017 09:00:56 +0000 (09:00 +0000)]
Ignore prefixes with a pltime < ND6_PRIV_MAX_DESYNC_FACTOR seconds
(512 in our case) for privacy addresses as per RFC 4941.
florian [Sun, 9 Jul 2017 08:41:47 +0000 (08:41 +0000)]
If we lower the pltime for privacy addresses skew it by
ND6_PRIV_MAX_DESYNC_FACTOR like RFC 4941 tells us to.
Toss in a arc4random_uniform for good measure like the kernel always
did.
tb [Sun, 9 Jul 2017 08:33:11 +0000 (08:33 +0000)]
Remove old junk. From Matthew Martin
ok bentley
pd [Sun, 9 Jul 2017 00:51:40 +0000 (00:51 +0000)]
vmd/vmctl: Add ability to pause / unpause vms
With help from Ashwin Agrawal
ok reyk@ mlarkin@
tedu [Sat, 8 Jul 2017 22:27:17 +0000 (22:27 +0000)]
this program was infected with lint era casts. i think we're past that now.
tedu [Sat, 8 Jul 2017 22:22:04 +0000 (22:22 +0000)]
remove ARGSUSED, from Scott Cheloha.
and while we're cleaning, switch __progname to getprogname.
tedu [Sat, 8 Jul 2017 22:19:23 +0000 (22:19 +0000)]
use crypt_newhash to protect the password. from Scott Cheloha
tedu [Sat, 8 Jul 2017 22:14:48 +0000 (22:14 +0000)]
clean up some unused variables. also, making a variable global isn't the
best way to zero initialize it if that's all you need.
tedu [Sat, 8 Jul 2017 22:07:39 +0000 (22:07 +0000)]
instead of using time(), refer to getitimer to find out how long the
timeout is.
from Scott Cheloha
tedu [Sat, 8 Jul 2017 22:01:09 +0000 (22:01 +0000)]
can just continue after readpassphrase returns null, the sighandler will
have already printed a message.
from Scott Cheloha
tedu [Sat, 8 Jul 2017 21:45:35 +0000 (21:45 +0000)]
update the little endian processor list to give it a chance of matching
what the reader is using.
krw [Sat, 8 Jul 2017 20:40:42 +0000 (20:40 +0000)]
Unhook tables.c from Makefile.
krw [Sat, 8 Jul 2017 20:38:31 +0000 (20:38 +0000)]
Fold tables.c into options.c and stop exporting the one
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.
kettenis [Sat, 8 Jul 2017 19:36:58 +0000 (19:36 +0000)]
Remove duplicate typedesf that are now provided by linux_types.h.
jmc [Sat, 8 Jul 2017 18:32:54 +0000 (18:32 +0000)]
slightly rework previous, to avoid an article issue;
tedu [Sat, 8 Jul 2017 17:52:44 +0000 (17:52 +0000)]
spelling fix from Hiltjo Posthuma
schwarze [Sat, 8 Jul 2017 17:52:42 +0000 (17:52 +0000)]
Simplify by creating struct roff_node syntax tree nodes for tbl(7)
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.
florian [Sat, 8 Jul 2017 16:22:29 +0000 (16:22 +0000)]
Consistently use if ((option & F_FOO) && (option & F_BAR)) instead of
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.
florian [Sat, 8 Jul 2017 16:21:51 +0000 (16:21 +0000)]
Consistently use if (option & F_FOO); from Klemens Nanni, thanks!
florian [Sat, 8 Jul 2017 15:45:11 +0000 (15:45 +0000)]
Enable slaacd on the installer and temporarily neuter router
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@
florian [Sat, 8 Jul 2017 15:42:46 +0000 (15:42 +0000)]
hook up slaacd to the installer on media where we have INET6
florian [Sat, 8 Jul 2017 15:41:25 +0000 (15:41 +0000)]
_slaacd user/group for installer
move forward deraadt@
florian [Sat, 8 Jul 2017 15:40:29 +0000 (15:40 +0000)]
slaacd needs libevent on the ramdisk
move forward deraadt@
florian [Sat, 8 Jul 2017 15:39:11 +0000 (15:39 +0000)]
Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@
schwarze [Sat, 8 Jul 2017 15:28:05 +0000 (15:28 +0000)]
fix an assertion failure triggered by .ce in next-line scope;
found by jsg@ with afl(1)
krw [Sat, 8 Jul 2017 15:26:27 +0000 (15:26 +0000)]
Always use strcasecmp() when comparing user input to option
names, not just 2 out of 3.
schwarze [Sat, 8 Jul 2017 14:51:01 +0000 (14:51 +0000)]
1. Eliminate struct eqn, instead use the existing members
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.
kevlo [Sat, 8 Jul 2017 14:26:23 +0000 (14:26 +0000)]
- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waiting
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@
schwarze [Sat, 8 Jul 2017 13:43:09 +0000 (13:43 +0000)]
Correctly handle horizontal spans at the beginning of rows,
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.
tb [Sat, 8 Jul 2017 13:37:23 +0000 (13:37 +0000)]
fix typo in comment
from Hiltjo Posthuma
mpi [Sat, 8 Jul 2017 09:19:02 +0000 (09:19 +0000)]
Revert grabbing the socket lock in kqueue filters.
It is unsafe to sleep while iterating the list of pending events in
kqueue_scan().
Reported by abieber@ and juanfra@
tedu [Sat, 8 Jul 2017 02:13:36 +0000 (02:13 +0000)]
add a hint about subjectAltName. this isn't great, but i'm not sure how
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. :)
krw [Sat, 8 Jul 2017 00:36:10 +0000 (00:36 +0000)]
Always use uintNN_t instead of sometimes u_intNN_t
and sometimes uintNN_t.
bluhm [Sat, 8 Jul 2017 00:08:26 +0000 (00:08 +0000)]
Run malloc0test with all possible malloc options.
bluhm [Fri, 7 Jul 2017 23:55:21 +0000 (23:55 +0000)]
Remove all references to "make depend" from regress.
bluhm [Fri, 7 Jul 2017 23:15:27 +0000 (23:15 +0000)]
Remove useless make depend targets.
schwarze [Fri, 7 Jul 2017 19:39:17 +0000 (19:39 +0000)]
garbage collect unused enum member EQN_ROOT
otto [Fri, 7 Jul 2017 19:14:46 +0000 (19:14 +0000)]
Only access offset if canaries are enabled *and* size > 0, otherwise offset
is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
schwarze [Fri, 7 Jul 2017 19:06:15 +0000 (19:06 +0000)]
add parentheses to the output where required for disambiguation
kettenis [Fri, 7 Jul 2017 18:06:51 +0000 (18:06 +0000)]
You win some, you los some. The Linux 4.4 code is still sub-standard but
triggers different warnings now.
ok naddy@
reyk [Fri, 7 Jul 2017 17:25:09 +0000 (17:25 +0000)]
Handle carp(4) as HTYPE_ETHER.
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
schwarze [Fri, 7 Jul 2017 17:15:21 +0000 (17:15 +0000)]
simplify the eqn_box_makebinary() function by removing the trivial pos
parameter; also minus two lines of code; no functional change
krw [Fri, 7 Jul 2017 16:58:45 +0000 (16:58 +0000)]
Replace the many occurances of '256' with a new #define
DHO_COUNT.
bluhm [Fri, 7 Jul 2017 16:31:37 +0000 (16:31 +0000)]
Disable tests that fail due to known make bugs, fix the others.
schwarze [Fri, 7 Jul 2017 16:30:06 +0000 (16:30 +0000)]
clarify which httpd we are talking about;
from Raf Czlonka <rczlonka at gmail dot com>
nicm [Fri, 7 Jul 2017 16:27:26 +0000 (16:27 +0000)]
Fix size of rightmost preview section.
tb [Fri, 7 Jul 2017 16:21:34 +0000 (16:21 +0000)]
Replace a doubled period and add a blank space in front of a bracket.
From Klemens Nanni
ok rpe
schwarze [Fri, 7 Jul 2017 16:19:30 +0000 (16:19 +0000)]
Radically simplify the definitions what the message levels ERROR
and WARNING mean: minus 20 lines of mdoc source. OK jmc@.
krw [Fri, 7 Jul 2017 15:39:30 +0000 (15:39 +0000)]
dispatch_imsg() only needs to know name and rdomain.
No more struct interface_info knowledge in privsep.[ch]
krw [Fri, 7 Jul 2017 15:14:47 +0000 (15:14 +0000)]
assemble_eh_header() needs only to know about hw_addr.
No more struct interface_info knowledge in packet.c
krw [Fri, 7 Jul 2017 14:53:06 +0000 (14:53 +0000)]
Rename cons_options() to pack_options(), and do_packet() to
unpack_options(). Store the unpacked options in a static
variable. Move remaining raw packet processing from unpack_options()
to packethandler().
No more struct interface_info knowledge in options.c
visa [Fri, 7 Jul 2017 14:49:04 +0000 (14:49 +0000)]
Add logic for running SD commands. Tested with a few different makes
of MMC/SD memory.
nicm [Fri, 7 Jul 2017 14:39:45 +0000 (14:39 +0000)]
Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990.
espie [Fri, 7 Jul 2017 14:12:43 +0000 (14:12 +0000)]
trigger default .l.o rule and check the produced file has the right name
espie [Fri, 7 Jul 2017 14:11:07 +0000 (14:11 +0000)]
COMPILE.c already does -c, so no need to double it.
no functional change
espie [Fri, 7 Jul 2017 13:44:45 +0000 (13:44 +0000)]
unbreak
this specific rule is only triggered twice in the whole ports tree
(sysutils/xjobs and print/l2a)
This fixes them
espie [Fri, 7 Jul 2017 12:41:59 +0000 (12:41 +0000)]
we're not shooting yacception
okay millert@
bluhm [Fri, 7 Jul 2017 10:56:13 +0000 (10:56 +0000)]
Make libtool regress tests pass:
- There are no NOPIC architectures anymore.
- Add DISABLED targets for tests failing intensionally without
touching the real targets.
- In execute mode libtool command line must use ./p2 as . is not
in my PATH.
OK mpi@ espie@
bluhm [Fri, 7 Jul 2017 10:49:12 +0000 (10:49 +0000)]
Make mmap_hint.c compile on i386 by adding includes. Unfortunately
test is still failing.
visa [Fri, 7 Jul 2017 10:04:43 +0000 (10:04 +0000)]
Fix function name in panic message.
fcambus [Fri, 7 Jul 2017 09:15:59 +0000 (09:15 +0000)]
Make configuration lines match GENERIC files.
This adds amd64 and splits up alpha and i386.
OK deraadt@
fcambus [Fri, 7 Jul 2017 09:14:26 +0000 (09:14 +0000)]
Remove unnecessary #ifdefs in telnet. No binary change.
OK deraadt@, tedu@