openbsd
7 years agosync
deraadt [Tue, 13 Jun 2017 17:10:00 +0000 (17:10 +0000)]
sync

7 years agoFor KARL, include a linkkit into the base set, as usr/share/compile.tgz.
deraadt [Tue, 13 Jun 2017 17:09:52 +0000 (17:09 +0000)]
For KARL, include a linkkit into the base set, as usr/share/compile.tgz.
This contains the relevant pieces from all the GENERIC* compile directories
(*.o ld.script Makefile gap.S).  It also includes the machine/ subdir for
now, to support re-randomizing of gap.S, though other methods are being
investigated.  (Any binutils ld.script hackers out there?)
collaboration with rpe

7 years agonewbsd: target which re-links a kernel. We cannot use the bsd: target
deraadt [Tue, 13 Jun 2017 16:40:00 +0000 (16:40 +0000)]
newbsd: target which re-links a kernel.  We cannot use the bsd: target
since it has source dependencies, and relinking doesn't have any.  Also
the bsd: target is created by config(8)...
worked on with rpe.

7 years agoThe KARL compile.tgz linkkit adds some growth to the base set.
deraadt [Tue, 13 Jun 2017 16:28:04 +0000 (16:28 +0000)]
The KARL compile.tgz linkkit adds some growth to the base set.
Prepare the install*.fs files for this growth.

7 years agoIf the layout is empty except for requesting a left vertical frame,
schwarze [Tue, 13 Jun 2017 16:11:58 +0000 (16:11 +0000)]
If the layout is empty except for requesting a left vertical frame,
record that detail in struct tbl_opts, such that term_tbl() can do
correct column calculations and doesn't prematurely break lines.
Fixes the tbl/layout/empty regression test that got broken when
line breaking in text block cells was implemented.

7 years agoKill unused #define IFI_NOMEDIA.
krw [Tue, 13 Jun 2017 16:02:46 +0000 (16:02 +0000)]
Kill unused #define IFI_NOMEDIA.

7 years agoRename 'packet' field to 'recv_packet' and 'bootrequest_packet'
krw [Tue, 13 Jun 2017 15:49:32 +0000 (15:49 +0000)]
Rename 'packet' field to 'recv_packet' and 'bootrequest_packet'
field to 'sent_packet'. Also 'bootrequest_packet_length' to
'sent_packet_length'.

Adopt consistent idiom of a local variable 'packet' to point at
packet being manipulated.

No intentional functional change.

7 years agoneeds a fake ld.script for KARL tooling
deraadt [Tue, 13 Jun 2017 15:37:30 +0000 (15:37 +0000)]
needs a fake ld.script for KARL tooling

7 years agoDelete the arbitrary range restriction for -Owidth.
schwarze [Tue, 13 Jun 2017 15:05:22 +0000 (15:05 +0000)]
Delete the arbitrary range restriction for -Owidth.
We provide users with tools.  We don't attempt to prevent them from
using them in stupid ways: depending on the context, not every
stupid-looking use is necessarily actually stupid, and not every
stupidity can be automatically detected anyway, so don't even try.

7 years agofix the interaction of the allbox option with spanned cells in the layout
schwarze [Tue, 13 Jun 2017 14:38:38 +0000 (14:38 +0000)]
fix the interaction of the allbox option with spanned cells in the layout

7 years agoDo not invalidate remote TLB entries with new mappings because the
visa [Tue, 13 Jun 2017 14:06:39 +0000 (14:06 +0000)]
Do not invalidate remote TLB entries with new mappings because the
virtual addresses really should not have TLB hits. This reduces IPIs.

7 years agoExplicitly ignore .br, .ce, and .sp inside tbl(7) text blocks.
schwarze [Tue, 13 Jun 2017 13:50:17 +0000 (13:50 +0000)]
Explicitly ignore .br, .ce, and .sp inside tbl(7) text blocks.
With the current code structure, they would appear at the wrong
place in the syntax tree, so it is better to not insert them
into the tree at all and issue an UNSUPP message instead.

7 years agoTweak order of operands to check constant `cache_valias_mask' first.
visa [Tue, 13 Jun 2017 13:41:15 +0000 (13:41 +0000)]
Tweak order of operands to check constant `cache_valias_mask' first.

7 years agoDo not require that unknown EXT_INFO extension values not contain
djm [Tue, 13 Jun 2017 12:13:59 +0000 (12:13 +0000)]
Do not require that unknown EXT_INFO extension values not contain
\0 characters. This would cause fatal connection errors if an
implementation sent e.g. string-encoded sub-values inside a value.

Reported by Denis Bider; ok markus@

7 years agowhen enabling cpu caches, check the item size against the right thing
dlg [Tue, 13 Jun 2017 11:41:11 +0000 (11:41 +0000)]
when enabling cpu caches, check the item size against the right thing

lists of free items on the per cpu caches are built out the pool items
as struct pool_cache_items, not struct pool_cache. make the KASSERT
in pool_cache_init check that properly.

7 years agomissing prototype.
djm [Tue, 13 Jun 2017 11:22:15 +0000 (11:22 +0000)]
missing prototype.

7 years agoIncrease WSFONT_NAME_SIZE size, this will allow storing longer font
fcambus [Tue, 13 Jun 2017 08:00:24 +0000 (08:00 +0000)]
Increase WSFONT_NAME_SIZE size, this will allow storing longer font
names in wsdisplay_font structures.

OK deraadt@

7 years agoRemove xterm flag from key before checking prefix, reported by Peter
nicm [Tue, 13 Jun 2017 07:12:33 +0000 (07:12 +0000)]
Remove xterm flag from key before checking prefix, reported by Peter
Fern in GitHub issue 974.

7 years agouse size_t for the size of things in memory, not int.
dlg [Tue, 13 Jun 2017 06:16:31 +0000 (06:16 +0000)]
use size_t for the size of things in memory, not int.

this tweaks the len argument to sysctl_rdstring, sysctl_struct, and
sysctl_rdstruct.

there's probably more to fix.

ok millert@

7 years agoInitialize the length parameter for radius_get_vs_raw_attr() since
yasuoka [Tue, 13 Jun 2017 05:40:22 +0000 (05:40 +0000)]
Initialize the length parameter for radius_get_vs_raw_attr() since
it's read/write.  diff from IIJ.

7 years agoSplit early startup code out of locore.S into locore0.S. Adjust link
deraadt [Tue, 13 Jun 2017 01:44:27 +0000 (01:44 +0000)]
Split early startup code out of locore.S into locore0.S.  Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels.  Internal relative offsets are not known
to an outside attacker.  The only known offsets are in the startup code
(which will be gone when it is smashed).

The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S

7 years agoadd a dummy ld.script. macppc does not use one of these yet, but
deraadt [Tue, 13 Jun 2017 01:42:52 +0000 (01:42 +0000)]
add a dummy ld.script.  macppc does not use one of these yet, but
infrastructure that is coming requires an architecture to carry such a
file.

