6b202f4e3d
to contain headers shared by kernel and userland (mainly libroot). * Moved quite a few private kernel headers to the new location. Split several kernel headers into a shared part and one that is still kernel private. Adjusted all affected Jamfiles and source in the standard x86 build accordingly. The build for other architectures and for test code may be broken. * Quite a bit of userland code still includes private kernel headers. Mostly those are <util/*> headers. The ones that aren't strictly kernel-only should be moved to some other place (maybe headers/private/shared/util). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25486 a95241bf-73f2-0310-859d-f6bbb57e9c96
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
/*
|
|
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef KERNEL_USER_RUNTIME_H_
|
|
#define KERNEL_USER_RUNTIME_H_
|
|
|
|
|
|
#include <image.h>
|
|
#include <OS.h>
|
|
|
|
|
|
#define MAGIC_APP_NAME "_APP_"
|
|
|
|
struct user_space_program_args {
|
|
char program_name[B_OS_NAME_LENGTH];
|
|
char program_path[B_PATH_NAME_LENGTH];
|
|
port_id error_port;
|
|
uint32 error_token;
|
|
int arg_count;
|
|
int env_count;
|
|
char **args;
|
|
char **env;
|
|
};
|
|
|
|
struct rld_export {
|
|
// runtime linker API export
|
|
image_id (*load_add_on)(char const *path, uint32 flags);
|
|
status_t (*unload_add_on)(image_id imageID);
|
|
status_t (*get_image_symbol)(image_id imageID, char const *symbolName,
|
|
int32 symbolType, void **_location);
|
|
status_t (*get_nth_image_symbol)(image_id imageID, int32 num, char *symbolName,
|
|
int32 *nameLength, int32 *symbolType, void **_location);
|
|
status_t (*test_executable)(const char *path, char *interpreter);
|
|
status_t (*get_next_image_dependency)(image_id id, uint32 *cookie,
|
|
const char **_name);
|
|
|
|
status_t (*reinit_after_fork)();
|
|
|
|
void (*call_atexit_hooks_for_range)(addr_t start, addr_t size);
|
|
|
|
const struct user_space_program_args *program_args;
|
|
};
|
|
|
|
extern struct rld_export *__gRuntimeLoader;
|
|
|
|
#endif /* KERNEL_USER_RUNTIME_H_ */
|