Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Platform/POSIX/Users.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroika_Foundation_Execution_Platform_POSIX_Users_h_
5#define _Stroika_Foundation_Execution_Platform_POSIX_Users_h_ 1
6
7#include "Stroika/Foundation/StroikaPreComp.h"
8
9#if !qStroika_Foundation_Common_Platform_POSIX
10#error "ONLY INCLUDE FOR POSIX"
11#endif
12
13#include <pwd.h>
14
16#include "Stroika/Foundation/Common/Common.h"
17
19
20 using Characters::String;
21
22 uid_t UserName2UID (const String& name);
23 String uid_t2UserName (uid_t uid);
24
25 // This returns the uid of the actual original user - not the effectvie permissions
26 uid_t GetUID ();
27
28 uid_t GetEffectiveUID ();
29
30}
31
32#endif /*_Stroika_Foundation_Execution_Platform_POSIX_Users_h_*/