This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fseek() vs. fseeko()


On 06/19/2012 07:28 PM, Gregory Pietsch wrote:

This makes me wonder about non-standard creep. Is there anything written with
fseeko, fseeko8, fseeko16, fseeko32, fseeko64 or fseeko128 that could not be
poosibly written with an appropriate fgetpos and fsetpos (the standard
functions that deal with off_t)? Are those two functions substandard for what
one tries to do?

fgetpos() and fsetpos() have nothing to do with off_t. They use fpos_t. The only operations you can perform with fpos_t is fgetpos() and fsetpos(). No portable arithmetic on fpos_t is available.


--
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]