mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
A bunch of LibC boilerplate stuff added while trying to get figlet to build.
This commit is contained in:
parent
511ed4c4de
commit
bb90c8ecab
23 changed files with 117 additions and 45 deletions
21
LibC/stdio.h
21
LibC/stdio.h
|
@ -1,11 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef EOF
|
||||
#define EOF (-1)
|
||||
#endif
|
||||
|
||||
struct __STDIO_FILE {
|
||||
int fd;
|
||||
};
|
||||
|
||||
typedef struct __STDIO_FILE FILE;
|
||||
|
||||
extern FILE* stdin;
|
||||
extern FILE* stdout;
|
||||
extern FILE* stderr;
|
||||
|
||||
int fprintf(FILE*, const char* fmt, ...);
|
||||
int printf(const char* fmt, ...);
|
||||
int sprintf(char* buffer, const char* fmt, ...);
|
||||
int putchar(int ch);
|
||||
void perror(const char*);
|
||||
|
||||
}
|
||||
__END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue