mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibC: Stub out brk
and sbrk
This commit is contained in:
parent
e2036ca2ca
commit
9497cc6c97
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