This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add missing iprintf and iscanf family for SPU


Here is a patch to add definitions of iprintf() and iscanf() family
for SPU.

They are defined as macros which are just replaced with corresponding
functions of printf() and scanf() family, because, for SPU with
offloading I/O, we have no benefit by using actually restricted
versions.

Please apply the patch.

2007-02-16  Kazunori Asayama <asayama@sm.sony.co.jp>

	* libc/machine/spu/sys/custom_file.h: Add definitions of
	iprintf and iscanf family.

----
Index: newlib/newlib/libc/machine/spu/sys/custom_file.h
===================================================================
--- newlib.orig/newlib/libc/machine/spu/sys/custom_file.h
+++ newlib/newlib/libc/machine/spu/sys/custom_file.h
@@ -9,5 +9,23 @@ struct __sFILE_spu {
 };
 typedef struct __sFILE_spu __FILE;
 
+#define iprintf    printf
+#define fiprintf   fprintf
+#define siprintf   sprintf
+#define sniprintf  snprintf
+
+#define viprintf   vprintf
+#define vfiprintf  vfprintf
+#define vsiprintf  vsprintf
+#define vsniprintf vsnprintf
+
+#define iscanf     scanf
+#define fiscanf    fscanf
+#define siscanf    sscanf
+
+#define viscanf    vscanf
+#define vfiscanf   vfscanf
+#define vsiscanf   vsscanf
+
 #endif /* __CUSTOM_FILE_H__ */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]