openbsd
8 years agoupdate man pages now that login.conf uses auto rounds
danj [Fri, 19 Aug 2016 10:57:24 +0000 (10:57 +0000)]
update man pages now that login.conf uses auto rounds

better wording/ok sthen@ ok jmc@

8 years agoReorder entries to match current multipath ordering.
mpi [Fri, 19 Aug 2016 09:40:39 +0000 (09:40 +0000)]
Reorder entries to match current multipath ordering.

8 years agocorrect a rate test introduced in rev 1.326
jsg [Fri, 19 Aug 2016 09:06:24 +0000 (09:06 +0000)]
correct a rate test introduced in rev 1.326
ok stsp@

8 years agoshorten the ocsp text; ok beck
jmc [Fri, 19 Aug 2016 08:46:38 +0000 (08:46 +0000)]
shorten the ocsp text; ok beck

8 years agoStart with a default fragsize of 2048, double it for large disks and then cap
otto [Fri, 19 Aug 2016 08:06:25 +0000 (08:06 +0000)]
Start with a default fragsize of 2048, double it for large disks and then cap
based on sector size. This avoid too large fragments on 4k disks. Problem
noted by David Vasek; ok krw@

8 years agoDo not seroize a struct needed for RTM_RESOLVE in the hot path.
mpi [Fri, 19 Aug 2016 07:12:54 +0000 (07:12 +0000)]
Do not seroize a struct needed for RTM_RESOLVE in the hot path.

ok phessler@, bluhm@, tedu@, natano@

8 years agoadd tests for matching functions
djm [Fri, 19 Aug 2016 06:44:13 +0000 (06:44 +0000)]
add tests for matching functions

8 years agoavoid using an uninitialised variable with zero length iic_exec calls
jsg [Fri, 19 Aug 2016 05:25:08 +0000 (05:25 +0000)]
avoid using an uninitialised variable with zero length iic_exec calls

8 years agoremove UseLogin option and support for having /bin/login manage
djm [Fri, 19 Aug 2016 03:18:06 +0000 (03:18 +0000)]
remove UseLogin option and support for having /bin/login manage
login sessions; ok deraadt markus dtucker

8 years agostring.h not strings.h
deraadt [Fri, 19 Aug 2016 01:37:50 +0000 (01:37 +0000)]
string.h not strings.h

8 years agoAdd an EXAMPLES section that illustrates how to deal with connect(2)
millert [Thu, 18 Aug 2016 22:29:02 +0000 (22:29 +0000)]
Add an EXAMPLES section that illustrates how to deal with connect(2)
returning EINTR.  OK jung@ deraadt@

8 years agoReset the input state completely when wsmouse is (re-)opened.
bru [Thu, 18 Aug 2016 21:12:35 +0000 (21:12 +0000)]
Reset the input state completely when wsmouse is (re-)opened.

ok mpi@

8 years agouvm_wxcheck() should only abort the process if kern.wxabort is set.
deraadt [Thu, 18 Aug 2016 19:59:16 +0000 (19:59 +0000)]
uvm_wxcheck() should only abort the process if kern.wxabort is set.
The new semantics are W^X violations are reported to the application
via ENOTSUP.  Forgot to fix this during the last change.
Spotted by kettenis

8 years agoMove connect_sync() to util.c and use it when connecting via http
millert [Thu, 18 Aug 2016 16:23:06 +0000 (16:23 +0000)]
Move connect_sync() to util.c and use it when connecting via http
too.  OK sthen@ deraadt@

8 years agouse a more standard page layout; ok mlarkin
jmc [Thu, 18 Aug 2016 16:12:05 +0000 (16:12 +0000)]
use a more standard page layout; ok mlarkin

8 years agoUpdate NVS protocol structure definitions to the 2016 version
mikeb [Thu, 18 Aug 2016 15:56:54 +0000 (15:56 +0000)]
Update NVS protocol structure definitions to the 2016 version

Microsoft has considerably cleaned up the style and it makes sense
to keep in sync with the maintained upstream version in FreeBSD.

