openbsd
7 years agoFix previous when we end up able to show no panes.
nicm [Fri, 30 Jun 2017 22:36:11 +0000 (22:36 +0000)]
Fix previous when we end up able to show no panes.

7 years agoTry to show a better preview of sessions and windows in tree mode.
nicm [Fri, 30 Jun 2017 22:24:08 +0000 (22:24 +0000)]
Try to show a better preview of sessions and windows in tree mode.

7 years agoImprove reorder_kernel()
rpe [Fri, 30 Jun 2017 17:06:03 +0000 (17:06 +0000)]
Improve reorder_kernel()

- check for and exit if /usr/share is on a nfs mounted filesystem
- add trap handlers that mail the logfile to the admin user
- use $_compile instead of $_compile_dir like in the installer
- use $_compile/$_kernel instead of $_kernel_dir
- remove the now redundant sha256 -h ... after make newinstall
- write stdout/stderr of the background subshell to a logfile

OK tb@ deraadt@

7 years agoCreate a unique kernel to boot from during install and upgrade.
rpe [Fri, 30 Jun 2017 16:46:02 +0000 (16:46 +0000)]
Create a unique kernel to boot from during install and upgrade.

- update the linkkit directory
- chroot and relink/install new kernel using the linkkit Makefile

Idea from and OK deraadt@
OK tb@

7 years agoBuild and run libexpat regress tests from src/lib/libexpat/tests.
bluhm [Fri, 30 Jun 2017 14:56:08 +0000 (14:56 +0000)]
Build and run libexpat regress tests from src/lib/libexpat/tests.

7 years agoAdd test suite source files for expat 2.2.1.
bluhm [Fri, 30 Jun 2017 14:43:26 +0000 (14:43 +0000)]
Add test suite source files for expat 2.2.1.

7 years agoAdd mdoc(7) macros to vi's built-in lists of roff paragraph/section macros.
bentley [Fri, 30 Jun 2017 14:42:05 +0000 (14:42 +0000)]
Add mdoc(7) macros to vi's built-in lists of roff paragraph/section macros.

ok jmc@, no objection schwarze@

7 years agoAmigaOS and pre-X Mac OS support has been dropped in upstream
bluhm [Fri, 30 Jun 2017 13:25:02 +0000 (13:25 +0000)]
AmigaOS and pre-X Mac OS support has been dropped in upstream
libexpat.  Remove obsolete header files, missed in previous commit.

