Use __xstat instead of __stat.