Re: replace select with nanosleep in libc/termios/tcsendbreak.c

2014-10-09 Thread Philip Guenther
On Wed, Oct 8, 2014 at 10:22 PM, David Gwynne da...@gwynne.id.au wrote: deraadt points out i suck at grep. ok? Sure. Even has the same semantics if a signal is received.

atheros 9485

2014-10-09 Thread Kirill Bychkov
Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1746 diff -u -p -u -r1.1746 pcidevs --- pcidevs 8 Oct 2014 07:41:27 - 1.1746 +++ pcidevs 9 Oct 2014 09:43:28 - @@ -1835,6 +1835,7

Re: no respone on Passphrase after first boot on -current

2014-10-09 Thread Stefan Sperling
On Thu, Oct 09, 2014 at 06:23:17AM +0200, Jiri Navratil wrote: Hello, I bought acer TravelMate notebook TMB115-M-COEA to follow -current and partitipate on LibreSSL. I installed system from snapshot and used softraid0 crypto on whole sd0. After first boot I have Passsphrase prompt and I

Re: atheros 9485

2014-10-09 Thread Stefan Sperling
On Thu, Oct 09, 2014 at 01:48:23PM +0400, Kirill Bychkov wrote: Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1746 diff -u -p -u -r1.1746 pcidevs --- pcidevs 8 Oct 2014 07:41:27 -

Re: improving OpenBSD's gmac.c...

2014-10-09 Thread Christian Weisgerber
John-Mark Gurney: I also have an implementation of ghash that does a 4 bit lookup table version with the table split between cache lines in p4 at: https://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/opencrypto/sys/opencrypto/gfmult.cREV=4 This also has a version with does 4 blocks

Re: replace select with poll in libc

2014-10-09 Thread Todd C. Miller
Two comments inline, otherwise OK. - todd On Thu, 09 Oct 2014 14:52:50 +1000, David Gwynne wrote: Index: net/rcmd.c === RCS file: /cvs/src/lib/libc/net/rcmd.c,v retrieving revision 1.56 diff -u -p -r1.56 rcmd.c ---

Re: replace select with nanosleep in libc/termios/tcsendbreak.c

2014-10-09 Thread Todd C. Miller
You should #include time.h for the nanosleep prototype. Otherwise OK. - todd On Thu, 09 Oct 2014 15:22:29 +1000, David Gwynne wrote: deraadt points out i suck at grep. ok? Index: termios/tcsendbreak.c === RCS file:

Re: atheros 9485

2014-10-09 Thread Kirill Bychkov
On Thu, October 9, 2014 14:02, Stefan Sperling wrote: On Thu, Oct 09, 2014 at 01:48:23PM +0400, Kirill Bychkov wrote: Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1746 diff -u -p -u -r1.1746

Re: FIFO fd not marked readable after EOF

2014-10-09 Thread Todd C. Miller
Here is a better diff that passes the newly-updated regress test. It does two extra things: 1) causes POLLHUP to be returned in revents on EOF 2) clears the EOF condition on read so when another writer connects we don't still have an EOF pending Ultimately we should investigate using a

Re: atheros 9485

2014-10-09 Thread Stefan Sperling
On Thu, Oct 09, 2014 at 03:53:19PM +0400, Kirill Bychkov wrote: On Thu, October 9, 2014 14:02, Stefan Sperling wrote: On Thu, Oct 09, 2014 at 01:48:23PM +0400, Kirill Bychkov wrote: Index: pcidevs === RCS file:

Re: armv7: banana pi, Allwinner A20 board

2014-10-09 Thread Jonathan Gray
Here are some updated images with the fix for the interrupt controller on cortex a7/15. http://marc.info/?l=openbsd-cvsm=141278003609690w=2 http://jsg.id.au/openbsd/armv7/bsd.SUNXI.umg http://jsg.id.au/openbsd/armv7/bsd.rd.SUNXI.umg Though it sounds like A20/sun7i handles the timer in a

Fix CPU_INFO_FOREACH on powperc

2014-10-09 Thread Martin Pieuchot
If the macro is used before the secondary CPUs are running, it won't do what you expect. This makes profiling usable on macppc's GENERIC.MP. Ok? Index: include/cpu.h === RCS file: /cvs/src/sys/arch/powerpc/include/cpu.h,v

rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
Hello, While working on rcctl(8) support for ansible I have run into a situation I am not sure how to deal with. Basically, if the user has supplied arguments we append flags whatever the user requested and this works good. If the user supplied no arguments, but there currently are flags set in

Re: improving OpenBSD's gmac.c...

2014-10-09 Thread Chris Cappuccio
Christian Weisgerber [na...@mips.inka.de] wrote: John-Mark Gurney: I also have an implementation of ghash that does a 4 bit lookup table version with the table split between cache lines in p4 at:

Re: rcctl(8): special services and flags

2014-10-09 Thread Antoine Jacoutot
On Thu, Oct 09, 2014 at 09:02:14PM +0200, Patrik Lundin wrote: Hello, While working on rcctl(8) support for ansible I have run into a situation I am not sure how to deal with. Basically, if the user has supplied arguments we append flags whatever the user requested and this works good.

Re: rcctl(8): special services and flags

2014-10-09 Thread Ingo Schwarze
Hi Patrik, Patrik Lundin wrote on Thu, Oct 09, 2014 at 09:02:14PM +0200: While working on rcctl(8) support for ansible I have run into a situation I am not sure how to deal with. Basically, if the user has supplied arguments we append flags whatever the user requested and this works good.

