version 1.16, 2002/01/17 05:33:49
|
version 1.19, 2002/03/07 22:58:45
|
|
|
#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 |
|
|
*/ | */ |
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 |
|
|
| |
static String getHostName(); | static String getHostName(); |
| |
|
static Uint32 lookupPort( |
|
const char * serviceName, |
|
Uint32 defaultPort); |
|
|
static String getCurrentLoginName(); | static String getCurrentLoginName(); |
| |
/** | /** |
|
|
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. |