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