]> git.ipfire.org Git - thirdparty/pciutils.git/commit - Makefile
Added sysfs support
authorMartin Mares <mj@ucw.cz>
Sat, 27 Dec 2003 19:42:38 +0000 (19:42 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:16 +0000 (14:18 +0200)
commit11f7b31bba25a7cdabb3cd64d3c6ba89975a2695
tree1433de0314739e9a45b50f1ffd0c038e66aede5e
parent4284af587a271584985bc69e7511fa75ea3d7d3d
Added sysfs support

* lib/pci.h (PCIADDR_PORT_FMT): Use %llx instead of %Lx, because the latter
is not supported by all C libraries.

* Makefile: Always enter the lib directory (remember that we don't have
full dependecies for the library in the top-level Makefile; hmmm, another
thing to rewrite some day).

* lib/sysfs.c: Added Linux sysfs access method based on the patch
written by Matthew Wilcox <willy@fc.hp.com>.

* lib/proc.c: Renamed the access method name from "/proc/bus/pci" to "Linux-proc".

* lib/pread.h: The hacks to support pread on various versions
of Linux libc moved there.

* lib/proc.c (proc_setup): The return value of snprintf() varies
between glibc versions, so we need to check both for a negative
values and for too large values.
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-33
ChangeLog
Makefile
TODO
lib/Makefile
lib/access.c
lib/configure
lib/internal.h
lib/pci.h
lib/pread.h [new file with mode: 0644]
lib/proc.c
lib/sysfs.c [new file with mode: 0644]