Re: [dev] [sbase] 64-bit type for split

From: Szabolcs Nagy <nsz_AT_port70.net>
Date: Sat, 15 Jun 2013 09:54:57 +0200

* Galos, David <galosd83_AT_students.rowan.edu> [2013-06-14 22:39:12 -0500]:
> > Or are you limiting this to pure ansi instead of posix?
> I'm just trying to conform with the rest of sbase. The CFLAGS include
> `-ansi -pedantic -Wall` and I don't want my code to compile with
> warnings.
>

you can get rid of the warning in strict ansi mode by

#ifdef __GNUC__
 __extension__
#endif
typedef long long foo;

> > How exactly do you think you are going to be able to work with / create
> > files larger than whatever off_t type is provided by the environment
> > supports?
>
> I actually didn't think of `off_t`. I just knew that `long` wouldn't
> cut it, and that

note that you need -D_FILE_OFFSET_BITS=64
to get 64 bit off_t on glibc on 32 bit archs
(some distros add this by default, but you
cannot count on that)
Received on Sat Jun 15 2013 - 09:54:57 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 15 2013 - 10:00:03 CEST