Replaced the syscall for thread_get_current_thread_id() with one for find_thread().
Renamed the thread/team syscalls to the new naming scheme. Some other minor cleanups. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -56,7 +56,6 @@ thread_id spawn_kernel_thread_etc(thread_func, const char *name, int32 priority,
|
||||
int team_init(kernel_args *ka);
|
||||
struct team *team_get_kernel_team(void);
|
||||
team_id team_create_team(const char *path, const char *name, char **args, int argc, char **envp, int envc, int priority);
|
||||
int team_kill_team(team_id);
|
||||
status_t wait_for_team(team_id id, status_t *returnCode);
|
||||
void team_remove_team_from_hash(struct team *team);
|
||||
team_id team_get_kernel_team_id(void);
|
||||
@@ -67,30 +66,31 @@ bool team_is_valid(team_id id);
|
||||
struct team *team_get_team_struct_locked(team_id id);
|
||||
|
||||
// used in syscalls.c
|
||||
int user_thread_wait_for_thread(thread_id id, int *uretcode);
|
||||
team_id user_team_create_team(const char *path, const char *name, char **args, int argc, char **envp, int envc, int priority);
|
||||
int user_team_wait_for_team(team_id id, int *uretcode);
|
||||
team_id _user_create_team(const char *path, const char *name, char **args, int argc, char **envp, int envc, int priority);
|
||||
status_t _user_wait_for_team(team_id id, status_t *_returnCode);
|
||||
status_t _user_kill_team(thread_id thread);
|
||||
team_id _user_get_current_team(void);
|
||||
|
||||
status_t user_set_thread_priority(thread_id thread, int32 newPriority);
|
||||
status_t user_suspend_thread(thread_id thread);
|
||||
status_t user_resume_thread(thread_id thread);
|
||||
thread_id user_spawn_thread(thread_func func, const char *name, int32 priority, void *arg1, void *arg2);
|
||||
status_t user_wait_for_thread(thread_id id, status_t *returnCode);
|
||||
status_t user_wait_for_team(team_id id, status_t *returnCode);
|
||||
status_t user_snooze_etc(bigtime_t timeout, int timebase, uint32 flags);
|
||||
void user_exit_thread(status_t return_value);
|
||||
status_t _user_set_thread_priority(thread_id thread, int32 newPriority);
|
||||
status_t _user_suspend_thread(thread_id thread);
|
||||
status_t _user_resume_thread(thread_id thread);
|
||||
thread_id _user_spawn_thread(thread_func func, const char *name, int32 priority, void *arg1, void *arg2);
|
||||
status_t _user_wait_for_thread(thread_id id, status_t *_returnCode);
|
||||
status_t _user_snooze_etc(bigtime_t timeout, int timebase, uint32 flags);
|
||||
status_t _user_kill_thread(thread_id thread);
|
||||
void _user_exit_thread(status_t return_value);
|
||||
bool _user_has_data(thread_id thread);
|
||||
status_t _user_send_data(thread_id thread, int32 code, const void *buffer, size_t buffer_size);
|
||||
status_t _user_receive_data(thread_id *_sender, void *buffer, size_t buffer_size);
|
||||
thread_id _user_find_thread(const char *name);
|
||||
status_t _user_get_thread_info(thread_id id, thread_info *info);
|
||||
status_t _user_get_next_thread_info(team_id team, int32 *cookie, thread_info *info);
|
||||
status_t _user_get_team_info(team_id id, team_info *info);
|
||||
status_t _user_get_next_team_info(int32 *cookie, team_info *info);
|
||||
|
||||
bool user_has_data(thread_id thread);
|
||||
status_t user_send_data(thread_id thread, int32 code, const void *buffer, size_t buffer_size);
|
||||
status_t user_receive_data(thread_id *sender, void *buffer, size_t buffer_size);
|
||||
|
||||
status_t user_get_thread_info(thread_id id, thread_info *info);
|
||||
status_t user_get_next_thread_info(team_id team, int32 *cookie, thread_info *info);
|
||||
status_t user_get_team_info(team_id id, team_info *info);
|
||||
status_t user_get_next_team_info(int32 *cookie, team_info *info);
|
||||
|
||||
int user_getrlimit(int resource, struct rlimit * rlp);
|
||||
int user_setrlimit(int resource, const struct rlimit * rlp);
|
||||
// ToDo: these don't belong here
|
||||
int _user_getrlimit(int resource, struct rlimit * rlp);
|
||||
int _user_setrlimit(int resource, const struct rlimit * rlp);
|
||||
|
||||
// ToDo: please move the "env" setter/getter out of the kernel!
|
||||
int user_setenv(const char *name, const char *value, int overwrite);
|
||||
|
||||
Reference in New Issue
Block a user