Commit Graph

21 Commits

Author SHA1 Message Date
christos 1245f2f0ca Sprinkle static, pass lib, warns=4 2006-05-19 14:43:58 +00:00
christos f2dd1e3c0c Coverity CID 1772: Close file on error return. 2006-05-01 00:03:15 +00:00
dsainty 432d19fe4b By setting close-on-exec on the USB HID device descriptor, prevent passing an
extraneous descriptor to the command defined as the action to take on a
particular HID event.

This also avoids an unfortunate side-effect: killing and restarting
usbhidaction would sometimes fail because of a lingering open descriptor for
the same device on a process executed by the previous run of usbhidaction.

[OK'd by Lennart]
2005-07-02 04:05:09 +00:00
augustss 6fbdbcbb3e If running as a demon, make sure config file has an absolute path name.
Partly addresses PR 15769.
2005-04-29 17:18:30 +00:00
dsl 1869f0e146 Add (unsigned char) cast to ctype functions 2004-11-05 21:56:01 +00:00
augustss 7efc81ca56 Make stdout line buffered (in case you are logging). 2004-10-31 21:10:59 +00:00
augustss 689cf598a2 Change logic in patch to allow CONST collections a little. 2004-10-20 13:56:53 +00:00
augustss 9a9d5c1a03 Allow a HID table to be specified (as for usbhidctl). 2004-10-20 13:53:56 +00:00
augustss 7dae9ae8ac Allow a collection to have the CONST flag.
Add some debug.
2004-10-20 13:49:15 +00:00
mrg 6f0ae3f96d don't syslog() or errx() a \n. 2004-10-10 01:16:17 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
itojun aa5672d8c5 sscanf overrun 2003-05-17 01:02:01 +00:00
itojun f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
augustss cbb3d4301d Re-read the configuration file on HUP. 2002-01-18 14:38:59 +00:00
augustss e7408f3af1 Make it possible to recognize values in usage ranges. 2001-12-29 23:17:50 +00:00
augustss ab2923bd65 Fix some buglets. 2001-12-29 22:15:32 +00:00
augustss 0519f15d3d Update for libusbhid(3) changes. 2001-12-28 17:49:31 +00:00
cgd c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
augustss ba3249597d Add copyright notice. 2000-12-30 13:10:12 +00:00
augustss 6a55a964fc Add a command to perform commands when USB HID items take on certain
values.
Some sample uses: controlling USB speakers with the HID buttons on them,
	invoking the proper programs from the HID buttons on modern USB
	keyboards.
2000-12-30 13:07:48 +00:00