mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
Add two new methods for getting the User Id and Group Id values for the
current process. llvm-svn: 21400
This commit is contained in:
parent
4c73570c42
commit
9990a77646
@ -63,6 +63,16 @@ namespace sys {
|
||||
///< Returns the current amount of system time for the process
|
||||
);
|
||||
|
||||
/// This static function will return the process' current user id number.
|
||||
/// Not all operating systems support this feature. Where it is not
|
||||
/// supported, the function should return 65536 as the value.
|
||||
static int GetCurrentUserId();
|
||||
|
||||
/// This static function will return the process' current group id number.
|
||||
/// Not all operating systems support this feature. Where it is not
|
||||
/// supported, the function should return 65536 as the value.
|
||||
static int GetCurrentGroupId();
|
||||
|
||||
/// This function makes the necessary calls to the operating system to
|
||||
/// prevent core files or any other kind of large memory dumps that can
|
||||
/// occur when a program fails.
|
||||
|
Loading…
x
Reference in New Issue
Block a user