Make return codes POSIX-compliant