summaryrefslogtreecommitdiff
path: root/lib/libusbhid
AgeCommit message (Collapse)Author
2018-07-09Fix hid_usage_in_page(hid_parse_usage_in_page()) for the Buttons page.Martin Pieuchot
From David Bern.
2018-05-27sync with usbhid.h; from david bernJason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
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 inJoshua Stein
2016-01-08pull in dev/hid/hid.h for moved HIO_* varsJoshua Stein
2015-02-04Return the correct report ID when hitting a "collection" item.Martin Pieuchot
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 theMartin Pieuchot
reportID because the kernel skips it. Problem reported and fix tested by Benjamin Baier.
2014-10-08use reallocarray(); ok dougTheo de Raadt
2014-06-04Do not skip or add a byte for the report ID when manipulating data.Martin Pieuchot
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;Jason McIntyre
2014-05-12Keep libusbhid's HID parser in sync with the kernel one. This is mostlyMartin Pieuchot
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 MaloneTed Unangst
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2013-11-29fairly simple unsigned char casts for ctypeTheo de Raadt
ok krw
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
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.Ingo Schwarze
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.Okan Demirmen
ok guenther@
2012-07-16revert previous, it was hardly tested and is causing too many issues too ↵Jasper Lievisse Adriaanse
close to release. as discussed with and ok mpi@ deraadt@
2012-07-12add support to get signed/unsigned HID dataYojiro Uo
2012-07-11- port multiple report ID support for HID parser from FreeBSD codeYojiro Uo
(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).Stefan Sperling
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'Miod Vallat
for chars.
2009-07-24From NetBSD rev 1.5Jonathan Gray
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 accordingJonathan Gray
to the HID spec. From FreeBSD hid.c rev 1.31
2007-09-03malloc(n * m) -> calloc(n, m); ok espieTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-20remove some bogus *p from charles longeauTed Unangst
ok deraadt millert
2006-10-27actually the format strings do come from the usb_hid_usages file;Theo de Raadt
from janus@errornet.de
2006-03-30Fix a bzero() misuse; ok otto@ deraadt@Patrick Latifi
2006-03-21- plug memleak when handling reallocation failure in hid_start()Jared Yanovich
- avoid NULL dereference while reclaiming memory during error handling in hid_start() ok ray dhill
2006-03-18Plug a memleakDavid Hill
ok ray@ "Wow, no kidding." deraaadt@
2005-11-24use WANTLINT= (on all architectures)Theo de Raadt
2005-10-12add hid_parse_usage_page and hid_parse_usage_in_page to .Nm list;Jason McIntyre
2005-02-10Fix a realloc() failure bug introduced in previous version.Matthieu Herrb
Found by Andey Matveev.
2004-07-13errno changes, lib major version bumps, and general flag dayMarco S Hyman
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 signJason McIntyre
- occured -> occurred
2004-06-04knf + new interface: hid_start() is non-exit non-stderr spewing version of ↵Theo de Raadt
hid_init(); ok matthieu millert
2003-12-20Fix unbounded scanf()'s. From Jared Yanovich. Ok tedu@.Matthieu Herrb
2003-05-24- typos;Jason McIntyre
- new sentence, new line; - whitespace at EOL
2003-05-06updated URL for USB specification from Leandro CostaJason McIntyre
new sentence, new line .Pa for URL is clearer
2002-12-03Crank all library major numbers. Needed due to the fact that weTodd C. Miller
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.Brad Smith
-- Ok'd by: deraadt@
2002-06-19use more snprintfTheo de Raadt
2002-06-11strike newline from err(3) functions; ok nate@Jason Peel
2002-05-10Update usb userland stuff to reflect hid changes in the kernel.Nathan Binkert
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.
2002-05-02userland portion of prefixing usb structure members to avoid name clashes.Nathan Binkert
From NetBSD
2002-05-01o) start new sentence on a new line;Mike Pechkin
o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
2002-04-30Initial cleanup:Mike Pechkin
o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok
2001-12-30Rename libusb to libusbhid, a better name, per NetBSDPeter Valchev