[RFC] statically initialize spu FILE values

Kazunori Asayama asayama@sm.sony.co.jp
Wed Apr 11 07:36:00 GMT 2007

Patrick Mansfield <patmans@us.ibm.com> wrote:
> > I basically agree. But unfortunately, correspondence between SPE
> > context and FILE is NOT managed in the current libspe implementation
> > (both 1 and 2), and in addition it's quite difficult to implement such
> > management routine w/ the current libspe specification because a
> > 'library callback' has no way to know which SPE context calls the
> > callback.
> By callback do you mean an assisted (or offload) call?

So called "library callback function handler" in libspe2 spec,
e.g. default C99/POSIX1 handlers in libspe2.

> So if there are multiple threads for a given process, each with its own
> SPE context, libspe must track which SPE context opened a file, if it is
> to close the file on completion of the context?

Yes, I think so.

(ASAYAMA Kazunori

More information about the Newlib mailing list