support pseudo-files that don't have fileno