Now uses the new Be-style constants for get_team_usage_info().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-27 12:57:36 +00:00
parent f05c404379
commit 92af23fa88
+3 -4
View File
@@ -22,7 +22,6 @@
#include <syscall_process_info.h> #include <syscall_process_info.h>
#include <tls.h> #include <tls.h>
#include <sys/resource.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@@ -1661,7 +1660,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size)
cpu_status state; cpu_status state;
if (size != sizeof(team_usage_info) if (size != sizeof(team_usage_info)
|| (who != RUSAGE_SELF && who != RUSAGE_CHILDREN)) || (who != B_TEAM_USAGE_SELF && who != B_TEAM_USAGE_CHILDREN))
return B_BAD_VALUE; return B_BAD_VALUE;
state = disable_interrupts(); state = disable_interrupts();
@@ -1678,7 +1677,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size)
} }
switch (who) { switch (who) {
case RUSAGE_SELF: case B_TEAM_USAGE_SELF:
{ {
struct thread *thread = team->thread_list; struct thread *thread = team->thread_list;
@@ -1692,7 +1691,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size)
break; break;
} }
case RUSAGE_CHILDREN: case B_TEAM_USAGE_CHILDREN:
{ {
struct team *child = team->children; struct team *child = team->children;
for (; child != NULL; child = child->siblings_next) { for (; child != NULL; child = child->siblings_next) {