summaryrefslogtreecommitdiffstats
path: root/usr.bin/usbhidaction/usbhidaction.c
Commit message (Collapse)AuthorAgeFilesLines
* Store PID after becoming a daemon() and not before to ensure thehselasky2015-09-281-8/+6
| | | | | | | | correct PID gets written to the PID file. Submitted by: Maxime Soule <btik-fbsd@scoubidou.com> PR: 203252 MFC after: 2 weeks
* Add missing static keywords to usbhidaction(1)ed2011-11-061-1/+1
|
* MFprojects/hid:mav2011-09-281-16/+27
| | | | | | | | | | | | | | Import the rest of HID improvements from the branch: - improve report descriptor parser in libusbhid to handle several kinds of reports same time; - add to the libusbhid API two functions wrapping respective kernel IOCTLs for reading and writing reports; - tune uhid IOCTL interface to allow reading and writing arbitrary report, when multiple supported by the device; - teach usbhidctl to set output and feature reports; - make usbhidaction support all the same item names as bhidctl. Sponsored by: iXsystems, inc.
* MFprojects/hid:mav2011-07-301-5/+23
| | | | | | | | | | | | - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1. Approved by: re (kib) MFC after: 2 weeks
* For consistency, cast result of getpid() to longkevlo2010-08-311-1/+2
|
* The NetBSD Foundation has granted permission to remove clause 3 and 4imp2010-02-161-7/+0
| | | | | | from their software. Obtained from: NetBSD
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Build fixups for the new USB stack.thompsa2009-02-231-1/+1
|
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-02-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps
* Add support using an alternate table file to usbhidaction(1).imp2007-06-301-3/+7
| | | | | | Submitted by: Michael Haro PR: 61234 Approved by: re (bmah)
* Misc fixes brought to light by WARNS=6:dwmalone2004-03-091-14/+17
| | | | | | | | 1) Constness, unusedness and size_tness. 2) Don't clobber the value returned by hid_report_size in the daemon case. 3) Don't misspell "sizeof buf" as 100. 4) Don't run off the end of a buffer if the pid is about a google. 5) Avoid shadowing the usage function.
* Fix debounce. I forgot these bits in my last commit.mdodd2003-04-101-1/+3
| | | | Submitted by: Mathew Kanner <mat@cnd.mcgill.ca>
* - Implement debounce support.mdodd2003-04-091-11/+53
| | | | | | | - Clean up examples. - Call deamon(3) after we open the PID file. Submitted by: Mathew Kanner <mat@cnd.mcgill.ca>
* Add usbhidaction(1).mdodd2003-04-091-0/+449
This allows actions to be bound to HID events. Obtained from: NetBSD
OpenPOWER on IntegriCloud