LibC: Stub out fmemopen()

This commit is contained in:
Ali Mohammad Pur 2022-02-11 17:49:36 +03:30 committed by Andreas Kling
commit 18f68d1aea
Notes: sideshowbarker 2024-07-17 18:59:00 +09:00
2 changed files with 8 additions and 0 deletions

View file

@ -1067,6 +1067,13 @@ FILE* fdopen(int fd, const char* mode)
return FILE::create(fd, flags);
}
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html
FILE* fmemopen(void*, size_t, const char*)
{
// FIXME: Implement me :^)
TODO();
}
static inline bool is_default_stream(FILE* stream)
{
return stream == stdin || stream == stdout || stream == stderr;