version 1.12, 2006/11/10 18:14:57
|
version 1.13, 2006/11/13 19:26:16
|
|
|
#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 |
|
|
| |
void AuditLogger::logCurrentEnvironmentVar() | void AuditLogger::logCurrentEnvironmentVar() |
{ | { |
|
#ifdef PEGASUS_OS_DARWIN |
|
char** envp = *_NSGetEnviron(); |
|
#else |
char ** envp = environ; | char ** envp = environ; |
|
#endif |
|
|
Uint32 i = 0; | Uint32 i = 0; |
| |
while (envp[i]) | while (envp[i]) |