7 years agoIn OpenBSD 6.0 we had the check (ip6_forward_rt.ro_tableid !=
bluhm [Fri, 30 Jun 2017 11:29:15 +0000 (11:29 +0000)]
In OpenBSD 6.0 we had the check (ip6_forward_rt.ro_tableid !=
m->m_pkthdr.ph_rtableid) after going to reroute in ip6_forward().
As this had been lost during refactoring, the old route was used
after pf has changed the routing table.  Solution is to reset the
route, then it is not valid and will be reallocated.
from markus@; OK mpi@

7 years agoUpdate libexpat to version 2.2.1 which has some security fixes.
bluhm [Fri, 30 Jun 2017 11:25:29 +0000 (11:25 +0000)]
Update libexpat to version 2.2.1 which has some security fixes.
- CVE-2017-9233 CVE-2016-9063 CVE-2016-5300 CVE-2016-4472 CVE-2016-0718
  CVE-2015-2716 CVE-2015-1283 CVE-2012-6702 CVE-2012-0876 have been
  addressed.  Not all of them affect OpenBSD as we had fixes before.
- Upstream uses arc4random_buf(3) now.  Delete all code for other
  entropy sources to make sure to compile the correct one.  Our
  library already used arc4random(3) before.
- The overflow fixes in rev 1.11 and 1.12 of lib/xmlparse.c
  have been commited upstream in a different way.  Use the upstream
  code to make maintenance easier.
- Although it should be ABI compatible, there is a new global
  symbol align_limit_to_full_utf8_characters.  As it is in
  lib/internal.h, add a Symbols.map to restrict the export.  Do not
  bump the shared library version.
- Use the internal expat's siphash.h.
ports build ajacoutot@; move ahead deraadt@

7 years agoAdd missing rot13 function prototype
mestre [Fri, 30 Jun 2017 08:39:16 +0000 (08:39 +0000)]
Add missing rot13 function prototype

7 years agoFix a format string specifier error in a debug printf.
mlarkin [Fri, 30 Jun 2017 06:25:29 +0000 (06:25 +0000)]
Fix a format string specifier error in a debug printf.

Noticed and reported by Fasse:

fasse dot f2 at gmail dot com

Thanks.

7 years agoRemove unused variables
mlarkin [Fri, 30 Jun 2017 06:17:47 +0000 (06:17 +0000)]
Remove unused variables

7 years agoOnly call close once in confree(). ssh_packet_close will close the FD
dtucker [Fri, 30 Jun 2017 04:17:23 +0000 (04:17 +0000)]
Only call close once in confree().  ssh_packet_close will close the FD
so only explicitly close non-SSH channels.  bz#2734, from
bagajjal at microsoft.com, ok djm@

7 years agoUse 100 as the example for command-alias because the defaults are from 0
nicm [Thu, 29 Jun 2017 22:02:19 +0000 (22:02 +0000)]
Use 100 as the example for command-alias because the defaults are from 0
to (currently) 5.

7 years agoNuke undocumented long-deprecated and/or unsupported lease
krw [Thu, 29 Jun 2017 21:37:43 +0000 (21:37 +0000)]
Nuke undocumented long-deprecated and/or unsupported lease
fields 'hardware', 'alias', 'media', 'medium', 'ethernet'.

Also remove now-unused parse_ethernet().

Making these parsing failures will smoke out anybody with
leases or conf files from the last century.

7 years agokill RCSID macros; discussed with millert
deraadt [Thu, 29 Jun 2017 17:36:16 +0000 (17:36 +0000)]
kill RCSID macros; discussed with millert

7 years agoPut asm-generated strings into .rodata
deraadt [Thu, 29 Jun 2017 17:17:28 +0000 (17:17 +0000)]
Put asm-generated strings into .rodata
ok millert

7 years agoput SYSTEM_SWAP_DEP out of its misery, it died in 1997, along with config.old
espie [Thu, 29 Jun 2017 16:51:35 +0000 (16:51 +0000)]
put SYSTEM_SWAP_DEP out of its misery, it died in 1997, along with config.old
"go for it" deraadt@

7 years agoIncrease the input line buffer to 4096 bytes.
martijn [Thu, 29 Jun 2017 16:49:58 +0000 (16:49 +0000)]
Increase the input line buffer to 4096 bytes.

Sounds good to deraadt@
OK anton@

7 years agoSkip whitespace at the beginning of eqn(7) nodes,
schwarze [Thu, 29 Jun 2017 16:30:47 +0000 (16:30 +0000)]
Skip whitespace at the beginning of eqn(7) nodes,
in particular ~ and ^ that misrendered;
found by bentley@ in glCopyTexSubImage1D(3); also affected
glAccum(3), glClipPlane(3), glDrawPixels(3), glEvalMesh(3), and others.

7 years agoMention TIOCSTAT in tty(4).
anton [Thu, 29 Jun 2017 16:20:49 +0000 (16:20 +0000)]
Mention TIOCSTAT in tty(4).

ok deraadt@ millert@

7 years agosome kernel relink bits, tweaked by deraadt;
jmc [Thu, 29 Jun 2017 15:32:36 +0000 (15:32 +0000)]
some kernel relink bits, tweaked by deraadt;

7 years agowarn about some non-portable idioms in .Bl -column;
schwarze [Thu, 29 Jun 2017 15:21:46 +0000 (15:21 +0000)]
warn about some non-portable idioms in .Bl -column;
triggered by a question from Yuri Pankov (illumos)

7 years agodelete_addresses(), interface_status(), addressinuse(),
krw [Thu, 29 Jun 2017 13:55:53 +0000 (13:55 +0000)]
delete_addresses(), interface_status(), addressinuse(),
lease_as_string() and rewrite_option_db() only use the
interface name, so supply just the name.

Tweak interface_link_forceup() to use the same param
name as other functions taking the interface name.

7 years agoClarify that .Ta as a line macro is a portability problem,
schwarze [Thu, 29 Jun 2017 13:16:39 +0000 (13:16 +0000)]
Clarify that .Ta as a line macro is a portability problem,
even though mandoc(1) handles it;
triggered by a question from Yuri Pankov (illumos).

7 years ago0xd4d4d4d4 is a useful 'trap instruction' on arm64, but not on arm32.
deraadt [Thu, 29 Jun 2017 13:04:09 +0000 (13:04 +0000)]
0xd4d4d4d4 is a useful 'trap instruction' on arm64, but not on arm32.
0xffffffff seems better in userland and kernel. still not exactly happy
with the situation.
long discussion with kettenis.  anyone else have an opinion?

7 years agoAlways use the maximum permissible frame size for Rx size limit.
visa [Thu, 29 Jun 2017 10:56:18 +0000 (10:56 +0000)]
Always use the maximum permissible frame size for Rx size limit.
This lets a change of interface MTU take effect immediately without
link cycling and brings cnmac(4) into line with other jumbo frame
capable NIC drivers.

Prompted by Joe Holden on misc@
OK dlg@

7 years agoMove <fcntl.h> to its alphabetic spot and add __dead attribute to usage()
tb [Thu, 29 Jun 2017 08:45:20 +0000 (08:45 +0000)]
Move <fcntl.h> to its alphabetic spot and add __dead attribute to usage()

ok mestre

7 years agoadd some comments, no functional change
mlarkin [Thu, 29 Jun 2017 08:24:10 +0000 (08:24 +0000)]
add some comments, no functional change

7 years agosuppress local symbols in mptramp. Matches a similar diff in
mlarkin [Thu, 29 Jun 2017 08:14:36 +0000 (08:14 +0000)]
suppress local symbols in mptramp. Matches a similar diff in
acpi_wakecode.s that was committed previously. Also remove an extra
symbol (mp_tramp_pdirpa) that was duplicated with mp_pdirpa.

Tested MP boot, un-zzz, un-ZZZ, no issues seen.

7 years agosuppress local symbols in mptramp. Matches a similar diff in
mlarkin [Thu, 29 Jun 2017 07:51:59 +0000 (07:51 +0000)]
suppress local symbols in mptramp. Matches a similar diff in
acpi_wakecode.s that was committed previously.

Tested MP boot, un-zzz, un-ZZZ, no issues seen.

7 years agoRemove a block of "#if 0" code that has been in the file since r1.1, 13
mlarkin [Thu, 29 Jun 2017 07:19:40 +0000 (07:19 +0000)]
Remove a block of "#if 0" code that has been in the file since r1.1, 13
years ago. This was part of the original reset code port from i386, and
we've never been able to reset amd64 in the way the code tries to do in
the #if 0 block since we don't have a 'PTD' variable in amd64.

I thought to keep this around for diffability with i386, but that's pretty
pointless now as the diff between the two machdep.c files is over 5000
lines already...

7 years agoRemove an "#if 1" that had been in the code for 16 years. I think it's
mlarkin [Thu, 29 Jun 2017 07:11:24 +0000 (07:11 +0000)]
Remove an "#if 1" that had been in the code for 16 years. I think it's
safe to say it's been enabled long enough to warrant permanent inclusion.

7 years agospelling fix; from greg lehey, freebsd r320427;
jmc [Thu, 29 Jun 2017 07:01:49 +0000 (07:01 +0000)]
spelling fix; from greg lehey, freebsd r320427;

7 years agohide some locore0 symbols that are only used inside locore0.
mlarkin [Thu, 29 Jun 2017 06:15:30 +0000 (06:15 +0000)]
hide some locore0 symbols that are only used inside locore0.

ok deraadt

7 years agoTEMPORARILY disable gap compilation, until lld is fixed/updated to
deraadt [Thu, 29 Jun 2017 05:40:35 +0000 (05:40 +0000)]
TEMPORARILY disable gap compilation, until lld is fixed/updated to
newer code with a variety of ld.script bugs fixed.

7 years agoFix incorrectly swapped labels of left/right arrows.
bentley [Thu, 29 Jun 2017 04:24:31 +0000 (04:24 +0000)]
Fix incorrectly swapped labels of left/right arrows.

ok schwarze@

7 years agoSwitch TIOCSTAT to _IO(). Two decades ago it was mistakenly defined to
deraadt [Thu, 29 Jun 2017 04:23:12 +0000 (04:23 +0000)]
Switch TIOCSTAT to _IO().  Two decades ago it was mistakenly defined to
take an argument.  Discussed with millert and tedu.

7 years agoDue to risks known for decades, TIOCSTI now performs no action, and simply
deraadt [Thu, 29 Jun 2017 04:10:07 +0000 (04:10 +0000)]
Due to risks known for decades, TIOCSTI now performs no action, and simply
returns EIO.  The base system has been cleaned of TIOCSTI uses (collaboration
between anton and I), and the ports tree appears mostly clean.  A few
stragglers may be discovered and cleaned up later...
In a month or so, we should see if the #define can be removed entirely.
ok anton tedu, support from millert

7 years agoset c.c_maxrxlen to something. apparently lost a line somewhere.
tedu [Thu, 29 Jun 2017 03:48:44 +0000 (03:48 +0000)]
set c.c_maxrxlen to something. apparently lost a line somewhere.
maybe it works now? :)
from Colin Stolley via Paul B. Henson

