openbsd
7 years agoErroneous host names in various options should be ignored
krw [Mon, 19 Jun 2017 01:09:09 +0000 (01:09 +0000)]
Erroneous host names in various options should be ignored
and not cause the lease to be declined. Restore inadvertantly
changed behaviour. Tweak logic to also ignore invalid
host names in domain-search.

Reported by Christer Solskogen via misc@

7 years agoMove the timeout information into struct interface_info with
krw [Sun, 18 Jun 2017 21:08:15 +0000 (21:08 +0000)]
Move the timeout information into struct interface_info with
the rest of the dhcp state. One less struct (dhcp_timeout) to
worry about, one less field (ifi) to keep track of.

7 years agoDon't write input if ICANON is enabled. Also, write one byte at a time.
anton [Sun, 18 Jun 2017 17:49:44 +0000 (17:49 +0000)]
Don't write input if ICANON is enabled. Also, write one byte at a time.

7 years agoImplement appending to standard man(7) and mdoc(7) macros with .am.
schwarze [Sun, 18 Jun 2017 17:35:40 +0000 (17:35 +0000)]
Implement appending to standard man(7) and mdoc(7) macros with .am.

With roff_getstrn(), provide finer control which definitions
can be used for what:
* All definitions can be used for .if d tests and .am appending.
* User-defined for \* expansion, .dei expansion, and macro calling.
* Predefined for \* expansion.
* Standard macros, original or renamed, for macro calling.

Several related improvements while here:
* Do not return string table entries that have explicitly been removed.
* Do not create a rentab entry when trying to rename a non-existent macro.
* Clear an existing rentab entry when the external interface
roff_setstr() is called with its name.
* Avoid trailing blanks in macro lines generated from renamed
and from aliased macros.
* Delete the duplicate __m*_reserved[] tables, just use roff_name[].

7 years agoConvert last set_timeout() use to set_timeout_interval() and
krw [Sun, 18 Jun 2017 17:01:46 +0000 (17:01 +0000)]
Convert last set_timeout() use to set_timeout_interval() and
then remove set_timeout() and rename set_timeout_interval() to
set_timeout().

7 years agoDrop (int) casts of (time_t - time_t) calculations that
krw [Sun, 18 Jun 2017 16:37:19 +0000 (16:37 +0000)]
Drop (int) casts of (time_t - time_t) calculations that
are assigned to an int variable.

7 years agoNuke stray and misleading comment.
krw [Sun, 18 Jun 2017 14:54:19 +0000 (14:54 +0000)]
Nuke stray and misleading comment.

7 years agoSplit octeon interrupt code into a glue layer and a CIU driver.
visa [Sun, 18 Jun 2017 13:58:44 +0000 (13:58 +0000)]
Split octeon interrupt code into a glue layer and a CIU driver.
This makes possible to add drivers for other interrupt controllers
on the platform.

The glue layer has been derived from arm64/armv7.

7 years agopms/alps: configure compat mode
bru [Sun, 18 Jun 2017 13:34:03 +0000 (13:34 +0000)]
pms/alps: configure compat mode

7 years agoRemove remnants of old versions.
bru [Sun, 18 Jun 2017 13:21:48 +0000 (13:21 +0000)]
Remove remnants of old versions.

7 years agoMove IPI control entry points into octeon_intr.c.
visa [Sun, 18 Jun 2017 12:48:13 +0000 (12:48 +0000)]
Move IPI control entry points into octeon_intr.c.
Needed by upcoming driver changes.

7 years agoupdate log.c in ifstated to the same used in bgpd etc.
benno [Sun, 18 Jun 2017 12:03:47 +0000 (12:03 +0000)]
update log.c in ifstated to the same used in bgpd etc.
Done by Rob Pierce <rob AT 2keys DOT ca>, thanks

7 years agoMake 'DEBUG' compile again.
krw [Sun, 18 Jun 2017 11:26:14 +0000 (11:26 +0000)]
Make 'DEBUG' compile again.

7 years agoNuke unused pointer to non-existant struct.
krw [Sun, 18 Jun 2017 11:21:39 +0000 (11:21 +0000)]
Nuke unused pointer to non-existant struct.

7 years agoDrop unnecessary call to octeon_setintrmask(). The function gets called
visa [Sun, 18 Jun 2017 11:05:20 +0000 (11:05 +0000)]
Drop unnecessary call to octeon_setintrmask(). The function gets called
by the splx() handler.

7 years agostyle message about duplicate RCS ids; inspired by mdoclint
schwarze [Sat, 17 Jun 2017 23:06:43 +0000 (23:06 +0000)]
style message about duplicate RCS ids; inspired by mdoclint

7 years agochurn related to the new style message about RCS ids
schwarze [Sat, 17 Jun 2017 22:46:24 +0000 (22:46 +0000)]
churn related to the new style message about RCS ids

7 years agostyle message about missing RCS ids; inspired by mdoclint
schwarze [Sat, 17 Jun 2017 22:40:27 +0000 (22:40 +0000)]
style message about missing RCS ids; inspired by mdoclint

7 years agoShuffle dhcp[offer|ack|nak]() functions together for easy reference.
krw [Sat, 17 Jun 2017 20:23:17 +0000 (20:23 +0000)]
Shuffle dhcp[offer|ack|nak]() functions together for easy reference.

7 years agoSince WSFONT_NAME_SIZE was switched from 16 to 32, account for the
fcambus [Sat, 17 Jun 2017 19:27:54 +0000 (19:27 +0000)]
Since WSFONT_NAME_SIZE was switched from 16 to 32, account for the
change in wsfontload as well: tweak spacing and printf format string.

OK deraadt@, mpi@

7 years agoThe fonts we are looping through in vga_selectfont() are the builtin
fcambus [Sat, 17 Jun 2017 19:20:30 +0000 (19:20 +0000)]
The fonts we are looping through in vga_selectfont() are the builtin
font which is using the IBM encoding, and some potentially loaded fonts
which are either IBM or ISO encoded.

Therefore the condition checked by vga_valid_font() is always true, and
we can remove it. Thanks to miod@ for pointing this out.

OK tb@

7 years agodelete the -d option and the "use .Fn or .Xr for functions" check,
schwarze [Sat, 17 Jun 2017 19:17:41 +0000 (19:17 +0000)]
delete the -d option and the "use .Fn or .Xr for functions" check,
both covered by mandoc now; OK jmc@

7 years agoMove win variable.
anton [Sat, 17 Jun 2017 18:14:47 +0000 (18:14 +0000)]
Move win variable.

ok deraadt@ tb@

7 years agoRename struct interface_info field 'new' to clearer 'offer'.
krw [Sat, 17 Jun 2017 17:10:26 +0000 (17:10 +0000)]
Rename struct interface_info field 'new' to clearer 'offer'.

7 years agoWe accept either the first offer received, or an offer for the
krw [Sat, 17 Jun 2017 16:58:55 +0000 (16:58 +0000)]
We accept either the first offer received, or an offer for the
current address if one arrives inside select_timeout. So there
is no need to keep a list of received offers. Just keep the
best one and DECLINE the rest. Nuke now unused 'offered_leases'
TAILQ.

Also fixes the oddity that the *last* offer for the current
address is taken rather than the *first*.

7 years agoif .in is used inside the .TP head, it's always relative
schwarze [Sat, 17 Jun 2017 16:47:29 +0000 (16:47 +0000)]
if .in is used inside the .TP head, it's always relative

7 years agoDECLINE offers as they are deemed invalid. Decline them at the
krw [Sat, 17 Jun 2017 15:53:03 +0000 (15:53 +0000)]
DECLINE offers as they are deemed invalid. Decline them at the
first problem rather than continuing to look for other reasons
to decline them. Nuke is_invalid field since it is now unused.
More informative log message when a lease is determined to be
unacceptable.

