From 9a28130b32a0f7f6d2bc77bf3fd4c7c15c63912b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 12 Mar 2005 15:01:25 +0000 Subject: [PATCH] Added (currently only) flag B_WAIT_TILL_LOADED for _kern_load_image() (maybe this should better go into a private header?). If given the function waits till the loader is done with loading and relocating the executable. Otherwise it returns before the loader starts. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11690 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/image.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/headers/os/kernel/image.h b/headers/os/kernel/image.h index a498f86c73..638008fbad 100644 --- a/headers/os/kernel/image.h +++ b/headers/os/kernel/image.h @@ -53,6 +53,17 @@ typedef struct { int32 data_size; } image_info; +// flags for _kern_load_image() +enum { + B_WAIT_TILL_LOADED = 0x01, // Wait till the loader has loaded and relocated + // (but not yet initialized) the application + // image and all dependencies. If not supplied, + // the function returns before the loader + // started to do anything at all, i.e. it + // returns success, even if the executable + // doesn't exist. +}; + extern _IMPEXP_ROOT thread_id load_image(int32 argc, const char **argv, const char **envp); extern _IMPEXP_ROOT image_id load_add_on(const char *path);