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