7 years agotables leak tab settings to subsequent text
schwarze [Sat, 17 Jun 2017 14:55:02 +0000 (14:55 +0000)]
tables leak tab settings to subsequent text

7 years agocorrect handling of blank lines after \c
schwarze [Sat, 17 Jun 2017 13:05:47 +0000 (13:05 +0000)]
correct handling of blank lines after \c

7 years agoPass the command to execute as an argument. Allows the edit program to be
anton [Sat, 17 Jun 2017 09:55:01 +0000 (09:55 +0000)]
Pass the command to execute as an argument. Allows the edit program to be
reused.

7 years agoadd rdtsc() to match amd64
jmatthew [Sat, 17 Jun 2017 09:32:26 +0000 (09:32 +0000)]
add rdtsc() to match amd64
ok mikeb@ mlarkin@

7 years agoInvalidate remote TLB entries by address range. This reduces
visa [Sat, 17 Jun 2017 03:45:36 +0000 (03:45 +0000)]
Invalidate remote TLB entries by address range. This reduces
the number of IPIs required when removing mappings.

7 years agoDon't need to link with -ll or -ly.
bcallah [Sat, 17 Jun 2017 01:55:16 +0000 (01:55 +0000)]
Don't need to link with -ll or -ly.
ok millert@ (who spotted and provided the -ll removal bits)

7 years agoproperly set the default indentation
schwarze [Sat, 17 Jun 2017 01:26:48 +0000 (01:26 +0000)]
properly set the default indentation
such that even pages without any .SH macros get it

7 years agoFix comment. This gap is not only on LUNA-88K2 but also on LUNA-88K.
aoyama [Sat, 17 Jun 2017 00:28:18 +0000 (00:28 +0000)]
Fix comment.  This gap is not only on LUNA-88K2 but also on LUNA-88K.

7 years agoMultiple tbl(7) improvements:
schwarze [Fri, 16 Jun 2017 20:00:41 +0000 (20:00 +0000)]
Multiple tbl(7) improvements:
* Do not discard data that lacks a matching layout cell but remains
within the number of columns of the table as a whole.
* Do not insert dummy data rows for any layout row starting with a
horizontal line, but only for layout rows that would discard all
the data on a matching non-empty data row.
* Print horizontal lines specified in the layout even if there is
no matching data cell.
* Improve the logic for extending vertical lines to adjacent rows,
for choosing cross marks versus line segments, and some related details.

7 years agopfctl: merge identifical if conditions and void functions discarding ret values
awolk [Fri, 16 Jun 2017 19:59:13 +0000 (19:59 +0000)]
pfctl: merge identifical if conditions and void functions discarding ret values

Transform the following functions (which never return anything other than 0, and
whose return value is never used) to void:

* pfctl_clear_stats, pfctl_clear_interface_flags, pfctl_clear_rules,
  pfctl_clear_src_nodes, pfctl_clear_states
* pfctl_kill_src_nodes, pfctl_net_kill_states, pfctl_label_kill_states,
  pfctl_id_kill_states, pfctl_key_kill_states

inside main: merge two identical if conditions next to each other into one.

Submitted by rain1 (thanks!) with additional credit to:
 - mikeb@ for pointing out we can void all _clear_ functions
 - ghostyy for pointing out all _kill_ functions can be voided

OK tb@, mikeb@

7 years agoTweak some logging.
nicm [Fri, 16 Jun 2017 15:12:38 +0000 (15:12 +0000)]
Tweak some logging.

7 years ago- Fix incorrect values in the computation of transmit power for the
kevlo [Fri, 16 Jun 2017 14:57:51 +0000 (14:57 +0000)]
- Fix incorrect values in the computation of transmit power for the
  rtl8188eu chipset.
- Small code refactoring:
  - replace hardcoded rate indexes with their name, like athn(4).
  - replace fields offsets with the structure; from FreeBSD r294198.
  - be compliant with definitions of the efuse in vendor hal_pg.h and
    rename struct r92c_rom member names: s/channel_plan/reserved5/,
    s/xtal_calib/channel_plan.
  - no need to disable HWPDN twice in urtwn_r88e_power_on().

