openbsd
9 years agogcc does not understand that the loop conditionally sets bsod before
deraadt [Mon, 19 Jan 2015 02:44:53 +0000 (02:44 +0000)]
gcc does not understand that the loop conditionally sets bsod before
using it, so it warns...  Copy the warning silencing code from the
same function in ../ld.so

9 years agolike in ps(1), fetch the FSCALE value using sysctl rather than using
deraadt [Mon, 19 Jan 2015 01:53:18 +0000 (01:53 +0000)]
like in ps(1), fetch the FSCALE value using sysctl rather than using
the header version
ok guenther

9 years agomove to <limits.h> universe
deraadt [Mon, 19 Jan 2015 01:48:57 +0000 (01:48 +0000)]
move to <limits.h> universe
ok yasuoka

9 years agoCMASK went out of scope with the recent <sys/param.h> removal. But oh
deraadt [Mon, 19 Jan 2015 01:24:39 +0000 (01:24 +0000)]
CMASK went out of scope with the recent <sys/param.h> removal.  But oh
golly gee, ftpd can handle that itself due to the glorious old practice
of #ifndef #define.  Remove that junk.
ok guenther

9 years agounneccessary cmask variable; ok guenther
deraadt [Mon, 19 Jan 2015 01:19:17 +0000 (01:19 +0000)]
unneccessary cmask variable; ok guenther

9 years agoIf UID_MAX is not defined, this should fail to compile.
deraadt [Mon, 19 Jan 2015 01:05:32 +0000 (01:05 +0000)]
If UID_MAX is not defined, this should fail to compile.
ok guenther

9 years agonormalize formatting
deraadt [Mon, 19 Jan 2015 00:47:01 +0000 (00:47 +0000)]
normalize formatting

9 years agocleanup sys/param.h comment
deraadt [Mon, 19 Jan 2015 00:41:44 +0000 (00:41 +0000)]
cleanup sys/param.h comment

9 years agodjm, your /usr/include tree is old
deraadt [Mon, 19 Jan 2015 00:32:54 +0000 (00:32 +0000)]
djm, your /usr/include tree is old

9 years agoThe kernel doesn't actually care what a sockaddr's sa_len is on input,
guenther [Mon, 19 Jan 2015 00:22:30 +0000 (00:22 +0000)]
The kernel doesn't actually care what a sockaddr's sa_len is on input,
so don't waste code setting it

9 years agoregression test for known_host file editing using
djm [Sun, 18 Jan 2015 22:00:18 +0000 (22:00 +0000)]
regression test for known_host file editing using
ssh-keygen (-H / -R / -F) after hostkeys_foreach() change;
feedback and ok markus@

9 years agosome feedback from markus@: comment hostkeys_foreach()
djm [Sun, 18 Jan 2015 21:51:19 +0000 (21:51 +0000)]
some feedback from markus@: comment hostkeys_foreach()
context and avoid a member in it.

9 years agomake ssh-keygen use hostkeys_foreach(). Removes some
djm [Sun, 18 Jan 2015 21:49:42 +0000 (21:49 +0000)]
make ssh-keygen use hostkeys_foreach(). Removes some
horrendous code; ok markus@