8 years agoSplit out the TLS server SSL_CTX allocation and configuration code, so
jsing [Thu, 18 Aug 2016 15:52:03 +0000 (15:52 +0000)]
Split out the TLS server SSL_CTX allocation and configuration code, so
that it can be reused to allocate the additional SSL_CTXs needed for SNI.

ok reyk@

8 years agoRework parts of the libtls man page for clarity. Split out the connection
jsing [Thu, 18 Aug 2016 15:43:12 +0000 (15:43 +0000)]
Rework parts of the libtls man page for clarity. Split out the connection
information related functions under their own heading and dedup the text
relating to when these functions can be called.

With input from and ok jmc@

8 years agoword fix, from remi locherer; ok reyk
jmc [Thu, 18 Aug 2016 14:12:51 +0000 (14:12 +0000)]
word fix, from remi locherer; ok reyk

8 years agodocument USE_WXNEEDED, feedback/ok jca jasper
sthen [Thu, 18 Aug 2016 12:29:53 +0000 (12:29 +0000)]
document USE_WXNEEDED, feedback/ok jca jasper

8 years agoshorten the nseq text;
jmc [Thu, 18 Aug 2016 12:07:21 +0000 (12:07 +0000)]
shorten the nseq text;

8 years agoadd a missing splx in an error path
jsg [Thu, 18 Aug 2016 11:59:58 +0000 (11:59 +0000)]
add a missing splx in an error path
ok millert@ stsp@

8 years agopunctuation fix;
jmc [Thu, 18 Aug 2016 11:45:18 +0000 (11:45 +0000)]
punctuation fix;

8 years agosync
sthen [Thu, 18 Aug 2016 11:36:14 +0000 (11:36 +0000)]
sync

8 years agovarious fixes for previous;
jmc [Thu, 18 Aug 2016 11:33:48 +0000 (11:33 +0000)]
various fixes for previous;

8 years agoSeparate out the Access Flag bit from the Access Permission bits in the
kettenis [Thu, 18 Aug 2016 09:28:22 +0000 (09:28 +0000)]
Separate out the Access Flag bit from the Access Permission bits in the
armv7 pmap.

ok tom@

8 years agoClean up style and replace a magic value with a magic define
mikeb [Thu, 18 Aug 2016 09:20:01 +0000 (09:20 +0000)]
Clean up style and replace a magic value with a magic define

8 years agoinit a variable to address https://kb.isc.org/article/AA-01272
jsg [Thu, 18 Aug 2016 06:36:02 +0000 (06:36 +0000)]
init a variable to address https://kb.isc.org/article/AA-01272

Most of bind got removed and this function is not called
by any of the remaining parts.

ok deraadt@ a long time ago.

8 years agofix panics caused by replacing m_copym2 with m_dup_pkt.
dlg [Thu, 18 Aug 2016 06:01:10 +0000 (06:01 +0000)]
fix panics caused by replacing m_copym2 with m_dup_pkt.

m_copym2 is fine duplicating an arbitrary chain of mbufs, while
m_dup_pkt wants to dup a packet with proper headers in the first
mbuf. ipsec copied the tail of an mbuf if any of the clusters are
shared or readonly, and swapped that tail with the result of m_copym2.

m_dup_pkt panics cos of that.

this makes ipsec duplicate the whole packet if any of the chain is
readonly.

found by naddy@ and mlarkin@
this fix is from visa@ who told me to commit it cos he's afk (sleeping)
tested by naddy@

8 years agofix fd leaks in error paths
jsg [Thu, 18 Aug 2016 00:45:52 +0000 (00:45 +0000)]
fix fd leaks in error paths
ok reyk@

8 years agofix an fd leak
jsg [Thu, 18 Aug 2016 00:44:37 +0000 (00:44 +0000)]
fix an fd leak
ok schwarze@

8 years agoadd section on VM networking. more to come, this is a starting point for
mlarkin [Thu, 18 Aug 2016 00:06:32 +0000 (00:06 +0000)]
add section on VM networking. more to come, this is a starting point for
further documentation.

8 years ago% is escaped with more %, not backslash.
tedu [Wed, 17 Aug 2016 22:15:08 +0000 (22:15 +0000)]
% is escaped with more %, not backslash.

8 years agoAdd HISTORY section.
schwarze [Wed, 17 Aug 2016 21:23:01 +0000 (21:23 +0000)]
Add HISTORY section.
Information found on: http://www.tuhs.org/cgi-bin/utree.pl
Checked by Sevan Janiyan <venture37 at geeklan dot co dot uk>.

8 years agoWhen the content of a manual page does not specify a section, the
schwarze [Wed, 17 Aug 2016 20:46:06 +0000 (20:46 +0000)]
When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database
format slightly and causing the page to not be considered part of
any section, not even if a section could be deduced from the directory
or from the file name.
Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.

8 years agoWhen reading back a mandoc.db(5) file in order to apply incremental
schwarze [Wed, 17 Aug 2016 18:58:31 +0000 (18:58 +0000)]
When reading back a mandoc.db(5) file in order to apply incremental
changes, do not prepend a stray NAME_FILE (0x10) byte to the first
names of pages.
Bug found while investigating another issue reported by sthen@.

8 years agoGenerate syslog warnings for %s fmt strings NULL to "(null)" conversions.
deraadt [Wed, 17 Aug 2016 18:07:07 +0000 (18:07 +0000)]
Generate syslog warnings for %s fmt strings NULL to "(null)" conversions.
Over time we can repair software which performs this non-standard behaviour,
and fix bugs along the way.  Let's first find out how bad the situation is
by deploying this in snapshots.

This type of logging is possible because OpenBSD syslog_r(3) -> sendsyslog(2)
is side-effect free enough to be used in the bowels of libc.

ok tedu

8 years agoMake sure manuals in architecture-independent directories are treated
schwarze [Wed, 17 Aug 2016 18:05:40 +0000 (18:05 +0000)]
Make sure manuals in architecture-independent directories are treated
as architecture-independent even if they abuse the third (architecture)
argument of the .Dt macro for random stuff like "freetds reference manual".
While the .Dt syntax is not the same as the .TH syntax in man(7),
punishing offenders by treating them as architecture-dependent and
hence completely excluding them from searches is too severe.
Problem reported by sthen@.

8 years agoSync up monitor trigger groups handling to the upstream
mikeb [Wed, 17 Aug 2016 17:39:41 +0000 (17:39 +0000)]
Sync up monitor trigger groups handling to the upstream

Replace hand rolled atomic bit operations and use MI ones from DRM
and convert event matrixes to arrays of longs.

8 years agoReplace hand rolled atomic bit operations and use MI ones from DRM
mikeb [Wed, 17 Aug 2016 17:18:38 +0000 (17:18 +0000)]
Replace hand rolled atomic bit operations and use MI ones from DRM

8 years agosync
deraadt [Wed, 17 Aug 2016 16:13:26 +0000 (16:13 +0000)]
sync

8 years agoUse more dhcp info when trying autoinstall/autoupgrade.
krw [Wed, 17 Aug 2016 13:53:20 +0000 (13:53 +0000)]
Use more dhcp info when trying autoinstall/autoupgrade.

For the file name try 'filename' then 'option bootfile-name'.

For the server name try 'server-name' then 'option tftp-server-name' then
'next-server'.

Original idea from Patrick Lundin. Suggestions from rpe@.

Tweaks & ok halex@

8 years agoFix an mbuf leak and missing error propagation in uipc_usrreq(PRU_SEND)
bluhm [Wed, 17 Aug 2016 13:53:14 +0000 (13:53 +0000)]
Fix an mbuf leak and missing error propagation in uipc_usrreq(PRU_SEND)
in case sbappendcontrol() fails.
From Simon Mages; OK mikeb@

8 years agoNothing from the original Wasabi code remains, so replace the copyright
patrick [Wed, 17 Aug 2016 13:44:48 +0000 (13:44 +0000)]
Nothing from the original Wasabi code remains, so replace the copyright
with the standard ISC license.

ok kettenis@ jsg@

