(file) Return to SystemUnix.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SystemUnix.cpp between version 1.25 and 1.26

version 1.25, 2002/02/23 00:27:20 version 1.26, 2002/03/07 22:58:45
Line 56 
Line 56 
 #include <netdb.h> #include <netdb.h>
 #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/Tracer.h>
 #include <Pegasus/Common/Destroyer.h> #include <Pegasus/Common/Destroyer.h>
   #include <Pegasus/Common/Exception.h>
  
 #ifdef PEGASUS_PLATFORM_LINUX_IX86_GNU #ifdef PEGASUS_PLATFORM_LINUX_IX86_GNU
 #include <pwd.h> #include <pwd.h>
Line 378 
Line 379 
     }     }
 } }
  
   String System::getPrivilegedUserName()
   {
       static String userName = String::EMPTY;
   
       if (userName == String::EMPTY)
       {
           struct passwd*   pwd = NULL;
   
           //
           //  get the privileged user's UID.
           //
           pwd = getpwuid(0);
           if ( pwd != NULL )
           {
               //
               //  get the user name
               //
               userName.assign(pwd->pw_name);
           }
           else
           {
               PEGASUS_ASSERT(0);
           }
       }
   
       return (userName);
   }
   
 Uint32 System::getPID() Uint32 System::getPID()
 { {
     //     //


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2