0db2ec12c55ff4c2c8c4bf53aad55a538dfced76
This commit introduces a new PCI library and associated tools for inspecting and modifying PCI configuration space via Linux sysfs. The following changes were made: - Implemented `pci.c` and `pci.h` for PCI device management, including enumeration, attribute reading, and configuration space access. - Added `setpci` command-line utility for reading and writing PCI configuration registers, with support for filtering devices by vendor, device, and slot. - Created manual pages for `setpci` to document its usage and options. - Developed test scripts for both `lspci` and `setpci` to ensure functionality and correctness of the new features. These additions enhance the ability to interact with PCI devices, providing a robust framework for device management and configuration.
VX
VX is a BSD-oriented multicall utility for Linux.
It bundles a growing set of FreeBSD-derived userland tools into a single vx binary, with applets selected by argv[0] or by subcommand.
Included applets
patchdiff,cmp,diff3,sdiffwhichgzip,gunzip,zcat,gzcat,uncompressgrep,egrep,fgrep,rgrepfindxargs
Build
VX uses Meson.
meson setup builddir
meson compile -C builddir
meson test -C builddir
Run
You can invoke applets either through the multicall binary:
./builddir/vx grep pattern file
./builddir/vx find . -name '*.c'
or via installed symlinks such as grep, find, or patch.
Notes
- The project force-includes
src/compat-headers/compat.hto provide Linux compatibility shims for BSD userland code. - Some behavior is intentionally BSD-flavored, even where GNU tools differ.
Languages
C
72%
Roff
14.9%
Shell
9.4%
Yacc
2.6%
Meson
1%
Other
0.1%