FreeBSD tabs(1) ported to OpenBSD

2018-05-28 Thread Steven Rutter
I was frustrated with not being able to adjust my tab width in the terminal (and in ed as a result) so I ported the FreeBSD version of tabs to OpenBSD. Just thought I would share because it seems odd that it is not in OpenBSD. -Steven Rutter tabs.tar.gz Description: GNU Zip compressed data

Re: Automatic configuration of /etc/ttys in installer

2018-05-28 Thread Theo Buehler
On Sat, May 26, 2018 at 10:39:57PM +0200, Mark Kettenis wrote: > > Date: Tue, 8 May 2018 08:51:14 +0200 (CEST) > > From: Mark Kettenis > > > > After my recent changes to armv7 and arm64 the installer and > > single-user mode are usable with a non-standard serial console speed. > > However, the in

Re: IPL_VM for `f_mtx'

2018-05-28 Thread Mark Kettenis
> Date: Mon, 28 May 2018 12:24:22 +0200 > From: Mathieu - > > Mark Kettenis wrote: > > > Date: Mon, 28 May 2018 11:23:47 +0200 > > > From: Martin Pieuchot > > > > > > As found by tb@ and visa@, `f_mtx' need to block interrupts as long as > > > it can be taken w/ and w/o the KERNEL_LOCK(). Othe

Drop comcnspeed

2018-05-28 Thread Mark Kettenis
This variable is unused on arm64. Inherited from armv7 where it still functions somewhat. I suppose this used to set the speed of the serial console but nowadays it only sets the default speed that we use when the device tree doesn't set it. I propose to remove it on armv7 too. Using 115200 as

add const to the return value of BIO_s_file()

2018-05-28 Thread Theo Buehler
This is the first trivial part of the last batch of diffs catching up with OpenSSL's const additions. As usual, sthen kindly ran the whole diff through a ports bulk build. Only this small change caused some fallout, namely devel/ptlib. Of course, I'll commit a fix for the port at the same time as

Re: arm64/disksubr.c

2018-05-28 Thread Dale Rahn
ok drahn@ On Mon, May 28, 2018 at 03:57:58PM +0200, Mark Kettenis wrote: > This has a hand-rolled readdisksector. Replace it with a function > call like we do on other architectures. Also remove an include that > isn't needed and isn't present on other architectures. > > ok? > > > Index: arch/

[Patch] mg(1): Experimental UTF-8 support

2018-05-28 Thread Leonid Bobrov
Hi! Diff is taken from here: https://github.com/hboetes/mg/compare/display-wide-characters with minor modifications (didn't patch some files and updated mg.1) I got two not critical cursor movement bugs (like I have to press C-f twice or M-f moves cursor subword forward) Index: basic.c ==

Re: Some arm64 cleanup

2018-05-28 Thread Dale Rahn
ok drahn@ On Mon, May 28, 2018 at 11:07:29AM +0200, Mark Kettenis wrote: > machine_reg.h is completely unused > swi.h is referenced from libc's SYS.h but nothing from that file is used > bootconfig.h has some junk that isn't really used > > The MAX_BOOT_STRING define in bootconfig.h doesn't really

Re: [markup] manual page HTML validation

2018-05-28 Thread Ingo Schwarze
Hi Anton, li...@wrant.com wrote on Mon, May 28, 2018 at 06:04:50PM +0300: > Thanks for applying the fixes, > can we have HTML 4.01 * web manual pages? No, you can't. > I'll understand if the answer is no, > short listed explanation would do.. While i often advocate using well-established, seas

Re: [markup] manual page HTML validation

2018-05-28 Thread lists
Mon, 28 May 2018 16:35:22 +0200 Ingo Schwarze > Hi Anton, > > li...@wrant.com wrote on Mon, May 28, 2018 at 12:39:05PM +0300: > > > https://validator.w3.org/nu/?doc=http%3A%2F%2Fman.openbsd.org%2Fpf.conf > > https://validator.w3.org/nu/?doc=http%3A%2F%2Fman.openbsd.org%2Fifconfig > > Thanks f

Re: [markup] manual page HTML validation

2018-05-28 Thread Ingo Schwarze
Hi Anton, li...@wrant.com wrote on Mon, May 28, 2018 at 12:39:05PM +0300: > https://validator.w3.org/nu/?doc=http%3A%2F%2Fman.openbsd.org%2Fpf.conf > https://validator.w3.org/nu/?doc=http%3A%2F%2Fman.openbsd.org%2Fifconfig Thanks for spotting these errors. I just fixed them with the commit below

