Re: truncate() improperly returns EBADF

2004-12-01 Thread Christopher Faylor
On Wed, Dec 01, 2004 at 12:48:41AM -0800, Yitzchak Scott-Thoennes wrote: >When using truncate(), EBADF is sometimes improperly returned. susv3 >doesn't list this as a possible errno value for this function. In >particular, ENOENT should be returned when when path doesn't exist and >EACCES when wr

truncate() improperly returns EBADF

2004-12-01 Thread Yitzchak Scott-Thoennes
When using truncate(), EBADF is sometimes improperly returned. susv3 doesn't list this as a possible errno value for this function. In particular, ENOENT should be returned when when path doesn't exist and EACCES when write permission is denied. truncate.c: #include #include #include #includ