9 years agoconvert load_hostkeys() (hostkey ordering and known_host
djm [Sun, 18 Jan 2015 21:48:09 +0000 (21:48 +0000)]
convert load_hostkeys() (hostkey ordering and known_host
matching) to use the new hostkey_foreach() iterator;
ok markus

9 years agoBack out previous. HOST_NAME_MAX is only defined for newer POSIX
millert [Sun, 18 Jan 2015 21:47:16 +0000 (21:47 +0000)]
Back out previous.  HOST_NAME_MAX is only defined for newer POSIX
revisions so it is not safe to define MAXHOSTNAMELEN in terms of it.

9 years agointroduce hostkeys_foreach() to allow iteration over a
djm [Sun, 18 Jan 2015 21:40:23 +0000 (21:40 +0000)]
introduce hostkeys_foreach() to allow iteration over a
known_hosts file or controlled subset thereof. This will
allow us to pull out some ugly and duplicated code, and
will be used to implement hostkey rotation later.

feedback and ok markus

9 years agoForward declare 'struct file' so that libkvm and others that indirectly pull
guenther [Sun, 18 Jan 2015 20:35:44 +0000 (20:35 +0000)]
Forward declare 'struct file' so that libkvm and others that indirectly pull
in sys/uio.h with _KERNEL defined don't warn.

ok deraadt@

9 years agoDo not trust the content of event TRBs coming from the hardware and
mpi [Sun, 18 Jan 2015 20:35:11 +0000 (20:35 +0000)]
Do not trust the content of event TRBs coming from the hardware and
maintain a list of possibly submitted commands.

9 years agoStop including <sys/param.h> from <netdb.h>. Portable software must either
deraadt [Sun, 18 Jan 2015 20:29:31 +0000 (20:29 +0000)]
Stop including <sys/param.h> from <netdb.h>.  Portable software must either
include <sys/param.h> (to operate in legacy mode) or if it wishes to operate
in the POSIX world use <limits.h>
ok guenther millert doug naddy

9 years agoEliminate a gcc warnings by not #defining _KERNEL when pulling in
guenther [Sun, 18 Jan 2015 20:05:20 +0000 (20:05 +0000)]
Eliminate a gcc warnings by not #defining _KERNEL when pulling in
<sys/socket.h>: it doesn't expose anything kdump cares about.
Also, COMPAT_43 is dead

warning noted by deraadt@

9 years agomore and better key tests
djm [Sun, 18 Jan 2015 19:54:46 +0000 (19:54 +0000)]
more and better key tests

test signatures and verification
test certificate generation
flesh out nested cert test

removes most of the XXX todo markers

9 years agomake the signature fuzzing test much more rigorous:
djm [Sun, 18 Jan 2015 19:53:58 +0000 (19:53 +0000)]
make the signature fuzzing test much more rigorous:
ensure that the fuzzed input cases do not match the
original (using new fuzz_matches_original() function)
and check that the verification fails in each case

9 years agoadd a fuzz_matches_original() function to the fuzzer to
djm [Sun, 18 Jan 2015 19:52:44 +0000 (19:52 +0000)]
add a fuzz_matches_original() function to the fuzzer to
detect fuzz cases that are identical to the original data.
Hacky implementation, but very useful when you need the
fuzz to be different, e.g. when verifying signature

9 years agobetter dumps from the fuzzer (shown on errors) - include the
djm [Sun, 18 Jan 2015 19:50:55 +0000 (19:50 +0000)]
better dumps from the fuzzer (shown on errors) - include the
original data as well as the fuzzed copy.

9 years agodidn't mean to commit these changes
djm [Sun, 18 Jan 2015 19:50:15 +0000 (19:50 +0000)]
didn't mean to commit these changes

9 years agoenable hostkey-agent.sh test
djm [Sun, 18 Jan 2015 19:47:55 +0000 (19:47 +0000)]
enable hostkey-agent.sh test

9 years agoImplement sending syslog messages over TLS.
bluhm [Sun, 18 Jan 2015 19:37:59 +0000 (19:37 +0000)]
Implement sending syslog messages over TLS.
OK reyk@

9 years agotweak previous
florian [Sun, 18 Jan 2015 18:39:46 +0000 (18:39 +0000)]
tweak previous
with help from jmc@

9 years agoThis size check was obviously commented out because of the incorrect
mpi [Sun, 18 Jan 2015 17:18:08 +0000 (17:18 +0000)]
This size check was obviously commented out because of the incorrect
size computed for reports with reportID.

Tested by Benjamin Baier.

9 years agoDo not calculated the length of a report with an extra byte for the
mpi [Sun, 18 Jan 2015 17:16:06 +0000 (17:16 +0000)]
Do not calculated the length of a report with an extra byte for the
reportID because the kernel skips it.

Problem reported and fix tested by Benjamin Baier.

9 years agoWhen restoring spsr values when handling traps use spsr_fsxc instead
jsg [Sun, 18 Jan 2015 16:26:39 +0000 (16:26 +0000)]
When restoring spsr values when handling traps use spsr_fsxc instead
of spsr_all so all the bits are restored.  Using the msr instruction
with spsr_all is treated the same as spsr_fc and does not include the
status and extension fields (bits 23:8).

This fixes the problem of some i.MX6 machines powering up with the
big endian bit set in the extension field causing them to crash
on returning from the first interrupt.

From NetBSD.

9 years agoSwitch some uses of msr that only deal with interrupts/mode to use
jsg [Sun, 18 Jan 2015 14:55:02 +0000 (14:55 +0000)]
Switch some uses of msr that only deal with interrupts/mode to use
just the control field ('c' bits 7:0) instead of 'all' which includes
the flags field ('f' bits 31:24) which isn't modified.

9 years agoDo not even try to dereference a NULL pointer.
mpi [Sun, 18 Jan 2015 14:51:43 +0000 (14:51 +0000)]
Do not even try to dereference a NULL pointer.

Found the hard way by Peter N. M. Hansteen.

ok claudio@, phessler@

9 years agoComplete synchronous abort method modeled after the existing ones.
mpi [Sun, 18 Jan 2015 14:49:04 +0000 (14:49 +0000)]
Complete synchronous abort method modeled after the existing ones.

Because our USB stack wants the aborted xfer to be removed from the
pipe during abort(), we have to sleep in the abort function.

Regarding the xHCI process, when a TD is being aborted, we simply stop
the endpoint and then move the dequeue pointer past its last TRB.  This
is fairly simple for the moment since only one xfer can be pending on a
given pipe.

9 years agoDo not try to free xfers before aborting the pipes, otherwise a clown
mpi [Sun, 18 Jan 2015 14:40:05 +0000 (14:40 +0000)]
Do not try to free xfers before aborting the pipes, otherwise a clown
might eat you.

9 years agosync
deraadt [Sun, 18 Jan 2015 14:21:53 +0000 (14:21 +0000)]
sync

9 years agoAdd commented-out necsb(4) and audio(4) configuration to GENERIC.
aoyama [Sun, 18 Jan 2015 14:13:18 +0000 (14:13 +0000)]
Add commented-out necsb(4) and audio(4) configuration to GENERIC.

9 years agoRevert 1.166 (but keep the bufq_wait() interface change), for this is wrong
miod [Sun, 18 Jan 2015 14:01:54 +0000 (14:01 +0000)]
Revert 1.166 (but keep the bufq_wait() interface change), for this is wrong
and the bufq pointer might be NULL at the time it is `saved'.

Found the hard way on sparc due to the limited kva, with all disk active
processes ending up sleeping on "buf_needva".

ok kettenis@ krw@

9 years agoFirst stab at implementing basic auth.
florian [Sun, 18 Jan 2015 14:01:17 +0000 (14:01 +0000)]
First stab at implementing basic auth.
Currently the htpasswd file needs to be in the chroot; will hopefully
improved soonish.
Based on a diff from Oscar Linderholm many months ago but turned into
a complete rewrite.
input/OK reyk@

9 years agostring truncation due to sizeof(size)
deraadt [Sun, 18 Jan 2015 14:01:00 +0000 (14:01 +0000)]
string truncation due to sizeof(size)
ok djm markus

9 years agoavoid trailing ',' in host key algorithms
djm [Sun, 18 Jan 2015 13:33:34 +0000 (13:33 +0000)]
avoid trailing ',' in host key algorithms

9 years agoinfer key length correctly when user specified a fully-
djm [Sun, 18 Jan 2015 13:22:28 +0000 (13:22 +0000)]
infer key length correctly when user specified a fully-
qualified key name instead of using the -b bits option;
ok markus@

9 years agoThe 'mrs' instruction only deals with the whole register without
jsg [Sun, 18 Jan 2015 12:03:11 +0000 (12:03 +0000)]
The 'mrs' instruction only deals with the whole register without
masking.  Remove the use of cpsr_all/spsr_all with 'mrs' and just use
the register names.  This matches the arm docs and avoids confusion as
cpsr_all/spsr_all don't include bits 23->8 when used with the 'msr'
instruction but do with 'mrs'.

9 years agoSince we are no longer resetting rings when a Babble or Stall condition
mpi [Sun, 18 Jan 2015 11:54:02 +0000 (11:54 +0000)]
Since we are no longer resetting rings when a Babble or Stall condition
is detected, simply keep track of the faulty xfer instead of completing
all the pending ones.

Fix a race condition where we could end up aborting a freshly enqueued
xfer when two different threads are submitting control transfers (i.e.
usbdevs(8) and a kernel driver).

9 years agoDrop backward compat syntax.
ajacoutot [Sun, 18 Jan 2015 10:29:53 +0000 (10:29 +0000)]
Drop backward compat syntax.

9 years agounifdef IPKDB. These codepaths are holdouts from NetBSD code and are
jsg [Sun, 18 Jan 2015 10:17:41 +0000 (10:17 +0000)]
unifdef IPKDB.  These codepaths are holdouts from NetBSD code and are
not used.

9 years agoThe world is ELF: use <sys/exec_elf.h> instead of <a.out.h> or <sys/exec.h>
guenther [Sun, 18 Jan 2015 05:30:58 +0000 (05:30 +0000)]
The world is ELF: use <sys/exec_elf.h> instead of <a.out.h> or <sys/exec.h>
Use a better test for an input being ELF: struct exec is dead and there are
defines for the ELF magic.  Reorder #includes and do some whitespace cleanup.
Oh, and don't lead the fd if an input file isn't ELF.

ok deraadt@

9 years agoPer POSIX, <sys/socket.h> needs to expose struct iovec, and may do so
guenther [Sun, 18 Jan 2015 04:52:03 +0000 (04:52 +0000)]
Per POSIX, <sys/socket.h> needs to expose struct iovec, and may do so
by pulling in <sys/uio.h>, so do so.  Remove some stuff that we can trust
<sys/uio.h> to also provide, like cdefs.h, _types.h, and exposing size_t
and ssize_t

pointed out by naddy@
ok deraadt@

9 years agodo not require <a.out.h>
deraadt [Sun, 18 Jan 2015 04:48:24 +0000 (04:48 +0000)]
do not require <a.out.h>

9 years agosync
deraadt [Sun, 18 Jan 2015 03:46:24 +0000 (03:46 +0000)]
sync

9 years agoremove des.h. it somehow escaped from ssleay into /usr/include, but none
tedu [Sat, 17 Jan 2015 20:37:04 +0000 (20:37 +0000)]
remove des.h. it somehow escaped from ssleay into /usr/include, but none
of the functions prototyped here exist in libc, making it useless.

9 years agounit test for hostkeys in ssh-agent
djm [Sat, 17 Jan 2015 18:54:30 +0000 (18:54 +0000)]
unit test for hostkeys in ssh-agent

9 years agofix hostkeys on ssh agent; found by unit test I'm about to commit
djm [Sat, 17 Jan 2015 18:53:34 +0000 (18:53 +0000)]
fix hostkeys on ssh agent; found by unit test I'm about to commit

9 years agoSplit the consumer & producer logic into two different functions in
mpi [Sat, 17 Jan 2015 18:37:12 +0000 (18:37 +0000)]
Split the consumer & producer logic into two different functions in
order to read last TRB of the event ring.

Fix a bug introduced in r1.1.

9 years agoImprove wording in alloca.
tedu [Sat, 17 Jan 2015 18:01:43 +0000 (18:01 +0000)]
Improve wording in alloca.
1. it's not a bug; it's a caveat.
2. "slightly unsafe" gives me the willies.
3. one .Xr to malloc should suffice
ok deraadt jmc

9 years agouse NGROUPS_MAX
deraadt [Sat, 17 Jan 2015 17:49:26 +0000 (17:49 +0000)]
use NGROUPS_MAX

9 years agoguard usingacpi variable inside NACPI. from oyvind jaegtnes
tedu [Sat, 17 Jan 2015 17:44:15 +0000 (17:44 +0000)]
guard usingacpi variable inside NACPI. from oyvind jaegtnes

9 years agouse NGROUPS_MAX instead of NGROUPS
deraadt [Sat, 17 Jan 2015 17:22:07 +0000 (17:22 +0000)]
use NGROUPS_MAX instead of NGROUPS

9 years agoNGROUPS_MAX, not NGROUPS
deraadt [Sat, 17 Jan 2015 17:17:10 +0000 (17:17 +0000)]
NGROUPS_MAX, not NGROUPS

9 years agoDefine MAXHOSTNAMELEN as HOST_NAME_MAX+1. OK deraadt@
millert [Sat, 17 Jan 2015 15:03:09 +0000 (15:03 +0000)]
Define MAXHOSTNAMELEN as HOST_NAME_MAX+1.  OK deraadt@

9 years agoRemove unnecessary double-quotes inside [[]].
rpe [Sat, 17 Jan 2015 14:36:58 +0000 (14:36 +0000)]
Remove unnecessary double-quotes inside [[]].

OK krw@

9 years agoRemove a pasto introduced in the last commit, spotted by schwarze@
millert [Sat, 17 Jan 2015 13:37:59 +0000 (13:37 +0000)]
Remove a pasto introduced in the last commit, spotted by schwarze@

9 years agomake sure we have an interactivestub... I forgot the -I part from the old
espie [Sat, 17 Jan 2015 13:20:04 +0000 (13:20 +0000)]
make sure we have an interactivestub... I forgot the -I part from the old
script.

9 years agoUppercase global vars (auto -> AUTO, respfile -> RESPFILE)
rpe [Sat, 17 Jan 2015 10:09:06 +0000 (10:09 +0000)]
Uppercase global vars (auto -> AUTO, respfile -> RESPFILE)

OK krw@ deraadt@

9 years agoDelete an extra tab.
aoyama [Sat, 17 Jan 2015 08:26:10 +0000 (08:26 +0000)]
Delete an extra tab.

9 years agoAdd an ascii bit/field diagram for armv7-a psr to match the
jsg [Sat, 17 Jan 2015 08:00:41 +0000 (08:00 +0000)]
Add an ascii bit/field diagram for armv7-a psr to match the
existing one for earlier arm revisions.

9 years agodocument the <sys/param.h>
deraadt [Sat, 17 Jan 2015 07:37:14 +0000 (07:37 +0000)]
document the <sys/param.h>

9 years ago_KERNEL 1? no, just _KERNEL
deraadt [Sat, 17 Jan 2015 07:09:50 +0000 (07:09 +0000)]
_KERNEL 1?  no, just _KERNEL

9 years agoeliminate strcpy & strcat, by using strlcpy, strlcat or snprintf where
deraadt [Sat, 17 Jan 2015 05:31:29 +0000 (05:31 +0000)]
eliminate strcpy & strcat, by using strlcpy, strlcat or snprintf where
suitable.
ok jsg

9 years agoresume_randomness() before spinning up other cpus...
deraadt [Sat, 17 Jan 2015 04:18:49 +0000 (04:18 +0000)]
resume_randomness() before spinning up other cpus...

9 years agosync
deraadt [Sat, 17 Jan 2015 02:58:28 +0000 (02:58 +0000)]
sync

9 years agoMore complete gpio reset sequences for SABRE Lite/Nitrogen6X.
jsg [Sat, 17 Jan 2015 02:57:16 +0000 (02:57 +0000)]
More complete gpio reset sequences for SABRE Lite/Nitrogen6X.
From Patrick Wildt in Bitrig.

9 years agoDocument behavior of killing process 0, matching the text in kill(2).
millert [Fri, 16 Jan 2015 21:31:27 +0000 (21:31 +0000)]
Document behavior of killing process 0, matching the text in kill(2).
From Theo Buehler

9 years agoincrease namecache to maxvnodes again now that the n^2 loop is no more.
tedu [Fri, 16 Jan 2015 21:16:14 +0000 (21:16 +0000)]
increase namecache to maxvnodes again now that the n^2 loop is no more.
battle tested by krw

9 years agoLet man(1) show manuals for the current architecture by default,
schwarze [Fri, 16 Jan 2015 21:12:01 +0000 (21:12 +0000)]
Let man(1) show manuals for the current architecture by default,
and support the MACHINE environment variable as documented in man(1).
Missing feature reported by pascal@.

9 years agoConstify the driver name to disk type table, and remove rz and ccd from that
miod [Fri, 16 Jan 2015 20:21:40 +0000 (20:21 +0000)]
Constify the driver name to disk type table, and remove rz and ccd from that
list.
ok krw@ millert@

9 years agoRevert forcing a rachitic `c' slice size when the drive geometry is not known,
miod [Fri, 16 Jan 2015 20:18:24 +0000 (20:18 +0000)]
Revert forcing a rachitic `c' slice size when the drive geometry is not known,
now that the disklabel code will reduce MAXDISKSIZE to the real size if a Sun
label is found.

9 years agoDon't bother to initialize %g1; we don't do this on sparc either.
kettenis [Fri, 16 Jan 2015 20:17:07 +0000 (20:17 +0000)]
Don't bother to initialize %g1; we don't do this on sparc either.

ok miod@

9 years agodisklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it is
miod [Fri, 16 Jan 2015 20:17:05 +0000 (20:17 +0000)]
disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it is
usually invoked after initdisklabel() which proactively changes a zero disk
size to MAXDISKSIZE, causing this test to fail.

Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD
disks have a proper `c' slice size.

luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability,
even though luna88k can't - to the best of my knowledge - sport SMD disk
controllers.

ok deraadt@ krw@

9 years agoUse ">", not ">=" when comparing length to HOST_NAME_MAX since
millert [Fri, 16 Jan 2015 18:20:14 +0000 (18:20 +0000)]
Use ">", not ">=" when comparing length to HOST_NAME_MAX since
otherwise we end up needlessly replacing a NUL with a NUL.
OK deraadt@

9 years agoReplace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@
millert [Fri, 16 Jan 2015 18:18:58 +0000 (18:18 +0000)]
Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX.  OK deraad@

9 years agoReplace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".
millert [Fri, 16 Jan 2015 18:10:31 +0000 (18:10 +0000)]
Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".
OK deraadt@

9 years agoAdd missing <limits.h> to file.c and remove definition of PATH_MAX
millert [Fri, 16 Jan 2015 18:08:15 +0000 (18:08 +0000)]
Add missing <limits.h> to file.c and remove definition of PATH_MAX
which masked the missing include.  OK deraadt@

9 years agoproperly handle opening parentheses, correctly quote vertical bars,
schwarze [Fri, 16 Jan 2015 17:20:24 +0000 (17:20 +0000)]
properly handle opening parentheses, correctly quote vertical bars,
and do not use the legacy predefined string \*(Ba

9 years agoAdd test that exchanges database description packets with ospfd.
bluhm [Fri, 16 Jan 2015 17:06:43 +0000 (17:06 +0000)]
Add test that exchanges database description packets with ospfd.
From Florian Riehm.

9 years agoincreasing the size of the namecache suddenly made the comment
tedu [Fri, 16 Jan 2015 17:05:49 +0000 (17:05 +0000)]
increasing the size of the namecache suddenly made the comment
"This makes the algorithm O(n^2), but do you think I care?"
a lot more meaningful, as discovered by krw.
fix the loop so it doesn't restart all the time, as it's not necessary.
(this was also tried years ago in rev 1.20 and reverted, but that change
also introduced pool_put before the namecache was ready to free things. we
have been freeing cache entries with pool_put for some time now, so that's
been made safe.)
ok deraadt krw

9 years agoParse and ignore .IX (generate index entry) macros because pod2man(1)
schwarze [Fri, 16 Jan 2015 16:52:39 +0000 (16:52 +0000)]
Parse and ignore .IX (generate index entry) macros because pod2man(1)
emits them, by default without defining them, relying on the roff(7)
quirk that undefined macros have no effect.
This cures 1996 mandoc ERRORs in src/gnu.

9 years agoMove to the <limits.h> universe.
deraadt [Fri, 16 Jan 2015 16:48:51 +0000 (16:48 +0000)]
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther

9 years agoMore evil bootstrap code. #ifndef ALIGNBYTES #define ALIGNBYTES 3.
deraadt [Fri, 16 Jan 2015 16:25:50 +0000 (16:25 +0000)]
More evil bootstrap code.  #ifndef ALIGNBYTES  #define ALIGNBYTES 3.
Which makes this code go all wrong depending on where a system has put
their things like ALIGNBYTES.
Delete with prejudice.  When someone needs to compile this in another
environment, they need to face this hurdle, and maybe change the
embedded memory allocator...

9 years agogarbage collect empty .No macros mandoc warns about
schwarze [Fri, 16 Jan 2015 16:20:23 +0000 (16:20 +0000)]
garbage collect empty .No macros mandoc warns about

9 years ago<sys/param.h> to <limits.h> conversion. Verified binaries
deraadt [Fri, 16 Jan 2015 16:18:07 +0000 (16:18 +0000)]
<sys/param.h> to <limits.h> conversion.  Verified binaries
ok millert, thanks to doug for process advice

9 years agoadd missing .An macros
schwarze [Fri, 16 Jan 2015 16:16:36 +0000 (16:16 +0000)]
add missing .An macros

9 years agochange to <limits.h> universe. The only changes in the binary are due
deraadt [Fri, 16 Jan 2015 16:04:38 +0000 (16:04 +0000)]
change to <limits.h> universe.  The only changes in the binary are due
to the heavy use of assert.
ok millert

9 years agomanage spacing in a simpler way, removing some useless macros mandoc warns about
schwarze [Fri, 16 Jan 2015 16:01:46 +0000 (16:01 +0000)]
manage spacing in a simpler way, removing some useless macros mandoc warns about

9 years agomove to <limits.h> where possible, annotate <sys/param.h> otherwise
deraadt [Fri, 16 Jan 2015 15:57:06 +0000 (15:57 +0000)]
move to <limits.h> where possible, annotate <sys/param.h> otherwise

9 years agoregression: incorrect error message on otherwise-successful
djm [Fri, 16 Jan 2015 15:55:07 +0000 (15:55 +0000)]
regression: incorrect error message on otherwise-successful
ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@

9 years agofix placement of opening parentheses, and drop some .Xo while here
schwarze [Fri, 16 Jan 2015 15:53:24 +0000 (15:53 +0000)]
fix placement of opening parentheses, and drop some .Xo while here

9 years agoMove from <sys/param.h>. (The binary change is due to a line number
deraadt [Fri, 16 Jan 2015 15:40:16 +0000 (15:40 +0000)]
Move from <sys/param.h>.  (The binary change is due to a line number
passed to assert, found by doug)
ok millert

9 years agoArguments are just ".Ar", not ".Brq Ar" or even ".Ns { Ns Ar ... Ns }".
schwarze [Fri, 16 Jan 2015 15:37:20 +0000 (15:37 +0000)]
Arguments are just ".Ar", not ".Brq Ar" or even ".Ns { Ns Ar ... Ns }".
The .Ar macro already causes distinctive formatting in a standard way,
so there is no need for additional braces.
This also fixes the only mandoc warning in src/sbin.

9 years agoswitch to <limits.h>; ok millert
deraadt [Fri, 16 Jan 2015 15:36:29 +0000 (15:36 +0000)]
switch to <limits.h>; ok millert