[llvm-commits] CVS: llvm/include/llvm/System/Process.h

Reid Spencer reid at x10sys.com
Thu Apr 21 09:12:15 PDT 2005



Changes in directory llvm/include/llvm/System:

Process.h updated: 1.5 -> 1.6
---
Log message:

Add two new methods for getting the User Id and Group Id values for the
current process.


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

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


Index: llvm/include/llvm/System/Process.h
diff -u llvm/include/llvm/System/Process.h:1.5 llvm/include/llvm/System/Process.h:1.6
--- llvm/include/llvm/System/Process.h:1.5	Sat Jan  8 14:15:57 2005
+++ llvm/include/llvm/System/Process.h	Thu Apr 21 11:12:04 2005
@@ -63,6 +63,16 @@
           ///< 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.






More information about the llvm-commits mailing list