7 years agotake const off the timeval argument in the pending functions.
dlg [Thu, 29 Jun 2017 01:25:59 +0000 (01:25 +0000)]
take const off the timeval argument in the pending functions.

event_pending, evtimer_pending, and signal_pending all write to the
timeval because that's how they tell the caller when the event is
meant to fire.

ok deraadt@ millert@ jmc@ schwarze@

7 years agoIntroduce a simple mechanism to select the appropriate queue manager
mikeb [Wed, 28 Jun 2017 19:30:24 +0000 (19:30 +0000)]
Introduce a simple mechanism to select the appropriate queue manager

Discussed with and OK henning@ at d2k17 as a part of a larger diff.

7 years agoTighten up FQ-CoDel vs HFSC checks
mikeb [Wed, 28 Jun 2017 19:27:42 +0000 (19:27 +0000)]
Tighten up FQ-CoDel vs HFSC checks

PFQS_FLOWQUEUE is about to become a flag that HFSC classes may specify
as well; thus a better way of telling FQ-CoDel and HFSC apart needs to
be found.  At the moment its derived from the queue specification.

Discussed with and OK henning@ at d2k17 as a part of a larger diff.

7 years agoProvide pf queue manager API
mikeb [Wed, 28 Jun 2017 19:13:35 +0000 (19:13 +0000)]
Provide pf queue manager API

