(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.59 and 1.60

version 1.59, 2006/01/30 16:17:08 version 1.60, 2006/04/19 19:39:24
Line 57 
Line 57 
 #endif #endif
 #endif #endif
  
   #ifdef PEGASUS_OS_TYPE_UNIX
   # ifndef PEGASUS_OS_OS400
   #  include <unistd.h>
   # endif
   # define PEGASUS_UID_T uid_t
   # define PEGASUS_GID_T gid_t
   #else
   # define PEGASUS_UID_T Uint32
   # define PEGASUS_GID_T Uint32
   #endif
  
 // //
 // Protocal Type // Protocal Type
Line 246 
Line 256 
     static Boolean isGroupMember(const char* userName, const char* groupName);     static Boolean isGroupMember(const char* userName, const char* groupName);
  
     /**     /**
     Changes the process user context to the specified user.          Gets the user and group IDs associated with the specified user.
           @param userName  User name for which to look up user and group IDs.
     @param userName     User name to set as the process user context.          @param uid       User ID for the specified user name.
           @param gid       Group ID for the specified user name.
           @return          True if the user and group IDs were retrieved
                            successfully, false otherwise.
       */
   #ifndef PEGASUS_OS_OS400
       static Boolean lookupUserId(
           const char* userName,
           PEGASUS_UID_T& uid,
           PEGASUS_GID_T& gid);
   #endif
  
       /**
           Changes the process user context to the specified user and group ID.
           @param uid       User ID to set as the process user context.
           @param gid       Group ID to set as the process group context.
     @return             True if the user context is successfully changed,     @return             True if the user context is successfully changed,
                         false otherwise.                         false otherwise.
     */     */
 #ifndef PEGASUS_OS_OS400 #ifndef PEGASUS_OS_OS400
     static Boolean changeUserContext(const char* userName);      static Boolean changeUserContext(
           const PEGASUS_UID_T& uid,
           const PEGASUS_GID_T& gid);
 #endif #endif
   
     /**     /**
     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.59  
changed lines
  Added in v.1.60

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2