Dermis is a libc wrapper that can be dynamically loaded into a binary to change its behavior using lua. For example, it is possible to avoid sleep calls:
DERMIS="example.lua" LD_PRELOAD="/full/path/to/dermis.so" ./examples/sleep
In example.lua:
function sleep(secs)
print("i should sleep", secs, "seconds... nah")
return secs
end
dermis_register_sleep(sleep)