8 years agoRemove bogus suspend/resume code from armv7 com(4) attachment driver.
patrick [Wed, 17 Aug 2016 13:26:40 +0000 (13:26 +0000)]
Remove bogus suspend/resume code from armv7 com(4) attachment driver.
The code initially arrived when the zaurus driver was copied.  As we
don't suspend on ARMv7, just get rid of it.

Prompted by jsg@ and kettenis@.

8 years agoReplace sxiuart(4) with the mostly compatible com(4).
patrick [Wed, 17 Aug 2016 13:05:02 +0000 (13:05 +0000)]
Replace sxiuart(4) with the mostly compatible com(4).

The Synopsys DesignWare 8250 throws an interrupt if it detects a write
to LCR while it was busy.  Read the USR register to clear the interrupt
so we don't get flooded.

The sunxi machines also use a different frequency on the consoles.  As
we have no clock framework, especially not for early consoles, match on
known Allwinner compatibles to set a known frequency.

ok kettenis@ mglocker@

8 years agosyslogd(8) uses new libtls certificate and key file loading. So
bluhm [Wed, 17 Aug 2016 12:22:27 +0000 (12:22 +0000)]
syslogd(8) uses new libtls certificate and key file loading.  So
the tests behave a little bit different now.

8 years agoBy using the new tls_config_load_file() feature, syslogd(8) certificate
bluhm [Wed, 17 Aug 2016 12:18:29 +0000 (12:18 +0000)]
By using the new tls_config_load_file() feature, syslogd(8) certificate
and key loading can be simplified.
OK jsing@

8 years agoWhen returning the file size info, only use z_total_in/z_total_out
millert [Wed, 17 Aug 2016 12:02:38 +0000 (12:02 +0000)]
When returning the file size info, only use z_total_in/z_total_out
for the read (inflate) case where there might be multiple streams.
For the write (deflate) case there can only be a single stream so
just use the per-stream total_in/total_out.  Fixes "gzip -v" byte
counts.  OK henning@.

8 years agoFix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
kettenis [Wed, 17 Aug 2016 11:56:42 +0000 (11:56 +0000)]
Fix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
of "ir" as the orq and andq instructions take a 32-bit immedate argument that
gets sign-extended.

ok mikeb@

8 years agoDocument RT3900E (RT5390 / RT5392) support in ral(4).
stsp [Wed, 17 Aug 2016 11:52:29 +0000 (11:52 +0000)]
Document RT3900E (RT5390 / RT5392) support in ral(4).
Ported from FreeBSD by James Hastings.

8 years agoAdd support for RT5390 and RT5392 chipsets to the ral(4) driver.
stsp [Wed, 17 Aug 2016 11:50:52 +0000 (11:50 +0000)]
Add support for RT5390 and RT5392 chipsets to the ral(4) driver.

Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
Ported from FreeBSD by James Hastings.

8 years agoUpdate ral(4) firmware for RT2860 family devices.
stsp [Wed, 17 Aug 2016 11:47:57 +0000 (11:47 +0000)]
Update ral(4) firmware for RT2860 family devices.
Required for upcoming RT5390 and RT5392 chipset support.

Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
Ported from FreeBSD by James Hastings.
kevlo confirmed this version of the firmware is still ISC licensed.

8 years agouse a register variable to get at the curcpu pointer in %g7
dlg [Wed, 17 Aug 2016 11:09:01 +0000 (11:09 +0000)]
use a register variable to get at the curcpu pointer in %g7

this lets us define curcpu(), cpu_number(), etc as derefs of this
variable rather than having to write asm to copy it into another
register for the same derefs.

this provides shorter inlined code that wastes less registers.

ok kettenis@ who notes we use this these on other archs already

8 years agowpi(4) scans all bands at once, as far as the net80211 stack is concerned.
stsp [Wed, 17 Aug 2016 11:08:08 +0000 (11:08 +0000)]
wpi(4) scans all bands at once, as far as the net80211 stack is concerned.
So set the appropriate scan capability flags in the ic.
ok sthen@

