Corrected systemcalls, not tested