__loff_t definition

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Apr 13 06:08:00 GMT 2016


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.

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.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Newlib mailing list