PATCH: silence warning in spu/stat.c

jschopp jschopp@austin.ibm.com
Fri Dec 15 16:36:00 GMT 2006


Ben Elliston wrote:
>> Forgive my ignorance, but why is pathname an unsigned int in the stat 
>> structure and not declared a pointer of some kind?
> 
> This is a good question.  I don't know why it was done this way.  Joel?
> 
> Ben
> 

I'm guessing here, but...

unsigned int is the same size on ppc32, ppc64, and spu.  This is not true of a pointer 
type like char* .  By using a definition that is the same on all 3 the structure 
definition can be identical everywhere it might be used.



More information about the Newlib mailing list