xref: /haiku/src/system/libroot/os/team.c (revision efafab643ce980e3f3c916795ed302599f6b4f66)
1 /*
2 ** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 
6 
7 #include <OS.h>
8 #include "syscalls.h"
9 
10 
11 // this call does not exist in BeOS R5
12 #if 0
13 status_t
14 wait_for_team(team_id team, status_t *_returnCode)
15 {
16 	return _kern_wait_for_team(team, _returnCode);
17 }
18 #endif
19 
20 
21 status_t
22 _get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size)
23 {
24 	return _kern_get_team_usage_info(team, who, info, size);
25 }
26 
27 
28 status_t
29 kill_team(team_id team)
30 {
31 	return _kern_kill_team(team);
32 }
33 
34 
35 status_t
36 _get_team_info(team_id team, team_info *info, size_t size)
37 {
38 	if (info == NULL || size != sizeof(team_info))
39 		return B_BAD_VALUE;
40 
41 	return _kern_get_team_info(team, info);
42 }
43 
44 
45 status_t
46 _get_next_team_info(int32 *cookie, team_info *info, size_t size)
47 {
48 	if (info == NULL || size != sizeof(team_info))
49 		return B_BAD_VALUE;
50 
51 	return _kern_get_next_team_info(cookie, info);
52 }
53 
54