Petr Salinger <[EMAIL PROTECTED]> writes: > Hi, > > the current version of dctc fails to build on GNU/kFreeBSD. > > In src/gdl.c on line 751 it returns ENODATA, this error code > is not defined on GNU/kFreeBSD. Please replace with ENOBUFS, > or better, cope with partially sucessfull reads.
I don't think ENOBUFS is quite right; the error is that the already written temporary file doesn't have the expected length. Also note that partially successful reads are taken care of by fread(3) [1]. I'll probably use EINVAL. [1] "fread() shall return the number of elements successfully read which is less than nitems only if a read error or end-of-file is encountered." Thanks, Matej -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]