8 years agowe have some spare interrupt levels, so move softnet above softclock.
dlg [Wed, 17 Aug 2016 10:49:09 +0000 (10:49 +0000)]
we have some spare interrupt levels, so move softnet above softclock.

ok kettenis@

8 years agoregen
stsp [Wed, 17 Aug 2016 10:01:34 +0000 (10:01 +0000)]
regen

8 years agoAdd PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.
stsp [Wed, 17 Aug 2016 10:01:20 +0000 (10:01 +0000)]
Add PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.
Part of a larger patch by James Hastings.

8 years agoiwn(4) scans all bands at once, as far as the net80211 stack is concerned.
stsp [Wed, 17 Aug 2016 09:43:27 +0000 (09:43 +0000)]
iwn(4) scans all bands at once, as far as the net80211 stack is concerned.
So set the appropriate scan capability flags in the ic.
ok sthen@

8 years agoIf a wireless device or driver scans all bands at once give 5GHz APs
stsp [Wed, 17 Aug 2016 09:42:03 +0000 (09:42 +0000)]
If a wireless device or driver scans all bands at once give 5GHz APs
a slight priority in cases where good matches exist in either band.
ok sthen@

8 years agoIf the stack demands protection by setting the USEPROT flag then set the
stsp [Wed, 17 Aug 2016 09:39:38 +0000 (09:39 +0000)]
If the stack demands protection by setting the USEPROT flag then set the
corresponding bit in the iwm(4) Tx command regardless of frame length.
ok sthen@

8 years agopluralize a word
phessler [Wed, 17 Aug 2016 08:14:40 +0000 (08:14 +0000)]
pluralize a word

8 years agoThe man page is a bit confusing for how we can control which address
phessler [Wed, 17 Aug 2016 08:13:52 +0000 (08:13 +0000)]
The man page is a bit confusing for how we can control which address
families we support during capabilities negotiation.  Re-organize the
man page to be more clear, and explicitly state what the default is.

OK sthen@ benno@

8 years agowrterror() is fatal, delete dead code; ok tom@ natano@ tedu@
otto [Wed, 17 Aug 2016 05:33:54 +0000 (05:33 +0000)]
wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@

8 years agosmall bits of header cleanup; ok mlarkin
deraadt [Wed, 17 Aug 2016 05:07:13 +0000 (05:07 +0000)]
small bits of header cleanup; ok mlarkin

8 years agoReintroduce 5.3-style checksum modification to preserve end-to-end checksums
procter [Wed, 17 Aug 2016 03:24:11 +0000 (03:24 +0000)]
Reintroduce 5.3-style checksum modification to preserve end-to-end checksums
when fiddling with packets but without the mess that motivated Henning to
remove it. Affects only this one aspect of Henning's checksum work. Also tweak
the basic algorithm and supply a correctness argument.

OK dlg@ deraadt@ sthen@; no objection henning@

8 years agoMove to iopool. No voluntary testers after several years of requests so now
krw [Wed, 17 Aug 2016 01:17:54 +0000 (01:17 +0000)]
Move to iopool. No voluntary testers after several years of requests so now
everybody gets to test!

8 years agoMove to iopool. No voluntary testers after several years of requests so now
krw [Wed, 17 Aug 2016 01:16:11 +0000 (01:16 +0000)]
Move to iopool. No voluntary testers after several years of requests so now
everybody gets to test!

8 years agoMake error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid
krw [Wed, 17 Aug 2016 01:02:31 +0000 (01:02 +0000)]
Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid
value.

Specs from mikeb@, ok dlg@

8 years agoKNF and clean up many comments.
krw [Wed, 17 Aug 2016 00:55:33 +0000 (00:55 +0000)]
KNF and clean up many comments.

8 years agoAnsify function definitions.
krw [Wed, 17 Aug 2016 00:38:26 +0000 (00:38 +0000)]
Ansify function definitions.

Diff from Edgar Pettijohn.

8 years agosplraise() is an MI API now.
dlg [Tue, 16 Aug 2016 23:49:35 +0000 (23:49 +0000)]
splraise() is an MI API now.

ok deraadt@ jmc@ mpi@

