summaryrefslogtreecommitdiffstats
path: root/usr.sbin/usbdevs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* code cleanup and rearranging. no intentionnal behaviour change (except a printf(3) changed to warn(3))semarie2019-12-221-68/+66
| | | | fine deraadt@
* unveil(2) /dev with read permissions since it's the only directory usbdevs(8)mestre2019-11-301-1/+6
| | | | | | will read from OK kn@
* use strvis on strings from the device; ok sthen mortimerderaadt2019-04-141-4/+11
|
* Make the output fit in 80 chars when a serial number is printed.mpi2019-01-071-2/+2
| | | | ok sthen@, millert@, denis@, kn@
* Instead of having a button for printing the driver(s) attached to a USBmpi2018-07-122-16/+9
| | | | | | | | | device, do it when invoked with '-v'. While here recycle '-d' to specify a specific device node, like pcidump(8) does. ok jca@, sthen@
* Print USB port status/changes in verbose++ mode.mpi2018-07-101-34/+82
| | | | While here align the driver name with the new output.
* add missing .Fl macroschwarze2018-07-081-3/+5
|
* Improve output.mpi2018-07-031-29/+30
| | | | | | | | - Display Vendor:Device IDs by default - Put extended informations on a second line - Separate Hub port and subdevices ok kettenis@, sthen@
* Tweak output to behave more like pcidump(8):mpi2018-07-012-15/+23
| | | | | | | - Display port info with -vv or more - Always print the corresponding USB controller ok sthen@, deraadt@
* Initialize a char* to NULL rather than 0.mmcc2015-12-221-2/+2
|
* Do not iterate past the size of the array.mpi2015-03-311-2/+6
| | | | Found by naddy@
* clean up flags++ instances around getopt()deraadt2015-02-091-2/+2
| | | | ok florian
* show super speed status in verbose outputjsg2014-11-171-1/+4
|
* Remove leftovers from last commit, getdevicedesc() cannot be used nowmpi2012-05-071-21/+1
| | | | | | that the bus node is open read-only. ok mikeb@
* the serial number is now available in struct usb_device_info, sojakemsr2011-01-161-76/+5
| | | | | | | | there's no need to use the USB_REQUEST ioctl to get the serial number. this also means usbdevs can open /dev/usb* read-only, instead of read-write, and still be fully functional. discussed with deraadt and miod
* use strtonum() instead of atoi() to parse the device addressderaadt2010-05-311-2/+5
| | | | | (from 1 - USB_MAX_DEVICES, not 0- as submitted) from Gleydson Soares
* Read description string length before reading description. Fromckuethe2010-04-021-2/+10
| | | | | Marcin Wyrwas in system/6338, tested with various ipods, usb drives and smartphones. ok deraadt@
* Check for the correct ioctl failure case and reflect thatjsg2008-09-041-4/+3
| | | | | | in the return code of getdevicedesc in which it is called. ok yuo@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-262-17/+3
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* "usage:" is lowercase; while here, KNFsobrado2008-03-171-3/+2
| | | | ok jmc@
* uninitialized variable needs zero'ing, ok kettenisderaadt2008-02-251-1/+2
|
* some usb devices stale (getstring: ioctl: Input/output error) if awiniger2008-01-191-5/+20
| | | | | | | string is requested with language id 0, so we get the language table first and use the language id from there ok mglocker@
* allow the usb serial number to be printed in verbose mode. this isckuethe2007-12-041-3/+74
| | | | | | useful for people writing custom hotplugd(8) scripts, as well as ipod users. ok deraadt
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - correct SYNOPSISjmc2004-04-032-5/+4
| | | | | - sync usage() - some small tweaks
* knfderaadt2004-01-191-15/+22
|
* Update to work with new kernel changesnate2003-07-081-5/+1
|
* minor KNFderaadt2002-06-021-2/+2
|
* minor KNFderaadt2002-05-301-3/+2
|
* more snprintfderaadt2002-05-291-2/+2
|
* Update usb userland stuff to reflect hid changes in the kernel.nate2002-05-102-29/+29
| | | | | | 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.
* userland portion of prefixing usb structure members to avoid name clashes.nate2002-05-021-14/+14
| | | | From NetBSD
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-6/+6
|
* Add support for -d in usbdevs(8); from Jason Ackley <jason@ackley.net>, pr#2005mickey2001-09-172-7/+25
|
* we don't like:mpech2001-07-201-2/+2
| | | | | | o) .Pp before/after .Sh; o) .Pp before/after .Sh; o) .Nm without argument in SYNOPSIS;
* Capitalization.aaron2000-10-141-3/+3
|
* Ox version error. deraadt@jakob2000-02-041-2/+2
|
* usbdevs (from NetBSD). OK deraadt@ fgsch@jakob2000-02-033-0/+298