BUG#: 3671
authordavid.dillard <david.dillard>
Wed, 25 May 2005 02:31:16 +0000 (02:31 +0000)
committerdavid.dillard <david.dillard>
Wed, 25 May 2005 02:31:16 +0000 (02:31 +0000)
TITLE: Removed unneeded header files.

DESCRIPTION:

src/Pegasus/Compiler/cmdline/cimmof/cmdline.cpp
src/Pegasus/Config/tests/ConfigFileHandler/ConfigFileHandler.cpp
src/Pegasus/DynListener/Service/cimlistener.cpp
src/Server/cimserver.cpp

index 6012abac2e0298cd78eb6c86be471dd40f4975c0..9cd75b45657348f4404fb9bf3bc333411cf7541e 100644 (file)
@@ -15,7 +15,7 @@
 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 // sell copies of the Software, and to permit persons to whom the Software is
 // furnished to do so, subject to the following conditions:
-// 
+//
 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
@@ -34,6 +34,8 @@
 //              Alagaraja Ramasubramanian, IBM (alags_raj@in.ibm.com) - PEP-167
 //              Amit K Arora, IBM (amitarora@in.ibm.com) - Bug#2333, #2351
 //              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#3370
+//              David Dillard, VERITAS Software Corp.
+//                  (david.dillard@veritas.com)
 //
 //%/////////////////////////////////////////////////////////////////////////////
 
@@ -60,16 +62,13 @@ PEGASUS_USING_PEGASUS;
 #include "cmdline.h"
 #include "cmdlineExceptions.h"
 #include <Pegasus/getoopt/getoopt.h>
-#include <fstream>
 #include <Pegasus/Common/String.h>
-//#include <strstream>
-//#include <sstream>
 #ifdef PEGASUS_OS_OS400
-#include <qycmutiltyUtility.H> 
+#include <qycmutiltyUtility.H>
 #include <qycmutilu2.H>
-#endif 
+#endif
+
 
 #define DEFAULT_SERVER_AND_PORT "localhost:5988"
 
 #ifndef DISABLE_CIMMOFL_WARNING
@@ -88,9 +87,9 @@ cimmofl_warning(ostream &os) {
 }
 #endif
 
