Re: problems with libm

2019-07-11 Thread Moritz Buhl
Hi, I made the FreeBSD msun regression tests compile on OpenBSD. https://github.com/moritzbuhl/msun-regress 3 out of 19 test files pass. 14 files die after the first error case. Two files (ctrig_test.c and trig_test.c) use atf and after some hacks they report all error cases. 840 for ctrig_test

rtable_walk(9)

2019-07-11 Thread Martin Pieuchot
Document this complex function. Any wording suggestion? Index: Makefile === RCS file: /cvs/src/share/man/man9/Makefile,v retrieving revision 1.295 diff -u -p -r1.295 Makefile --- Makefile21 Jun 2019 09:39:48 - 1.295 +++

Re: rtable_walk(9)

2019-07-11 Thread Jason McIntyre
On Thu, Jul 11, 2019 at 05:18:41PM -0300, Martin Pieuchot wrote: > Document this complex function. Any wording suggestion? > hi. the page reads fine. i have one tweak inline. oh, and you might want to cross Xr back from rtfree. > Index: Makefile >

Re: rtable_walk(9)

2019-07-11 Thread Ingo Schwarze
Hi Martin, Martin Pieuchot wrote on Thu, Jul 11, 2019 at 05:18:41PM -0300: > Index: rtable_walk.9 > === > RCS file: rtable_walk.9 > diff -N rtable_walk.9 > --- /dev/null 1 Jan 1970 00:00:00 - > +++ rtable_walk.9 11 Jul 2019

Re: unveil dhclient (privileged process)

2019-07-11 Thread Theo de Raadt
Looks solid to me. Ricardo Mestre wrote: > Since krw@ gave me feedback on yet another way to handle the defines I'd > rather > leave that alone for now, it can be left as an exercise later on as you point > out. > > I'll go ahead and commit this instead if no one objects. > > Index:

Re: unveil dhclient (privileged process)

2019-07-11 Thread Ricardo Mestre
Since krw@ gave me feedback on yet another way to handle the defines I'd rather leave that alone for now, it can be left as an exercise later on as you point out. I'll go ahead and commit this instead if no one objects. Index: dhclient.c

Re: ldpd(8): unveil(2) main proc / reduce pledge(2) on ldpe

2019-07-11 Thread Ricardo Mestre
The third's the charm? :) OK? On 20:23 Fri 14 Jun , Ricardo Mestre wrote: > ping? > > On 12:33 Wed 22 May , Ricardo Mestre wrote: > > Hi, > > > > Like we did on other daemons that cannot be pledged due to forbidden ioctls > > the > > main process can be unveiled to restrict filesystem

Re: “aTHeros AR9565” rev 0x01 at pci3 dev 0 function 0 not configured

2019-07-11 Thread Stefan Sperling
On Thu, Jul 11, 2019 at 04:32:48AM +0300, unwillex...@cock.li wrote: > This is how AR9565 identified in dmesg I saw few in mailing list who waiting > support for OpenBSD, FreeBSD already supports it, Is there any chance of > support for this card ? > A new driver needs to be written or an

“aTHeros AR9565” rev 0x01 at pci3 dev 0 function 0 not configured

2019-07-11 Thread unwillexist
This is how AR9565 identified in dmesg I saw few in mailing list who waiting support for OpenBSD, FreeBSD already supports it, Is there any chance of support for this card ?

Re: Remove duplicate pledge(2) from tsort(1)

2019-07-11 Thread Marc Espie
On Thu, Jul 11, 2019 at 01:20:11PM +0100, Ricardo Mestre wrote: > Hi, > > pledge "stdio rpath" is already called in main(), so we can remove the > duplicate from parse_args(), along with the pledge commented out from another > era! > > The second part is about placing pledge "stdio" in main()

Re: problems with libm

2019-07-11 Thread Ingo Feinerer
Moritz Buhl wrote: > ... I noticed that some floating point operations cause failures of other > tests. > ... > Many edge cases for complex floating point operations are not covered at all. Hi, https://marc.info/?l=openbsd-tech=150737856618497=2 is another example of an edge case for complex

unveil(2) switchd(8)

2019-07-11 Thread Ricardo Mestre
Hi, switchd(8)'s main proc needs to open the following paths, and which can be unveiled: / -> read, it will open config files from anywhere in the system, and also needs to open /etc/services /dev -> read/write, in order to open /dev/tap* and /dev/switch* Just before the main loop the devices

Re: unveil(2) switchd(8)

2019-07-11 Thread Ricardo Mestre
Of course when I mention in the second option to "unveil" / it's just to call pledge with rpath, not actually calling unveil(2). On 10:20 Thu 11 Jul , Ricardo Mestre wrote: > Hi, > > switchd(8)'s main proc needs to open the following paths, and which can be > unveiled: > > / -> read, it

powerpc atomic.h fix for clang

2019-07-11 Thread Mark Kettenis
Clang's inline assembler implementation inists that an explicit constant is used for "n", whereas "i" allows a variable that ends up being a constant after optimization, which is what we need here. ok? Index: arch/powerpc/include/atomic.h

Remove duplicate pledge(2) from tsort(1)

2019-07-11 Thread Ricardo Mestre
Hi, pledge "stdio rpath" is already called in main(), so we can remove the duplicate from parse_args(), along with the pledge commented out from another era! The second part is about placing pledge "stdio" in main() instead for better readability (at least for me). No functional change is

use SMBIOS for inteldrm panel orientation quirks

2019-07-11 Thread Jonathan Gray
Use SMBIOS data for panel orientation. Uses BIOS dates when other strings are generic. There are orientation quirks in drm_panel_orientation_quirks.c for: Acer One 10 (S1003) Asus T100HA GPD MicroPC (generic strings, also match on bios date) GPD Pocket 2 (generic