7 years agoPrepare install_extint() for the vector being relative-negative (ie
deraadt [Tue, 13 Jun 2017 01:42:12 +0000 (01:42 +0000)]
Prepare install_extint() for the vector being relative-negative (ie
lower in the address space).  Previously it could only be higher
than... uhm locore.o
Discussed with drahn and tom

7 years agoFirst step of randomized link for sparc64: gap.S and randomize files.
deraadt [Tue, 13 Jun 2017 00:16:09 +0000 (00:16 +0000)]
First step of randomized link for sparc64:  gap.S and randomize files.
locore isn't split up yet, nor is the startup code smashed.
ok dlg, pieces seen before by kettenis

7 years agopledge(2) bpf has been in use for some time now on tcpdump(8), this will enable
mestre [Mon, 12 Jun 2017 23:37:44 +0000 (23:37 +0000)]
pledge(2) bpf has been in use for some time now on tcpdump(8), this will enable
it also for pflogd(8)'s priv proc.

OK deraadt@

7 years agohave the timeout call if qstart via the serialiser isntead of directly
dlg [Mon, 12 Jun 2017 23:20:10 +0000 (23:20 +0000)]
have the timeout call if qstart via the serialiser isntead of directly

hfsc schedules a timeout to keep traffic moving if somethings has been
delayed an no other tx activity has occurred. that timeout was calling
(*ifp->if_qstart)(ifq) rather than ifq_start. the latter prevents
concurrent calls to if_qstart.

without this change bjorn ketelaars on misc@ was experiencing weird
pauses in traffic and lockups because the tx ring was corrupted
because re_start was run concurrently, once from the stack and once
from hfsc.

thanks to bjorn ketelaars for debugging, and mikeb@ for most of the
legwork in diagnosing the problem.
ok mikeb@

7 years agotest the new allbox and wrapping features
schwarze [Mon, 12 Jun 2017 22:50:02 +0000 (22:50 +0000)]
test the new allbox and wrapping features

7 years agoTwo minor fixes for the "allbox" modifier:
schwarze [Mon, 12 Jun 2017 22:48:52 +0000 (22:48 +0000)]
Two minor fixes for the "allbox" modifier:
1. It does not reduce explicit "||" in the layout to "|".
2. It does not cause three horizontal lines at the end of a table,
even if the table ends with an explicit "_" data line.

7 years agoIf a tbl(7) layout contains a 'w' (minimum width) modifier for a
schwarze [Mon, 12 Jun 2017 22:05:41 +0000 (22:05 +0000)]
If a tbl(7) layout contains a 'w' (minimum width) modifier for a
given column, that column contains no literal or numeric cell of
larger width, and all text block cells in that column can be line
wrapped to fit into that minimum width, groff does not increase
that column width beyond the specified minimum: so do the same.

7 years agoPledge is fairly done, so the kernel printf's can be converted to log()
deraadt [Mon, 12 Jun 2017 21:55:16 +0000 (21:55 +0000)]
Pledge is fairly done, so the kernel printf's can be converted to log()
calls.  They'll be a little less visible, but still in the system logs.
ok bluhm

7 years ago/usr/games/lib doesn't exist any more, use the new path.
akfaew [Mon, 12 Jun 2017 20:56:20 +0000 (20:56 +0000)]
/usr/games/lib doesn't exist any more, use the new path.

OK tb@ deraadt@

7 years agoimplement the tbl(7) "allbox" option;
schwarze [Mon, 12 Jun 2017 20:44:57 +0000 (20:44 +0000)]
implement the tbl(7) "allbox" option;
used for example by curs_getch(3) and GLwDrawingArea(3)

7 years agofix column width calculation for text block cells
schwarze [Mon, 12 Jun 2017 20:14:03 +0000 (20:14 +0000)]
fix column width calculation for text block cells

7 years agoUse unlinkat() when removing the contents of a directory so we don't
millert [Mon, 12 Jun 2017 18:56:13 +0000 (18:56 +0000)]
Use unlinkat() when removing the contents of a directory so we don't
need to construct paths.  OK deraadt@

7 years agoImplement automatic line breaking
schwarze [Mon, 12 Jun 2017 18:55:42 +0000 (18:55 +0000)]
Implement automatic line breaking
inside individual table cells that contain text blocks.
This cures overlong lines in various Xenocara manuals.

7 years agoredundant, gets BINDIR from ../Makefile.inc
espie [Mon, 12 Jun 2017 18:51:53 +0000 (18:51 +0000)]
redundant, gets BINDIR from ../Makefile.inc

7 years agodestroy lint remnants.
espie [Mon, 12 Jun 2017 18:49:33 +0000 (18:49 +0000)]
destroy lint remnants.
okay millert@ deraadt@

7 years agoUse openat() and unlinkat() instead of chdir()ing to the recovery dir.
millert [Mon, 12 Jun 2017 18:38:57 +0000 (18:38 +0000)]
Use openat() and unlinkat() instead of chdir()ing to the recovery dir.
Since we use flock() and not fcntl() locking we can open the recovery
file read-only.  OK martijn@

7 years agoAdd dprintf() and vdprintf() RETURN VALUES. OK deraadt@
millert [Mon, 12 Jun 2017 18:37:12 +0000 (18:37 +0000)]
Add dprintf() and vdprintf() RETURN VALUES.  OK deraadt@

7 years agoBackout last change to remove esym .data patching because it breaks
mglocker [Mon, 12 Jun 2017 18:26:33 +0000 (18:26 +0000)]
Backout last change to remove esym .data patching because it breaks
boot for e.g. the BBB and the C.H.I.P.; 'panic: initarm: out of memory'.
Better solution to be found as discussed with patrick@.

ok jsg@

7 years agoAdd some tests from kshe48@zoho.com. Currently failing, but will be fixed soon.
otto [Mon, 12 Jun 2017 16:58:31 +0000 (16:58 +0000)]
Add some tests from kshe48@zoho.com. Currently failing, but will be fixed soon.

7 years agoLimit the maximum size of softraid crypto volumes that can be created to
jsing [Mon, 12 Jun 2017 16:39:51 +0000 (16:39 +0000)]
Limit the maximum size of softraid crypto volumes that can be created to
the size that is currently supported (a data area of 16TB, or
2^32 * 32 + 528 blocks including the softraid metadata/boot area), rather
than successfully creating the volume and then failing during resource
allocation (without properly reporting why it failed).

Found the hard way by sharon s. <mymlact at gmx dot com>

7 years agoUpon failure, only return zero from the softraid ioctl handler when there
jsing [Mon, 12 Jun 2017 15:43:25 +0000 (15:43 +0000)]
Upon failure, only return zero from the softraid ioctl handler when there
is at least one bio status message. It is a much nicer user experience when
we properly report failures, however in the case that we fail to do this,
getting an errno back from the ioctl is somewhat better than simply
printing "unknown error" from bioctl(8).

7 years agoFix another long standing softraid crypto bug where if all 32 keys are in
jsing [Mon, 12 Jun 2017 15:15:08 +0000 (15:15 +0000)]
Fix another long standing softraid crypto bug where if all 32 keys are in
use, when freeing crypto sessions we run straight off the end of the array
and start blatting memory - clearly no one has a softraid crypto volume
that exceeds 15.5TB in size...

7 years agoFactor out and reuse the code that frees the crypto sessions, instead of
jsing [Mon, 12 Jun 2017 15:09:07 +0000 (15:09 +0000)]
Factor out and reuse the code that frees the crypto sessions, instead of
duplicating it.

7 years agoFix a long standing off-by-one bug in the softraid crypto number of keys
jsing [Mon, 12 Jun 2017 14:46:00 +0000 (14:46 +0000)]
Fix a long standing off-by-one bug in the softraid crypto number of keys
calculation - we allow one key per 0.5TB, which should allow up to 16TB
disks, however the disk size was treated like a block offset and shifted.
This meant that the maximum size was actually 16TB minus one block.

While here also calculate the number of keys as an absolute value, rather
than as the upper inclusive bound - adjust the logic in the associated for
and if statements to match.

ok krw@ tb@

7 years agorejname[] is also -r option buffer, and should be PATH_MAX
deraadt [Mon, 12 Jun 2017 14:23:26 +0000 (14:23 +0000)]
rejname[] is also -r option buffer, and should be PATH_MAX
ok millert

7 years agospecify free() size from the old allocation, not new allocation.
deraadt [Mon, 12 Jun 2017 13:45:39 +0000 (13:45 +0000)]
specify free() size from the old allocation, not new allocation.
fix from C Turt

7 years agodevice path should be PATH_MAX. Any NAME_MAX without +1 is suspect
deraadt [Mon, 12 Jun 2017 13:41:24 +0000 (13:41 +0000)]
device path should be PATH_MAX.  Any NAME_MAX without +1 is suspect
to begin with anyways.

7 years agoifq_start does OACTIVE and RUNNING checks for the driver
mikeb [Mon, 12 Jun 2017 12:35:07 +0000 (12:35 +0000)]
ifq_start does OACTIVE and RUNNING checks for the driver

Reminded by dlg@.

7 years agoNeed to flush out the linefeed after wrapper. GitHub issue 970.
nicm [Mon, 12 Jun 2017 10:57:35 +0000 (10:57 +0000)]
Need to flush out the linefeed after wrapper. GitHub issue 970.

7 years agoAdd explicit keys for the bracketed paste sequences, both to avoid mix
nicm [Mon, 12 Jun 2017 07:04:24 +0000 (07:04 +0000)]
Add explicit keys for the bracketed paste sequences, both to avoid mix
ups with other keys and to make logs clearer.

7 years agotypo; from bryan vyhmeister
deraadt [Mon, 12 Jun 2017 04:57:42 +0000 (04:57 +0000)]
typo; from bryan vyhmeister

7 years agoFrom FreeBSD (r227593, r307982):
kevlo [Mon, 12 Jun 2017 03:00:26 +0000 (03:00 +0000)]
From FreeBSD (r227593, r307982):
More and more RealTek controllers started to implement EEE feature.
Vendor driver seems to load a kind of firmware for EEE with
additional PHY fixups.  It is known that the EEE feature may need
ASPM support.  Unfortunately there is no documentation for EEE of
the controller so enabling ASPM may cause more problems.

The Realtek vendor drivers for FreeBSD and Linux also disable ASPM and
clock request.  While here, add a define for the ECPM (Enable Clock Power
Management) bit.

Tested by stsp@ and myself.
ok stsp@

7 years agomake vers.o not depend on gap.o using a trick, because it is piece of
deraadt [Sun, 11 Jun 2017 22:51:21 +0000 (22:51 +0000)]
make vers.o not depend on gap.o using a trick, because it is piece of
fiction participating only in the linkphase.
tricks from rpe and espie

7 years agoUse umask 077 instead of cp -p when installing the kernel as root.
bluhm [Sun, 11 Jun 2017 20:50:32 +0000 (20:50 +0000)]
Use umask 077 instead of cp -p when installing the kernel as root.
Otherwise owner of /bsd could be the build user with permissions
inherited from the compile directory.
OK deraadt@ tb@

7 years agoooops, fix a glitch in the previous commit...
schwarze [Sun, 11 Jun 2017 20:02:48 +0000 (20:02 +0000)]
ooops, fix a glitch in the previous commit...

7 years agoUse a common 'goto bad' style and set mp to NULL after freeing it
bluhm [Sun, 11 Jun 2017 19:59:57 +0000 (19:59 +0000)]
Use a common 'goto bad' style and set mp to NULL after freeing it
in ipip_input_gif().  This prevents a use-after-free if there is a
bug in the IP input functions.
OK mpi@

7 years agochurn caused by the new Mdocdate messages, no easy way to avoid this :(
schwarze [Sun, 11 Jun 2017 19:48:26 +0000 (19:48 +0000)]
churn caused by the new Mdocdate messages, no easy way to avoid this :(

7 years agoFix a test race, wait after kill in case writing the core dump takes
bluhm [Sun, 11 Jun 2017 19:43:16 +0000 (19:43 +0000)]
Fix a test race, wait after kill in case writing the core dump takes
a while.  Adjust wrong comments.  Mention regress- in program name
to make clear where violations seen in process accounting happend.

7 years agoStyle message about legacy man(7) date format in mdoc(7) documents
schwarze [Sun, 11 Jun 2017 19:36:31 +0000 (19:36 +0000)]
Style message about legacy man(7) date format in mdoc(7) documents
and operating system dependent messages about missing or unexpected
Mdocdate; inspired by mdoclint(1).

7 years agorequest -> promises; from scott cheloha
jmc [Sun, 11 Jun 2017 18:56:09 +0000 (18:56 +0000)]
request -> promises; from scott cheloha

7 years agousr/bin/ktrace: replace snprintf(3)/write(2) with dprintf(3)
awolk [Sun, 11 Jun 2017 17:32:19 +0000 (17:32 +0000)]
usr/bin/ktrace: replace snprintf(3)/write(2) with dprintf(3)

Brought to attention by BlackFrog on #openbsd-daily

OK deraadt@

7 years agostyle message about missing .Fn markup; inspired by mdoclint
schwarze [Sun, 11 Jun 2017 17:16:36 +0000 (17:16 +0000)]
style message about missing .Fn markup; inspired by mdoclint

7 years agomissing .Fn macros; found with mandoc -Tlint
schwarze [Sun, 11 Jun 2017 17:06:27 +0000 (17:06 +0000)]
missing .Fn macros; found with mandoc -Tlint

7 years agomissing .Fn markup for main(); found with mandoc -Tlint
schwarze [Sun, 11 Jun 2017 16:58:49 +0000 (16:58 +0000)]
missing .Fn markup for main(); found with mandoc -Tlint

7 years agoAdd missing .Fn markup to in() and out(); found with mandoc -Tlint.
schwarze [Sun, 11 Jun 2017 16:43:18 +0000 (16:43 +0000)]
Add missing .Fn markup to in() and out(); found with mandoc -Tlint.
Delete useless \*(Gt and \*(Lt while here.

7 years agoContinue the flattening of the pledge logic started in r1.184 and place
tb [Sun, 11 Jun 2017 14:38:52 +0000 (14:38 +0000)]
Continue the flattening of the pledge logic started in r1.184 and place
a blank space somewhere else.

suggested by and ok jsing

7 years agoDo not issue the message "no blank before trailing delimiter" for .No.
schwarze [Sun, 11 Jun 2017 14:10:24 +0000 (14:10 +0000)]
Do not issue the message "no blank before trailing delimiter" for .No.
In practice, that message only matters inside .Bf, and even there, it
can occasionally be a false positive.  In all other cases, it usually
is a false positive, so it is better to drop it outright.
Suggested by jmc@.

7 years agomake two macros more semantic
schwarze [Sun, 11 Jun 2017 14:03:46 +0000 (14:03 +0000)]
make two macros more semantic

7 years agoSimple style(9) fixes from Juuso Lapinlampi, mostly whitespace and
tb [Sun, 11 Jun 2017 10:53:07 +0000 (10:53 +0000)]
Simple style(9) fixes from Juuso Lapinlampi, mostly whitespace and
omitting parentheses in return statements. Binary change because of
return instead of exit(3) from main and because help() is now __dead.

ok awolk

7 years agoDefine register_splx_handler() in one place.
visa [Sun, 11 Jun 2017 10:01:23 +0000 (10:01 +0000)]
Define register_splx_handler() in one place.

7 years agoFix TLB size computation on OCTEON II and III. The CPUs have utilized
visa [Sun, 11 Jun 2017 03:35:30 +0000 (03:35 +0000)]
Fix TLB size computation on OCTEON II and III. The CPUs have utilized
the whole TLB space even before this. However, TLB initialization on
boot and TLB flush on ASID wraparound have been incomplete. These have
caused crashes of processes.

7 years agoAdd a memory barrier to ensure that stores become visible
visa [Sun, 11 Jun 2017 03:03:05 +0000 (03:03 +0000)]
Add a memory barrier to ensure that stores become visible
in a proper order.

7 years agointeger overflow for two range checks
deraadt [Sun, 11 Jun 2017 02:06:36 +0000 (02:06 +0000)]
integer overflow for two range checks
fix from C Turt, ok miod

7 years agoIf -P and -c were given, a second pledge call tried to add "rpath" to the
tb [Sat, 10 Jun 2017 18:14:10 +0000 (18:14 +0000)]
If -P and -c were given, a second pledge call tried to add "rpath" to the
first pledge promises, so nc exited with EPERM. To fix this, merge the
pledge of the Pflag && usetls case into the first pledge block. This
allows us to get rid of the second pledge block and thus to simplify the
logic a bit. While there, add a missing blank to an error string.

Joint effort by the #openbsd-daily code reading group, problem found and
initial patch by <rain1 openmailbox org>.

ok awolk

7 years agoNuke unused field bootp_policy and associated enum{}.
krw [Sat, 10 Jun 2017 18:03:50 +0000 (18:03 +0000)]
Nuke unused field bootp_policy and associated enum{}.

7 years agoNuke unused global warnings_occurred.
krw [Sat, 10 Jun 2017 17:56:29 +0000 (17:56 +0000)]
Nuke unused global warnings_occurred.

7 years agoReduce false positives for the "no blank before trailing delimiter" message.
schwarze [Sat, 10 Jun 2017 16:53:58 +0000 (16:53 +0000)]
Reduce false positives for the "no blank before trailing delimiter" message.
This brings us down to one false positive for about every 18 pages.

7 years agominor markup simplifications
schwarze [Sat, 10 Jun 2017 16:32:08 +0000 (16:32 +0000)]
minor markup simplifications

7 years agoimprove semantic markup for __attribute__
schwarze [Sat, 10 Jun 2017 16:00:27 +0000 (16:00 +0000)]
improve semantic markup for __attribute__

7 years agomissing blank before full stop, found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 15:39:43 +0000 (15:39 +0000)]
missing blank before full stop, found with mandoc -Tlint

7 years agoadd missing blanks before several delimiters; found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 14:54:42 +0000 (14:54 +0000)]
add missing blanks before several delimiters; found with mandoc -Tlint

7 years agomissing space before trailing punctuation; found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 14:38:29 +0000 (14:38 +0000)]
missing space before trailing punctuation; found with mandoc -Tlint

7 years agoremove lots of bogus escaping, some of which even broke the output;
schwarze [Sat, 10 Jun 2017 14:31:59 +0000 (14:31 +0000)]
remove lots of bogus escaping, some of which even broke the output;
found with mandoc -Tlint

7 years agofix imprecise .Fa markup; found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 14:15:52 +0000 (14:15 +0000)]
fix imprecise .Fa markup; found with mandoc -Tlint

7 years agoFix broken markup of function pointer invocations; found
schwarze [Sat, 10 Jun 2017 14:07:23 +0000 (14:07 +0000)]
Fix broken markup of function pointer invocations; found
with mandoc -Tlint.  While here, delete .Tn macros.

7 years agofix broken markup of callback arguments; found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 13:58:59 +0000 (13:58 +0000)]
fix broken markup of callback arguments; found with mandoc -Tlint

