summaryrefslogtreecommitdiffstats
path: root/usr.sbin/usbd
Commit message (Collapse)AuthorAgeFilesLines
* english(4) police.schweikh2002-12-271-1/+1
|
* Fix usbd.conf parsing: fgetln(3) returns a string without terminatingmaxim2002-12-241-1/+1
| | | | | | | NUL character so do not expect it. PR: bin/46489 MFC after: 1 week
* The .Nm utilitycharnier2002-07-141-2/+3
|
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Prefix structure members to protect them against clashes with eg.alfred2002-02-201-21/+21
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* Merge from NetBSD.joe2002-01-281-21/+56
| | | | | | | | | | | | | | | | | | | | uhub.c: revision 1.37 usb.4: revision 1.30 usb.c: revision 1.38 usb.h: revision 1.40 usb_port.h: revision 1.21 usb_subr.c: revision 1.65 usbdi.h: revision 1.40 Split the attach/detach events up into device, driver and controller attach and detach events. The commit message from NetBSD was: date: 2000/02/02 07:34:00; author: augustss; state: Exp; Change the USB event mechanism to include more information about devices and drivers. Partly from FreeBSD. Also rework usbd to take these new event types into account.
* Sync usb.h with NetBSD, apart from usb_device_info.speed, whichjoe2002-01-021-10/+10
| | | | | requires logic changes. For now leave it as usb_device_info.lowspeed. It will get addressed when the usb.c code is sync'd.
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-132-2/+2
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+0
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-2/+1
| | | | - MAN[1-9] -> MAN.
* Fix brokeness in rev. 1.6: this manpage appeared in NetBSD 1.4.ru2001-03-011-1/+1
| | | | Obtained from: NetBSD
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-272-5/+7
|
* mdoc(7) police: do not split author names in the AUTHORS section.ru2000-11-221-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Check the return value of strdupn_hibma2000-11-121-0/+8
| | | | Submitted by: Chris Faulhaber <jedgar@fxp.org>
* Don't check for ohci/uhci to be loaded, check for the usb module.n_hibma2000-09-021-3/+2
|
* And another buffer overflow. Maybe next time I should read the manpage forn_hibma2000-07-161-1/+1
| | | | | | | | strlen. This one only occurs if there is exactly one element on the line without any whitespace. This is however never a valid line, so not a big chance that this would ever cause any problems.
* Oops. I originally extended the bcopy to 8 characters to include thepeter2000-07-141-1/+1
| | | | | | original \0 on the terminating string, however I changed my mind to make it more obvious that the termination was being taken care of and explicitly added the nul terminator. I forgot to reset the bcopy length.
* Correct an additional off-by-one bug and buffer overflow. A malloc()peter2000-07-141-2/+3
| | | | | | | was being made one byte too short, and the string assembled in it was not null terminated. The string was passed to regcomp() so it never matched anything in /etc/usbd.conf. This is the cause of usbd not working for the last few days.. The new malloc.conf default of AJ triggered this.
* Fix an off-by-one error which breaks this (detected by malloc flags):green2000-07-111-1/+1
| | | | the line being read in was terminated one byte too late.
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Add a comment to deconfuse a few lines of code I've tripped over twon_hibma2000-05-121-1/+6
| | | | times now.
* Mention that each criterium can only be used once.n_hibma2000-05-121-0/+3
|
* Add a comment about the fact that the usb module is automaticallyn_hibma2000-04-021-0/+7
| | | | loaded.
* if USB support is not compiled into the kernel,jmb2000-04-021-0/+8
| | | | | | | | and has not been loaded via a kldload, running usbd(8) will autoload the "usb.ko" kld. thanks to Peter Wemm for enlightening me on the differences between kldfind(2) and modfind(2).
* Remove gratuitous dashes (-) in Fl macro arguments.sheldonh2000-03-061-2/+2
| | | | | PR: 17216 Submitted by: horikawa@psinet.com (Kazuo Horikawa)
* Remove more single-space hard sentence breaks.sheldonh2000-03-061-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-012-21/+42
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Don't fail if less then MAXDEV /dev/usb\d+ entries exist.n_hibma2000-01-101-1/+1
|
* usbd.conf is in section 5, not 8.kuriyama1999-12-301-1/+1
|
* Add a missing '"' in the examples.obrien1999-12-171-1/+1
|
* Complain if we get an error that is not ENXIO while opening /dev/usb\d+n_hibma1999-12-061-0/+7
| | | | | | | devices. For example, starting 'usbd -e' would give a 'No USB controllers found' message instead of a '/dev/usb0: Permission denied'. Submitted-By: Dirk-Willem van Gulik <dirkx@webweaving.org>
* Add the ability to match on device names attached to.n_hibma1999-11-282-28/+166
| | | | | If a device is attached to ums4, you can reference this devname in the configuration file as ${DEVNAME} (a shell variable, yes).
* Avoid null dereference on verbose output.n_hibma1999-11-241-7/+7
| | | | | | Submitted-By: Doug Ambrisko <ambrisko@whistle.com> Don't print a warning on exit status 0.
* Flip the sequence of vendor, product around, to make it consistentn_hibma1999-11-221-19/+19
| | | | | with the rest of the world. This avoids confusion when talking about VID.PID.RID vs. PID.VID.RID. The former is the sequence normally used.
* Clarify the functionality of usbd a bit more.n_hibma1999-11-221-3/+24
|
* Add event queue handling. It triggers activities on events read fromn_hibma1999-11-214-59/+949
| | | | | | | | | | | | | | | | | | | /dev/usb. The actions are specified in the file /etc/usbd.conf. usbd.c: - Add event queue (/dev/usb) handling. - Add comments - Clean up code some more usbd.8: - Update manpage for the new command line flags - Remove a duplicate FreeBSD tag from it). usbd.conf, usbd.conf.5, Makefile: - Add the usbd.conf configuration file and the man page for it. NOTE: MAKEDEV already creates the /dev/usb device tree node, no change needed there anymore.
* Cleanup of the code before we add a few thins.n_hibma1999-11-181-33/+49
| | | | | | | | | | | - remove the use of NDEV. It is confusing. MAXUSBDEV should do. - add some comments. - add more explanation in usage() - change the timeout value for undetected USB devices from 300 to 30 seconds. I don't think anyone wants to wait 5 minutes for broken devices to show up. The overhead CPU wise is very little. - print 'no controllers found' as a fatal error. - remove inclusion of malloc.h. It's unused.
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+2
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Syncing with NetBSD version 1998/12/14n_hibma1999-04-112-9/+8
|
* Added Idn_hibma1998-12-142-0/+2
|
* Made this actually work when there is an obj dir.bde1998-12-131-10/+2
| | | | | | Removed bogons, especially the include of bsd.subdir.mk. Fixed style bugs.
* Initial commit of ported NetBSD USB stackn_hibma1998-11-263-0/+278
OpenPOWER on IntegriCloud