Commit Graph

33 Commits

Author SHA1 Message Date
Ruslan Ermilov
f4d874a1db mdoc(7) police: do not split author names in the AUTHORS section. 2000-11-22 09:35:58 +00:00
Ruslan Ermilov
e97407b4f2 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
Nick Hibma
2b52b05a77 Check the return value of strdup
Submitted by:	Chris Faulhaber <jedgar@fxp.org>
2000-11-12 10:55:35 +00:00
Nick Hibma
5bfc478e32 Don't check for ohci/uhci to be loaded, check for the usb module. 2000-09-02 10:17:58 +00:00
Nick Hibma
7f2b4ad54a And another buffer overflow. Maybe next time I should read the manpage for
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.
2000-07-16 17:28:01 +00:00
Peter Wemm
43be5ea431 Oops. I originally extended the bcopy to 8 characters to include the
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.
2000-07-14 01:22:07 +00:00
Peter Wemm
05f560ae59 Correct an additional off-by-one bug and buffer overflow. A malloc()
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.
2000-07-14 00:29:00 +00:00
Brian Feldman
18b8dc18fd Fix an off-by-one error which breaks this (detected by malloc flags):
the line being read in was terminated one byte too late.
2000-07-11 00:06:44 +00:00
Jake Burkholder
e39756439c Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
Jake Burkholder
740a1973a6 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
Nick Hibma
583b504e43 Add a comment to deconfuse a few lines of code I've tripped over two
times now.
2000-05-12 23:42:06 +00:00
Nick Hibma
99e988f203 Mention that each criterium can only be used once. 2000-05-12 23:36:38 +00:00
Nick Hibma
7054370f40 Add a comment about the fact that the usb module is automatically
loaded.
2000-04-02 21:09:19 +00:00
Jonathan M. Bresler
0fe00f48d0 if USB support is not compiled into the kernel,
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).
2000-04-02 06:28:40 +00:00
Sheldon Hearn
d4cc3e55b1 Remove gratuitous dashes (-) in Fl macro arguments.
PR:		17216
Submitted by:	horikawa@psinet.com (Kazuo Horikawa)
2000-03-06 13:52:23 +00:00
Sheldon Hearn
2ed2dc52a6 Remove more single-space hard sentence breaks. 2000-03-06 09:45:37 +00:00
Sheldon Hearn
f2e366a105 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 14:09:25 +00:00
Nick Hibma
38e144ec2b Don't fail if less then MAXDEV /dev/usb\d+ entries exist. 2000-01-10 22:35:33 +00:00
Jun Kuriyama
19c4dbb96a usbd.conf is in section 5, not 8. 1999-12-30 10:46:08 +00:00
David E. O'Brien
b4e03744ff Add a missing '"' in the examples. 1999-12-17 06:04:37 +00:00
Nick Hibma
4eb1c2cdaa Complain if we get an error that is not ENXIO while opening /dev/usb\d+
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>
1999-12-06 14:50:41 +00:00
Nick Hibma
33ba9f8fee Add the ability to match on device names attached to.
If a device is attached to ums4, you can reference this devname in
the configuration file as ${DEVNAME} (a shell variable, yes).
1999-11-28 21:27:31 +00:00
Nick Hibma
a27816e5a5 Avoid null dereference on verbose output.
Submitted-By: Doug Ambrisko <ambrisko@whistle.com>

Don't print a warning on exit status 0.
1999-11-24 19:18:57 +00:00
Nick Hibma
0ee137258d Flip the sequence of vendor, product around, to make it consistent
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.
1999-11-22 19:08:36 +00:00
Nick Hibma
6739e1ad25 Clarify the functionality of usbd a bit more. 1999-11-22 19:04:58 +00:00
Nick Hibma
7183c3f848 Add event queue handling. It triggers activities on events read from
/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.
1999-11-21 17:44:43 +00:00
Nick Hibma
4d06ff3223 Cleanup of the code before we add a few thins.
- 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.
1999-11-18 18:04:17 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Nik Clayton
414a35e60a Add $Id$, to make it simpler for members of the translation teams to
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
1999-07-12 20:12:29 +00:00
Nick Hibma
6f749ef4fc Syncing with NetBSD version 1998/12/14 1999-04-11 21:03:28 +00:00
Nick Hibma
bea029a166 Added Id 1998-12-14 09:40:15 +00:00
Bruce Evans
27773683d1 Made this actually work when there is an obj dir.
Removed bogons, especially the include of bsd.subdir.mk.

Fixed style bugs.
1998-12-13 15:52:26 +00:00
Nick Hibma
0cec007c5f Initial commit of ported NetBSD USB stack 1998-11-26 23:13:13 +00:00