7 years agoFix broken escaping: "\." is almost never what you want; found with
schwarze [Sat, 10 Jun 2017 13:31:45 +0000 (13:31 +0000)]
Fix broken escaping: "\." is almost never what you want; found with
mandoc -Tlint.  While here, make macro usage more consistent.

7 years agofix a sentence that used unusual terminology, the wrong macro,
schwarze [Sat, 10 Jun 2017 13:24:03 +0000 (13:24 +0000)]
fix a sentence that used unusual terminology, the wrong macro,
and broken delimiter syntax; found with mandoc -Tlint

7 years agorepair broken markup of callback argument; found with mandoc -Tlint
schwarze [Sat, 10 Jun 2017 13:10:52 +0000 (13:10 +0000)]
repair broken markup of callback argument; found with mandoc -Tlint

7 years agoPass M_CANFAIL to malloc(9) calls which use M_WAITOK but are tested
kevlo [Sat, 10 Jun 2017 12:58:37 +0000 (12:58 +0000)]
Pass M_CANFAIL to malloc(9) calls which use M_WAITOK but are tested
for failure.

ok armani@

7 years agoUse software interrupt to process TX/RX data between sio and tty(4)
aoyama [Sat, 10 Jun 2017 12:23:00 +0000 (12:23 +0000)]
Use software interrupt to process TX/RX data between sio and tty(4)
layer.