8 years agoAdd regression tests for IP_SENDSRCADDR.
vgross [Tue, 16 Aug 2016 22:25:08 +0000 (22:25 +0000)]
Add regression tests for IP_SENDSRCADDR.

8 years agoAdd IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
vgross [Tue, 16 Aug 2016 22:21:17 +0000 (22:21 +0000)]
Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
IP_SENDSRCADDR == IP_RECVDSTADDR.

OK sthen@ jca@ bluhm@

8 years agoTrack SSID in leases file and only consider leases from the current SSID when
krw [Tue, 16 Aug 2016 21:57:51 +0000 (21:57 +0000)]
Track SSID in leases file and only consider leases from the current SSID when
starting up dhclient on wifi interfaces. In theory will preserve leases from
other SSID's and speed up obtaining a lease by not wasting time attempting
to re-acquire a lease from a different SSID.

Experimental feature from n2k16 needing some real world testing before g2k16.

8 years agoThere is no sense in doing caching in fusefs. In case of a non-local
natano [Tue, 16 Aug 2016 21:32:58 +0000 (21:32 +0000)]
There is no sense in doing caching in fusefs. In case of a non-local
filesystem the tree can change behind our back, resulting in stale cache
entries. "The only winning move is not to play."

ok tedu beck mpi

8 years agoPiping to a shell command does not count as a save, so don't reset the
natano [Tue, 16 Aug 2016 20:04:46 +0000 (20:04 +0000)]
Piping to a shell command does not count as a save, so don't reset the
modified flag.
from Jerome Frgacic (jerome.frgacic (at) yahoo.fr)
ok tb

8 years agoWhen the commit message is empty, don't default to c)ontinue
tb [Tue, 16 Aug 2016 19:00:59 +0000 (19:00 +0000)]
When the commit message is empty, don't default to c)ontinue
(committing without log message) but a)bort.  Also, accept
the uppercase versions of the choices.

Matches the corresponding change of behavior of GNU cvs.

suggested by & ok jcs

8 years agoWhen the commit message is empty, don't default to c)ontinue
tb [Tue, 16 Aug 2016 18:57:10 +0000 (18:57 +0000)]
When the commit message is empty, don't default to c)ontinue
(committing without log message), but to a)bort.

ok jcs, natano; millert and tj agree

8 years agoAdd, correct, and improve HISTORY sections.
schwarze [Tue, 16 Aug 2016 18:51:25 +0000 (18:51 +0000)]
Add, correct, and improve HISTORY sections.
From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Verified using http://minnie.tuhs.org/.

8 years agostop including sys/param.h for nitems. define locally as needed.
tedu [Tue, 16 Aug 2016 18:41:57 +0000 (18:41 +0000)]
stop including sys/param.h for nitems. define locally as needed.
ok natano reyk

8 years agoAdd HISTORY.
schwarze [Tue, 16 Aug 2016 18:41:06 +0000 (18:41 +0000)]
Add HISTORY.
From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Verified using the CSRG archive CD.

8 years agoremove #define for /dev/mem minors. let the raw magic of the hardcoded
tedu [Tue, 16 Aug 2016 18:21:54 +0000 (18:21 +0000)]
remove #define for /dev/mem minors. let the raw magic of the hardcoded
numbers serve as a warning not to touch them.

8 years agomove static variable up to first
tedu [Tue, 16 Aug 2016 18:19:15 +0000 (18:19 +0000)]
move static variable up to first

8 years agoreplace hand rolled tsleep physlock with rwlock. ok mlarkin
tedu [Tue, 16 Aug 2016 18:17:36 +0000 (18:17 +0000)]
replace hand rolled tsleep physlock with rwlock. ok mlarkin

8 years agodoesn't need to link with crypto
tedu [Tue, 16 Aug 2016 17:52:28 +0000 (17:52 +0000)]
doesn't need to link with crypto

8 years agoremove reference to 6th ed.
tedu [Tue, 16 Aug 2016 17:51:38 +0000 (17:51 +0000)]
remove reference to 6th ed.

