[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [bug-mailutils] Large file support in Mailutils
From: |
Sergey Poznyakoff |
Subject: |
RE: [bug-mailutils] Large file support in Mailutils |
Date: |
Tue, 27 Dec 2005 12:44:31 EET |
Alain Magloire <address@hidden> wrote:
> It sounds good to me. So basically if I read you right, you proposing to
> always use 64 bits i.e. mu_off_t ==> 64 bits.
Yes, that's right.
> Then the question is: where do we actually need to print/format
> mu_off_t?
I can't say right now, but I remember there were several places where we
did so. Moreover, to my utter perplexion, I have found quite a few
places where off_t was assigned to an int (!). These are already fixed
in the CVS.
> And in the event that we need to print/format is it safe to
> downcast it to an off_t?
I prefer to cast both mu_off_t and size_t (we used to use %ld for that,
too) to uintmax_t and then use gnulib function umaxtostr to produce a
string out of it. This is safe in all possible environments.
Regards,
Sergey