Commit Graph

31 Commits

Author SHA1 Message Date
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
wiz
c76ac2e131 Use Fl for flags, not "Ar -"; add verb to sentence;
grammar fix; remove trailing whitespace.
2004-10-20 23:52:04 +00:00
augustss
d44bf45e4b Update date (phew, got there before wiz! ;) 2004-10-20 13:57:36 +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
augustss
4c335c3359 Fix a typo.
Clarify path name for the config file.
2004-10-20 13:47:21 +00:00
augustss
17f791c30f Clarify and modernize a little. 2004-10-19 13:51:57 +00:00
augustss
ac26803d62 Update with an additional (useful) example. 2004-10-19 13:39:51 +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
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
itojun
f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
veego
e2e1706f05 Ups, it is LIBUSBHID and not LIBUSBHIB. 2002-02-02 16:54:26 +00:00
veego
3de557e57f Change LIBUSB to LIBUSBHIB, reflecting the library name change. 2002-02-02 16:49:52 +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
augustss
07e3980f16 Fix typo. 2001-12-09 22:53:30 +00:00
wiz
1c9dacf400 Sort sections. 2001-12-08 19:19:41 +00:00
cgd
c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
augustss
eb24c4857c Change indentation and wording a little. 2000-12-30 16:18:13 +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