mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
LibC: Run constructors on process startup.
Cooperate with the compiler to generate and execute the _init_array list of constructor functions on userspace program statup. This took two days to get working, my goodness. :^)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <LibC/SharedBuffer.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <AK/kmalloc.h>
|
||||
|
||||
RetainPtr<SharedBuffer> SharedBuffer::create(pid_t peer, int size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user