rfc: import usbhidctl(1) from OpenBSD

Rene Ladan r.c.ladan at gmail.com
Sun Oct 1 14:23:30 PDT 2006


Hi,

I was thinking about the idea of sending a PR to replace our
usbhidctl(1) with that of OpenBSD/NetBSD.

It has the following advantages:
* the -w option hopefully works, the implementation of PR usb/103418
seems to be buggy
* the command 'usbhidctl -f DEV item' to display the value of a single
item actually works (our implementation returns nothing)
* in sync with OpenBSD and NetBSD
* my own PR usb/103418 and docs/103420 can be trashed.

I've sucessfully tested OpenBSD's usbhidctl(1)
(http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/usbhidctl/usbhid.c,
revision 1.7) with an Xbox 360 controller (the output report descriptor
is under development).
It compiles fine after applying the attached patch using `cc usbhid.c -o
OUTFILE -lusbhid`.

Regards,
Rene
-- 
GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)

"It won't fit on the line."
		-- me, 2001

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbsd-usbhid.c.diff
Type: text/x-patch
Size: 460 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20061001/04fe368d/openbsd-usbhid.c.bin


More information about the freebsd-usb mailing list