Hello all,
I'm porting computational biology applications to the BOINC distributed computing framework, which requires making a call to a BOINC API to map filenames from what the application expects to what BOINC provides before doing any file I/O. I.e., a call like:
FILE* foo = fopen("somefile.txt", ...) would get changed to something like
FILE* foo = fopen(boinc_resolve_filename("somefile.txt", ...), ...).
On the UNIX platform, I've written a library that provides replacement versions of open, fopen, stat, and on so that automatically do the boinc_resolve_filename calls, which makes it dramatically easier to port applications--we just link them against the new library. The magic behind this is the GNU linker's --wrap flag, which allows me to hijack the open, fopen, etc symbols.
Now, though, I need to do something similar for the Windows platform. All of the programs we're interested in are going to be ANSI C--we're not doing anything fancy with Windows-specific APIs. Is there some obvious way under Windows to do something similar to what I've done under UNIX?
Thanks,
Daniel
--
Daniel Myers
Laboratory of Dr. Michael P. Cummings
Center for Bioinformatics and Computational Biology
University of Maryland
Agri/LFSc Surge Building #296
College Park, MD 20742-3360
dm****@umiacs.umd.edu
301.405.1262 work
http://serine.umiacs.umd.edu/personnel/myers_daniel/