mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
A bunch of LibC boilerplate stuff added while trying to get figlet to build.
This commit is contained in:
parent
511ed4c4de
commit
bb90c8ecab
23 changed files with 117 additions and 45 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue