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

Diff for /pegasus/src/Pegasus/Common/System.h between version 1.16 and 1.19

version 1.16, 2002/01/17 05:33:49 version 1.19, 2002/03/07 22:58:45
Line 33 
Line 33 
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
  
   //
   // Protocal Type
   //
   #define TCP                        "tcp"
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /** This is an opaque type which is used to represent dynamic library /** This is an opaque type which is used to represent dynamic library
Line 46 
Line 51 
 */ */
 typedef struct DynamicSymbolHandle_* DynamicSymbolHandle; typedef struct DynamicSymbolHandle_* DynamicSymbolHandle;
  
   
 /** The System class defines wrappers for operating system related calls. /** The System class defines wrappers for operating system related calls.
     These are only placed here if they are extremely light. These are     These are only placed here if they are extremely light. These are
     usually just direct wrappers which map more or less one to one to the     usually just direct wrappers which map more or less one to one to the
Line 108 
Line 112 
  
     static String getHostName();     static String getHostName();
  
       static Uint32 lookupPort(
           const char * serviceName,
           Uint32 defaultPort);
   
     static String getCurrentLoginName();     static String getCurrentLoginName();
  
     /**     /**
Line 143 
Line 151 
     static Boolean isSystemUser(char* userName);     static Boolean isSystemUser(char* userName);
  
     /**     /**
     This function is used to check whether the user running the command is      When the user name is not passed as an argument, this function
     a privileged user. On Unix implementation it checks whether the user      checks whether the user running the command is a privileged user.
     is a root user.      If a user name is given this function checks whether
       the given user is a privileged user.
   
       @param userName     User name to be checked.
   
       @return             true if the user is a privileged user, else false
       */
       static Boolean isPrivilegedUser(const String userName = String::EMPTY);
   
       /**
       This function returns the privileged user name on the system.
  
     @return             true if the user running the command is a      @return             the privileged user name
                         privileged user, else false  
     */     */
     static Boolean isPrivilegedUser();      static String getPrivilegedUserName();
  
     /**     /**
     This function is used to get the process ID of the calling process.     This function is used to get the process ID of the calling process.


Legend:
Removed from v.1.16  
changed lines
  Added in v.1.19

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2