mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Provide an implementation of the GetCurrentUserId and GetCurrentGroupId
methods that were recently added to the interface. llvm-svn: 21401
This commit is contained in:
parent
9990a77646
commit
044ec874d5
@ -109,6 +109,16 @@ Process::GetTimeUsage(TimeValue& elapsed, TimeValue& user_time,
|
||||
#endif
|
||||
}
|
||||
|
||||
int Process::GetCurrentUserId()
|
||||
{
|
||||
return getuid();
|
||||
}
|
||||
|
||||
int Process::GetCurrentGroupId()
|
||||
{
|
||||
return getgid();
|
||||
}
|
||||
|
||||
// Some LLVM programs such as bugpoint produce core files as a normal part of
|
||||
// their operation. To prevent the disk from filling up, this function
|
||||
// does what's necessary to prevent their generation.
|
||||
|
@ -91,6 +91,16 @@ Process::GetTimeUsage(
|
||||
sys_time.nanoseconds( unsigned(KernelTime % 10000000) * 100 );
|
||||
}
|
||||
|
||||
int Process::GetCurrentUserId()
|
||||
{
|
||||
return 65536;
|
||||
}
|
||||
|
||||
int Process::GetCurrentGroupId()
|
||||
{
|
||||
return 65536;
|
||||
}
|
||||
|
||||
// Some LLVM programs such as bugpoint produce core files as a normal part of
|
||||
// their operation. To prevent the disk from filling up, this configuration item
|
||||
// does what's necessary to prevent their generation.
|
||||
|
Loading…
Reference in New Issue
Block a user