[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] ftruncate (was: Re: Coreutils)



Hello!

int
__ftruncate (int fd, off_t length)
{
       long r;

       r = Fcntl (fd, &length, FTRUNCATE);
       if (r < 0) {
               __set_errno (-r);
               return -1;
       }
       return 0;
}

It would be good to have some replacement for the case when the filesystem doesn't support this in mintlib.

This is IMHO mandatory for all filesystem drivers.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de