Re: [exim] Quota over 2GB supported?

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Philip Hazel
CC: Exim User's Mailing List, Michael Haardt
Subject: Re: [exim] Quota over 2GB supported?
On Thu, 9 Jun 2005, Philip Hazel wrote:
>
> I did discover that gcc has %lld but of course that isn't part of C89,
> so I suspect that there are C systems out there that don't have it.


This is strictly a libc question rather than a purely compiler question.
Old BSDs spelled %lld %qd (q = quad) though modern ones have supported
%lld since it became the wider standard. I think I'd be surprised if there
are systems without long long and %lld any more.

> It would be nice if there was an automatic way of determining what the
> type of off_t is.


The C99 solution is to cast to intmax_t (the largest integer type which
may be wider than long long) and use the corresponding %jd format
specifier. But only a few systems support this at the moment.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}