Re: understanding userspace includes

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

 



On Sun, 27 Feb 2005 11:27:17 -0800, cfk <cfk@xxxxxxxxxxx> wrote:
> I have a program I am trying to understand. It #includes usb.h which I can
> find in /usr/include. I can go to /usr/lib and find libusb.a which I can run
> ar and nm on.
...
> So, where do I go to find the appropriate C source code for a library
> in /usr/lib that is included by an include from /usr/include in Fedora Core?

It's not part of the kernel.  You need to libusb source code.  Here's the
process to figure it out...

# rpm -qf /usr/lib/libusb.a
libusb-devel-0.1.8-3

# rpm -qi libusb-devel-0.1.8-3
...
Source RPM: libusb-0.1.8-3.src.rpm
...

Then download the src.rpm file from your favorite mirror (or grab it off
the source code CDs).

# rpm -iv libusb-0.1.8-3.src.rpm
# rpmbuild -v -bp /usr/src/redhat/SPECS/libusb.spec

And the source file you're looking for (already patched) is
   /usr/src/redhat/BUILD/libusb-0.1.8/usb.c

-- 
Deron Meranda


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux