fseek() vs. fseeko()

Ralf Corsepius ralf.corsepius@rtems.org
Tue Jun 26 14:48:00 GMT 2012

On 06/20/2012 03:41 PM, Joel Sherrill wrote:
> On 06/19/2012 09:42 AM, Sebastian Huber wrote:
>> On 06/19/2012 04:08 PM, Corinna Vinschen wrote:
>>> Along these lines, fgetpos and fsetpos are a bit tricky since they
>>> depend on the definition of fpos_t in include/stdio.h. Right now,
>>> only Cygwin defines fpos_t as 64 bit type in stdio.h, all other
>>> targets define fpos_t as 32 bit and fpos64_t as 64 bit type to make
>>> a clear distinction between the 32 bit and the 64 bit set of functions.
> Speaking for myself, I would like the methods to default to all 64-bit
> versions on RTEMS (when the CPU defaults to 64-bit).

This is non-reasonable, because it's unsuiteable for "small" targets, 
ineffective on some architectures and a waste of resources for some 

>> RTEMS has this in<machine/_types.h>:
> FWIW I think that list to use 64-bit types should be longer.

This list is hand-crafted for "big targets", based on user-demand.


More information about the Newlib mailing list