summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid (follow)
Commit message (Collapse)AuthorAgeFilesLines
* some fixes from varik valefor;jmc2020-10-241-7/+7
|
* HID parser could overflow if a malicious device (potentially USB) providedjsg2020-06-051-5/+8
| | | | | | | too many PUSH. report from Andy Nguyen @ google. fix by jcs from kernel hid.c rev 1.3
* usb.org was stupid enough to reshuffle their website, update some URIs;schwarze2020-05-121-3/+3
| | | | noticed by clematis at insiberia dot net
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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.
* type typoderaadt2019-02-181-3/+3
|
* Fix hid_usage_in_page(hid_parse_usage_in_page()) for the Buttons page.mpi2018-07-091-4/+16
| | | | From David Bern.
* sync with usbhid.h; from david bernjmc2018-05-271-7/+7
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-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
* revert manual additions of hid.h now that usbhid.h brings it injcs2016-01-091-3/+1
|
* pull in dev/hid/hid.h for moved HIO_* varsjcs2016-01-081-1/+3
|
* Return the correct report ID when hitting a "collection" item.mpi2015-02-041-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!
* Do not calculated the length of a report with an extra byte for thempi2015-01-181-3/+3
| | | | | | reportID because the kernel skips it. Problem reported and fix tested by Benjamin Baier.
* use reallocarray(); ok dougderaadt2014-10-081-5/+5
|
* Do not skip or add a byte for the report ID when manipulating data.mpi2014-06-041-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@
* various macro fixes;jmc2014-05-131-9/+6
|
* Keep libusbhid's HID parser in sync with the kernel one. This is mostlympi2014-05-126-253/+387
| | | | | | | | 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".
* use calloc. from Peter Malonetedu2014-05-071-3/+2
|
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* fairly simple unsigned char casts for ctypederaadt2013-11-291-4/+4
| | | | ok krw
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-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@
* Use .Lk for HTTP hyperlinks, not .Pa.schwarze2012-08-121-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.
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* revert previous, it was hardly tested and is causing too many issues too close to release.jasper2012-07-167-370/+210
| | | | as discussed with and ok mpi@ deraadt@
* add support to get signed/unsigned HID datayuo2012-07-121-7/+9
|
* - port multiple report ID support for HID parser from FreeBSD codeyuo2012-07-117-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@
* Fix return value documentation errors in usbhid(3).stsp2012-02-191-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
* Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'miod2011-04-061-2/+2
| | | | for chars.
* From NetBSD rev 1.5jsg2009-07-241-2/+1
| | | | The report size is not a local item, so don't clear it when clearing local items.
* Global Item #3 should be Physical Minimum not Maximum accordingjsg2009-07-241-2/+2
| | | | | | to the HID spec. From FreeBSD hid.c rev 1.31
* malloc(n * m) -> calloc(n, m); ok espiederaadt2007-09-031-2/+2
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* remove some bogus *p from charles longeautedu2007-03-201-2/+2
| | | | ok deraadt millert
* actually the format strings do come from the usb_hid_usages file;deraadt2006-10-271-2/+2
| | | | from janus@errornet.de
* Fix a bzero() misuse; ok otto@ deraadt@pat2006-03-301-2/+3
|
* - plug memleak when handling reallocation failure in hid_start()jaredy2006-03-211-9/+13
| | | | | | | - avoid NULL dereference while reclaiming memory during error handling in hid_start() ok ray dhill
* Plug a memleakdhill2006-03-181-2/+2
| | | | ok ray@ "Wow, no kidding." deraaadt@
* use WANTLINT= (on all architectures)deraadt2005-11-241-1/+2
|
* add hid_parse_usage_page and hid_parse_usage_in_page to .Nm list;jmc2005-10-121-1/+3
|
* Fix a realloc() failure bug introduced in previous version.matthieu2005-02-101-2/+2
| | | | Found by Andey Matveev.
* errno changes, lib major version bumps, and general flag daymarc2004-07-131-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
* - escape minus signjmc2004-06-041-3/+3
| | | | - occured -> occurred
* knf + new interface: hid_start() is non-exit non-stderr spewing version of hid_init(); ok matthieu millertderaadt2004-06-048-102/+142
|
* Fix unbounded scanf()'s. From Jared Yanovich. Ok tedu@.matthieu2003-12-201-4/+4
|
* - typos;jmc2003-05-241-6/+6
| | | | | - new sentence, new line; - whitespace at EOL
* updated URL for USB specification from Leandro Costajmc2003-05-061-4/+4
| | | | | new sentence, new line .Pa for URL is clearer
* Crank all library major numbers. Needed due to the fact that wemillert2002-12-031-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@
* add shared lib.brad2002-09-062-3/+3
| | | | | -- Ok'd by: deraadt@
* use more snprintfderaadt2002-06-191-3/+3
|
* strike newline from err(3) functions; ok nate@jsyn2002-06-111-5/+5
|
* Update usb userland stuff to reflect hid changes in the kernel.nate2002-05-107-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.