This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
__loff_t definition
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: Newlib <newlib at sourceware dot org>
- Date: Wed, 13 Apr 2016 08:07:49 +0200
- Subject: __loff_t definition
- Authentication-results: sourceware.org; auth=none
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.