ftok requires the file to exist