Discussed with and OK henning@ at d2k17 as a part of a larger diff.

7 years agoExtend pf queueing ops to include queue manager hooks
mikeb [Wed, 28 Jun 2017 18:31:03 +0000 (18:31 +0000)]
Extend pf queueing ops to include queue manager hooks

Discussed with and OK henning@ at d2k17 as a part of a larger diff.

7 years agohfsc.c should depend on pf instead of inet
mikeb [Wed, 28 Jun 2017 18:24:02 +0000 (18:24 +0000)]
hfsc.c should depend on pf instead of inet

Discussed with and OK henning@ at d2k17 as a part of a larger diff.

7 years agoreinstate .El removed in previous;
jmc [Wed, 28 Jun 2017 17:54:31 +0000 (17:54 +0000)]
reinstate .El removed in previous;

7 years agoTest for file from stdin.
nicm [Wed, 28 Jun 2017 17:28:39 +0000 (17:28 +0000)]
Test for file from stdin.

7 years agoFix stdin file read support, accidentally broken in my last commit.
brynet [Wed, 28 Jun 2017 17:14:15 +0000 (17:14 +0000)]
Fix stdin file read support, accidentally broken in my last commit.

7 years agoOnly pass required fields of interface_info to priv_* functions
krw [Wed, 28 Jun 2017 16:31:52 +0000 (16:31 +0000)]
Only pass required fields of interface_info to priv_* functions
and friends. i.e. ifi->name, ifi->rdomain, or both.

7 years agodelete_route() doesn't need any info from its struct interface_info
krw [Wed, 28 Jun 2017 15:45:32 +0000 (15:45 +0000)]
delete_route() doesn't need any info from its struct interface_info
parameter as the route message already has the correct tableid. So
eliminate the useless parameter.

7 years agoremove excess #include
deraadt [Wed, 28 Jun 2017 15:42:49 +0000 (15:42 +0000)]
remove excess #include

7 years agoperform an initial pledge very early on, and drop tzset to later.
deraadt [Wed, 28 Jun 2017 15:40:54 +0000 (15:40 +0000)]
perform an initial pledge very early on, and drop tzset to later.
ok nicm brynet

7 years agoresolv_conf_priority() is a function local to kroute.c, no
krw [Wed, 28 Jun 2017 15:23:19 +0000 (15:23 +0000)]
resolv_conf_priority() is a function local to kroute.c, no
need to expose its definition in dhcpd.h. While here change
the parameter from struct interface_info to int and just pass
the only field used (rdomain).

