mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
LibC: Stub out fmemopen()
This commit is contained in:
parent
aaa52da97d
commit
18f68d1aea
Notes:
sideshowbarker
2024-07-17 18:59:00 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/18f68d1aea Pull-request: https://github.com/SerenityOS/serenity/pull/12435
@ -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;
|
||||
|
@ -57,6 +57,7 @@ int remove(const char* pathname);
|
||||
FILE* fdopen(int fd, const char* mode);
|
||||
FILE* fopen(const char* pathname, const char* mode);
|
||||
FILE* freopen(const char* pathname, const char* mode, FILE*);
|
||||
FILE* fmemopen(void* buf, size_t size, const char* mode);
|
||||
void flockfile(FILE* filehandle);
|
||||
void funlockfile(FILE* filehandle);
|
||||
int fclose(FILE*);
|
||||
|
Loading…
Reference in New Issue
Block a user