This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: PATCH: silence warning in spu/stat.c
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.