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:
parent
6cedb88153
commit
2cf477a151
3 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue