1
0
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:
Reid Spencer 2005-04-21 16:12:57 +00:00
parent 9990a77646
commit 044ec874d5
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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.