mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-23 13:17:14 +01:00
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
107 lines
1.7 KiB
C++
107 lines
1.7 KiB
C++
//
|
|
// Process_VX.cpp
|
|
//
|
|
// Library: Foundation
|
|
// Package: Processes
|
|
// Module: Process
|
|
//
|
|
// Copyright (c) 2004-2011, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Process_VX.h"
|
|
#include "Poco/Exception.h"
|
|
|
|
|
|
namespace Poco {
|
|
|
|
|
|
//
|
|
// ProcessHandleImpl
|
|
//
|
|
ProcessHandleImpl::ProcessHandleImpl(int pid):
|
|
_pid(pid)
|
|
{
|
|
}
|
|
|
|
|
|
ProcessHandleImpl::~ProcessHandleImpl()
|
|
{
|
|
}
|
|
|
|
|
|
int ProcessHandleImpl::id() const
|
|
{
|
|
return _pid;
|
|
}
|
|
|
|
|
|
int ProcessHandleImpl::wait() const
|
|
{
|
|
throw Poco::NotImplementedException("Process::wait()");
|
|
}
|
|
|
|
|
|
int ProcessHandleImpl::tryWait() const
|
|
{
|
|
throw Poco::NotImplementedException("Process::tryWait()");
|
|
}
|
|
|
|
|
|
//
|
|
// ProcessImpl
|
|
//
|
|
ProcessImpl::PIDImpl ProcessImpl::idImpl()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
void ProcessImpl::timesImpl(long& userTime, long& kernelTime)
|
|
{
|
|
userTime = 0;
|
|
kernelTime = 0;
|
|
}
|
|
|
|
|
|
ProcessHandleImpl* ProcessImpl::launchImpl(const std::string& command, const ArgsImpl& args, const std::string& initialDirectory,Pipe* inPipe, Pipe* outPipe, Pipe* errPipe, const EnvImpl& env)
|
|
{
|
|
throw Poco::NotImplementedException("Process::launch()");
|
|
}
|
|
|
|
|
|
void ProcessImpl::killImpl(ProcessHandleImpl& handle)
|
|
{
|
|
throw Poco::NotImplementedException("Process::kill()");
|
|
}
|
|
|
|
|
|
void ProcessImpl::killImpl(PIDImpl pid)
|
|
{
|
|
throw Poco::NotImplementedException("Process::kill()");
|
|
}
|
|
|
|
|
|
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
|
|
{
|
|
throw Poco::NotImplementedException("Process::is_running()");
|
|
}
|
|
|
|
|
|
bool ProcessImpl::isRunningImpl(PIDImpl pid)
|
|
{
|
|
throw Poco::NotImplementedException("Process::is_running()");
|
|
}
|
|
|
|
|
|
void ProcessImpl::requestTerminationImpl(PIDImpl pid)
|
|
{
|
|
throw Poco::NotImplementedException("Process::requestTermination()");
|
|
}
|
|
|
|
|
|
} // namespace Poco
|