System functions wrapper for C