sys_fd2path needs to return an intreg_t

Otherwise a comparison with -1 on the user side will not be valid if it
treats the return value as a 64 bit integer.