understanding userspace includes
Deron Meranda
deron.meranda at gmail.com
Sun Feb 27 20:00:48 UTC 2005
On Sun, 27 Feb 2005 11:27:17 -0800, cfk <cfk at pacbell.net> 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
More information about the fedora-list
mailing list