_user_load_image() has a flags parameter now. Added a new structure team_loading_info, which is referenced by the team structure while the team is being loaded..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0e83032441
commit
0dd3a50bb3
@ -33,7 +33,8 @@ int32 team_max_teams(void);
|
||||
int32 team_used_teams(void);
|
||||
|
||||
// used in syscalls.c
|
||||
thread_id _user_load_image(int32 argCount, const char **args, int32 envCount, const char **envp, int32 priority);
|
||||
thread_id _user_load_image(int32 argCount, const char **args, int32 envCount,
|
||||
const char **envp, int32 priority, uint32 flags);
|
||||
status_t _user_wait_for_team(team_id id, status_t *_returnCode);
|
||||
void _user_exit_team(status_t returnValue);
|
||||
status_t _user_kill_team(thread_id thread);
|
||||
|
@ -72,6 +72,12 @@ struct process_group {
|
||||
struct team *teams;
|
||||
};
|
||||
|
||||
struct team_loading_info {
|
||||
struct thread *thread; // the waiting thread
|
||||
status_t result; // the result of the loading
|
||||
bool done; // set when loading is done/aborted
|
||||
};
|
||||
|
||||
#define MAX_DEAD_CHILDREN 32
|
||||
// this is a soft limit for the number of dead entries in a team
|
||||
|
||||
@ -103,6 +109,7 @@ struct team {
|
||||
struct vm_address_space *kaspace;
|
||||
struct thread *main_thread;
|
||||
struct thread *thread_list;
|
||||
struct team_loading_info *loading_info;
|
||||
struct list image_list;
|
||||
struct arch_team arch_info;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user