Re: [PATCH] fix building on non-Linux systems (e.g. BSD)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 14 August 2010 06:05:09 Greg KH wrote:
> On Sat, Aug 14, 2010 at 11:53:43AM +0800, Xiaofan Chen wrote:
> > On Sat, Aug 14, 2010 at 11:15 AM, Greg KH <greg@xxxxxxxxx> wrote:
> > > I'm guessing this is for lsusb, right?  Do the bsds really use
> > > usbutils? I never realized that...
> > > 
> > > I'll queue this up, thanks.
> > 
> > Yes, it is in the Ports system.
> > http://www.freshports.org/sysutils/usbutils/
> > 
> > Before my FreeBSD 8.0 partition went haywire, I used usbutils under it.
> > 
> > Before FreeBSD 8, "usbdevs" is a native utility which is similar to
> > lsusb.
> > http://www.freebsd.org/cgi/man.cgi?query=usbdevs&apropos=0&sektion=0&man
> > path=FreeBSD+7.3-RELEASE&format=html
> > 
> > Since FreeBSD 8.0, the new one is called "usbconfig".
> > http://www.freebsd.org/cgi/man.cgi?query=usbconfig&apropos=0&sektion=0&ma
> > npath=FreeBSD+8.1-RELEASE&format=html
> > 
> > But I still prefers to use lsusb.
> 
> Nice to know, thanks.
> 
> If I move lsusb to use libusb 1.x, will that be an issue for FreeBSD?

Hi Greg,

In FreeBSD 8 and later there is no problem about that. LibUSB 0.1 and 1.0 are 
now part of the base system. Three USB API's are offered:

libusb v0.1 (100% Compatible with other OS)
libusb v1.0 (100% Compatible with other OS)
libusb v2.0 (Currently BSD specific)

You can use this manpage for reference if you have any doubts about functions 
which you can use:

http://www.freebsd.org/cgi/man.cgi?query=libusb&apropos=0&sektion=0&manpath=FreeBSD+8.1-
RELEASE&format=html

--HPS
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux