version 1.118, 2003/10/17 21:49:30
|
version 1.121, 2003/10/22 14:26:19
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2003//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
#include <Pegasus/Server/ShutdownService.h> | #include <Pegasus/Server/ShutdownService.h> |
#include <Pegasus/Common/Destroyer.h> | #include <Pegasus/Common/Destroyer.h> |
| |
|
PEGASUS_USING_PEGASUS; |
|
PEGASUS_USING_STD; |
|
|
int cimserver_run( int argc, char** argv, Boolean shutdownOption ); | int cimserver_run( int argc, char** argv, Boolean shutdownOption ); |
| |
#if defined(PEGASUS_OS_TYPE_WINDOWS) | #if defined(PEGASUS_OS_TYPE_WINDOWS) |
# include "cimserver_windows.cpp" | # include "cimserver_windows.cpp" |
#elif defined(PEGASUS_OS_TYPE_UNIX) | #elif defined(PEGASUS_OS_TYPE_UNIX) |
# if defined(PEGASUS_OS_OS400) | # if defined(PEGASUS_OS_OS400) |
|
# include "vfyptrs.cinc" |
# include "OS400ConvertChar.h" | # include "OS400ConvertChar.h" |
# include "cimserver_os400.cpp" | # include "cimserver_os400.cpp" |
# else | # else |
|
|
# error "Unsupported platform" | # error "Unsupported platform" |
#endif | #endif |
| |
PEGASUS_USING_PEGASUS; |
|
PEGASUS_USING_STD; |
|
|
|
// | // |
// The command name. | // The command name. |
// | // |
|
|
//l10n | //l10n |
| |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
|
|
|
VFYPTRS_INCDCL; // VFYPTRS local variables |
|
|
|
// verify pointers |
|
#pragma exception_handler (qsyvp_excp_hndlr,qsyvp_excp_comm_area,\ |
|
0,_C2_MH_ESCAPE) |
|
for( int arg_index = 1; arg_index < argc; arg_index++ ){ |
|
VFYPTRS(VERIFY_SPP_NULL(argv[arg_index])); |
|
} |
|
#pragma disable_handler |
|
|
// Convert the args to ASCII | // Convert the args to ASCII |
for(Uint32 i = 0;i< argc;++i) | for(Uint32 i = 0;i< argc;++i) |
{ | { |