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