Files
codezero/conts/posix/test0/container.c
Bahadir Balban 7ba7a2e796 Added a simplified ascii_to_int() implementation.
Removed dependency on hard-coded pager id. Pager id is now passed
as an environment string `pagerid' to tasks. Alternatively, this
could take space in the utcb of each task.
2009-10-17 18:48:30 +03:00

31 lines
552 B
C

/*
* Container entry point for this task.
*
* Copyright (C) 2007-2009 Bahadir Bilgehan Balban
*/
#include <l4lib/types.h>
#include <l4lib/init.h>
#include <l4lib/utcb.h>
#include <posix_init.h> /* Initialisers for posix library */
#include <stdlib.h>
int main(int argc, char *argv[]);
int __container_init(int argc, char **argv)
{
void *envp = &argv[argc + 1];
if ((char *)envp == *argv)
envp = &argv[argc];
__libposix_init(envp);
/* Generic L4 thread initialisation */
__l4_init();
/* Entry to main */
return main(argc, argv);
}