diff options
Diffstat (limited to 'Source/Kernel/UserManager/Usr.ns.h')
-rw-r--r-- | Source/Kernel/UserManager/Usr.ns.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/Kernel/UserManager/Usr.ns.h b/Source/Kernel/UserManager/Usr.ns.h new file mode 100644 index 0000000..397b393 --- /dev/null +++ b/Source/Kernel/UserManager/Usr.ns.h @@ -0,0 +1,23 @@ +#ifndef DEF_USR_NS_H +#define DEF_USR_NS_H + +#include <String.class.h> +class Group; +class User; + +namespace Usr { + void load(); //Loads users into memory, from /System/Configuration/{Users,Groups} + void save(); //Saves config from mem to filesystem + + u32int uid(); //Returns current processes UID + + User* user(u32int uid); //Returns user from UID + User* user(String username); + User* user(); + Group* group(u32int gid); + Group* group(String name); + + u32int uid(String username); //Returns UID of username +}; + +#endif |