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: [PATCH] SPU use a 16 byte fpos_t


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Patrick Mansfield on 9/5/2007 10:26 AM:
> fpos_t is 12 bytes for 32 bit ppc glibc, and 16 bytes for 64 bit.

Ultimately, if newlib ever adds full locale support, fpos_t will need to
be made wider for other platforms as well (such as cygwin), in order to
accommodate all state needed when storing the position within a
wide-orientation stream visiting a file using a locale with a shift-state
encoding.  Or an alternative might be keeping fpos_t at its current size,
but instead of being a direct offset, instead having it be a pointer to a
struct that contains the full position information.  fpos_t is
intentionally an opaque type, except in non-standard interfaces such as
funopen(), so we have some liberty in how to interpret it, but there is
also binary compatibility to worry about if a newer newlib shared library
is run with an older compiled application.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG3/N284KuGfSFAYARAqmXAJ9OPXOjoc8PzFGRphve/cIU0s9JuQCgxcJ3
vWsxvYlKJe3NT0rLZJns2gI=
=u7to
-----END PGP SIGNATURE-----


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