shenango-bsd/shim
Josh Fried 0ab4d36cb0 shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
..
Makefile shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
README shim: shim library for porting batch applications (WIP) 2018-07-11 17:10:36 -04:00
entry.c shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
mem.c shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
pthread.c shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
sleep.c shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00
sync.c shim: cleanup c++ refs 2018-07-11 17:20:10 -04:00

README

To use, compile libshim.a and the target application with it. Link the dynamic loader library (-ldl) and use the linker flag '-Wl,--wrap=main' to wrap main.
Make sure the application doesn't use static initializers for pthread mutexes etc.