mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibC: Stub out brk
and sbrk
This commit is contained in:
parent
e2036ca2ca
commit
9497cc6c97
Notes:
sideshowbarker
2024-07-17 09:50:29 +09:00
Author: https://github.com/timschumi
Commit: 9497cc6c97
Pull-request: https://github.com/SerenityOS/serenity/pull/14422
2 changed files with 16 additions and 0 deletions
|
@ -1002,4 +1002,18 @@ int nice(int incr)
|
|||
dbgln("FIXME: nice was called with: {}, not implemented", incr);
|
||||
return incr;
|
||||
}
|
||||
|
||||
int brk(void* addr)
|
||||
{
|
||||
dbgln("TODO: brk({:#x})", addr);
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void* sbrk(intptr_t incr)
|
||||
{
|
||||
dbgln("TODO: sbrk({:#x})", incr);
|
||||
errno = ENOMEM;
|
||||
return reinterpret_cast<void*>(-1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue