History log of /freebsd-current/usr.bin/usbhidaction/usbhidaction.c
Revision Date Author Comments
# 2a63c3be 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# b61a5730 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD

The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# b27480c6 28-Sep-2015 Hans Petter Selasky <hselasky@FreeBSD.org>

Store PID after becoming a daemon() and not before to ensure the
correct PID gets written to the PID file.

Submitted by: Maxime Soule <btik-fbsd@scoubidou.com>
PR: 203252
MFC after: 2 weeks


# 793cdace 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to usbhidaction(1)


# 7778ab7e 28-Sep-2011 Alexander Motin <mav@FreeBSD.org>

MFprojects/hid:
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.


# 1bee2ec7 30-Jul-2011 Alexander Motin <mav@FreeBSD.org>

MFprojects/hid:
- 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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 34759932 31-Aug-2010 Kevin Lo <kevlo@FreeBSD.org>

For consistency, cast result of getpid() to long


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 89f84ab0 16-Feb-2010 Warner Losh <imp@FreeBSD.org>

The NetBSD Foundation has granted permission to remove clause 3 and 4
from their software.

Obtained from: NetBSD


# 821df508 12-Dec-2009 Xin LI <delphij@FreeBSD.org>

Revert most part of 200420 as requested, as more review and polish is
needed.


# 6f2d3221 11-Dec-2009 Xin LI <delphij@FreeBSD.org>

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# bf41796c 23-Feb-2009 Andrew Thompson <thompsa@FreeBSD.org>

Build fixups for the new USB stack.


# 7e474656 01-Feb-2009 Alfred Perlstein <alfred@FreeBSD.org>

src/usr.bin/usbhidaction/usbhidaction.c
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


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 986bd841 29-Jun-2007 Warner Losh <imp@FreeBSD.org>

Add support using an alternate table file to usbhidaction(1).

Submitted by: Michael Haro
PR: 61234
Approved by: re (bmah)


# a77c5ad8 09-Mar-2004 David Malone <dwmalone@FreeBSD.org>

Misc fixes brought to light by WARNS=6:

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.


# 6ec73e0e 10-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Fix debounce. I forgot these bits in my last commit.

Submitted by: Mathew Kanner <mat@cnd.mcgill.ca>


# f5a4d3f0 09-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

- Implement debounce support.
- Clean up examples.
- Call deamon(3) after we open the PID file.

Submitted by: Mathew Kanner <mat@cnd.mcgill.ca>


# ce5b9347 09-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Add usbhidaction(1).

This allows actions to be bound to HID events.

Obtained from: NetBSD