This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fastjar: Small _chsize/ftruncate fix


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]