Now uses the prototype definitions of libroot_private.h instead of defining
them locally. Added __init_fork(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9306 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0214622f56
commit
c0126bf6e4
@ -1,5 +1,7 @@
|
|||||||
SubDir OBOS_TOP src kernel libroot ;
|
SubDir OBOS_TOP src kernel libroot ;
|
||||||
|
|
||||||
|
UsePrivateHeaders libroot ;
|
||||||
|
|
||||||
KernelObjects
|
KernelObjects
|
||||||
<$(SOURCE_GRIST)>libroot_init.c
|
<$(SOURCE_GRIST)>libroot_init.c
|
||||||
: -fPIC -DPIC
|
: -fPIC -DPIC
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <libroot_private.h>
|
||||||
#include <user_runtime.h>
|
#include <user_runtime.h>
|
||||||
|
#include <fork.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
extern void __init__image(struct uspace_program_args const *args);
|
|
||||||
extern void __init__dlfcn(struct uspace_program_args const *args);
|
|
||||||
|
|
||||||
void initialize_before(image_id imageID, struct uspace_program_args const *args);
|
void initialize_before(image_id imageID, struct uspace_program_args const *args);
|
||||||
|
|
||||||
char *__progname = NULL;
|
char *__progname = NULL;
|
||||||
@ -37,8 +37,9 @@ initialize_before(image_id imageID, struct uspace_program_args const *args)
|
|||||||
__progname++;
|
__progname++;
|
||||||
}
|
}
|
||||||
|
|
||||||
__init__image(args);
|
__init_image(args);
|
||||||
__init__dlfcn(args);
|
__init_dlfcn(args);
|
||||||
|
__init_fork();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user