594
|
1 #ifndef __micro_c___
|
|
2 #ifndef __ARM_ARCH_4__
|
61
|
3 #include "/usr/include/stdio.h"
|
594
|
4 #else /* __ARM_ARCH_4__ */
|
|
5 #include "/home/zaurus/develop/include/stdio.h"
|
|
6 #endif /* __ARM_ARCH_4__ */
|
232
|
7 long long strtoll(const char *, char **, int);
|
594
|
8 #ifndef __ARM_ARCH_4__
|
569
|
9 void * malloc(size_t size);
|
357
|
10 void * realloc(void *ptr, size_t size);
|
594
|
11 #else /* __ARM_ARCH_4__ */
|
|
12 char *malloc(int);
|
|
13 void * realloc(void *ptr, int size);
|
|
14 #endif /* __ARM_ARCH_4__ */
|
61
|
15 #else
|
|
16
|
409
|
17 // typedef int size_t;
|
410
|
18 #define size_t int
|
378
|
19
|
594
|
20 #ifndef __ARM_ARCH_4__
|
569
|
21 void * malloc(size_t size);
|
594
|
22 #endif /* ! __ARM_ARCH_4__ */
|
255
|
23 long long strtoll(const char *, char **, int);
|
378
|
24 void * realloc(void *ptr, size_t size);
|
232
|
25
|
18
|
26 #ifdef __APPLE__
|
0
|
27
|
116
|
28 typedef struct {
|
|
29 /* char pad[96]; */
|
|
30 char pad[88];
|
|
31 } FILE;
|
18
|
32 extern FILE __sF[];
|
|
33 #define stdin (&__sF[0])
|
|
34 #define stdout (&__sF[1])
|
|
35 #define stderr (&__sF[2])
|
|
36
|
|
37 #else
|
116
|
38 typedef struct {
|
|
39 /* this is all wrong, but so what? */
|
|
40 /* char pad[96]; */
|
|
41 char pad[148];
|
|
42 } FILE;
|
21
|
43 #ifdef bsd
|
0
|
44 extern FILE __sstdin;
|
|
45 extern FILE __sstdout;
|
|
46 extern FILE __sstderr;
|
|
47
|
|
48 #define stdin (&__sstdin)
|
|
49 #define stdout (&__sstdout)
|
|
50 #define stderr (&__sstderr)
|
21
|
51 #else
|
|
52 /* new Linux */
|
|
53 extern FILE *stdin;
|
|
54 extern FILE *stdout;
|
|
55 extern FILE *stderr;
|
|
56 /*
|
|
57 #define stdin stdin
|
|
58 #define stdout stdout
|
|
59 #define stderr stderr
|
|
60 */
|
|
61 #endif
|
18
|
62 #endif
|
19
|
63
|
0
|
64 #define BUFSIZ 1024 /* size of buffer used by setbuf */
|
|
65 #define EOF (-1)
|
|
66 #define NULL 0
|
|
67
|
282
|
68 typedef int SIZE_T_;
|
0
|
69 typedef /*long*/ int fpos_t;
|
304
|
70 // typedef void *__gnuc_va_list;
|
0
|
71
|
|
72 void clearerr(FILE *);
|
|
73 int fclose(FILE *);
|
|
74 int feof(FILE *);
|
|
75 int ferror(FILE *);
|
|
76 int fflush(FILE *);
|
|
77 int fgetc(FILE *);
|
|
78 int fgetpos(FILE *, fpos_t *);
|
|
79 int fileno(FILE *);
|
|
80 void flockfile();
|
19
|
81
|
0
|
82 int fprintf(FILE *, const char *, ...);
|
|
83 int fpurge();
|
|
84 int fputc(int, FILE *);
|
|
85 int fputs(const char *, FILE *);
|
282
|
86 SIZE_T_ fread(void *, size_t, size_t, FILE *);
|
0
|
87 int fscanf(FILE *, const char *, ...);
|
19
|
88
|
0
|
89 /* int fseek(FILE *, long int, int); */
|
19
|
90
|
0
|
91 int fsetpos(FILE *, const fpos_t *);
|
|
92 long ftell(FILE *);
|
|
93 int ftrylockfile();
|
|
94 void funlockfile();
|
282
|
95 SIZE_T_ fwrite(const void *, size_t, size_t, FILE *);
|
0
|
96 int getc(FILE *);
|
|
97 int getc_unlocked();
|
|
98 int getchar(void);
|
|
99 int getchar_unlocked();
|
|
100 int getw(FILE *);
|
|
101 int pclose(FILE *);
|
|
102 void perror(const char *);
|
|
103 int printf(const char *, ...);
|
|
104 int putc(int, FILE *);
|
|
105 int putc_unlocked();
|
|
106 int putchar(int);
|
|
107 int putchar_unlocked();
|
|
108 int puts(const char *);
|
|
109 int putw(int, FILE *);
|
|
110 int remove(const char *);
|
|
111 int rename (const char *, const char *);
|
|
112 void rewind(FILE *);
|
|
113 int scanf(const char *, ...);
|
|
114 void setbuf(FILE *, char *);
|
|
115 void setbuffer();
|
|
116 int setlinebuf();
|
282
|
117 int setvbuf(FILE *, char *, int, SIZE_T_);
|
0
|
118 int snprintf();
|
|
119 int sprintf(char *, const char *, ...);
|
|
120 int sscanf(const char *, const char *, ...);
|
|
121 int ungetc(int, FILE *);
|
304
|
122 // int vfprintf(FILE *, const char *, __gnuc_va_list);
|
0
|
123 int vfscanf();
|
304
|
124 // int vprintf(const char *, __gnuc_va_list);
|
0
|
125 int vscanf();
|
|
126 int vsnprintf();
|
304
|
127 // int vsprintf(char *, const char *, __gnuc_va_list);
|
0
|
128 int vsscanf();
|
|
129 char *ctermid(char *);
|
|
130 FILE *fdopen(int, const char *);
|
|
131 char *fgetln();
|
|
132 char *fgets(char *, int, FILE *);
|
|
133 FILE *fopen(const char *, const char *);
|
|
134 FILE *freopen(const char *, const char *, FILE *);
|
|
135 FILE *funopen();
|
|
136 char *gets(char *);
|
|
137 FILE *popen(const char *, const char *);
|
|
138 char *tempnam(const char *, const char *);
|
|
139 FILE *tmpfile(void);
|
|
140 char *tmpnam(char *);
|
61
|
141 #endif
|