jmc
3a50f0a93a
spelling fixes; from paul tagliamonte
...
any parts of his diff not taken are noted on tech
2022-12-28 21:30:15 +00:00
dlg
e715572071
getopt optstring doesn't need '?'.
...
found while hacking up a comp3301 prac/assignment
ok millert@ deraadt@
2022-10-28 11:24:49 +00:00
beck
bc5a8259a4
Change the error reporting pattern throughout the tree when unveil
...
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
2021-07-12 15:09:18 +00:00
semarie
5de804ec8c
code cleanup and rearranging. no intentionnal behaviour change (except a printf(3) changed to warn(3))
...
fine deraadt@
2019-12-22 14:02:38 +00:00
mestre
544844c40a
unveil(2) /dev with read permissions since it's the only directory usbdevs(8)
...
will read from
OK kn@
2019-11-30 14:02:47 +00:00
deraadt
44d2074c85
use strvis on strings from the device; ok sthen mortimer
2019-04-14 18:16:19 +00:00
mpi
95c55c5be5
Make the output fit in 80 chars when a serial number is printed.
...
ok sthen@, millert@, denis@, kn@
2019-01-07 14:22:40 +00:00
mpi
48ef77341f
Instead of having a button for printing the driver(s) attached to a USB
...
device, do it when invoked with '-v'.
While here recycle '-d' to specify a specific device node, like pcidump(8)
does.
ok jca@, sthen@
2018-07-12 07:58:23 +00:00
mpi
5cd7bad0a1
Print USB port status/changes in verbose++ mode.
...
While here align the driver name with the new output.
2018-07-10 09:18:36 +00:00
schwarze
bf1e2c673e
add missing .Fl macro
2018-07-08 20:04:44 +00:00
mpi
d412bb608a
Improve output.
...
- Display Vendor:Device IDs by default
- Put extended informations on a second line
- Separate Hub port and subdevices
ok kettenis@, sthen@
2018-07-03 13:21:31 +00:00
mpi
4524912105
Tweak output to behave more like pcidump(8):
...
- Display port info with -vv or more
- Always print the corresponding USB controller
ok sthen@, deraadt@
2018-07-01 08:51:50 +00:00
mmcc
e6abd7b1f9
Initialize a char* to NULL rather than 0.
2015-12-22 08:36:40 +00:00
mpi
b5cd11a017
Do not iterate past the size of the array.
...
Found by naddy@
2015-03-31 13:38:27 +00:00
deraadt
28056f3010
clean up flags++ instances around getopt()
...
ok florian
2015-02-09 23:00:14 +00:00
jsg
42fdad5c9f
show super speed status in verbose output
2014-11-17 05:37:32 +00:00
mpi
341ea0176f
Remove leftovers from last commit, getdevicedesc() cannot be used now
...
that the bus node is open read-only.
ok mikeb@
2012-05-07 11:12:54 +00:00
jakemsr
9acd495083
the serial number is now available in struct usb_device_info, so
...
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
2011-01-16 00:04:47 +00:00
deraadt
48800d7b6e
use strtonum() instead of atoi() to parse the device address
...
(from 1 - USB_MAX_DEVICES, not 0- as submitted)
from Gleydson Soares
2010-05-31 21:33:04 +00:00
ckuethe
acacac8f34
Read description string length before reading description. From
...
Marcin Wyrwas in system/6338, tested with various ipods, usb drives
and smartphones. ok deraadt@
2010-04-02 05:46:21 +00:00
jsg
4ff3ccaf95
Check for the correct ioctl failure case and reflect that
...
in the return code of getdevicedesc in which it is called.
ok yuo@
2008-09-04 11:46:18 +00:00
ray
d874cce4b1
First pass at removing clauses 3 and 4 from NetBSD licenses.
...
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@
2008-06-26 05:42:03 +00:00
sobrado
2870dc6d46
"usage:" is lowercase; while here, KNF
...
ok jmc@
2008-03-17 16:30:05 +00:00
deraadt
7d4efefe05
uninitialized variable needs zero'ing, ok kettenis
2008-02-25 18:57:32 +00:00
winiger
bcd0f9c7e2
some usb devices stale (getstring: ioctl: Input/output error) if a
...
string is requested with language id 0, so we get the language table
first and use the language id from there
ok mglocker@
2008-01-19 23:04:11 +00:00
ckuethe
1c95a3ebd9
allow the usb serial number to be printed in verbose mode. this is
...
useful for people writing custom hotplugd(8) scripts, as well as ipod
users.
ok deraadt
2007-12-04 05:05:46 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
jmc
a944f1866b
- correct SYNOPSIS
...
- sync usage()
- some small tweaks
2004-04-03 21:01:25 +00:00
deraadt
3dfbfc2405
knf
2004-01-19 10:20:31 +00:00
nate
82753586eb
Update to work with new kernel changes
2003-07-08 13:20:06 +00:00
deraadt
fc168eb66e
minor KNF
2002-06-02 06:42:28 +00:00
deraadt
0f3328b94a
minor KNF
2002-05-30 19:09:05 +00:00
deraadt
8c069c7552
more snprintf
2002-05-29 09:45:39 +00:00
nate
7517eab27d
Update usb userland stuff to reflect hid changes in the kernel.
...
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-10 00:09:17 +00:00
nate
9f9e15b281
userland portion of prefixing usb structure members to avoid name clashes.
...
From NetBSD
2002-05-02 20:12:07 +00:00
millert
c72b5b24e1
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.
2002-02-16 21:27:05 +00:00
mickey
fb99babb9d
Add support for -d in usbdevs(8); from Jason Ackley <jason@ackley.net>, pr#2005
2001-09-17 17:29:56 +00:00
mpech
24a3a9d1e5
we don't like:
...
o) .Pp before/after .Sh;
o) .Pp before/after .Sh;
o) .Nm without argument in SYNOPSIS;
2001-07-20 19:09:45 +00:00
aaron
959fd710b1
Capitalization.
2000-10-14 17:27:45 +00:00
jakob
ff25aaae8d
Ox version error. deraadt@
2000-02-04 06:45:56 +00:00
jakob
ad1b13fb72
usbdevs (from NetBSD). OK deraadt@ fgsch@
2000-02-03 21:52:15 +00:00