dhcpd uses bad current time

2013-05-15 Thread Gerhard Roth
In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an arbitrary amount of time, the value of cur_time might refer to some long ago point in time. When message dispatching is done, timeouts and lease ends

Re: dhcpd uses bad current time

2013-05-15 Thread Otto Moerbeek
On Wed, May 15, 2013 at 10:15:54AM +0200, Gerhard Roth wrote: In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an arbitrary amount of time, the value of cur_time might refer to some long ago point

Re: dhcpd uses bad current time

2013-05-15 Thread Gerhard Roth
On Wed, 15 May 2013 10:15:54 +0200 Gerhard Roth gr...@genua.de wrote: In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an arbitrary amount of time, the value of cur_time might refer to some long

Re: dhcpd uses bad current time

2013-05-15 Thread Gerhard Roth
On Wed, 15 May 2013 10:24:22 +0200 Otto Moerbeek o...@drijf.net wrote: On Wed, May 15, 2013 at 10:15:54AM +0200, Gerhard Roth wrote: In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an

cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Alexey Suslikov
Hi. Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h and, for instance, this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_dma.c.diff?r1=1.6;r2=1.7;f=h Former says No viewable change. I think it isn't normal. Am I

Add Edimax EW-7711USn to run.4 hardware list

2013-05-15 Thread Dawe
Hi, I had the chance to test this device with current amd64 in a wpa2 network. run0 at uhub2 port 1 Ralink 802.11 n WLAN rev 2.00/1.01 addr 3 run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 80:1f:02:85:16:f2 Index: run.4

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Mark Kettenis
Date: Wed, 15 May 2013 13:05:06 +0300 From: Alexey Suslikov alexey.susli...@gmail.com Hi. Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h and, for instance, this

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Alexey E. Suslikov
Mark Kettenis mark.kettenis at xs4all.nl writes: Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h and, for instance, this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_dma.c.diff?r1=1.6;r2=1.7;f=h

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Stuart Henderson
On 2013/05/15 10:43, Alexey E. Suslikov wrote: Mark Kettenis mark.kettenis at xs4all.nl writes: Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h and, for instance, this

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Stuart Henderson
On 2013/05/15 11:53, Stuart Henderson wrote: On 2013/05/15 10:43, Alexey E. Suslikov wrote: Mark Kettenis mark.kettenis at xs4all.nl writes: Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h and, for instance, this

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Alexey Suslikov
googled gnu cvs utf diff and found this http://stackoverflow.com/questions/778291/how-do-i-diff-utf-16-files-with-gnu-diff On Wed, May 15, 2013 at 2:03 PM, Stuart Henderson st...@openbsd.org wrote: On 2013/05/15 11:53, Stuart Henderson wrote: On 2013/05/15 10:43, Alexey E. Suslikov wrote:

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Jonathan Gray
On Wed, May 15, 2013 at 11:53:45AM +0100, Stuart Henderson wrote: On 2013/05/15 10:43, Alexey E. Suslikov wrote: Mark Kettenis mark.kettenis at xs4all.nl writes: Try this http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/i915/i915_drv.c.diff?r1=1.26;r2=1.27;f=h

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Stefan Sperling
On Wed, May 15, 2013 at 12:03:46PM +0100, Stuart Henderson wrote: $ rcsdiff -u -r1.26 -r1.27 /cvs/src/sys/dev/pci/drm/i915/i915_drv.c,v === RCS file: /cvs/src/sys/dev/pci/drm/i915/i915_drv.c,v retrieving revision 1.26

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Stefan Sperling
On Wed, May 15, 2013 at 09:12:02PM +1000, Jonathan Gray wrote: isprint() is to blame here, ie with the following hack it shows a diff Index: diff.c === RCS file: /cvs/src/usr.bin/rcs/diff.c,v retrieving revision 1.33 diff -u

Re: add nl(1)

