This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] SPU use a 16 byte fpos_t
- From: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- To: patmans at us dot ibm dot com
- Cc: newlib at sourceware dot org
- Date: Thu, 06 Sep 2007 10:28:15 +0900 (JST)
- Subject: Re: [PATCH] SPU use a 16 byte fpos_t
- References: <20070905162606.GA6098@us.ibm.com>
Patrick Mansfield <patmans@us.ibm.com> wrote:
> fpos_t is 12 bytes for 32 bit ppc glibc, and 16 bytes for 64 bit.
>
> Currently SPU newlib uses 4 bytes for fpos_t. This is always a problem
> with 64 bit ppc, since the fgetpos() assist call writes 8 bytes back for
> the offset, and is a potential problem with 32 bit ppc.
>
> So for SPU always use 16 bytes for fpos_t and also make currently unused
> (in SPU) _fpos64_t 16 bytes.
Do you have any plan for off_t and size_t ?
They have a similar problem to this one.
--
(ASAYAMA Kazunori
(asayama@sm.sony.co.jp))
t