7 years agoAdd regression tests for mail.
anton [Wed, 28 Jun 2017 15:09:41 +0000 (15:09 +0000)]
Add regression tests for mail.

7 years agoReplace usage of TIOCSTI in mail while editing headers using a more common
anton [Wed, 28 Jun 2017 14:58:23 +0000 (14:58 +0000)]
Replace usage of TIOCSTI in mail while editing headers using a more common
IO-loop where ICANON is disabled and a single char of input is read at a time.
This requires the line editing capabilities provided when ICANON is enabled to
be implemented.

ok deraadt@

7 years agoRemove the nonsensical "-s - -" in the third example; quirk reported
schwarze [Wed, 28 Jun 2017 14:49:26 +0000 (14:49 +0000)]
Remove the nonsensical "-s - -" in the third example; quirk reported
by Redouan Ait Mallouk <raitmallouk at gmail dot com>.

The paste(1) utility allows two equivalent solutions for many tasks
involving only one input stream; while here, make that more obvious
by always showing both solutions.

7 years agoStop trying to clean up addresses, routes and "-L" file
krw [Wed, 28 Jun 2017 14:35:43 +0000 (14:35 +0000)]
Stop trying to clean up addresses, routes and "-L" file
whenever dhclient dies. Eliminates differences in handling
and thus need to intercept signals INT, TERM, USR1,
USR2. Eliminates need for 'zapzombies' field and thus
entire struct imsg_flushroutes. Eliminates need for 'imsg'
parameter to and associated logic in priv_flush_routes().

Address, routes and '-L' file are still cleaned out when
binding a lease.

7 years agoremove a contradictory sentence (see dhcp-options(5)) which claims
jmc [Wed, 28 Jun 2017 14:07:11 +0000 (14:07 +0000)]
remove a contradictory sentence (see dhcp-options(5)) which claims
hostnames which resolve to muliple ip addresses are all forwarded to
the client;

issue reported by edgar pettijohn;
discussed with dhcpd's de facto maintainer, kenneth westerback;

7 years agoSimplify file(1) by removing the no longer necessary parent/child separation
brynet [Wed, 28 Jun 2017 13:37:56 +0000 (13:37 +0000)]
Simplify file(1) by removing the no longer necessary parent/child separation
and just drop privileges in the main process.

Also allows for a tighter "stdio" pledge.

passing regress tests still pass

ok nicm@ with helpful feedback

7 years ago.init stub creation doesn't need a jmp + .align to reach a branch target,
deraadt [Wed, 28 Jun 2017 13:34:50 +0000 (13:34 +0000)]
.init stub creation doesn't need a jmp + .align to reach a branch target,
just fall into the code.  The .align created a FILL zone in the .init section,
which on i386 was filled with a NOP-sled, something we want to get away
from.
discussed with kettenis and tom

7 years agoConsistently use socket(..., AF_INET) for routing
krw [Wed, 28 Jun 2017 12:53:46 +0000 (12:53 +0000)]
Consistently use socket(..., AF_INET) for routing
sockets to cut down on unwanted IPv6 messages.

suggested by & ok claudio@

7 years agofix incomplete handling of roff(7) nodes in man(7) block next-line scope;
schwarze [Wed, 28 Jun 2017 12:52:27 +0000 (12:52 +0000)]
fix incomplete handling of roff(7) nodes in man(7) block next-line scope;
assertion failure in tclsh(1) reported by deraadt@ via bentley@

7 years agoBe consistent and always use socket(..., SOCK_DGRAM, ...) for
krw [Wed, 28 Jun 2017 11:53:08 +0000 (11:53 +0000)]
Be consistent and always use socket(..., SOCK_DGRAM, ...) for
the sockets being used to issue ioctl()'s.

ok claudio@

7 years agoApply the xterm key flag when needed for send-keys, fixes problem
nicm [Wed, 28 Jun 2017 11:36:39 +0000 (11:36 +0000)]
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.

7 years agowhitespace fixes, from Rob Pierce and me
benno [Wed, 28 Jun 2017 11:10:08 +0000 (11:10 +0000)]
whitespace fixes, from Rob Pierce and me

7 years agousage() gets __dead attribute, from Rob Pierce
benno [Wed, 28 Jun 2017 10:38:16 +0000 (10:38 +0000)]
usage() gets __dead attribute, from Rob Pierce

