From ade669abd758032e75188d2affc4b9932a708d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Mar 2004 01:06:23 +0000 Subject: [PATCH] Renamed thread/team syscalls to new scheme. Added commented out wait_for_team() which we might want to have in the final version, too. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6875 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/os/team.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/kernel/libroot/os/team.c b/src/kernel/libroot/os/team.c index bef33a7257..e55ea21635 100644 --- a/src/kernel/libroot/os/team.c +++ b/src/kernel/libroot/os/team.c @@ -1,5 +1,5 @@ /* -** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Distributed under the terms of the OpenBeOS License. */ @@ -8,8 +8,18 @@ #include "syscalls.h" +// this call does not exist in BeOS R5 +#if 0 status_t -_get_team_usage_info(team_id tmid, int32 who, team_usage_info *ti, size_t size) +wait_for_team(team_id team, status_t *_returnCode) +{ + return _kern_wait_for_team(team, _returnCode); +} +#endif + + +status_t +_get_team_usage_info(team_id team, int32 who, team_usage_info *ti, size_t size) { // size is not yet used, but may if team_usage_info changes (void)size; @@ -20,28 +30,28 @@ _get_team_usage_info(team_id tmid, int32 who, team_usage_info *ti, size_t size) status_t -kill_team(team_id team) +kill_team(team_id team) { - return sys_kill_team(team); + return _kern_kill_team(team); } status_t _get_team_info(team_id team, team_info *info, size_t size) { - // size is not yet used, but may if team_info changes - (void)size; + if (info == NULL || size != sizeof(team_info)) + return B_BAD_VALUE; - return sys_get_team_info(team, info); + return _kern_get_team_info(team, info); } status_t _get_next_team_info(int32 *cookie, team_info *info, size_t size) { - // size is not yet used, but may if team_info changes - (void)size; + if (info == NULL || size != sizeof(team_info)) + return B_BAD_VALUE; - return sys_get_next_team_info(cookie, info); + return _kern_get_next_team_info(cookie, info); }