Make UEFI boot-platform build again
[haiku.git] / headers / private / kernel / usergroup.h
blobdac1c943483f04abd41995db59df88d929850552
1 /*
2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_USERGROUP_H
6 #define _KERNEL_USERGROUP_H
9 #include <unistd.h>
11 #include <SupportDefs.h>
14 namespace BKernel {
15 struct Team;
18 using BKernel::Team;
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 // kernel private functions
27 void inherit_parent_user_and_group(Team* team, Team* parent);
28 status_t update_set_id_user_and_group(Team* team, const char* file);
30 // syscalls
32 gid_t _user_getgid(bool effective);
33 uid_t _user_getuid(bool effective);
34 status_t _user_setregid(gid_t rgid, gid_t egid, bool setAllIfPrivileged);
35 status_t _user_setreuid(uid_t ruid, uid_t euid, bool setAllIfPrivileged);
36 ssize_t _user_getgroups(int groupCount, gid_t* groupList);
37 ssize_t _user_setgroups(int groupCount, const gid_t* groupList);
39 #ifdef __cplusplus
40 } // extern "C"
41 #endif
44 #endif // _KERNEL_USERGROUP_H