1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Miscellaneous compat work while seeing if GNU coreutils would build.

This commit is contained in:
Andreas Kling 2018-11-07 10:23:16 +01:00
parent a7f1d892a9
commit d7a41579e5
12 changed files with 92 additions and 2 deletions

View file

@ -16,6 +16,7 @@ __BEGIN_DECLS
struct __STDIO_FILE {
int fd;
int eof;
int error;
};
typedef struct __STDIO_FILE FILE;
@ -34,6 +35,7 @@ FILE* fopen(const char* pathname, const char* mode);
int fclose(FILE*);
void rewind(FILE*);
void clearerr(FILE*);
int ferror(FILE*);
int feof(FILE*);
int fflush(FILE*);
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
@ -42,6 +44,9 @@ int fprintf(FILE*, const char* fmt, ...);
int printf(const char* fmt, ...);
int sprintf(char* buffer, const char* fmt, ...);
int putchar(int ch);
int putc(int ch, FILE*);
int puts(const char*);
int fputs(const char*, FILE*);
void perror(const char*);
int sscanf (const char* buf, const char* fmt, ...);
int fscanf(FILE*, const char* fmt, ...);