__loff_t definition

Corinna Vinschen vinschen@redhat.com
Wed Apr 13 08:29:00 GMT 2016


On Apr 13 08:07, Sebastian Huber wrote:
> Hello,
> 
> the default (non-Linux) __loff_t definition is currently
> 
> #ifdef __GNUC__
> __extension__ typedef long long int __loff_t;
> #else
> typedef long int __loff_t;
> #endif
> 
> this is probably a bug, since structure layouts should be independent of the
> actual compiler especially for a C library.

Indeed.  We should fix that since loff_t is supposed to be
always a 64 bit type afaics.

> For example _off64_t is defined like this:
> 
> #ifndef __off64_t_defined
> __extension__ typedef long long _off64_t;
> #endif
> 
> In glibc __loff_t is defined via __quad_t.

We could introduce __quad_t as well.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160413/85285fd4/attachment.sig>


More information about the Newlib mailing list