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;
|
2019-09-11 21:49:32 +03:00
|
|
|
extern int __gAPIVersion;
|
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 */
|
|
|
|
|
2019-08-30 23:24:09 +03:00
|
|
|
status_t __look_up_in_path(const char *name, char *buffer);
|
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);
|
2019-08-28 07:53:35 +03:00
|
|
|
thread_id __load_image_at_path(const char* path, int32 argCount,
|
|
|
|
const char **args, const char **environ);
|
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);
|
2015-08-12 21:53:59 +03:00
|
|
|
void __init_env_post_heap(void);
|
2013-05-15 00:49:51 +04:00
|
|
|
status_t __init_heap(void);
|
2015-04-10 18:04:28 +03:00
|
|
|
void __heap_terminate_after(void);
|
2016-12-17 22:01:41 +03:00
|
|
|
void __heap_before_fork(void);
|
|
|
|
void __heap_after_fork_child(void);
|
|
|
|
void __heap_after_fork_parent(void);
|
2018-12-25 22:52:57 +03:00
|
|
|
void __heap_thread_init(void);
|
|
|
|
void __heap_thread_exit(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);
|
2015-04-12 00:21:50 +03:00
|
|
|
int32 __arch_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
|
|
|
|
int32 skipFrames, addr_t stackBase, addr_t stackEnd);
|
2008-04-02 18:02:52 +04:00
|
|
|
|
2021-05-01 16:24:28 +03:00
|
|
|
void __init_stack_protector(void);
|
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 */
|