Tested by stsp@ and myself with RTL8188CUS, RTL8192CU, RTL8188EU, and
RTL8188CE devices.

ok stsp@

7 years agoNuke 'is_bootp' field and just use a #define to check if the lease
krw [Fri, 16 Jun 2017 14:12:12 +0000 (14:12 +0000)]
Nuke 'is_bootp' field and just use a #define to check if the lease
has DHO_DHCP_MESSAGE_TYPE info.

7 years agoLog terminal capabilities for each new terminal.
nicm [Fri, 16 Jun 2017 11:50:06 +0000 (11:50 +0000)]
Log terminal capabilities for each new terminal.

7 years agoIn sppp(4), allow additional 'wildcard' addresses for the destination.
stsp [Fri, 16 Jun 2017 10:58:43 +0000 (10:58 +0000)]
In sppp(4), allow additional 'wildcard' addresses for the destination.
Any address within the range 0.0.0.1 - 0.0.0.255 can now be used.
This allows for multiple pppoe(4) interfaces with dynamic addresses within
the same routing table. Which used to work before OpenBSD 5.8, but since 5.8
only one interface in a routing table can use destination address 0.0.0.1.

Problem first reported by Steve (fiverings04 at australian yahoo) on misc@.
I ran into it on an EdgeRouter lite which is supposed to serve two ADSL lines.
ok sthen@ mpi@
man page help from jmc@ for an earlier variant of this change

7 years agomark files as BUILDFIRST, or write explicit dependencies, so that most
espie [Fri, 16 Jun 2017 10:25:54 +0000 (10:25 +0000)]
mark files as BUILDFIRST, or write explicit dependencies, so that most
programs will build even without a make depend first.
okay tb@ millert@

7 years agointroduce a BUILDFIRST/BUILDAFTER mechanism:
espie [Fri, 16 Jun 2017 10:20:52 +0000 (10:20 +0000)]
introduce a BUILDFIRST/BUILDAFTER mechanism:
record every standard component built in bsd.lib.mk/bsd.prog.mk in BUILDAFTER
and have BUILDAFTER depend on BUILDFIRST, thus making possible to build
some stuff early without relying on "make depend"

okay tb@ millert@

7 years agoIn iwm_init() save the generation counter once before looping over
stsp [Fri, 16 Jun 2017 08:45:34 +0000 (08:45 +0000)]
In iwm_init() save the generation counter once before looping over
tsleep(9), instead of saving it during every iteration.

7 years agos/CPU_LIDSUSPEND/CPU_LIDACTION/
natano [Fri, 16 Jun 2017 06:46:54 +0000 (06:46 +0000)]
s/CPU_LIDSUSPEND/CPU_LIDACTION/
ok mlarkin

7 years agoPCI Express extendeded capability 0x1c is LN Requester according to the
jsg [Fri, 16 Jun 2017 05:19:15 +0000 (05:19 +0000)]
PCI Express extendeded capability 0x1c is LN Requester according to the
PCI-SIG Lightweight Notification (LN) Protocol ECN document.

From Masanobu SAITOH.

7 years agoadd garbage collection of unused lists percpu cached items.
dlg [Fri, 16 Jun 2017 01:55:45 +0000 (01:55 +0000)]
add garbage collection of unused lists percpu cached items.

the cpu caches in pools amortise the cost of accessing global
structures by moving lists of items around instead of individual
items. excess lists of items are stored in the global pool struct,
but these idle lists never get returned back to the system for use
elsewhere.

this adds a timestamp to the global idle list, which is updated
when the idle list stops being empty. if the idle list hasn't been
empty for a while, it means the per cpu caches arent using the idle
entries and they can be recovered. timestamping the pages prevents
recovery of a lot of items that may be used again shortly. eg, rx
ring processing and replenishing from rate limited interrupts tends
to allocate and free items in large chunks, which the timestamping
smooths out.