arm64/disksubr.c

2018-05-28 Thread Mark Kettenis
This has a hand-rolled readdisksector. Replace it with a function call like we do on other architectures. Also remove an include that isn't needed and isn't present on other architectures. ok? Index: arch/arm64/arm64/disksubr.c ==

Re: [PATCH] Define IMSG_DATA_SIZE() in imsg.h

2018-05-28 Thread Consus
On 00:04 Mon 28 May, Klemens Nanni wrote: > On Sun, May 27, 2018 at 01:12:21AM +0300, Consus wrote: > > +++ b/usr.sbin/httpd/httpd.h > > @@ -195,7 +195,6 @@ struct imsgev { > > if (IMSG_DATA_SIZE(imsg) < sizeof(*p)) \ > > fatalx("bad length imsg received");

fdinsert(), take 2

2018-05-28 Thread Martin Pieuchot
Here's a new version of my diff to remove the FIF_LARVAL flag. Larval files still exist, but at this stage they aren't present in `fd_ofiles[]'. That means we don't need specific tricks in fd_getfile() and fd_iterfile(). The idea is to put files in shared data structures once they are properly s

Re: errors in usage.c - libusbhid

2018-05-28 Thread David Bern
I was suggested off list to give an explanation on what the patch does. So please, tell me if I need to clarify more, or make further changes to the code. The patch tries to fix two things. 1. Changes in hid_parse_usage_in_page() fixes problems in parsing usages defined as: * Button %d hi

Re: IPL_VM for `f_mtx'

2018-05-28 Thread Mathieu -
Mark Kettenis wrote: > > Date: Mon, 28 May 2018 11:23:47 +0200 > > From: Martin Pieuchot > > > > As found by tb@ and visa@, `f_mtx' need to block interrupts as long as > > it can be taken w/ and w/o the KERNEL_LOCK(). Otherwise a deadlock is > > possible if an interrupt tries to grab the KERNEL_

Re: IPL_VM for `f_mtx'

2018-05-28 Thread Mark Kettenis
> Date: Mon, 28 May 2018 11:23:47 +0200 > From: Martin Pieuchot > > As found by tb@ and visa@, `f_mtx' need to block interrupts as long as > it can be taken w/ and w/o the KERNEL_LOCK(). Otherwise a deadlock is > possible if an interrupt tries to grab the KERNEL_LOCK(). > > I'm not switching to

[markup] manual page HTML validation

2018-05-28 Thread lists
Sat, 26 May 2018 14:04:38 -0600 (MDT) Ingo Schwarze > CVSROOT: /cvs > Module name: src > Changes by: schwa...@cvs.openbsd.org2018/05/26 14:04:38 > > Modified files: > usr.bin/mandoc : mandoc.css > > Log message: > Start with baby steps towards responsive design: > Use a @m

IPL_VM for `f_mtx'

2018-05-28 Thread Martin Pieuchot
As found by tb@ and visa@, `f_mtx' need to block interrupts as long as it can be taken w/ and w/o the KERNEL_LOCK(). Otherwise a deadlock is possible if an interrupt tries to grab the KERNEL_LOCK(). I'm not switching to a rwlock because code paths are short, I don't want to introduce new sleeping

Some arm64 cleanup

2018-05-28 Thread Mark Kettenis
machine_reg.h is completely unused swi.h is referenced from libc's SYS.h but nothing from that file is used bootconfig.h has some junk that isn't really used The MAX_BOOT_STRING define in bootconfig.h doesn't really serve a purpose anymore. Simply use a fixed-size buffer and strlcpy the results i

ifconfig: Remove unused

2018-05-28 Thread Klemens Nanni
Annotations are outdated, in fact it's not used since revision 1.348 date: 2017/08/29 21:10:20; author: deraadt; state: Exp; lines: +3 -3 quarterly rescan of the tree: remove unneccessary sys/param.h, and annotate the ones which are needed. -

Re: eoip(4): MikroTik Ethernet over IP support

2018-05-28 Thread Michael W. Bombardieri
On Sun, May 27, 2018 at 10:18:30AM +1000, David Gwynne wrote: > this implements MikroTiks Ethernet over IP protocol support. > > The Mikrotik protocol is basically GRE, so this is implemented as > eoip(4) as (yet another) part of if_gre. the main differences between > egre and eoip is that eoip us