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