gc'ed lists are returned to the pool pages, which in turn get gc'ed
back to uvm.

ok visa@

7 years agosplit returning an item to the pool pages out of pool_put as pool_do_put.
dlg [Fri, 16 Jun 2017 01:33:20 +0000 (01:33 +0000)]
split returning an item to the pool pages out of pool_put as pool_do_put.

this lets pool_cache_list_put return items to the pages. currently,
if pool_cache_list_put is called while the per cpu caches are
enabled, the items on the list will put put straight back onto
another list in the cpu cache. this also avoids counting puts for
these items twice. a put for the items have already been coutned
when the items went to a cpu cache, it doesnt need to be counted
again when it goes back to the pool pages.

another side effect of this is that pool_cache_list_put can take
the pool mutex once when returning all the items in the list with
pool_do_put, rather than once per item.

ok visa@

7 years agoDon't defer attaching PV devices
mikeb [Thu, 15 Jun 2017 20:12:12 +0000 (20:12 +0000)]
Don't defer attaching PV devices

Now that both hvn(4) and hvs(4) can perform VMBus channel operations
during autoconf, it's no longer necessary to defer their attachment.

7 years agoRemove the Installation section and fix a nonexistent path.
akfaew [Thu, 15 Jun 2017 20:10:25 +0000 (20:10 +0000)]
Remove the Installation section and fix a nonexistent path.

OK tb@ (fix paths diff) deraadt@

7 years agoMake sure we can free GPA handles when cold
mikeb [Thu, 15 Jun 2017 20:08:56 +0000 (20:08 +0000)]
Make sure we can free GPA handles when cold

7 years agoSupport executing NVSP and RNDIS commands during autoconf
mikeb [Thu, 15 Jun 2017 20:06:13 +0000 (20:06 +0000)]
Support executing NVSP and RNDIS commands during autoconf

7 years agoFiner grained pledge for at(1). After setegid(), do a three-way pledge:
tb [Thu, 15 Jun 2017 19:37:10 +0000 (19:37 +0000)]
Finer grained pledge for at(1).  After setegid(), do a three-way pledge:
For AT and BATCH: "stdio rpath wpath cpath fattr getpw unix"
For ATRM: "stdio rpath cpath getpw unix"
For ATQ and CAT: "stdio rpath getpw"
"unix" is needed for poke_daemon() and "fattr" to chmod +x spoolfile.

idea and ok millert

7 years agoProvide storage for the response message in each CCB
mikeb [Thu, 15 Jun 2017 18:21:08 +0000 (18:21 +0000)]
Provide storage for the response message in each CCB

7 years agoRemove the structure definition for an old (pre Win8) I/O request type
mikeb [Thu, 15 Jun 2017 18:05:52 +0000 (18:05 +0000)]
Remove the structure definition for an old (pre Win8) I/O request type
since the new one is backwards compatible and the correct length of the
request can be specified w/o an actual definition.

7 years agoPut back copying of the response message into the polling callback
mikeb [Thu, 15 Jun 2017 18:00:26 +0000 (18:00 +0000)]
Put back copying of the response message into the polling callback

The response message is allocated on the stack of hvs_intr and its
content is valid during a single message processing loop iteration.
Due to the fact that polled transfers finish completion in a callee
context, the cached pointer to the response message becomes stale
very quickly.  To avoid this situation the poll completion callback
needs to make sure the content of the response is provided to the
next completion routine.

7 years agoNuke unused parameter 'client_addr' from the 'handlers', i.e.
krw [Thu, 15 Jun 2017 17:06:17 +0000 (17:06 +0000)]
Nuke unused parameter 'client_addr' from the 'handlers', i.e.
dhcpoffer(), dhcpack(), dhcpnak().

7 years agoNuke unused parameter 'client_addr' from packet_to_lease().
krw [Thu, 15 Jun 2017 16:56:11 +0000 (16:56 +0000)]
Nuke unused parameter 'client_addr' from packet_to_lease().

