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