Re: rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 10:02:50PM +0200, Antoine Jacoutot wrote: The later behaviour causes a problem when modifying special services like pf. When disabling pf a pf=NO is added to rc.conf.local as expected, but when trying to enable it again it will fail because the ansible module

Re: rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 10:04:44PM +0200, Ingo Schwarze wrote: A possible solution to this would be to relax the flags check in rcctl, so it only cares if there are actual flags supplied. See diff below for a suggestion on how to deal with this which seems to work. The first half of the

rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
Hello, This is another question triggered by working on rcctl(8) support for the ansible service module. The module wants to figure out if it should reset the flags in rc.conf.local to the default set if no arguments are supplied by the user. The problem with this is that there is no way to

Re: rcctl(8): special services and flags

2014-10-09 Thread Antoine Jacoutot
An example would be if the user started out with supplying -s to ntpd and then changes his mind and removes the flag. The idea is to then call rcctl with an empty flags argument to get the default set of flags instead. It was my understanding from the man page that this was the approriate

Re: armv7: banana pi, Allwinner A20 board

2014-10-09 Thread SASANO Takayoshi
Hello, Here is the log of new image. Booting with -c option, UKC still hangs up. I hope the log helps debugging. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board: Bananapi DRAM: 1024 MiB CPU: 96000Hz, AXI/AHB/APB:

Add Logitech C310 to usbdevs

2014-10-09 Thread Jonathan Armani
Hi, Diff add my Logitech Webcam C310 to usbdevs. Bus 000 Device 003: ID 046d:081b Logitech, Inc. Webcam C310 ok ? Index: usbdevs === RCS file: /cvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.637 diff -u -p -r1.637 usbdevs

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Antoine Jacoutot
The module wants to figure out if it should reset the flags in rc.conf.local to the default set if no arguments are supplied by the user. Can you provide an example. Because if not arguments are supplied, according to your previous mail, it should run like: rcctl enable foobar flags which

Add Logitech C310 to uvideo(4)

2014-10-09 Thread Jonathan Armani
Hi, The Logitech Webcam C310 just works, diff add it to uvideo(4). ok ? Index: uvideo.4 === RCS file: /cvs/src/share/man/man4/uvideo.4,v retrieving revision 1.35 diff -u -p -r1.35 uvideo.4 --- uvideo.417 Sep 2012 11:04:24

[diff] wc - type consistency

2014-10-09 Thread Nicolas Bedos
The following diff improves type consistency in wc: the return type of read() is ssize_t, so the type of 'len' should be ssize_t too. There is no reason for it to be an int. Nicolas Bedos Index: src/usr.bin/wc/wc.c === RCS file:

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 10:58:34PM +0200, Antoine Jacoutot wrote: The module wants to figure out if it should reset the flags in rc.conf.local to the default set if no arguments are supplied by the user. Can you provide an example. Because if not arguments are supplied, according to

Re: Add Logitech C310 to usbdevs

2014-10-09 Thread Martin Pieuchot
On 09/10/14(Thu) 22:58, Jonathan Armani wrote: Hi, Diff add my Logitech Webcam C310 to usbdevs. Bus 000 Device 003: ID 046d:081b Logitech, Inc. Webcam C310 What do you see in your dmesg when you don't have this entry in usbdevs? Is it understandable? I'm asking, because generally USB

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Antoine Jacoutot
Sorry, I should probably have been more clear on the reason I need it :). The main issue from the ansible perspective is to know if we are _going_ to change something or not. The user may for example run ansible in --check mode where it should only report if it is about to change something

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 11:25:58PM +0200, Antoine Jacoutot wrote: Sorry, I should probably have been more clear on the reason I need it :). The main issue from the ansible perspective is to know if we are _going_ to change something or not. The user may for example run ansible in

Re: Add Logitech C310 to usbdevs

2014-10-09 Thread Jonathan Armani
Before uvideo0 at uhub0 port 4 configuration 1 interface 0 Logitech product 0x081b rev 2.00/0.12 addr 4 After uvideo0 at uhub0 port 4 configuration 1 interface 0 Logitech Webcam C310 rev 2.00/0.12 addr 3 2014-10-09 23:20 GMT+02:00 Martin Pieuchot mpieuc...@nolizard.org: On 09/10/14(Thu)

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 11:51:50PM +0200, Patrik Lundin wrote: To solve this I need the default flags to compare to the output of 'status'. ... I guess another solution could be if 'status' only showed flags that differed from the default. Regards, Patrik Lundin

Re: improving OpenBSD's gmac.c...

2014-10-09 Thread Damien Miller
On Thu, 9 Oct 2014, Christian Weisgerber wrote: John-Mark Gurney: I also have an implementation of ghash that does a 4 bit lookup table version with the table split between cache lines in p4 at:

Re: replace select with poll in libc

2014-10-09 Thread David Gwynne
On Thu, Oct 09, 2014 at 05:36:07AM -0600, Todd C. Miller wrote: Two comments inline, otherwise OK. like this? a couple of people also suggested changing select to poll in the error messages. Index: net/rcmd.c === RCS file:

Re: replace select with poll in libc

2014-10-09 Thread David Gwynne
On Fri, Oct 10, 2014 at 02:42:08PM +1000, David Gwynne wrote: On Thu, Oct 09, 2014 at 05:36:07AM -0600, Todd C. Miller wrote: Two comments inline, otherwise OK. like this? a couple of people also suggested changing select to poll in the error messages. theo made me look at where i was