1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Add fcntl() F_DUPFD which is slightly different from dup2().

This commit is contained in:
Andreas Kling 2018-11-16 22:14:40 +01:00
parent 6cedb88153
commit 2cf477a151
3 changed files with 22 additions and 0 deletions

View file

@ -29,6 +29,7 @@ void __malloc_init()
void* malloc(size_t size)
{
if ((nextptr + size) > endptr) {
fprintf(stderr, "Unable to serve malloc() request with size %u\n", size);
volatile char* crashme = (char*)0xc007d00d;
*crashme = 0;
}