[1] https://github.com/androm3da/libfaultinj
https://blitiri.com.ar/p/libfiu/
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.
[1] https://github.com/androm3da/libfaultinj