7 years agoand emphasize that PKGDIR must exist.
espie [Wed, 28 Jun 2017 10:34:10 +0000 (10:34 +0000)]
and emphasize that PKGDIR must exist.

7 years agodocument generate-readmes and diagnostic for missing PKGDIR.
espie [Wed, 28 Jun 2017 10:33:08 +0000 (10:33 +0000)]
document generate-readmes and diagnostic for missing PKGDIR.

7 years agoDelete '0x' in DIAGNOSTIC panic message; ipl value is printed in decimal.
aoyama [Wed, 28 Jun 2017 10:31:48 +0000 (10:31 +0000)]
Delete '0x' in DIAGNOSTIC panic message; ipl value is printed in decimal.

7 years agoextra step between fake and package
espie [Wed, 28 Jun 2017 10:24:23 +0000 (10:24 +0000)]
extra step between fake and package

7 years agohide symbols in the acpi trampoline pages. matches a previous diff from
mlarkin [Wed, 28 Jun 2017 08:51:36 +0000 (08:51 +0000)]
hide symbols in the acpi trampoline pages. matches a previous diff from
amd64.

tested un-zzz and un-ZZZ on i386 VM, no issues seen.

ok deraadt

7 years agomove all the post-Configure stuff to Makefile.bsd-wrapper1 instead of just
espie [Wed, 28 Jun 2017 07:40:08 +0000 (07:40 +0000)]
move all the post-Configure stuff to Makefile.bsd-wrapper1 instead of just
the man parts.

just leave Configure and forwarding targets in Makefile.bsd-wrapper,
this allows bsd.lib.mk to function normally without depend, because all
the puzzle is here.

okay millert@ afresh1@

7 years agoif we return nullptr for a "noexec" section, then don't change section.
espie [Wed, 28 Jun 2017 07:37:38 +0000 (07:37 +0000)]
if we return nullptr for a "noexec" section, then don't change section.
prevents core dumps :)

okay tedu@

7 years agohide symbols used in the ACPI resume trampoline pages
mlarkin [Wed, 28 Jun 2017 07:16:58 +0000 (07:16 +0000)]
hide symbols used in the ACPI resume trampoline pages

ok deraadt@

7 years agofix potential use of uninitialized variable, noticed by jsg@.
mlarkin [Wed, 28 Jun 2017 07:10:02 +0000 (07:10 +0000)]
fix potential use of uninitialized variable, noticed by jsg@.

7 years agoFix visual-silence (check accidentally the wrong way round), from Brad
nicm [Wed, 28 Jun 2017 06:45:31 +0000 (06:45 +0000)]
Fix visual-silence (check accidentally the wrong way round), from Brad
Town. Plus some tmux.1 fixes from jmc@.

7 years agoadd -v to SYNOPSIS and STANDARDS;
jmc [Wed, 28 Jun 2017 06:24:38 +0000 (06:24 +0000)]
add -v to SYNOPSIS and STANDARDS;

7 years agoAllow ssh-keygen to use a key held in ssh-agent as a CA when signing
djm [Wed, 28 Jun 2017 01:09:22 +0000 (01:09 +0000)]
Allow ssh-keygen to use a key held in ssh-agent as a CA when signing
certificates. bz#2377 ok markus

7 years agoRewrite half of this, i was completely unaware how bad it was.
schwarze [Wed, 28 Jun 2017 00:59:30 +0000 (00:59 +0000)]
Rewrite half of this, i was completely unaware how bad it was.
Remove several lies, lots of duplicate information,
and a lengthy discussion of features we don't support.
Clarify the wording in some places and make it more concise in others.
Delete examples from where they don't belong
and write a new EXAMPLES section from scratch.

7 years agoremove the obsolete timeslot ioctl
tedu [Tue, 27 Jun 2017 22:18:24 +0000 (22:18 +0000)]
remove the obsolete timeslot ioctl

7 years agofix a few lines of unusual length
tedu [Tue, 27 Jun 2017 21:49:47 +0000 (21:49 +0000)]
fix a few lines of unusual length

7 years agoadd a -v verbose flag to cp, mv, and rm. useful for monitoring progress,
tedu [Tue, 27 Jun 2017 21:43:46 +0000 (21:43 +0000)]
add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,
and present on several other systems. some ok, some less ok.
from Job Snijders

7 years agoHoist some privileged code in preparation for future work.
benno [Tue, 27 Jun 2017 20:46:34 +0000 (20:46 +0000)]
Hoist some privileged code in preparation for future work.
Based on an approach in vmd with mc146818/ns8250.
diff by Rob Pierce <rob -AT- 2keys -DOT- ca>

ok deraadt@

7 years agotest inter-column spacing
schwarze [Tue, 27 Jun 2017 19:51:28 +0000 (19:51 +0000)]
test inter-column spacing

7 years agoImplement spacing of columns as defined in the table layout;
schwarze [Tue, 27 Jun 2017 18:23:29 +0000 (18:23 +0000)]
Implement spacing of columns as defined in the table layout;
this is for example used by lftp(1)
and, ironically, misused by our very own tbl(7) manual...

7 years agotrapsleds for clang, similar to the change on gas side.
deraadt [Tue, 27 Jun 2017 16:43:29 +0000 (16:43 +0000)]
trapsleds for clang, similar to the change on gas side.
Also from Todd Mortimer
tested by espie

7 years agoRemove an extra '\n' from the printf strings fed into disklabel -E
tb [Tue, 27 Jun 2017 16:02:05 +0000 (16:02 +0000)]
Remove an extra '\n' from the printf strings fed into disklabel -E

from corsah () mail ! ru

7 years agomove a global into local context; from rob pierce
deraadt [Tue, 27 Jun 2017 15:58:07 +0000 (15:58 +0000)]
move a global into local context; from rob pierce

7 years agoMake if_register_bpf() the same as the other if_register_*() functions
krw [Tue, 27 Jun 2017 15:56:15 +0000 (15:56 +0000)]
Make if_register_bpf() the same as the other if_register_*() functions
by directly assigning the socket fd to ifi->bfdesc rather than
returning it and having the caller do the assignment.

7 years agoTweak previous: align declarations and rename local variable.
anton [Tue, 27 Jun 2017 15:02:18 +0000 (15:02 +0000)]
Tweak previous: align declarations and rename local variable.

7 years agoin recently commited TIOCSTI replacement code, do not assume
deraadt [Tue, 27 Jun 2017 14:37:08 +0000 (14:37 +0000)]
in recently commited TIOCSTI replacement code, do not assume
little-endian or unsigned char :-)
ok anton

7 years agoProvide a handler stub for the "channel rescind" message
mikeb [Tue, 27 Jun 2017 13:56:15 +0000 (13:56 +0000)]
Provide a handler stub for the "channel rescind" message

7 years agoConvert ip6_input() to a pr_input style function. Goal is to process
bluhm [Tue, 27 Jun 2017 13:28:02 +0000 (13:28 +0000)]
Convert ip6_input() to a pr_input style function.  Goal is to process
IPsec packets without additional enqueueing.
OK mpi@

7 years agoNuke get_rdomain() and just snag the interface rdomain from the same
krw [Tue, 27 Jun 2017 13:24:49 +0000 (13:24 +0000)]
Nuke get_rdomain() and just snag the interface rdomain from the same
ifa we use to get the interface hw address. One less socket() and
ioctl()! MIssed cleanup from shift to just watching RTM_IFINFO
messages for rdomain switch.

7 years agowarn about .Ns macros that have no effect because they are followed
schwarze [Tue, 27 Jun 2017 12:17:35 +0000 (12:17 +0000)]
warn about .Ns macros that have no effect because they are followed
by an isolated closing delimiter; inspired by mdoclint

7 years agoAvoid the possibility of accessing an array out of bounds.
jsg [Tue, 27 Jun 2017 12:10:21 +0000 (12:10 +0000)]
Avoid the possibility of accessing an array out of bounds.
Found with cppcheck. ok krw@

7 years agoAvoid testing an uninitialised variable in the SCSI_BUSY/SCSI_QUEUE_FULL
jsg [Tue, 27 Jun 2017 12:04:26 +0000 (12:04 +0000)]
Avoid testing an uninitialised variable in the SCSI_BUSY/SCSI_QUEUE_FULL
paths of hvs_scsi_cmd_done().

ok mikeb@

7 years agoAdd missing solock()/sounlock() dances around sbreserve().
mpi [Tue, 27 Jun 2017 12:02:43 +0000 (12:02 +0000)]
Add missing solock()/sounlock() dances around sbreserve().

While here document an abuse of parent socket's lock.

Problem reported by krw@, analysis and ok bluhm@