1
Fork 0
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:
Tim Schumacher 2022-06-29 05:00:28 +02:00 committed by Andreas Kling
parent e2036ca2ca
commit 9497cc6c97
2 changed files with 16 additions and 0 deletions

View file

@ -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);
}
}