Re: acpi(4): GenericSerialBus OperationRegion support

2018-05-13 Thread Mike Larkin
On Sun, May 13, 2018 at 03:57:50PM +0200, Mark Kettenis wrote: > The diff below implements functionality that allows AML access to > devices that sit on an I2C bus. Only a subset of the various access > methods is implemented; some of the missing ones are not a very good > fit for our AML implemen

Re: Missing hardlink for /usr/bin/cc

2018-05-13 Thread Philip Guenther
On Sat, May 12, 2018 at 8:59 AM, Anthony Coulter wrote: > $ ls -li /usr/bin/{cc,c++,clang,clang++,clang-cpp} /usr/libexec/cpp > 156140 -r-xr-xr-x 5 root bin 46885664 May 4 11:12 /usr/bin/c++ > 155926 -r-xr-xr-x 1 root bin 46885664 May 4 11:12 /usr/bin/cc > 156140 -r-xr-xr-x 5 root bin

Missing hardlink for /usr/bin/cc

2018-05-13 Thread Anthony Coulter
$ ls -li /usr/bin/{cc,c++,clang,clang++,clang-cpp} /usr/libexec/cpp 156140 -r-xr-xr-x 5 root bin 46885664 May 4 11:12 /usr/bin/c++ 155926 -r-xr-xr-x 1 root bin 46885664 May 4 11:12 /usr/bin/cc 156140 -r-xr-xr-x 5 root bin 46885664 May 4 11:12 /usr/bin/clang 156140 -r-xr-xr-x 5 root bi

com(4) console register width/shift support

2018-05-13 Thread Mark Kettenis
The diff below extends the register width/shift support in com(4) such that the serial console on armv7 and arm64 doesn't have to use the nasty bus space hacks anymore. I removed the com_common_getc() and com_common_putc() functions as they didn't really serve any purpose anymore. The equivalent

Re: pfctl check if rdomain exists

2018-05-13 Thread Alexander Bluhm
On Sun, May 13, 2018 at 03:22:39PM +0200, Sebastian Benoit wrote: > Here is a better version that moves the RT_TABLEID_MAX check into the > rdomain_check() function. I think hiding the yyerror() in rdomain_check() is not so nice. So I like your first version more. Could it be fixed with an "else

const for X509_EXT_*

2018-05-13 Thread Theo Buehler
Here's a slightly more interesting one. It adds const to 'section', 'name' and 'value' parameters of the X509_EXT_* famliy of functions. We also need adjust the get_section() and get_string() members of the X509V3_CONF_METHOD_st structure to match OpenSSL's as well as a handful of internal function

Re: [patch] add missing pledge to aucat(1).

2018-05-13 Thread Alexandre Ratchov
On Mon, May 07, 2018 at 08:34:32PM +0200, Jesper Wallin wrote: > On Mon, May 07, 2018 at 03:30:19PM +0200, Jesper Wallin wrote: > > I've still not been able to test this using MIDI devices, but everything > > else seems to work as far as I can tell. > > As Theo (tb@) kindly pointed out to me off-l

const for TS_*

2018-05-13 Thread Theo Buehler
Another trivial diff that adds const qualifiers to the ASN1_OBJ argument of a number of TS_* functions. As usual tested in sthen's bulk build. Index: lib/libcrypto/ts/ts.h === RCS file: /var/cvs/src/lib/libcrypto/ts/ts.h,v retrieving

const for SXNET_add_id_{INTEGER,asc,ulong}(3)

2018-05-13 Thread Theo Buehler
Small and simple diff that makes the char * arguments of these three functions const. Index: lib/libcrypto/x509v3/v3_sxnet.c === RCS file: /var/cvs/src/lib/libcrypto/x509v3/v3_sxnet.c,v retrieving revision 1.20 diff -u -p -r1.20 v3_sx

acpi(4): GenericSerialBus OperationRegion support

2018-05-13 Thread Mark Kettenis
The diff below implements functionality that allows AML access to devices that sit on an I2C bus. Only a subset of the various access methods is implemented; some of the missing ones are not a very good fit for our AML implementation. But this is enough to make reading the battery status on the l

Re: pfctl check if rdomain exists

2018-05-13 Thread Sebastian Benoit
Alexander Bluhm(alexander.bl...@gmx.net) on 2018.05.13 10:03:43 +0200: > On Sun, May 13, 2018 at 01:34:48AM +0200, Sebastian Benoit wrote: > > when you add a pf rule with a "on rdomain n" with nonexisting rdomain n, > > the load will fail with the error > > > > pfctl: DIOCADDRULE: Device busy >

const for PKCS* functions

2018-05-13 Thread Theo Buehler
Another straightforward diff, this time to catch up with OpenSSL's const sprinkling over PCKS12_* and PKCS8_* functions. Part of sthen's bulk. Index: lib/libcrypto/pkcs12/p12_add.c === RCS file: /var/cvs/src/lib/libcrypto/pkcs12/p12_

pms: support for Elantech trackpoints

2018-05-13 Thread Ulf Brosziewski
This patch adds support for Elantech trackpoints to pms. They can be treated like other secondary devices and require only minor extensions in the initialization and input functions. For now, the patch also extends the set of "IC types" that are accepted for V4-touchpads from (6,8) to (6,8,15).

Re: pfctl check if rdomain exists

2018-05-13 Thread Alexander Bluhm
On Sun, May 13, 2018 at 01:34:48AM +0200, Sebastian Benoit wrote: > when you add a pf rule with a "on rdomain n" with nonexisting rdomain n, > the load will fail with the error > > pfctl: DIOCADDRULE: Device busy > > with no information which rule caused the problem and no indication that the >

const for PEM_write{,_bio}()

2018-05-13 Thread Theo Buehler
Add const to the 'name', 'header' and 'data' arguments of PEM_write(3) and PEM_write_bio(3). Tested in sthen's bulk with no fallout. Index: lib/libcrypto/pem/pem.h === RCS file: /var/cvs/src/lib/libcrypto/pem/pem.h,v retrieving revisi

const for OCSP_*

2018-05-13 Thread Theo Buehler
This adds const qualifiers to the OCSP_* functions and a handful of X509{,v3}_* functions as needed to make this work. Completely straightforward. Tested in sthen's bulk with no fallout. Index: lib/libcrypto/ocsp/ocsp.h === RCS file: