[PATCH 2/3] SPU stdio: FILE related stuffs

Jeff Johnston jjohnstn@redhat.com
Wed Jan 31 22:27:00 GMT 2007


Hello Kazunori,

   I was not happy with the part of this patch that touched stdio.h and 
reent.h as I don't want machine-specific changes in these files.  I have 
come up with an alternate patch for those sections I wasn't happy with.

   Please try it out.  Just back out your changes to 
libc/include/stdio.h and libc/include/sys/reent.h, then apply my patch 
to verify it all works for you.  The rest of your patch is spu-specific 
and once the additional code is verified, I'll check it all in.

-- Jeff J.

Kazunori Asayama wrote:
> Attached is a patch to implement SPU specific FILE structure and FILE
> related functions.
> 
> 2007-01-30  Joel Schopp <jschopp@austin.ibm.com>
>             Kazunori Asayama <asayama@sm.sony.co.jp>
> 
> 	* configure.host: Enable SPU specific stdio directory.
> 	* libc/include/stdio.h: Disable some stdio macros defined as
> 	functions on SPU.
> 	* libc/include/sys/reent.h: Define Cell SPU specific FILE
> 	structure.
> 	* libc/machine/spu/Makefile.am: Add objects.
> 	* libc/machine/spu/Makefile.in: Regenerated.
> 	* libc/machine/spu/c99ppe.h: Add macros and function
> 	declarations to initialize SPU specific stdio stuffs.
> 	* libc/machine/spu/stdio.c: Add functions to manage Cell SPU
> 	specific FILE structures.
> 	* libc/machine/spu/perror.c: Add initialization routine of
> 	stdio stuffs.
> 	* libc/machine/spu/printf.c: Ditto.
> 	* libc/machine/spu/putchar.c: Ditto.
> 	* libc/machine/spu/puts.c: Ditto.
> 	* libc/machine/spu/vprintf.c: Ditto.
> 	* libc/machine/spu/clearerr.c: New file. Add a stdio function
> 	implementation.
> 	* libc/machine/spu/feof.c: Ditto.
> 	* libc/machine/spu/ferror.c: Ditto.
> 	* libc/machine/spu/fileno.c: Ditto.
> 	* libc/machine/spu/fopen.c: Ditto.
> 	* libc/machine/spu/fclose.c: Ditto.
> 	* libc/machine/spu/freopen.c: Ditto.
> 	* libc/machine/spu/fflush.c: Ditto.
> 	* libc/machine/spu/fseek.c: Ditto.
> 	* libc/machine/spu/ftell.c: Ditto.
> 	* libc/machine/spu/rewind.c: Ditto.
> 	* libc/machine/spu/fgetpos.c: Ditto.
> 	* libc/machine/spu/fsetpos.c: Ditto.
> 	* libc/machine/spu/fread.c: Ditto.
> 	* libc/machine/spu/fwrite.c: Ditto.
> 	* libc/machine/spu/getc.c: Ditto.
> 	* libc/machine/spu/getchar.c: Ditto.
> 	* libc/machine/spu/gets.c: Ditto.
> 	* libc/machine/spu/fgetc.c: Ditto.
> 	* libc/machine/spu/fgets.c: Ditto.
> 	* libc/machine/spu/ungetc.c: Ditto.
> 	* libc/machine/spu/putc.c: Ditto.
> 	* libc/machine/spu/fputc.c: Ditto.
> 	* libc/machine/spu/fputs.c: Ditto.
> 	* libc/machine/spu/vfprintf.c: Ditto.
> 	* libc/machine/spu/vfscanf.c: Ditto.
> 	* libc/machine/spu/fprintf.c: Ditto.
> 	* libc/machine/spu/fscanf.c: Ditto.
> 	* libc/machine/spu/scanf.c: Ditto.
> 	* libc/machine/spu/vscanf.c: Ditto.
> 	* libc/machine/spu/setbuf.c: Ditto.
> 	* libc/machine/spu/setvbuf.c: Ditto.
> 	* libc/machine/spu/tmpfile.c: Ditto.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom_file.patch
Type: text/x-patch
Size: 3662 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20070131/57e30e74/attachment.bin>


More information about the Newlib mailing list