harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r820009 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h
Date Tue, 29 Sep 2009 16:10:08 GMT
Author: odeakin
Date: Tue Sep 29 16:10:07 2009
New Revision: 820009

URL: http://svn.apache.org/viewvc?rev=820009&view=rev
Log:
Accidentally created stdio.h with the contents of pwd.h when committing the contribution of
HARMONY-6311 - fixing with correct contents.

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h?rev=820009&r1=820008&r2=820009&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/a2e/unix/headers/stdio.h
Tue Sep 29 16:10:07 2009
@@ -17,41 +17,90 @@
 
 /*
  * DESCRIPTION:
- * Replace the system header file "pwd.h" so that we can redefine
+ * Replace the system header file "stdio.h" so that we can redefine
  * the i/o functions that take/produce character strings
  * with our own ATOE functions.
  *
  * The compiler will find this header file in preference to the system one.
+ * ===========================================================================
  */
 
-#if __TARGET_LIB__ == 0X22080000                           
-#include <//'PP.ADLE370.OS39028.SCEEH.H(pwd)'>             
-#else                                                      
-#include </usr/include/pwd.h>                              
-#endif                                                     
+#if __TARGET_LIB__ == 0X22080000                  
+#include <//'PP.ADLE370.OS39028.SCEEH.H(stdio)'>  
+#else                                             
+#include </usr/include/stdio.h>                   
+#endif                                            
 
 #if defined(HY_ATOE)
 
-	#if !defined(HY_ATOE_PWD)
-		#define HY_ATOE_PWD
+	#if !defined(HY_ATOE_STDIO)
+		#define HY_ATOE_STDIO
 
 		#ifdef __cplusplus
             extern "C" {
 		#endif
 
-        struct passwd* atoe_getpwuid(uid_t);
-        struct passwd* atoe_getpwnam(const char *);
+        FILE *     atoe_fopen     (const char*, const char*);
+        int        atoe_fprintf   (FILE*, const char*, ...);
+        size_t     atoe_fread     (void*, size_t, size_t, FILE*);
+        FILE *     atoe_freopen   (const char*, const char*, FILE*);
+        size_t     atoe_fwrite    (const void*, size_t, size_t, FILE*);
+        char      *atoe_fgets (char *, int, FILE *);
+        char *     atoe_gets      (char *);
+        void       atoe_perror    (const char*);
+        int        atoe_printf    (const char*, ...);
+        int        atoe_putchar   (int);
+        int        atoe_rename    (const char*, char*);
+        int        atoe_sprintf   (const char*, char*, ...);
+        int        std_sprintf    (const char*, char*, ...);
+        int        atoe_sscanf    (const char*, const char*, ...); 
+        char *     atoe_tempnam   (const char *, char *);
+        int        atoe_vprintf   (const char *, va_list);
+        int        atoe_vfprintf  (FILE *, const char *, va_list);
+        int        atoe_vsprintf  (char *, const char *, va_list); 
+	int        atoe_vsnprintf (char *, size_t, const char *, va_list);
 
 		#ifdef __cplusplus
             }
 		#endif
 
-		#undef getpwuid
-		#undef getpwnam
-
-		#define getpwuid        atoe_getpwuid
-		#define getpwnam        atoe_getpwnam
-
+		#undef fopen
+		#undef fprintf
+		#undef fread
+		#undef freopen
+		#undef fwrite
+		#undef fgets
+		#undef gets
+		#undef perror
+		#undef printf
+		#undef putchar
+		#undef rename
+		#undef sprintf
+		#undef sscanf                                 
+		#undef tempnam
+		#undef vfprintf
+		#undef vsprintf                               
+		#undef vsnprintf
+
+
+		#define fopen           atoe_fopen
+		#define fprintf         atoe_fprintf
+		#define fread           atoe_fread
+		#define freopen         atoe_freopen
+		#define fwrite          atoe_fwrite
+		#define fgets           atoe_fgets
+		#define gets            atoe_gets
+		#define perror          atoe_perror
+		#define printf          atoe_printf
+		#define putchar         atoe_putchar
+		#define rename          atoe_rename
+		#define sprintf         atoe_sprintf
+		#define sscanf          atoe_sscanf           
+		#define tempnam         atoe_tempnam
+		#define vfprintf        atoe_vfprintf
+		#define vprintf         atoe_vprintf
+		#define vsprintf        atoe_vsprintf         
+		#define vsnprintf	atoe_vsnprintf
 	#endif
 
 #endif



Mime
View raw message