[llvm-commits] CVS: llvm/lib/System/Unix/Process.inc

Reid Spencer reid at x10sys.com
Thu Apr 21 09:13:08 PDT 2005



Changes in directory llvm/lib/System/Unix:

Process.inc updated: 1.9 -> 1.10
---
Log message:

Provide an implementation of the GetCurrentUserId and GetCurrentGroupId
methods that were recently added to the interface.


---
Diffs of the changes:  (+10 -0)

 Process.inc |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/lib/System/Unix/Process.inc
diff -u llvm/lib/System/Unix/Process.inc:1.9 llvm/lib/System/Unix/Process.inc:1.10
--- llvm/lib/System/Unix/Process.inc:1.9	Sat Jan  8 14:15:57 2005
+++ llvm/lib/System/Unix/Process.inc	Thu Apr 21 11:12:57 2005
@@ -109,6 +109,16 @@
 #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.






More information about the llvm-commits mailing list