Possibly working fgetattr