search for: g_settings_path

Displaying 1 result from an estimated 1 matches for "g_settings_path".

2010 Nov 18
0
[LLVMdev] How to construct parameters for a insert function? one from a return value from previous call, the other one is a string....
...want to insert a write operation to a fd opened, but I have some questions to construct parameters to pass to function that I want to insert, because one from a return value from previous call, the other one is a string, The detailed description of the problem is as follows; I have: int fd = open(g_settings_path, O_RDONLY); and I want to insert this function after the instruction above: write(fd, "something", strlen("something")); note: for the write function prototype in linux system is: ssize_t write(int fd, const void *buf, size_t count); Then I first insert function declaration...