Your request is contradictory. You want to execute system calls without doing system calls? If you already have working code, why change it?