Make idev, hlink and file_struct + strings use allocation