8 years agoTurn "TLS handshake failed -" log message into a debug message - it
reyk [Tue, 16 Aug 2016 17:10:01 +0000 (17:10 +0000)]
Turn "TLS handshake failed -" log message into a debug message - it
happens way too often and does not provide much information.

OK jung@

8 years agoStreamline and refactor the code a bit more:
tb [Tue, 16 Aug 2016 16:49:24 +0000 (16:49 +0000)]
Streamline and refactor the code a bit more:

There are two sentinels for infinite output: infinity == true and reps == 0.
Ensure that infinity is set to true whenever reps is set to zero, then we
can always use 'if (infinity)'.

This allows us to merge the loop for deterministic output into the first
if (!randomize) statement, which is a lot tidier.

Insert an occasional empty line.

"move fast and break stuff" tedu

8 years agoNuke a bunch of whitespace nits seen while '%q' hunting.
krw [Tue, 16 Aug 2016 16:44:55 +0000 (16:44 +0000)]
Nuke a bunch of whitespace nits seen while '%q' hunting.

8 years agoNuke a bunch of whitespace nits seen while '%q' hunting.
krw [Tue, 16 Aug 2016 16:41:46 +0000 (16:41 +0000)]
Nuke a bunch of whitespace nits seen while '%q' hunting.

8 years agoNuke some erroneous leading whitespace.
krw [Tue, 16 Aug 2016 16:13:32 +0000 (16:13 +0000)]
Nuke some erroneous leading whitespace.

8 years agoBring types of variables used with struct stat into the modern world.
krw [Tue, 16 Aug 2016 16:09:24 +0000 (16:09 +0000)]
Bring types of variables used with struct stat into the modern world.

Replace a couple of u_long paramaters with int as they were only passed int
values and the function re-cast them to (int) anyway. Weird.

ok tedu@

8 years agoAvoid a compiler warning about use of uninitialized l.beg emitted
tb [Tue, 16 Aug 2016 15:32:07 +0000 (15:32 +0000)]
Avoid a compiler warning about use of uninitialized l.beg emitted
when ksh is compiled with -Os (done in distrib/special): move the
bit using XPptrv(l) (which expands to l.beg) where it is actually
used and clearly initialized.

ok tedu, tweak + ok millert

8 years agoAll that complexity stopped us from getting flying cars by today.
tedu [Tue, 16 Aug 2016 15:24:01 +0000 (15:24 +0000)]
All that complexity stopped us from getting flying cars by today.

8 years agoUpdate Hyper-V structure definitions to the 2016 version
mikeb [Tue, 16 Aug 2016 14:43:31 +0000 (14:43 +0000)]
Update Hyper-V structure definitions to the 2016 version

Microsoft has performed a significant clean up and stylistic improvement
of Hyper-V structure definitions and updated FreeBSD port.  We update to
stay in sync with the upstream and improve maintainability of this code
in the future.

8 years agoAdd HISTORY.
schwarze [Tue, 16 Aug 2016 13:11:06 +0000 (13:11 +0000)]
Add HISTORY.
From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Verified using NetBSD CVS.

8 years agoRemove RM7000/RM9000-specific performance counter code. It originates
visa [Tue, 16 Aug 2016 13:03:58 +0000 (13:03 +0000)]
Remove RM7000/RM9000-specific performance counter code. It originates
from PMON2000 and has not been enabled on OpenBSD.

Suggested by and ok miod@ (after seeing a quad_t cleanup patch of mine)

8 years agoXr encrypt(1) here as well to be consistent with useradd(8).
tb [Tue, 16 Aug 2016 11:33:07 +0000 (11:33 +0000)]
Xr encrypt(1) here as well to be consistent with useradd(8).

ok jmc

8 years agoFix typo/inconsistensy where L1_S_DOMAIN was used instead of L1_C_DOMAIN.
kettenis [Tue, 16 Aug 2016 10:16:33 +0000 (10:16 +0000)]
Fix typo/inconsistensy where L1_S_DOMAIN was used instead of L1_C_DOMAIN.
These are functionally equivolent so it didn't matter and the resulting
code doesn't change.