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