mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 22:45:08 +00:00
Add stub fflush().
This commit is contained in:
parent
8039a20611
commit
60a8144b68
2 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,14 @@ int feof(FILE* stream)
|
||||||
return stream->eof;
|
return stream->eof;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int fflush(FILE* stream)
|
||||||
|
{
|
||||||
|
// FIXME: Implement buffered streams, duh.
|
||||||
|
if (!stream)
|
||||||
|
return -EBADF;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
char* fgets(char* buffer, int size, FILE* stream)
|
char* fgets(char* buffer, int size, FILE* stream)
|
||||||
{
|
{
|
||||||
assert(stream);
|
assert(stream);
|
||||||
|
|
|
@ -34,6 +34,7 @@ int fclose(FILE*);
|
||||||
void rewind(FILE*);
|
void rewind(FILE*);
|
||||||
void clearerr(FILE*);
|
void clearerr(FILE*);
|
||||||
int feof(FILE*);
|
int feof(FILE*);
|
||||||
|
int fflush(FILE*);
|
||||||
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
|
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
|
||||||
size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE*);
|
size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE*);
|
||||||
int fprintf(FILE*, const char* fmt, ...);
|
int fprintf(FILE*, const char* fmt, ...);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue