Re: make robots(6) use ppoll() and timespec

2015-08-24 Thread Philip Guenther
On Mon, Aug 24, 2015 at 7:29 PM, Rafael Zalamena wrote: > Following the worm(6) bug fix and improvement, make robots(6) do it as > well. > > Changes: > * Replace timeval with timespec structs; > * Use clock_gettime(CLOCK_UPTIME) instead of gettimeofday(); > * Use timespec*() instead of manual m

make robots(6) use ppoll() and timespec

2015-08-24 Thread Rafael Zalamena
Following the worm(6) bug fix and improvement, make robots(6) do it as well. Changes: * Replace timeval with timespec structs; * Use clock_gettime(CLOCK_UPTIME) instead of gettimeofday(); * Use timespec*() instead of manual math operations; * Use ppoll() instead of poll() + math operations; N

Re: [patch] radiusd: rm -h flag, fail earlier (and print usage) given an unknown option

2015-08-24 Thread YASUOKA Masahiko
Thanks for the diffs for radius{d,ctl}. Commited both. On Mon, 24 Aug 2015 15:54:22 -0400 Michael Reed wrote: > This patch removes the -h flag because it seems very rare in > OpenBSD programs, perhaps because options are usually already > documented in manuals, as is the case for radiusd. Regar

Re: RTM_DELETE and route refcount

2015-08-24 Thread Martin Pieuchot
On 24/08/15(Mon) 20:32, Mike Belopuhov wrote: > On Thu, Aug 20, 2015 at 20:10 +0200, Martin Pieuchot wrote: > > On 20/08/15(Thu) 18:20, Mike Belopuhov wrote: > [...] > Thanks a lot for taking your time to dig through this. > Your diff looks good to me apart from the small bit where > you've moved

Re: RTM_DELETE and route refcount

