Using an undocumented function in libiberty, certainly when not also testing for it, is bad. Why can't we use the age-old trick of write()ing zero bytes (not a single NUL byte) to truncate a file?