summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid
AgeCommit message (Collapse)AuthorFilesLines
2020-10-24some fixes from varik valefor;jmc1-7/+7
2020-06-05HID parser could overflow if a malicious device (potentially USB) providedjsg1-5/+8
too many PUSH. report from Andy Nguyen @ google. fix by jcs from kernel hid.c rev 1.3
2020-05-12usb.org was stupid enough to reshuffle their website, update some URIs;schwarze1-3/+3
noticed by clematis at insiberia dot net
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-2/+2
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-02-18type typoderaadt1-3/+3
2018-07-09Fix hid_usage_in_page(hid_parse_usage_in_page()) for the Buttons page.mpi1-4/+16
From David Bern.
2018-05-27sync with usbhid.h; from david bernjmc1-7/+7
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-18/+1
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-01-09revert manual additions of hid.h now that usbhid.h brings it injcs1-3/+1
2016-01-08pull in dev/hid/hid.h for moved HIO_* varsjcs1-1/+3
2015-02-04Return the correct report ID when hitting a "collection" item.mpi1-4/+28
Collection are reported before their corresponding report ID, so bring back the trick from old parser and do not return them until we find a report ID or another start or end of collection. Fix a regression introduced by last parser backport from FreeBSD reported by Benjamin Baier, thanks!
2015-01-18Do not calculated the length of a report with an extra byte for thempi1-3/+3
reportID because the kernel skips it. Problem reported and fix tested by Benjamin Baier.
2014-10-08use reallocarray(); ok dougderaadt1-5/+5
2014-06-04Do not skip or add a byte for the report ID when manipulating data.mpi1-1/+5
This is not compatible to our current schema where one kernel device is attached per report ID of every USB HID device since the drivers already strip the data buffers. Fix a parsing issue reported by henning@
2014-05-13various macro fixes;jmc1-9/+6
2014-05-12Keep libusbhid's HID parser in sync with the kernel one. This is mostlympi6-252/+386
a backport from FreeBSD's r205728, r224511 and 225839 without the new functions to set/get a report ID nor the usbhidctl(1) & usbhidaction(1) bits. Committing now to open the "Monday's Bump Parade".
2014-05-07use calloc. from Peter Malonetedu1-3/+2
2014-01-21obvious .Pa fixes; found with mandocdb(8)schwarze1-3/+3
2013-11-29fairly simple unsigned char casts for ctypederaadt1-4/+4
ok krw
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther1-1/+1
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2012-08-12Use .Lk for HTTP hyperlinks, not .Pa.schwarze1-3/+3
Most of the patch from Arto Jonsson <ajonsson at kapsi dot fi>. jmc@ agrees in principle that .Lk is the right macro to use. While here, update a few broken links, and add missing markup at a few places.
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan1-2/+1
ok guenther@
2012-07-16revert previous, it was hardly tested and is causing too many issues too close to release.jasper7-370/+210
as discussed with and ok mpi@ deraadt@
2012-07-12add support to get signed/unsigned HID datayuo1-7/+9
2012-07-11- port multiple report ID support for HID parser from FreeBSD codeyuo7-213/+394
(rev. 205728, 224511 and 225839) - add hid_get_report_id(3) to get id of a descriptor. - crank the major in shlib_version 3.0 -> 4.0 ok deraadt@, mpi@
2012-02-19Fix return value documentation errors in usbhid(3).stsp1-6/+8
hid_dispose_report_desc() returns void, it can't return NULL on failure. hid_get_report_desc() and hid_use_report_desc() return NULL on failure but this was not documented. ok jmc
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'miod1-2/+2
for chars.
2009-07-24From NetBSD rev 1.5jsg1-2/+1
The report size is not a local item, so don't clear it when clearing local items.
2009-07-24Global Item #3 should be Physical Minimum not Maximum accordingjsg1-2/+2
to the HID spec. From FreeBSD hid.c rev 1.31
2007-09-03malloc(n * m) -> calloc(n, m); ok espiederaadt1-2/+2
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-03-20remove some bogus *p from charles longeautedu1-2/+2
ok deraadt millert
2006-10-27actually the format strings do come from the usb_hid_usages file;deraadt1-2/+2
from janus@errornet.de
2006-03-30Fix a bzero() misuse; ok otto@ deraadt@pat1-2/+3
2006-03-21- plug memleak when handling reallocation failure in hid_start()jaredy1-9/+13
- avoid NULL dereference while reclaiming memory during error handling in hid_start() ok ray dhill
2006-03-18Plug a memleakdhill1-2/+2
ok ray@ "Wow, no kidding." deraaadt@
2005-11-24use WANTLINT= (on all architectures)deraadt1-1/+2
2005-10-12add hid_parse_usage_page and hid_parse_usage_in_page to .Nm list;jmc1-1/+3
2005-02-10Fix a realloc() failure bug introduced in previous version.matthieu1-2/+2
Found by Andey Matveev.
2004-07-13errno changes, lib major version bumps, and general flag daymarc1-1/+1
To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
2004-06-04- escape minus signjmc1-3/+3
- occured -> occurred
2004-06-04knf + new interface: hid_start() is non-exit non-stderr spewing version of hid_init(); ok matthieu millertderaadt8-102/+142
2003-12-20Fix unbounded scanf()'s. From Jared Yanovich. Ok tedu@.matthieu1-4/+4
2003-05-24- typos;jmc1-6/+6
- new sentence, new line; - whitespace at EOL
2003-05-06updated URL for USB specification from Leandro Costajmc1-4/+4
new sentence, new line .Pa for URL is clearer
2002-12-03Crank all library major numbers. Needed due to the fact that wemillert1-1/+1
now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
2002-09-06add shared lib.brad2-3/+3
-- Ok'd by: deraadt@
2002-06-19use more snprintfderaadt1-3/+3
2002-06-11strike newline from err(3) functions; ok nate@jsyn1-5/+5
2002-05-10Update usb userland stuff to reflect hid changes in the kernel.nate7-84/+140
This adds the new program usbhidaction which can be used to assign actions to events that occur on a uhid device. For example, you can now make the volume buttons on some newer keyboards actually do something.