2015-08-24 Thread Martin Pieuchot
On 24/08/15(Mon) 22:40, Alexander Bluhm wrote: > On Thu, Aug 20, 2015 at 01:37:00PM +0200, Martin Pieuchot wrote: > > --- net/route.c 19 Aug 2015 13:27:38 - 1.223 > > +++ net/route.c 20 Aug 2015 11:25:54 - > > @@ -570,12 +570,8 @@ rtdeletemsg(struct rtentry *rt, u_int ta > >

Re: RTM_DELETE and route refcount

2015-08-24 Thread Alexander Bluhm
On Thu, Aug 20, 2015 at 01:37:00PM +0200, Martin Pieuchot wrote: > --- net/route.c 19 Aug 2015 13:27:38 - 1.223 > +++ net/route.c 20 Aug 2015 11:25:54 - > @@ -570,12 +570,8 @@ rtdeletemsg(struct rtentry *rt, u_int ta > info.rti_flags = rt->rt_flags; > ifp = rt->

[patch] ctags(1): make -w the default

2015-08-24 Thread Michael Reed
Hi all, As mentioned in the `EXIT STATUS' section of the ctags manual, duplicate objects are not considered errors. Given that, I don't think warnings about them should be printed by default, especially since they can fill a whole terminal screen and aren't particularly useful, at least to me. A

[patch] radiusd: rm -h flag, fail earlier (and print usage) given an unknown option

2015-08-24 Thread Michael Reed
Hi all, This patch removes the -h flag because it seems very rare in OpenBSD programs, perhaps because options are usually already documented in manuals, as is the case for radiusd. Regardless of the rest of the system, I don't think an -h flag does much good for radiusd given how simple its opti

Re: document clear(1) a bit more prominently

2015-08-24 Thread Jérémie Courrèges-Anglas
Theo Buehler writes: > The clear(1) manpage is linked to the tput(1) manpage, but the clear > utility is only mentioned in the history section. I suggest to make its > appearance in the manual page a little more prominent. Committed, with the following difference, suggested by jmc@: = When

[patch] radiusctl: clean up usage info + `return' from main()

2015-08-24 Thread Michael Reed
Hi all, This patch does the following: - Removes references to the -h flag, which was removed from radiusctl(8) a while ago. - When in main(), use `return' instead of exit(3), which reduces the size of radiusctl a bit. I find this more elegant, but that's subjective, so please feel free to

Re: RTM_DELETE and route refcount

2015-08-24 Thread Mike Belopuhov
On Thu, Aug 20, 2015 at 20:10 +0200, Martin Pieuchot wrote: > On 20/08/15(Thu) 18:20, Mike Belopuhov wrote: > > Makes you wonder why the heck it wasn't done in the first place, > > doesn't it? > > If you look at the original CSRG source tree, you'll see how/why > this happened :) > > When karels@

Re: doas auth

2015-08-24 Thread Ted Unangst
Alexander Hall wrote: > I was inspired by a related mail to send out this doas auth diff again. > Hopefully my phone won't ruin the formatting. > > . . . . . > > Add a type to auth_userokay() to allow for giving a specific > authentication method for doas in login.conf, e.g. > > staff:\ >

Re: doas authentication type

2015-08-24 Thread Renaud Allard
On 08/24/2015 11:15 AM, Renaud Allard wrote: Hello, Is there a plan to make it possible to specify the authentication type in doas, like "sudo -a" does? This is useful in the case you are using a login.conf with something like: "auth-defaults:auth=yubikey,passwd;". Regards Here is the patch

doas auth

2015-08-24 Thread Alexander Hall
I was inspired by a related mail to send out this doas auth diff again. Hopefully my phone won't ruin the formatting. . . . . . Add a type to auth_userokay() to allow for giving a specific authentication method for doas in login.conf, e.g. staff:\ ... :auth-doas=yubikey:\

Re: [patch] ports.7 macro fixes

2015-08-24 Thread Anthony J. Bentley
Michael Reed writes: > Hi, > > This is in the same vein as [1], which replaced the usage of `Ar' with > `Cm' where applicable. Besides that, I unindented line 134 because > `-offset indent' is already being used, but that's it. > > Regards, > Michael > > [1]: https://marc.info/?l=openbsd-tech&m

Re: Wrong man links on 58.html

2015-08-24 Thread Anthony J. Bentley
Alexey Suslikov writes: > In > > wscons(4) works with even more odd trackpads. > Added pvbus(4) paravirtual device tree root on virtual machines that > are running on hypervisors. > > http://www.openbsd.org/cgi-bin/man.cgi?query=wscons(4)&sec=4 > http://www.openbsd.org/cgi-bin/man.cgi?query=pvbus

Wrong man links on 58.html

2015-08-24 Thread Alexey Suslikov
In wscons(4) works with even more odd trackpads. Added pvbus(4) paravirtual device tree root on virtual machines that are running on hypervisors. http://www.openbsd.org/cgi-bin/man.cgi?query=wscons(4)&sec=4 http://www.openbsd.org/cgi-bin/man.cgi?query=pvbus(4)&sec=4 are wrong. Should be http://

Re: size: cannot read a.out: No such file or directory

2015-08-24 Thread Jérémie Courrèges-Anglas
Alexey Suslikov writes: > Hi tech@. > > size(1) DESCRIPTION says: > > "... If no file is specified size attempts to report on the file a.out". > > And, indeed, it warns: > > $ size > size: cannot read a.out: No such file or directory > > Above message looks misleading in a.out-less world. a.out

size: cannot read a.out: No such file or directory

2015-08-24 Thread Alexey Suslikov
Hi tech@. size(1) DESCRIPTION says: "... If no file is specified size attempts to report on the file a.out". And, indeed, it warns: $ size size: cannot read a.out: No such file or directory Above message looks misleading in a.out-less world. Cheers, Alexey

doas authentication type

2015-08-24 Thread Renaud Allard
Hello, Is there a plan to make it possible to specify the authentication type in doas, like "sudo -a" does? This is useful in the case you are using a login.conf with something like: "auth-defaults:auth=yubikey,passwd;". Regards smime.p7s Description: S/MIME Cryptographic Signature

Re: diff - more satosin/sintosa

2015-08-24 Thread Martin Pieuchot
On 21/08/15(Fri) 10:23, David Hill wrote: > Hello - > > second round of casts -> satosin/sintosa > > I believe these are the last of the conversions. ok mpi@ > > Index: sys/net/if_gif.c > === > RCS file: /cvs/src/sys/net/if_gif.c,

Re: linker error on loongson

2015-08-24 Thread Mark Kettenis
> Date: Mon, 24 Aug 2015 00:30:36 -0700 > From: Philip Guenther > > On Mon, Aug 10, 2015 at 10:01 AM, Matthieu Herrb wrote: > > while trying to build a newer xserver 1.17 on loongson, I got the > > folloing ld crash. > > > > Apparently this is already using -fPIC so I don't know how to make > >

Re: linker error on loongson

2015-08-24 Thread Philip Guenther
On Mon, Aug 10, 2015 at 10:01 AM, Matthieu Herrb wrote: > while trying to build a newer xserver 1.17 on loongson, I got the > folloing ld crash. > > Apparently this is already using -fPIC so I don't know how to make > space for local GOT entries. > > Making all in modesetting > /bin/sh ../../../..

Re: tunefs(8): Fix handling of device names

2015-08-24 Thread Steven McDonald
On Sun, 23 Aug 2015 19:45:17 +1000 Steven McDonald wrote: > fd = opendev(name, flags, 0, devicep); > if (fd == -1 && errno == ENOENT) > - devicep = &name; > + *devicep = name; I'm actually wondering if opendev(3) itself should set realpath to path in t

Re: acpi pci config space access fix

2015-08-24 Thread Giovanni Bechis
On Tue, Aug 18, 2015 at 11:13:51PM +0200, Mark Kettenis wrote: > Here is a new version of the diff to make sure we respect the access > size of pci config space reads and writes in acpi code that was backed > out. This version adds some code to make sure those reads and writes > are properly align