mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
A bunch of LibC boilerplate stuff added while trying to get figlet to build.
This commit is contained in:
@@ -1,14 +1,29 @@
|
||||
#include <stdio.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
#include <AK/StringImpl.h>
|
||||
|
||||
extern "C" int main(int, char**);
|
||||
|
||||
FILE __default_streams[3];
|
||||
|
||||
int errno;
|
||||
FILE* stdin;
|
||||
FILE* stdout;
|
||||
FILE* stderr;
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
errno = 0;
|
||||
|
||||
__default_streams[0].fd = 0;
|
||||
stdin = &__default_streams[0];
|
||||
|
||||
__default_streams[1].fd = 1;
|
||||
stdout = &__default_streams[1];
|
||||
|
||||
__default_streams[2].fd = 2;
|
||||
stderr = &__default_streams[2];
|
||||
|
||||
StringImpl::initializeGlobals();
|
||||
|
||||
int argc;
|
||||
|
||||
Reference in New Issue
Block a user