version 1.1.2.1, 2006/11/16 13:30:37
|
version 1.10, 2006/10/31 18:51:56
|
|
|
#include <Pegasus/Common/InternalException.h> | #include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Common/AuditLogger.h> | #include <Pegasus/Common/AuditLogger.h> |
| |
#ifdef PEGASUS_OS_DARWIN |
|
# include <crt_externs.h> |
|
#endif |
|
|
|
#ifndef PEGASUS_OS_TYPE_WINDOWS | #ifndef PEGASUS_OS_TYPE_WINDOWS |
# include <unistd.h> | # include <unistd.h> |
#endif | #endif |
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
static const String providerModuleStatus [] = { |
static const String providerModuleStatus [] = {"Unknown", "Other", "OK", "Degraded", |
"Unknown", "Other", "OK", "Degraded", |
|
"Stressed", "Predictive Failure", "Error", "Non-Recoverable Error", | "Stressed", "Predictive Failure", "Error", "Non-Recoverable Error", |
"Starting", "Stopping", "Stopped", "In Service", "No Contact", | "Starting", "Stopping", "Stopped", "In Service", "No Contact", |
"Lost Communication"}; | "Lost Communication"}; |
|
|
| |
void AuditLogger::logCurrentEnvironmentVar() | void AuditLogger::logCurrentEnvironmentVar() |
{ | { |
#ifdef PEGASUS_OS_DARWIN |
|
char** envp = *_NSGetEnviron(); |
|
#else |
|
char** envp = environ; |
|
#endif |
|
| |
|
char ** envp = environ; |
Uint32 i = 0; | Uint32 i = 0; |
| |
while (envp[i]) | while (envp[i]) |
|
|
} | } |
} | } |
| |
return moduleStatusValue; |
return (moduleStatusValue); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |