This is the preliminary version of lspci text output support (the location
authorIsaac Dunham <idunham@lavabit.com>
Wed, 7 Aug 2013 16:51:26 +0000 (11:51 -0500)
committerIsaac Dunham <idunham@lavabit.com>
Wed, 7 Aug 2013 16:51:26 +0000 (11:51 -0500)
commit17ea5644d93ff1ced28d3602ac244cb6022f3ba6
tree9ac5ba66d5626fa9e1fee29547285bf29563979b
parent142ebdcfbe01007cd86d699d85dc608bbcaacf82
This is the preliminary version of lspci text output support (the location
of pci.ids is hard-coded to /usr/share/misc/pci.ids, as found on Debian/Ubuntu).
+88 lines in two files, including reformatting, comments, whitespace,
and build configuration as well as new code.

The changes:
-Add library code to look up descriptions.
-Add a counter for -n (for the sake of -nn)
-Add the file stream "db" to GLOBALS and open it conditionally
-Add name fields to bufs
-Look up text if enabled and -n is passed never or twice
-Print text if lookup succeeded
toys/pending/lspci.c