2004-11-18 06:03:24 +03:00
|
|
|
/*
|
2009-11-26 20:00:09 +03:00
|
|
|
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
|
2004-11-18 06:03:24 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-05-03 16:42:43 +04:00
|
|
|
#ifndef LIBROOT_PRIVATE_H
|
|
|
|
#define LIBROOT_PRIVATE_H
|
|
|
|
|
|
|
|
|
2005-06-14 15:23:29 +04:00
|
|
|
#include <SupportDefs.h>
|
2006-10-06 15:40:20 +04:00
|
|
|
#include <image.h>
|
2005-06-14 15:23:29 +04:00
|
|
|
|
|
|
|
|
2007-07-27 06:32:19 +04:00
|
|
|
struct user_space_program_args;
|
2004-11-18 06:03:24 +03:00
|
|
|
struct real_time_data;
|
|
|
|
|
2006-10-06 15:40:20 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-05-16 03:51:37 +04:00
|
|
|
extern int __gABIVersion;
|
2013-05-15 00:49:51 +04:00
|
|
|
|
2008-03-25 04:56:46 +03:00
|
|
|
extern char _single_threaded;
|
|
|
|
/* This determines if a process runs single threaded or not */
|
|
|
|
|
2005-06-14 16:39:06 +04:00
|
|
|
status_t __parse_invoke_line(char *invoker, char ***_newArgs,
|
2008-02-26 03:03:51 +03:00
|
|
|
char * const **_oldArgs, int32 *_argCount, const char *arg0);
|
2006-10-06 15:40:20 +04:00
|
|
|
status_t __get_next_image_dependency(image_id id, uint32 *cookie,
|
|
|
|
const char **_name);
|
2005-06-14 16:39:06 +04:00
|
|
|
status_t __test_executable(const char *path, char *invoker);
|
2008-06-24 07:37:07 +04:00
|
|
|
status_t __flatten_process_args(const char* const* args, int32 argCount,
|
2013-12-01 21:33:42 +04:00
|
|
|
const char* const* env, int32* envCount, const char* executablePath,
|
|
|
|
char*** _flatArgs, size_t* _flatSize);
|
2009-11-26 20:00:09 +03:00
|
|
|
void _call_atexit_hooks_for_range(addr_t start, addr_t size);
|
2007-07-27 06:32:19 +04:00
|
|
|
void __init_env(const struct user_space_program_args *args);
|
2013-05-15 00:49:51 +04:00
|
|
|
status_t __init_heap(void);
|
2011-02-15 20:54:24 +03:00
|
|
|
void __init_heap_post_env(void);
|
2004-10-12 20:26:44 +04:00
|
|
|
|
2013-03-17 23:49:58 +04:00
|
|
|
void __init_time(addr_t commPageTable);
|
2006-01-04 05:17:59 +03:00
|
|
|
void __arch_init_time(struct real_time_data *data, bool setDefaults);
|
|
|
|
bigtime_t __arch_get_system_time_offset(struct real_time_data *data);
|
2011-06-12 04:00:23 +04:00
|
|
|
bigtime_t __get_system_time_offset();
|
2008-01-14 05:03:34 +03:00
|
|
|
void __init_pwd_backend(void);
|
2008-04-02 18:02:52 +04:00
|
|
|
void __reinit_pwd_backend_after_fork(void);
|
2008-11-09 01:09:28 +03:00
|
|
|
void* __arch_get_caller(void);
|
2008-04-02 18:02:52 +04:00
|
|
|
|
2013-05-15 00:49:51 +04:00
|
|
|
void __set_stack_protection(void);
|
|
|
|
|
2004-10-12 20:26:44 +04:00
|
|
|
|
2006-10-06 15:40:20 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2004-05-03 16:42:43 +04:00
|
|
|
|
|
|
|
#endif /* LIBROOT_PRIVATE_H */
|