Is there any indicator I can look for to know whether a function performs I/O operations? The main target platform is Linux (Ubuntu, or some variant of it).
The most obvious way is to have a catalog of such functions/libraries, and check if the function is present in it. However, I want to know how could I build such a catalog in the first place.
For instance, printf
eventually writes to the standard output, so it would count. A function that reads from a USB port would also count. But is there anything they have in common, even if I have to dig to the lowest level?
This may not matter to the question, but, ideally, there would be some pattern to these functions that I could exploit, so that they can be identified automatically with a tool. I am just not sure what low-level instructions to look for.