Re: exp() / expl() on Linux and OpenBSD (expl() bug?)

2014-02-13 Thread Miod Vallat
> A fix has been committed, but there's still a problem on loongson with > libm updated: > > $ ls -l /usr/lib/libm.so.* > -r--r--r-- 1 root bin 926033 Feb 12 12:17 /usr/lib/libm.so.9.0 > $ cc -o expl expl.c -O2 -pipe -lm > $ for in in 1 2 3 4 5 6 ; do ./expl ; done > theta == 1, pr == -9.15569e

man.conf mandoc -Tlocale

2014-02-13 Thread Ted Unangst
About 20 years after the invention of utf-8, I've decided to see what all the fuss is about and experiment with uxterm and whatnot. Naturally, this means I want to see sweet fancy quotes in all my man pages instead of the lame ``fake'' quotes. In order to convince mandoc to give me what I want, how

Re: strptime() fix

2014-02-13 Thread Kenneth Westerback
On 13 February 2014 17:39, Todd C. Miller wrote: > Correct, though I prefer the following for clarity. > > - todd > > Index: lib/libc/time/strptime.c > === > RCS file: /home/cvs/openbsd/src/lib/libc/time/strptime.c,v > retrieving rev

Re: strptime() fix

2014-02-13 Thread Todd C. Miller
Correct, though I prefer the following for clarity. - todd Index: lib/libc/time/strptime.c === RCS file: /home/cvs/openbsd/src/lib/libc/time/strptime.c,v retrieving revision 1.15 diff -u -r1.15 strptime.c --- lib/libc/time/strptime.

Re: Running X with machdep.allowaperture=0

2014-02-13 Thread Mark Kettenis
> Date: Thu, 13 Feb 2014 17:12:09 -0500 > From: Ted Unangst > Cc: tech@openbsd.org > X-XS4ALL-DNSBL-Checked: mxdrop102.xs4all.nl checked 208.82.130.146 against > DNS blacklists > X-CNFS-Analysis: v=2.1 cv=Wak1NSRX c=1 sm=0 tr=0 > a=iS0VH5W3/nZARN5H4QS42w==:117 a=iS0VH5W3/nZARN5H4QS42w==:17

Re: Running X with machdep.allowaperture=0

2014-02-13 Thread Ted Unangst
On Thu, Feb 13, 2014 at 22:52, Mark Kettenis wrote: > Turns out we are pretty close. The only problem is that X still wants > to probe the pci bus. We allow access to /dev/pci0 if > machdep.allowaperture is 0, but libpciaccess uses O_RDWR to open it. > The diff below chages this such that it trie

Running X with machdep.allowaperture=0

2014-02-13 Thread Mark Kettenis
Turns out we are pretty close. The only problem is that X still wants to probe the pci bus. We allow access to /dev/pci0 if machdep.allowaperture is 0, but libpciaccess uses O_RDWR to open it. The diff below chages this such that it tries O_RDONLY if O_RDWR fails. Works fine with inteldrm(4), al

a nice diff

2014-02-13 Thread Jan Stary
--- /usr/src/usr.bin/nice/nice.cTue Dec 24 17:13:20 2013 +++ ./nice.cThu Feb 13 21:20:05 2014 @@ -30,7 +30,6 @@ * SUCH DAMAGE. */ -#include #include #include #include @@ -72,7 +71,8 @@ main(int argc, char *argv[]) break; } } -

strptime() fix

2014-02-13 Thread David Higgs
As of lib/libc/time/strptime.c r1.15, certain conversions will perform calculations using the provided tm_mday value, which will frequently produce incorrect values for tm_mday and tm_yday. Apologies in advance for the mangled patch. Thanks. --david Compare runs of the test program below: /* s

Re: netstat strtonum

2014-02-13 Thread Kenneth Westerback
I agree. ok krw@ Ken On 13 February 2014 11:54, Ted Unangst wrote: > replace some calls to atoi with strtonum so that netstat -w 0 doesn't > do weird stuff. > > Index: main.c > === > RCS file: /cvs/src/usr.bin/netstat/main.c,v

netstat strtonum

2014-02-13 Thread Ted Unangst
replace some calls to atoi with strtonum so that netstat -w 0 doesn't do weird stuff. Index: main.c === RCS file: /cvs/src/usr.bin/netstat/main.c,v retrieving revision 1.99 diff -u -p -r1.99 main.c --- main.c 10 Jan 2014 04:54:35

D-Link DSR octeon-based models

2014-02-13 Thread Paul Irofti
Hi there, I just updated the hardware section for the octeon port and added the DSR-500 model to the supported list. I was wondering if similar models might also work with what's in-tree. Could people NFS-boot or at least try the ramdisk kernel on similar models (e.g. DSR-500N, DSR-1000, DSR-100