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

Re: [MiNT] ftruncate



Hi!

Frank Naumann wrote:
Hello!

       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.

In your humble opinion? Hmm. I didn't succeed to find any statements about which Fscntl and Dcntl opcodes are optional and which is required. Do we have any documentation on this?

regards

STan