I'm maintaining a small USB device driver code for Linux.
This is a user mode code so , there are places that we need to find what is the version of
libudev so and etc. So the only way that I came up with , assumes that there are certain UNIX commands already available by default in almost all distributions that we are going to provide our binaries. Few of those commands are as follows.
head cut ldconfig pkg-config
What I'm asking is, is it safe to assume that ? that those commands are exists in almost all Linux distributions?
We will surely have issues with porting this to *nix, like
GNU Hrud. But we are targeting the Linux distributions only not even BSD.