Re: truncate() can fail

Robert Bihlmeyer (robbe@orcus.priv.at)
03 Dec 1997 19:36:55 +0100


Hi,

>>>>> On Wed, 03 Dec 1997 09:16:31 -0500
>>>>> Bill Hawes <whawes@star.net> said:

Bill> Hans-Joachim Widmaier wrote:

>> If I'm not totally wrong here, I'd like to change the VFS and
>> filesystems so that truncate() can return an error, too.

Bill> I've seen comments in other filesystems complaining about the
Bill> lack of a return code, so it seems like a good idea to me. Of
Bill> course, probably no software applications are checking for
Bill> errors, but it would be better to allow for the future
Bill> possibility.

Since (f)truncate() can fail with other errors, apps should alread
check for them. I see no problems here...

Robbe

-- 
Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>	<http://stud2.tuwien.ac.at/~e9426626/sig.html>