C++ wrappers for C system calls