summaryrefslogtreecommitdiff
path: root/src/user/lib/_start2.c
blob: 6d1431f233b25717acc0ed1d3c75e6193b685a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <camellia/syscalls.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <user/lib/elfload.h>

int main(int argc, char **argv, char **envp);

_Noreturn void _start2(struct execdata *ed) {
	elf_selfreloc();
	__setinitialcwd(ed->cwd);
	exit(main(ed->argc, ed->argv, ed->envp));
}