2013-05-15 Thread Todd C. Miller
On Fri, 10 May 2013 23:58:23 +0200, =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- Anglas?= wrote: + switch (numbering_properties[section].type) { + case number_all: + /* +* Doing this for number_all only is disputable, but +

Re: add nl(1)

2013-05-15 Thread Todd C. Miller
I've taken your diff and merged some useful bits from FreeBSD. Specifically, the use of getline() and multibyte support for the -d option. I also made the functions non-static (though I don't think that is such a big deal) and tweaked the manual to treat '-' like cat(1) as per j...@wxcvbn.org's

Re: add nl(1)

2013-05-15 Thread Jérémie Courrèges-Anglas
Todd C. Miller todd.mil...@courtesan.com writes: On Fri, 10 May 2013 23:58:23 +0200, =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- Anglas?= wrote: + switch (numbering_properties[section].type) { + case number_all: + /* + * Doing this

Re: add nl(1)

2013-05-15 Thread Arto Jonsson
On Wed, May 15, 2013 at 06:16:55AM -0600, Todd C. Miller wrote: I've taken your diff and merged some useful bits from FreeBSD. Specifically, the use of getline() and multibyte support for the -d option. I asked stsp@ about the multibyte support yesterday and it was his opinion that it's not

Re: add nl(1)

2013-05-15 Thread Todd C. Miller
On Wed, 15 May 2013 16:16:53 +0300, Arto Jonsson wrote: I asked stsp@ about the multibyte support yesterday and it was his opinion that it's not currently needed. Seemed like it might be useful for the future but I suppose we can add things like this when we have better multibyte support.

Re: add nl(1)

2013-05-15 Thread Stefan Sperling
On Wed, May 15, 2013 at 07:52:30AM -0600, Todd C. Miller wrote: On Wed, 15 May 2013 16:16:53 +0300, Arto Jonsson wrote: I asked stsp@ about the multibyte support yesterday and it was his opinion that it's not currently needed. Seemed like it might be useful for the future but I suppose

Re: add nl(1)

2013-05-15 Thread Arto Jonsson
On Wed, May 15, 2013 at 07:52:30AM -0600, Todd C. Miller wrote: If that's the case, can't we just do: if (donumber) { (void)printf(format, width, line); line += incr; (void)fputs(sep, stdout); } else { (void)printf(%*s, width, ); }

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Ted Unangst
On Wed, May 15, 2013 at 13:25, Stefan Sperling wrote: This should make it work. See also r1.82 of usr.bin/diff/diffreg.c. I love this bug! There's lots of copies so everybody gets a chance to fix it. Index: diff.c === RCS

Re: Add Edimax EW-7711USn to run.4 hardware list

2013-05-15 Thread Jason McIntyre
On Wed, May 15, 2013 at 12:17:27PM +0200, Dawe wrote: Hi, I had the chance to test this device with current amd64 in a wpa2 network. run0 at uhub2 port 1 Ralink 802.11 n WLAN rev 2.00/1.01 addr 3 run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 80:1f:02:85:16:f2

Re: cvsweb says 'No viewable change' for i915_drv.c diffs

2013-05-15 Thread Stuart Henderson
On 2013/05/15 14:14, Ted Unangst wrote: On Wed, May 15, 2013 at 13:25, Stefan Sperling wrote: This should make it work. See also r1.82 of usr.bin/diff/diffreg.c. I love this bug! There's lots of copies so everybody gets a chance to fix it. if only there were a way to have a single copy of

apmd messages

2013-05-15 Thread Ted Unangst
I would like for apmd to tell me when the system goes to sleep, not just when it wakes up. Index: apmd.c === RCS file: /cvs/src/usr.sbin/apmd/apmd.c,v retrieving revision 1.59 diff -u -p -r1.59 apmd.c --- apmd.c 29 Apr 2013

Links for LC_CTYPE in /usr/share/locale

2013-05-15 Thread Vladimir Támara Patiño
Attached. Related to thread: http://thread.gmane.org/gmane.os.openbsd.tech/31923 -- Dios, gracias por tu amor infinito. -- Vladimir Támara Patiño. http://vtamara.pasosdeJesus.org/ http://www.pasosdejesus.org/dominio_publico_colombia.html Index: Makefile