Oh well, it's an interesting undertaking anyways.
It looks to me like libfiu has a pretty clever way of generating the libc wrappers from a config file.