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