chdir and fchdir need to return a 'long'