httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Can we get rid of %qd?
Date Fri, 21 May 1999 16:16:50 GMT


On Fri, 21 May 1999, Jim Jagielski wrote:

> Hmmm... under FreeBSD, st_size is actually of type off_t, which is
> itself a long long. I would think that casting it to unsigned long
> and using %lu would be safest, at least for now.

-1. 

The code is correct, Ralf's compiler flags are wrong. 

FreeBSD supports 64-bit files. 

Now -- there are probably bugs in the rest of apache where we should be
using off_t, but that is an entirely different issue. 

> We can certainly see if 'long long' is supported under the [cC]onfigure
> process and have some code in ap_snprintf() that handles it if
> possible.

That sounds like a good idea.

Dean


Mime
View raw message