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

Bug#337021: dctc: FTBFS on GNU/kFreeBSD

Petr Salinger <Petr.Salinger@t-systems.cz> 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



Reply to: