[CVE-2009-0029] Convert all system calls to return a long