-ostream & 
+ostream &
 help(ostream &os, int progtype) {
-       
+
 //l10n menu
   //PEP167 change
   String help;
@@ -124,7 +123,7 @@ help(ostream &os, int progtype) {
   }
 
   help.append( " [ mof_file ... ]\n");
-  help.append("Options : \n");  
+  help.append("Options : \n");
   help.append( "    -h, --help      - Display this help message \n");
   help.append( "    --version       - Display CIM Server version\n");
   help.append( "    -w              - Suppress warning messages\n");
@@ -139,7 +138,7 @@ help(ostream &os, int progtype) {
       help.append( "    -N                  - Specify the repository name - defaults to \"repository\"\n");
       help.append( "    -M                  - Repository mode [XML, BIN] - defaults to \"XML\"\n");
   }
-#else 
+#else
   if(progtype == 1)
       help.append("Usage: ").append("cimmofl");
   else
@@ -173,7 +172,7 @@ help(ostream &os, int progtype) {
 #else
   help.append( " [ mof_file... ]\n");
 #endif
-  help.append("Options :\n");  
+  help.append("Options :\n");
   help.append( "    -h, --help          - Display this help message\n");
   help.append( "    --version           - Display CIM Server version\n");
   help.append( "    -E                  - Syntax check only\n");
@@ -212,7 +211,7 @@ help(ostream &os, int progtype) {
 MessageLoaderParms parms ;
 if(progtype == 1)
 {
-   parms = MessageLoaderParms("Compiler.cmdline.cimmofl.cmdline.MENU.STANDARD",help); 
+   parms = MessageLoaderParms("Compiler.cmdline.cimmofl.cmdline.MENU.STANDARD",help);
 
    #ifdef PEGASUS_OS_HPUX
       parms = MessageLoaderParms("Compiler.cmdline.cimmofl.cmdline.MENU.PEGASUS_OS_HPUX",help);
@@ -223,7 +222,7 @@ if(progtype == 1)
 }
 else
 {
-   parms = MessageLoaderParms("Compiler.cmdline.cimmof.cmdline.MENU.STANDARD",help); 
+   parms = MessageLoaderParms("Compiler.cmdline.cimmof.cmdline.MENU.STANDARD",help);
 
    #ifdef PEGASUS_OS_HPUX
       parms = MessageLoaderParms("Compiler.cmdline.cimmof.cmdline.MENU.PEGASUS_OS_HPUX",help);
@@ -249,21 +248,21 @@ process_filelist(const String &filename, mofCompilerOptions &cmdlinedata)
 
   while (ifs != 0) {
     GetLine(ifs, line);
-    if (line.size() > 0) 
+    if (line.size() > 0)
       cmdlinedata.add_filespecs(line);
   }
   return 0;
 }
 
 /* flag value, type, islong?, needsValue? */
-static struct optspec optspecs[] = 
+static struct optspec optspecs[] =
 {
     {(char*)"", FILESPEC, false, getoopt::NOARG},
     {(char*)"h", HELPFLAG, false, getoopt::NOARG},
     {(char*)"help", HELPFLAG, true, getoopt::NOARG},
     {(char*)"version", VERSIONFLAG, true, getoopt::NOARG},
     {(char*)"n", NAMESPACE, false, getoopt::MUSTHAVEARG},
-    {(char*)"namespace", NAMESPACE, true, getoopt::MUSTHAVEARG}, 
+    {(char*)"namespace", NAMESPACE, true, getoopt::MUSTHAVEARG},
     {(char*)"I", INCLUDEPATH, false, getoopt::MUSTHAVEARG},
     //PEP167 - not required
     //{(char*)"Include", INCLUDEPATH, true, getoopt::MUSTHAVEARG},
@@ -274,7 +273,7 @@ static struct optspec optspecs[] =
     //PEP167 - 'f' and 'filelist' options disabled as per PEP
     //{(char*)"f", FILELIST, false, getoopt::MUSTHAVEARG},
     //{(char*)"filelist", FILELIST, true, getoopt::MUSTHAVEARG},
-    {(char*)"E", SYNTAXFLAG, false, getoopt::NOARG}, 
+    {(char*)"E", SYNTAXFLAG, false, getoopt::NOARG},
     {(char*)"trace", TRACEFLAG, true, getoopt::OPTIONALARG},
     {(char*)"xml", XMLFLAG, true, getoopt::NOARG},
 #endif
@@ -298,7 +297,7 @@ setCmdLineOpts(getoopt &cmdline, int progtype) {
     if(progtype == 1 && o.catagory == OPTEND_CIMMOF) continue;
     else if(progtype == 1 && o.catagory == OPTEND_CIMMOFL) break;
     else if(progtype == 0 && o.catagory == OPTEND_CIMMOF) break;
-    
+
     //if (o.flag == "") Bug#2314 - Incorrect comparison
     if ((o.flag != 0) && (o.flag[0] == '\0'))
       continue;
@@ -313,7 +312,7 @@ setCmdLineOpts(getoopt &cmdline, int progtype) {
 //PEP167 change - 2nd argument char* added
 static opttypes
 catagorize(const Optarg &arg, int progtype) {
-  
+
   for (unsigned int i = 0; ; i++) {
     const optspec &o = optspecs[i];
     //PEP167 change
@@ -325,7 +324,7 @@ catagorize(const Optarg &arg, int progtype) {
   }
   if(progtype == 0)
       return OPTEND_CIMMOF;
-  else 
+  else
       return OPTEND_CIMMOFL;
 }
 
@@ -397,7 +396,7 @@ getType(const char *name)
   const char *pos2;
   pos = strrchr(name, SEPCHAR);
   pos2 = strrchr(name, SEPCHAR2);
-  pos = (pos2 > pos) ? pos2 : pos; 
+  pos = (pos2 > pos) ? pos2 : pos;
   if (!pos)
     pos = name;
   else
@@ -429,7 +428,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
   cmdline.parse(argc, argv);
   switch (getType(argv[0])) {
   case 1: cmdlinedata.set_is_local();
-    #ifdef PEGASUS_OS_OS400  
+    #ifdef PEGASUS_OS_OS400
        // check if we are in qsh, if we are NOT running in a qsh environment then
       // send and escape message,
       // if we ARE then call ycmServerIsActive without the quiet option
@@ -449,20 +448,20 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
              return CPFDF81_RC;
          }
       }
-#pragma convert(0) 
-#endif 
+#pragma convert(0)
+#endif
     break;
   default: cmdlinedata.reset_is_local();
   }
   applyDefaults(cmdlinedata);
   if (cmdline.hasErrors()) {
-    
+
     //  throw an exception and hande it in the caller
     //l10n
     //String msg = "Command line errors:\n";
     MessageLoaderParms parms("Compiler.cmdline.cimmof.CMDLINE_ERRORS",
                                                 "Command line errors:\n");
-    String msg = MessageLoader::getMessage(parms);                                              
+    String msg = MessageLoader::getMessage(parms);
     cmdline.printErrors(msg);
 
     throw ArgumentErrorsException(msg);
@@ -478,10 +477,10 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
           throw ArgumentErrorsException(parms);
     switch (c)
       {
-      case VERSIONFLAG:  
+      case VERSIONFLAG:
         if(type != -1) throw ArgumentErrorsException(parms);
         break;
-      case HELPFLAG:  
+      case HELPFLAG:
         if(type != -1) throw ArgumentErrorsException(parms);
         break;
       case INCLUDEPATH:cmdlinedata.add_include_path(arg.optarg());
@@ -494,7 +493,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
        break;
       case REPOSITORYNAME:  cmdlinedata.set_repository_name(arg.optarg());
        break;
-      case REPOSITORYMODE: 
+      case REPOSITORYMODE:
        {
          cmdlinedata.set_repository_mode(arg.optarg());
 
@@ -508,12 +507,12 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
              MessageLoaderParms parms("Compiler.cmdline.cimmof.UNKNOWN_VALUE_OPTION_A",
                                       "Unknown value specified for option -M.");
              throw ArgumentErrorsException(parms);
-           }       
+           }
 
        }
        break;
       case UPDATEFLAG:
-        { 
+        {
           if (arg.optarg().size() == 1)
           {
               for (unsigned int i = 0; i < arg.optarg().size(); i++)
@@ -543,7 +542,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
         }
         break;
       case ALLOWFLAG:
-        { 
+        {
           if ((arg.optarg().size() <= 2) && (arg.optarg().size() != 0))
           {
               for (unsigned int i = 0; i < arg.optarg().size(); i++)
@@ -580,7 +579,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
                       cmdlinedata.set_operationType(
                                compilerCommonDefs::DO_NOT_ADD_TO_REPOSITORY);
        break;
-      case TRACEFLAG: 
+      case TRACEFLAG:
        {
          cmdlinedata.set_trace();
          const String &s = arg.optarg();
@@ -615,7 +614,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
       // This is used during product installation and PTF application.
       // We must be absolutely quiet to avoid a terminal being
       // activated in native mode.
-      case QUIETFLAG: 
+      case QUIETFLAG:
         cmdlinedata.set_quiet();
         // Redirect to /dev/null.
         // Works for both qshell and native modes.
@@ -646,7 +645,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
      help(helpos, getType(argv[0]));
      return(-1);
   }
+
   if (String::equal(cmdlinedata.get_repository(), String::EMPTY)) {
 
        //l10n
@@ -657,7 +656,7 @@ processCmdLine(int argc, char **argv, mofCompilerOptions &cmdlinedata,
     throw CmdlineNoRepository(parms);
   }
 
-#ifdef PEGASUS_OS_OS400 
+#ifdef PEGASUS_OS_OS400
   // Force a mof to be specified on OS/400
   if (cmdlinedata.get_filespec_list().size() == 0) {
        //l10n
index 76c97a8ba787ebe78bd54066ffd0ff6c47dfde97..6c744c2e4c0b1f2051f25b31ab69b122f11f2c58 100644 (file)
@@ -35,8 +35,6 @@
 //%/////////////////////////////////////////////////////////////////////////////
 
 #include <cassert>
-#include <fstream>
-#include <iostream>
 #include <cstdio>
 #include <Pegasus/Config/ConfigFileHandler.h>
 
index 522dabffc077e3f989a889d742e83d24ccf66172..d85fc6bf568a4f804ee86629bdb440e8dd093c68 100644 (file)
 // Author: Mike Brasher (mbrasher@bmc.com)
 //
 // Modified By: Mike Day (mdday@us.ibm.com)
-//
-// Modified By: Karl Schopmeyer (k.schopmeyer@opengroup.org)
-//
-// Modified By: Nag Boranna (nagaraja_boranna@hp.com)
-//
-// Modified By: Jenny Yu (jenny_yu@hp.com)
-//
-// Modified By: Sushma Fernandes (sushma_fernandes@hp.com)
+//              Karl Schopmeyer (k.schopmeyer@opengroup.org)
+//              Nag Boranna (nagaraja_boranna@hp.com)
+//              Jenny Yu (jenny_yu@hp.com)
+//              Sushma Fernandes (sushma_fernandes@hp.com)
 //              Carol Ann Krug Graves, Hewlett-Packard Company
-//                (carolann_graves@hp.com)
-//      Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
-//
-// Modified By: Dave Rosckes (rosckes@us.ibm.com)
-//
-// Modified By: Humberto Rivero (hurivero@us.ibm.com)
-//
-// Modified By: Steve Hills (steve.hills@ncr.com)
-//
-// Modified By: Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167
-//
-// Modified By: Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2555
-//
-// Modified By: Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032
-//
-// Modified By: Heather Sterling, IBM (hsterl@us.ibm.com) - PEP#197 CIMListener, PEP#222 Service Refactoring
-//
-// Modified By: Amit K Arora, IBM (amita@in.ibm.com) Bug#3028
+//                  (carolann_graves@hp.com)
+//              Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
+//              Dave Rosckes (rosckes@us.ibm.com)
+//              Humberto Rivero (hurivero@us.ibm.com)
+//              Steve Hills (steve.hills@ncr.com)
+//              Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167
+//              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2555
+//              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032
+//              Heather Sterling, IBM (hsterl@us.ibm.com) - PEP#197 CIMListener,
+//                      PEP#222 Service Refactoring
+//              Amit K Arora, IBM (amita@in.ibm.com) Bug#3028
+//              David Dillard, VERITAS Software Corp.
+//                  (david.dillard@veritas.com)
 //
 //%/////////////////////////////////////////////////////////////////////////////
 
 
 #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Constants.h>
-#include <iostream>
 #include <cassert>
 #include <cstdlib>
-#include <fstream>
 #include <Pegasus/Common/FileSystem.h>
 #include <Pegasus/Common/Logger.h>
 #include <Pegasus/Common/System.h>
@@ -391,7 +380,7 @@ setlocale(LC_ALL, "");
        GetModuleFileName(hExe, exeDir, sizeof(exeDir));
        *strrchr(exeDir, '\\') = '\0';
        pegasusHome = String(exeDir);
-               
+
 #endif
 
         // Get help, version, and shutdown options
index 2c85d4c9afdab65fa97cc350a95cb344e8208539..5ca29ab5e310b8f2577999b5e07151ff5ab36d87 100644 (file)
@@ -15,7 +15,7 @@
 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 // sell copies of the Software, and to permit persons to whom the Software is
 // furnished to do so, subject to the following conditions:
-// 
+//
 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 //
 // Author: Mike Brasher (mbrasher@bmc.com)
 //
-// Modified By: Mike Day (mdday@us.ibm.com) 
-//
-// Modified By: Karl Schopmeyer (k.schopmeyer@opengroup.org)
-//
-// Modified By: Nag Boranna (nagaraja_boranna@hp.com)
-//
-// Modified By: Jenny Yu (jenny_yu@hp.com)
-//
-// Modified By: Sushma Fernandes (sushma_fernandes@hp.com)
+// Modified By: Mike Day (mdday@us.ibm.com)
+//              Karl Schopmeyer (k.schopmeyer@opengroup.org)
+//              Nag Boranna (nagaraja_boranna@hp.com)
+//              Jenny Yu (jenny_yu@hp.com)
+//              Sushma Fernandes (sushma_fernandes@hp.com)
 //              Carol Ann Krug Graves, Hewlett-Packard Company
-//                (carolann_graves@hp.com)
-//      Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
-//
-// Modified By: Dave Rosckes (rosckes@us.ibm.com)
-//
-// Modified By: Humberto Rivero (hurivero@us.ibm.com)
-//
-// Modified By: Steve Hills (steve.hills@ncr.com)
+//                  (carolann_graves@hp.com)
+//              Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
+//              Dave Rosckes (rosckes@us.ibm.com)
+//              Humberto Rivero (hurivero@us.ibm.com)
+//              Steve Hills (steve.hills@ncr.com)
 //              Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com)
-//
-// Modified By: Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167
-//
-// Modified By: Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2555
-//
-// Modified By: Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032
-//
-// Modified By: Heather Sterling, IBM (hsterl@us.ibm.com) - PEP#222
-//
-// Modified By: Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#3452
+//              Amit K Arora, IBM (amitarora@in.ibm.com) - pep 167
+//              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2555
+//              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032
+//              Heather Sterling, IBM (hsterl@us.ibm.com) - PEP#222
+//              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#3452
+//              David Dillard, VERITAS Software Corp.
+//                  (david.dillard@veritas.com)
 //
 //%/////////////////////////////////////////////////////////////////////////////
 
@@ -66,7 +56,7 @@
 //
 // Notes on deamon operation (Unix) and service operation (Win 32):
 //
-// To run pegasus as a daemon on Unix platforms: 
+// To run pegasus as a daemon on Unix platforms:
 //
 // cimserver
 //
 //
 // cimserver daemon=false
 //
-// The daemon config property has no effect on windows operation. 
+// The daemon config property has no effect on windows operation.
 //
 // To shutdown pegasus, use the -s option:
-// 
-// cimserver -s 
+//
+// cimserver -s
 //
 // To run pegasus as an NT service, there are FOUR  different possibilities:
 //
-// To INSTALL the Pegasus service, 
+// To INSTALL the Pegasus service,
 //
 // cimserver -install
 //
-// To REMOVE the Pegasus service, 
+// To REMOVE the Pegasus service,
 //
 // cimserver -remove
 //
-// To START the Pegasus service, 
+// To START the Pegasus service,
 //
 // net start cimserver
 // or
 // cimserver -start
 //
-// To STOP the Pegasus service, 
+// To STOP the Pegasus service,
 //
 // net stop cimserver
 // or
 // cimserver -stop
 //
-// Alternatively, you can use the windows service manager. Pegasus shows up 
+// Alternatively, you can use the windows service manager. Pegasus shows up
 // in the service database as "Pegasus CIM Object Manager"
 //
 // Mike Day, mdday@us.ibm.com
-// 
+//
 //////////////////////////////////////////////////////////////////////
 
 
 #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Constants.h>
-#include <iostream>
 #include <cassert>
 #include <cstdlib>
-#include <fstream>
 #include <Pegasus/Common/FileSystem.h>
 #include <Pegasus/Common/Monitor.h>
 #include <Pegasus/Common/PegasusVersion.h>
@@ -176,7 +164,7 @@ public:
     {
         return PEGASUS_SERVICE_DESCRIPTION;
     }
-    
+
     //defined in PegasusVersion.h
     virtual const char* getVersion() const
     {
@@ -315,7 +303,7 @@ void PrintHelp(const char* arg0)
     cout << endl;
     cout << _cimServerProcess->getProductName() << " " << _cimServerProcess->getVersion() << endl;
     cout << endl;
-    
+
 #if defined(PEGASUS_OS_TYPE_WINDOWS)
     MessageLoaderParms parms("src.Server.cimserver.MENU.WINDOWS", usage);
 #elif defined(PEGASUS_USE_RELEASE_DIRS)
@@ -346,11 +334,11 @@ void deleteCIMServer()
 // Dummy function for the Thread object associated with the initial thread.
 // Since the initial thread is used to process CIM requests, this is
 // needed to localize the exceptions thrown during CIM request processing.
-// Note: This function should never be called! 
-// 
+// Note: This function should never be called!
+//
 PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL dummyThreadFunc(void *parm)
 {
-   return((PEGASUS_THREAD_RETURN)0);    
+   return((PEGASUS_THREAD_RETURN)0);
 }
 
 void shutdownCIMOM(Uint32 timeoutValue)
@@ -366,7 +354,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
     String hostStr = System::getHostName();
 
     //
-    // open connection to CIMOM 
+    // open connection to CIMOM
     //
     try
     {
@@ -409,7 +397,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
         //
         String referenceStr = "//";
         referenceStr.append(hostStr);
-        referenceStr.append("/");  
+        referenceStr.append("/");
         referenceStr.append(PEGASUS_NAMESPACENAME_SHUTDOWN.getString());
         referenceStr.append(":");
         referenceStr.append(PEGASUS_CLASSNAME_SHUTDOWN.getString());
@@ -468,7 +456,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
         if (e.getCode() == CIM_ERR_INVALID_NAMESPACE)
         {
             //
-            // Repository may be empty.  
+            // Repository may be empty.
             //
             //l10n - TODO
             Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
@@ -487,7 +475,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
             PEGASUS_STD(cerr) << e.getMessage() << PEGASUS_STD(endl);
         }
 
-    // Kill the cimserver process 
+    // Kill the cimserver process
     if (_cimServerProcess->cimserver_kill(0) == 0)
         {
             //l10n - TODO
@@ -506,8 +494,8 @@ void shutdownCIMOM(Uint32 timeoutValue)
         //
         // This may mean that the CIM Server has terminated, causing this
         // client to get a "Empty HTTP response message" exception.  It may
-        // also mean that the CIM Server is taking longer than 2 seconds 
-        // (client timeout value) to terminate, causing this client to 
+        // also mean that the CIM Server is taking longer than 2 seconds
+        // (client timeout value) to terminate, causing this client to
         // timeout with a "connection timeout" exception.
         //
         // Check to see if CIM Server is still running.  If CIM Server
@@ -515,7 +503,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
         // loop and wait one second until either the CIM Server is
         // terminated or timeout expires.  If timeout expires and
         // the CIM Server is still running, kill the CIMServer process.
-        // 
+        //
         Uint32 maxWaitTime = timeoutValue - 2;
         Boolean running = _cimServerProcess->isCIMServerRunning();
         while ( running && maxWaitTime > 0 )
@@ -528,7 +516,7 @@ void shutdownCIMOM(Uint32 timeoutValue)
         if (running)
         {
        int kill_rc = _cimServerProcess->cimserver_kill(0);
-       
+
 #ifdef PEGASUS_OS_OS400
         if(kill_rc == -1)
         _cimServerProcess->cimserver_exitRC(2);
@@ -567,7 +555,7 @@ int main(int argc, char** argv)
 
 //l10n
 // Set Message loading to process locale
-MessageLoader::_useProcessLocale = true; 
+MessageLoader::_useProcessLocale = true;
 //l10n
 
 //l10n
@@ -706,14 +694,14 @@ setlocale(LC_ALL, "");
                 {
             System::bindVerbose = true;
                     //l10n
-                    //cout << "Unsupported debug option, BIND_VERBOSE, enabled." 
+                    //cout << "Unsupported debug option, BIND_VERBOSE, enabled."
                          //<< endl;
                     MessageLoaderParms parms("src.Server.cimserver.UNSUPPORTED_DEBUG_OPTION",
                                          "Unsupported debug option, BIND_VERBOSE, enabled.");
                     cout << MessageLoader::getMessage(parms) << endl;
                     // remove the option from the command line
                     memmove(&argv[i], &argv[i + 1], (argc-i) * sizeof(char*));
-                    argc--;   
+                    argc--;
                 }
 #endif
                 //
@@ -731,16 +719,16 @@ setlocale(LC_ALL, "");
                         //cout << "Duplicate shutdown option specified." << endl;
                         MessageLoaderParms parms("src.Server.cimserver.DUPLICATE_SHUTDOWN_OPTION",
                                                  "Duplicate shutdown option specified.");
-                       
+
                         cout << MessageLoader::getMessage(parms) << endl;
                         exit(0);
                     }
 
                     shutdownOption = true;
+
                     // remove the option from the command line
                     memmove(&argv[i], &argv[i + 1], (argc-i) * sizeof(char*));
-                    argc--;   
+                    argc--;
                 }
                 else
                     i++;
@@ -769,13 +757,13 @@ void CIMServerProcess::cimserver_stop()
 //
 // The main, common, running code
 //
-// NOTE: Do NOT call exit().  Use return(), otherwise some platforms 
+// NOTE: Do NOT call exit().  Use return(), otherwise some platforms
 // will fail to shutdown properly/cleanly.
 //
-// TODO: Current change minimal for platform "service" shutdown bug fixes.  
-// Perhpas further extract out common stuff and put into main(), put 
-// daemon stuff into platform specific platform_run(), etc.  
-// Note: make sure to not put error handling stuff that platform 
+// TODO: Current change minimal for platform "service" shutdown bug fixes.
+// Perhpas further extract out common stuff and put into main(), put
+// daemon stuff into platform specific platform_run(), etc.
+// Note: make sure to not put error handling stuff that platform
 // specific runs may need to deal with bettter (instead of exit(), etc).
 //
 
@@ -817,7 +805,7 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
         // to save the job log.
         system ("QSYS/CHGJOB JOB(*) LOG(4 00 *SECLVL)");
     }
-#endif    
+#endif
 
     //
     // Get options (from command line and from configuration file); this
@@ -828,7 +816,7 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
     {
 #ifdef PEGASUS_OS_OS400
     if (os400StartupOption == false)
-#endif   
+#endif
         GetOptions(configManager, argc, argv);
     }
     catch (Exception& e)
@@ -850,10 +838,10 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
 
 // l10n
     // Set the home directory, msg sub-dir, into the MessageLoader.
-    // This will be the default directory where the resource bundles 
-    // are found.    
+    // This will be the default directory where the resource bundles
+    // are found.
     MessageLoader::setPegasusMsgHome(ConfigManager::getHomedPath(
-        ConfigManager::getInstance()->getCurrentValue("messageDir")));      
+        ConfigManager::getInstance()->getCurrentValue("messageDir")));
 
 #ifdef PEGASUS_OS_OS400
     // Still need to declare and set the connection variables.
@@ -862,7 +850,7 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
     // NOTE:  OS400 is a LOCAL_DOMAIN_SOCKET, so a few lines down
     // the test will not be compiled in.  If OS400 ever turns off that
     // define, then we will need to change this code path to insure that
-    // one of the variables is true.    
+    // one of the variables is true.
     Boolean enableHttpConnection = false;
     Boolean enableHttpsConnection = false;
     Boolean enableSSLExportClientVerification = false;
@@ -915,11 +903,11 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
         {
             daemonOption = true;
         }
-    
+
 #ifdef PEGASUS_OS_OS400
     if (os400StartupOption == false)
     {
-#endif            
+#endif
         // Get the log file directory definition.
         // We put String into Cstring because
         // Directory functions only handle Cstring.
@@ -927,7 +915,7 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
 #if !defined(PEGASUS_USE_SYSLOGS)
                // When using syslog facility. No files anymore.
         logsDirectory = configManager->getCurrentValue("logdir");
-        logsDirectory = 
+        logsDirectory =
         ConfigManager::getHomedPath(configManager->getCurrentValue("logdir"));
 #endif
 #ifdef PEGASUS_OS_OS400
@@ -944,20 +932,20 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
 #endif
 
         //
-        // Check to see if we need to shutdown CIMOM 
+        // Check to see if we need to shutdown CIMOM
         //
         if (shutdownOption)
         {
-            String configTimeout = 
+            String configTimeout =
                 configManager->getCurrentValue("shutdownTimeout");
             Uint32 timeoutValue = strtol(configTimeout.getCString(), (char **)0, 10);
-            
+
             shutdownCIMOM(timeoutValue);
 
 #ifdef PEGASUS_OS_OS400
         //l10n
         //Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::INFORMATION,
-            //"CIM Server stopped.");  
+            //"CIM Server stopped.");
         Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::INFORMATION,
             "src.Server.cimserver.SERVER_STOPPED",
             "CIM Server stopped.");
@@ -990,10 +978,10 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
 #ifdef PEGASUS_OS_OS400
     //l10n
     //Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-            //"Error: $0",e.getMessage());  
+            //"Error: $0",e.getMessage());
     Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
             "src.Server.cimserver.ERROR",
-            "Error: $0",e.getMessage()); 
+            "Error: $0",e.getMessage());
 #else
     //l10n
     //cout << "Error: " << e.getMessage() << endl;
@@ -1026,7 +1014,7 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
             portNumberHttps = System::lookupPort(WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT);
 
         } else
-        {        
+        {
             //
             // user-specified
             //
@@ -1110,12 +1098,12 @@ int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOpti
 
 //l10n
 // reset message loading to NON-process locale
-MessageLoader::_useProcessLocale = false; 
+MessageLoader::_useProcessLocale = false;
 //l10n
 
     // Get the parent's PID before forking
     _cimServerProcess->set_parent_pid(System::getPID());
-    
+
     // do we need to run as a daemon ?
     if (daemonOption)
     {
@@ -1133,7 +1121,7 @@ MessageLoader::_useProcessLocale = false;
         return(0);
     }
 #endif
-    
+
     }
 
 // l10n
@@ -1145,20 +1133,20 @@ MessageLoader::_useProcessLocale = false;
     // to service CIM requests.
     // The run function for the dummy Thread should never be called,
     Thread *dummyInitialThread = new Thread(dummyThreadFunc, NULL, false);
-    Thread::setCurrent(dummyInitialThread); 
+    Thread::setCurrent(dummyInitialThread);
     AcceptLanguages default_al;
     try{
-         default_al = AcceptLanguages::getDefaultAcceptLanguages();   
+         default_al = AcceptLanguages::getDefaultAcceptLanguages();
          Thread::setLanguages(new AcceptLanguages(default_al));
     }catch(InvalidAcceptLanguageHeader& e){
           Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
                   "src.Server.cimserver.FAILED_TO_SET_PROCESS_LOCALE",
-                  "Could not convert the system process locale into a valid AcceptLanguage format.");  
+                  "Could not convert the system process locale into a valid AcceptLanguage format.");
           Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-                             e.getMessage()); 
+                             e.getMessage());
     }
-    
-    
+
+
 
 #ifdef PEGASUS_OS_OS400
     // Special server initialization code for OS/400.
@@ -1167,12 +1155,12 @@ MessageLoader::_useProcessLocale = false;
     // do some logging here!
     //l10n
     //Logger::put(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
-            //"CIM Server failed to initialize"); 
+            //"CIM Server failed to initialize");
     Logger::put_l(Logger::ERROR_LOG, System::CIMSERVER, Logger::SEVERE,
                   "src.Server.cimserver.SERVER_FAILED_TO_INITIALIZE",
-                  "CIM Server failed to initialize");  
+                  "CIM Server failed to initialize");
     return(-1);
-    } 
+    }
 #endif
 
 
@@ -1183,7 +1171,7 @@ MessageLoader::_useProcessLocale = false;
 
     //
     // check if CIMServer is already running
-    // if CIMServer is already running, print message and 
+    // if CIMServer is already running, print message and
     // notify parent process (if there is a parent process) to terminate
     //
     if(_cimServerProcess->isCIMServerRunning())
@@ -1203,7 +1191,7 @@ MessageLoader::_useProcessLocale = false;
 
         return(1);
     }
-     
+
 #endif
 
     // try loop to bind the address, and run the server
@@ -1223,7 +1211,7 @@ MessageLoader::_useProcessLocale = false;
             //l10n
             //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION,
                         //"Listening on HTTP port $0.", portNumberHttp);
-                        
+
             Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION,
                             "src.Server.cimserver.LISTENING_ON_HTTP_PORT",
                             "Listening on HTTP port $0.", portNumberHttp);
@@ -1292,7 +1280,7 @@ MessageLoader::_useProcessLocale = false;
 #endif
 
         // bind throws an exception if the bind fails
-       try { 
+       try {
            _cimServer->bind();
        } catch (const BindFailedException &e)
        {
@@ -1308,7 +1296,7 @@ MessageLoader::_useProcessLocale = false;
           deleteCIMServer();
           return 1;
        }
-    // notify parent process (if there is a parent process) to terminate 
+    // notify parent process (if there is a parent process) to terminate
         // so user knows that there is cimserver ready to serve CIM requests.
     if (daemonOption)
         _cimServerProcess->notify_parent(0);
@@ -1339,7 +1327,7 @@ MessageLoader::_useProcessLocale = false;
 #if defined(PEGASUS_DEBUG)
     cout << "Started. " << endl;
 #endif
-    
+
         // Put server started message to the logger
         Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER,
             Logger::INFORMATION,
@@ -1371,7 +1359,7 @@ MessageLoader::_useProcessLocale = false;
 || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || defined(PEGASUS_OS_AIX) \
 || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) || defined(PEGASUS_OS_VMS)
         //
-        // close the file created at startup time to indicate that the 
+        // close the file created at startup time to indicate that the
         // cimserver has terminated normally.
         //
         FileSystem::removeFile(_cimServerProcess->getPIDFileName());
@@ -1382,10 +1370,10 @@ MessageLoader::_useProcessLocale = false;
 
     //l10n
     //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
-            //"Error: $0", e.getMessage()); 
+            //"Error: $0", e.getMessage());
     Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING,
             "src.Server.cimserver.ERROR",
-            "Error: $0", e.getMessage());  
+            "Error: $0", e.getMessage());
 
 #ifndef PEGASUS_OS_OS400
     //l10n