Re: Support for ALPS touchpads

2011-09-19 Thread Martin Pieuchot
On 15/09/11(Thu) 00:10, Alexandr Shadchin wrote: [...] Using { 0x7326, ALPS_UNSUPPORTED } is not best idea. Instead if (alps-model ALPS_UNSUPPORTED) use if (alps-model == 0) or even better #define ALPS_UNSUPPORTED 0 ... if (alps-model ==

Re: Support for ALPS touchpads

2011-09-19 Thread Martin Pieuchot
On 19/09/11(Mon) 09:46, Martin Pieuchot wrote: On 15/09/11(Thu) 00:10, Alexandr Shadchin wrote: [...] Using { 0x7326, ALPS_UNSUPPORTED } is not best idea. Instead if (alps-model ALPS_UNSUPPORTED) use if (alps-model == 0) or even better #define ALPS_UNSUPPORTED

Re: Do less work under splusb()

2011-09-19 Thread Loganaden Velvindron
I can only confirm that this doesn't break anything on my machine. The USB keyboard is still working properly. # dmesg | grep -i ehci ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 1 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1

Newbie project idea: New POSIX 2008 functionality for ln(1)

2011-09-19 Thread Matthew Dempsky
Here's a small project for someone with basic C programming experience and an understanding of UNIX system calls (e.g., file descriptors and symbolic vs hard links). Thought I'd send it to tech@ first in case anyone's interested in working on it as a starter project. POSIX 2008 added two new

delete at_* prototypes in ifconfig

2011-09-19 Thread Rafael Sadowski
Hello, any comment? ;-) best regards Rafael Sadowski cvs server: Diffing ifconfig Index: ifconfig/ifconfig.c === RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v retrieving revision 1.249 diff -u -r1.249 ifconfig.c ---

sftp upload diff similar to scp

2011-09-19 Thread elitter.net
It's annoying to upload using interactive mode. This diff works like scp. sftp localfile user@host:dir Index: sftp.c === RCS file: /cvs/src/usr.bin/ssh/sftp.c,v retrieving revision 1.132 diff -u -p -r1.132 sftp.c --- sftp.c 4

Re: sftp upload diff similar to scp

2011-09-19 Thread Christiano F. Haesbaert
Not sure if I got this, but why not using scp then ? On 19 September 2011 14:52, elitter.net logana...@elitter.net wrote: It's annoying to upload using interactive mode. This diff works like scp. sftp localfile user@host:dir Index: sftp.c

Re: sftp upload diff similar to scp

2011-09-19 Thread Loganaden Velvindron
SFTP is better designed IMHO. I agree that from a user's perspective, it doesn't really matter much :-) On Mon, Sep 19, 2011 at 11:29 PM, Christiano F. Haesbaert haesba...@haesbaert.org wrote: Not sure if I got this, but why not using scp then ? On 19 September 2011 14:52, elitter.net

Re: sftp upload diff similar to scp

2011-09-19 Thread Stuart Henderson
On 2011/09/19 16:29, Christiano F. Haesbaert wrote: Not sure if I got this, but why not using scp then ? You might need to use the sftp protocol rather than scp with some servers. On 19 September 2011 14:52, elitter.net logana...@elitter.net wrote: It's annoying to upload using interactive

sftp diff to allow uploading from command line

2011-09-19 Thread Loganaden Velvindron
This makes sftp similar to scp whereby one can also do something like: sftp local_file user@remotehost:/dir/ I'm too lazy to use interactive mode :-) Index: sftp.c === RCS file: /cvs/src/usr.bin/ssh/sftp.c,v retrieving revision

support for Intel i340/82580 in em(4)

2011-09-19 Thread Jonathan Gray
The following adds support for Intel 82580 based cards like the Intel i340 and HP NC365T. Please test to make sure it does not break your existing em, especially with multiport setups. Index: if_em.c === RCS file:

Re: sftp diff to allow uploading from command line

2011-09-19 Thread Theo de Raadt
This makes sftp similar to scp whereby one can also do something like: sftp local_file user@remotehost:/dir/ What you have written isn't even close to similar. A little bit like, maybe. But not similar.

Re: sftp diff to allow uploading from command line

2011-09-19 Thread jirib
On Mon, 19 Sep 2011 10:11:50 -0400 (EDT) logana...@devio.us (Loganaden Velvindron) wrote: This makes sftp similar to scp whereby one can also do something like: sftp local_file user@remotehost:/dir/ I'm too lazy to use interactive mode :-) Check batch - '-b'. Anyway, if you want to improve

compat linux pipe2() circus

2011-09-19 Thread Paul Irofti
Linux keeps surprising me everytime! This time its their pipe2 system call which adds flags to the pipe call. Its the unix-ish way apparently to turn pipes into files on a kernel filesystem, or so they claim. Anywho, this fixes glibc pipe2 system calls by wrapping against the regular pipe

Re: compat linux pipe2() circus

2011-09-19 Thread Joerg Sonnenberger
On Tue, Sep 20, 2011 at 01:41:35AM +0300, Paul Irofti wrote: This time its their pipe2 system call which adds flags to the pipe call. Its the unix-ish way apparently to turn pipes into files on a kernel filesystem, or so they claim. No, the idea is to make it possible to set O_CLOEXEC

hackathon in slovenia

2011-09-19 Thread Theo de Raadt
As some of you may have noticed, some of us are currently in Slovenia doing a hackathon of sorts. About 20 of us. Lots of good stuff coming out of it. If you see diffs you can test, please do so. For those who don't know about our hackathons, see http://www.openbsd.org/hackathons.html The

Re: compat linux pipe2() circus

2011-09-19 Thread Matthew Dempsky
On Mon, Sep 19, 2011 at 4:22 PM, Joerg Sonnenberger jo...@britannica.bec.de wrote: No, the idea is to make it possible to set O_CLOEXEC atomically. Of course, the pipe2 system call as implemented in Linux is kind of messed up, since the flag attribute applies to both sides of the pipe. If you