This is a straightforwad port of current NetBSD/luna68k implementation
by Izumi Tsutsui.  Tested on both LUNA-88K and LUNA-88K2.

7 years agoReport processes that were killed due to pledge or memory access
bluhm [Sat, 10 Jun 2017 11:28:30 +0000 (11:28 +0000)]
Report processes that were killed due to pledge or memory access
violations in the daily mail.
OK millert@ jmc@

7 years agoperl(1)'s ...
espie [Sat, 10 Jun 2017 10:13:10 +0000 (10:13 +0000)]
perl(1)'s ...

7 years agouse mandoc annotations for flags and such
espie [Sat, 10 Jun 2017 10:12:06 +0000 (10:12 +0000)]
use mandoc annotations for flags and such

7 years agoDon't describe AppleTalk's output format and bugs.
akfaew [Sat, 10 Jun 2017 06:52:28 +0000 (06:52 +0000)]
Don't describe AppleTalk's output format and bugs.

OK claudio@
jmc@ doesn't object

7 years agoprint '?' instead of incorrect link count (that the protocol doesn't
djm [Sat, 10 Jun 2017 06:36:46 +0000 (06:36 +0000)]
print '?' instead of incorrect link count (that the protocol doesn't
provide) for remote listings. bz#2710 ok dtucker@

7 years agoimplement sorting for globbed ls; bz#2649 ok dtucker@
djm [Sat, 10 Jun 2017 06:33:34 +0000 (06:33 +0000)]
implement sorting for globbed ls; bz#2649 ok dtucker@

7 years agostyle message about missing blank before trailing delimiter;
schwarze [Sat, 10 Jun 2017 01:48:31 +0000 (01:48 +0000)]
style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful