I'm working on cachegrind source code and would like to read a file when an option is specified. I've found the file writing apt VG_(open)(...) and VG_(write) by examing some source code. But I have no clue which function to use to read a file at valgrind source code level. Is there any documentation available?
In other words, I'm trying to find the following equivalent C code using valgrind library functions.
FILE* file = fopen(fileName, "r"); /* should check the result */