11 #define __NEED_ssize_t
14 #include <bits/alltypes.h>
20 #define NULL ((void*)0)
37 #include <bits/stdio.h>
44 extern FILE *const stdin;
45 extern FILE *const stdout;
46 extern FILE *const stderr;
49 #define stdout (stdout)
50 #define stderr (stderr)
52 FILE *fopen(const char *, const char *);
53 FILE *fdopen(int, const char *);
54 FILE *freopen(const char *, const char *, FILE *);
57 FILE *popen(const char *, const char *);
60 int remove(const char *);
61 int rename(const char *, const char *);
67 void clearerr(FILE *);
69 int fseek(FILE *, long, int);
70 int fseeko(FILE *, off_t, int);
75 int fgetpos(FILE *, fpos_t *);
76 int fsetpos(FILE *, const fpos_t *);
78 size_t fread(void *, size_t, size_t, FILE *);
79 size_t fwrite(const void *, size_t, size_t, FILE *);
84 int ungetc(int, FILE *);
86 int fputc(int, FILE *);
87 int putc(int, FILE *);
90 char *fgets(char *, int, FILE *);
93 int fputs(const char *, FILE *);
94 int puts(const char *);
96 int printf(const char *, ...);
97 int fprintf(FILE *, const char *, ...);
98 int sprintf(char *, const char *, ...);
99 int snprintf(char *, size_t, const char *, ...);
101 int vprintf(const char *, va_list);
102 int vfprintf(FILE *, const char *, va_list);
103 int vsprintf(char *, const char *, va_list);
104 int vsnprintf(char *, size_t, const char *, va_list);
106 int dprintf(int, const char *, ...);
107 int vdprintf(int, const char *, va_list);
109 int scanf(const char *, ...);
110 int fscanf(FILE *, const char *, ...);
111 int sscanf(const char *, const char *, ...);
112 int vscanf(const char *, va_list);
113 int vfscanf(FILE *, const char *, va_list);
114 int vsscanf(const char *, const char *, va_list);
116 void perror(const char *);
118 void flockfile(FILE *);
119 int ftrylockfile(FILE *);
120 void funlockfile(FILE *);
121 int getc_unlocked(FILE *);
122 int getchar_unlocked(void);
123 int putc_unlocked(int, FILE *);
124 int putchar_unlocked(int);
126 int setvbuf(FILE *, char *, int, size_t);
127 void setbuf(FILE *, char *);
129 char *tmpnam(char *);
130 char *tempnam(const char *, const char *);
133 char *ctermid(char *);
135 ssize_t getdelim(char **, size_t *, int, FILE *);
136 ssize_t getline(char **, size_t *, FILE *);
138 int renameat(int, const char *, int, const char *);