Added empty get_team_usage_info().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10244 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-25 21:20:17 +00:00
parent 08f58535d9
commit 2ff908a59e

View File

@ -1642,6 +1642,18 @@ err:
}
status_t
_get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size)
{
if (size != sizeof(team_usage_info))
return B_BAD_VALUE;
// implement me!
return B_ERROR;
}
pid_t
getpid(void)
{
@ -2197,6 +2209,26 @@ _user_get_current_team(void)
}
status_t
_user_get_team_usage_info(team_id team, int32 who, team_usage_info *userInfo, size_t size)
{
team_usage_info info;
status_t status;
if (!IS_USER_ADDRESS(userInfo))
return B_BAD_ADDRESS;
status = _get_team_usage_info(team, who, &info, size);
if (status != B_OK)
return status;
if (user_memcpy(userInfo, &info, size) < B_OK)
return B_BAD_ADDRESS;
return status;
}
int
_user_getenv(const char *userName, char **_userValue)
{