LibC: Implement __fpending
Some gnu programs want this and I don't want to make FILE non-opaque
This commit is contained in:
@@ -134,6 +134,12 @@ void clearerr(FILE* file)
|
||||
file->error = false;
|
||||
}
|
||||
|
||||
size_t __fpending(FILE* file)
|
||||
{
|
||||
ScopeLock _(file);
|
||||
return file->buffer_rd_size ? 0 : file->buffer_idx;
|
||||
}
|
||||
|
||||
void __fseterr(FILE* file)
|
||||
{
|
||||
ScopeLock _(file);
|
||||
|
||||
Reference in New Issue
Block a user