7 years agoAssorted tweaks for x11/qt* modules description.
zhuk [Thu, 15 Jun 2017 16:07:54 +0000 (16:07 +0000)]
Assorted tweaks for x11/qt* modules description.

7 years agoIt's never too late to document x11/kde module. At least a (non-obvious) bit.
zhuk [Thu, 15 Jun 2017 16:06:02 +0000 (16:06 +0000)]
It's never too late to document x11/kde module. At least a (non-obvious) bit.

7 years agoDocument MODQMAKE_RECURSIVE and test framework support for devel/qmake.
zhuk [Thu, 15 Jun 2017 16:03:52 +0000 (16:03 +0000)]
Document MODQMAKE_RECURSIVE and test framework support for devel/qmake.

7 years agoThe devel/qmake port module handles Qt3 as well.
zhuk [Thu, 15 Jun 2017 15:53:23 +0000 (15:53 +0000)]
The devel/qmake port module handles Qt3 as well.

7 years agoCorrect the number of targets vs number of LUNs
mikeb [Thu, 15 Jun 2017 15:01:28 +0000 (15:01 +0000)]
Correct the number of targets vs number of LUNs

jsg@ has found out that the number of targets wasn't correct and
it turns out that the device supports up to 2 targets and 1 or 64
LUNs depending on whether it's taking over an IDE device or is a
virtual SCSI.

While here make sure the command response is copied back only for
synchronous commands that are issued during initialization phase.

7 years agoAdd -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+
bcallah [Thu, 15 Jun 2017 13:48:42 +0000 (13:48 +0000)]
Add -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+
Help and direction millert@ espie@ anton@ deraadt@

ok espie@

7 years agoWe do not support iso7 nor pcvt encoding, so remove macro definitions
fcambus [Thu, 15 Jun 2017 11:48:49 +0000 (11:48 +0000)]
We do not support iso7 nor pcvt encoding, so remove macro definitions
and commented entries.

OK mlarkin@

7 years ago"10th's of a second" -> "tenths of a second"
bentley [Thu, 15 Jun 2017 06:44:47 +0000 (06:44 +0000)]
"10th's of a second" -> "tenths of a second"

ok jmc@

7 years agoreport contention on caches global data to userland.
dlg [Thu, 15 Jun 2017 03:50:50 +0000 (03:50 +0000)]
report contention on caches global data to userland.

7 years agowhite space tweaks. no functional change.
dlg [Thu, 15 Jun 2017 03:48:50 +0000 (03:48 +0000)]
white space tweaks. no functional change.

7 years agoadd a rough start to a pcache view, to show pool cpu cache info.
dlg [Thu, 15 Jun 2017 03:47:07 +0000 (03:47 +0000)]
add a rough start to a pcache view, to show pool cpu cache info.

ok mikeb@ millert@

7 years agoimplement the backend of the sysctls that report pool cache info.
dlg [Thu, 15 Jun 2017 03:44:17 +0000 (03:44 +0000)]
implement the backend of the sysctls that report pool cache info.

KERN_POOL_CACHE reports info about the global cache info, like how long
the lists of cache items the cpus build should be and how many of these
lists are idle on the pool struct.

KERN_POOL_CACHE_CPUS reports counters from each each. the counters
are for how many item and list operations the cache has handled on
a cpu. the sysctl provides an array of ncpusfound * struct
kinfo_pool_cache_cpu, not a single struct kinfo_pool_cache_cpu.

tested by hrvoje popovski
ok mikeb@ millert@
----------------------------------------------------------------------

7 years agoadd some kinfo structs and sysctl mibs for info about per cpu pool caches
dlg [Thu, 15 Jun 2017 02:52:30 +0000 (02:52 +0000)]
add some kinfo structs and sysctl mibs for info about per cpu pool caches

there are two sysctls, one that shows info about the pools global
cache info, and another that dumps info about the caches on all the
cpus in one go.

ok mikeb@ millert@

7 years agoround default width of tbl(7) text blocks in the same way as groff
schwarze [Thu, 15 Jun 2017 00:27:22 +0000 (00:27 +0000)]
round default width of tbl(7) text blocks in the same way as groff

7 years agoimplement so-called absolute horizontal motion: \h'|...',
schwarze [Wed, 14 Jun 2017 23:23:51 +0000 (23:23 +0000)]
implement so-called absolute horizontal motion: \h'|...',
used for example by zoem(1)

7 years agoNaive implementation of the roff(7) .po (page offset) request.
schwarze [Wed, 14 Jun 2017 22:50:37 +0000 (22:50 +0000)]
Naive implementation of the roff(7) .po (page offset) request.

This clearly works when .po is called on the top level, but might
not be sophisticated enough if people call .po inside indentation-changing
contexts, but i haven't seen that in manual pages (yet :).

7 years agoEnable hvs(4), "go for it" from deraadt.
mikeb [Wed, 14 Jun 2017 22:35:43 +0000 (22:35 +0000)]
Enable hvs(4), "go for it" from deraadt.

7 years agoBorrow some of dlg's smarts to make this look like a real SCSI driver
mikeb [Wed, 14 Jun 2017 22:24:11 +0000 (22:24 +0000)]
Borrow some of dlg's smarts to make this look like a real SCSI driver

7 years agoAdd a new function reorder_kernel() that relinks and installs the
rpe [Wed, 14 Jun 2017 21:39:53 +0000 (21:39 +0000)]
Add a new function reorder_kernel() that relinks and installs the
new kernel in the background on system startup. It stores the hash
of the new kernel and sends a notification email to the admin or
root user. If it finds /usr/share/compile.tgz, it removes the
existing compile dir and replaces it with the content of (new)
archive. If the hash of /bsd does not match the stored one, no
relinking happens.

Idea from, joint work with and OK deraadt@
OK tb@ halex@
unnoticed by many

7 years agoadd the \(ru (0.5m baseline ruler) character escape sequence,
schwarze [Wed, 14 Jun 2017 20:56:42 +0000 (20:56 +0000)]
add the \(ru (0.5m baseline ruler) character escape sequence,
abused by mail/nmh; groff_char(7) confirms that this really exists

7 years agoDon't support loading appletalk addresses from /etc/appletalk.names.
akfaew [Wed, 14 Jun 2017 20:48:54 +0000 (20:48 +0000)]
Don't support loading appletalk addresses from /etc/appletalk.names.

OK deraadt@

7 years agoNo need to be coy - call a "struct interface_info *" a
krw [Wed, 14 Jun 2017 20:27:08 +0000 (20:27 +0000)]
No need to be coy - call a "struct interface_info *" a
"struct interface_info *" and not a "void *".

No intentional functional change.

7 years agosimple implementation of the roff(7) .als (macro alias) request,
schwarze [Wed, 14 Jun 2017 19:39:05 +0000 (19:39 +0000)]
simple implementation of the roff(7) .als (macro alias) request,
sufficient for pages using po4a(1)

7 years agosync
deraadt [Wed, 14 Jun 2017 18:30:03 +0000 (18:30 +0000)]
sync

7 years agolet \l use the right fill character
schwarze [Wed, 14 Jun 2017 18:23:26 +0000 (18:23 +0000)]
let \l use the right fill character

7 years agoimprove rounding rules for scaling units
schwarze [Wed, 14 Jun 2017 17:50:43 +0000 (17:50 +0000)]
improve rounding rules for scaling units
in horizontal orientation in the terminal formatter

7 years agoCurrently, iwm(4) uses only one phy context, so stop sending commands to the
stsp [Wed, 14 Jun 2017 16:58:28 +0000 (16:58 +0000)]
Currently, iwm(4) uses only one phy context, so stop sending commands to the
firmware for unused ones. This should be refactored further, but for now this
change is good enough to reduce the amount of commands we throw at the firmware.
ok deraadt@

7 years agoWhen a task in iwm(4) obtains an rwlock(9), bail out if the device was
stsp [Wed, 14 Jun 2017 16:57:47 +0000 (16:57 +0000)]
When a task in iwm(4) obtains an rwlock(9), bail out if the device was
reset while the task was asleep waiting for the lock.
ok deraadt@

7 years agoMake the iwm(4) ioctl handler wait until the transition to SCAN has completed
stsp [Wed, 14 Jun 2017 16:56:50 +0000 (16:56 +0000)]
Make the iwm(4) ioctl handler wait until the transition to SCAN has completed
when bringing the interface up. Otherwise we get racy behaviour when running
ifconfig commands which issue several ioctls in quick succession.
Should fix the occasional "could not initiate scan" errors.
ok deraadt@

7 years agoMake iwm(4) wait for the PHY calibration result notification during HW init.
stsp [Wed, 14 Jun 2017 16:56:04 +0000 (16:56 +0000)]
Make iwm(4) wait for the PHY calibration result notification during HW init.
Code inspection revealed that Linux does this, and so should we.
ok deraadt@

7 years agoMove active, new, offered_leases, leases from
krw [Wed, 14 Jun 2017 16:52:35 +0000 (16:52 +0000)]
Move active, new, offered_leases, leases from
client_state to interface_info.

Nuke empty struct client_state.

No intentional functional change.

7 years agoGrow sgi iso, to account for base containing compile.tgz.
deraadt [Wed, 14 Jun 2017 16:36:09 +0000 (16:36 +0000)]
Grow sgi iso, to account for base containing compile.tgz.
SGI has 8 kernels, so the file is 113MB!

7 years agoRemove main() prototype and unused envp argument.
anton [Wed, 14 Jun 2017 16:32:11 +0000 (16:32 +0000)]
Remove main() prototype and unused envp argument.

ok deraadt@ martijn@

7 years agoMove state, destination, interval, requested_address from
krw [Wed, 14 Jun 2017 16:29:58 +0000 (16:29 +0000)]
Move state, destination, interval, requested_address from
client_state to interface_info.

No intentional functional change.

7 years agoMove xid, secs, first_sending, startup_time fields from
krw [Wed, 14 Jun 2017 16:09:42 +0000 (16:09 +0000)]
Move xid, secs, first_sending, startup_time fields from
client_state to interface_info.

No intentional functional change.

7 years agoStart consolidating client_state into interface_info. First
krw [Wed, 14 Jun 2017 15:57:25 +0000 (15:57 +0000)]
Start consolidating client_state into interface_info. First
fields to move: recv_packet, sent_packet and sent_packet_length.

No intentional functional change.

7 years agoNo need for two 'flags' fields. Consolidate into one, fixing
krw [Wed, 14 Jun 2017 15:39:55 +0000 (15:39 +0000)]
No need for two 'flags' fields. Consolidate into one, fixing
value of IFI_HUP while passing.

7 years agoharmless, but weird typo; found with afterstep_faq(1)
schwarze [Wed, 14 Jun 2017 14:23:50 +0000 (14:23 +0000)]
harmless, but weird typo; found with afterstep_faq(1)

7 years agoimplement the roff(7) d (macro or string defined) conditional
schwarze [Wed, 14 Jun 2017 14:01:34 +0000 (14:01 +0000)]
implement the roff(7) d (macro or string defined) conditional

7 years agoSplit early startup code out of armv7_start.S into locore0.S. Adjust
patrick [Wed, 14 Jun 2017 13:12:49 +0000 (13:12 +0000)]
Split early startup code out of armv7_start.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.  Note that this commit does not yet unmap the early bootcode
since this is not as easy as on arm64.

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 has been unmapped.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.

With guidance and ok deraadt@

7 years agoimplement roff(7) .rj (right justify) request
schwarze [Wed, 14 Jun 2017 13:00:13 +0000 (13:00 +0000)]
implement roff(7) .rj (right justify) request