Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PrimRunTool.C File Reference

#include <iomanip>
#include <sstream>
#include <Basics.H>
#include <OS.H>
#include <RegExp.H>
#include <VestaConfig.H>
#include <chars_seq.H>
#include <UniqueId.H>
#include <RunToolClient.H>
#include <SourceOrDerived.H>
#include <VDirSurrogate.H>
#include "PrimRunTool.H"
#include "Expr.H"
#include "ToolDirectoryServer.H"
#include "Err.H"
#include "ListT.H"
#include "Signal.H"
#include "RunToolHost.H"
#include "ThreadData.H"
#include "EvalBasics.H"

Go to the source code of this file.

Functions

void core_match_init ()
Text ToolCommandLineAsText (const RunToolArgs &args)
chars_seqConvertVals (ListVC *list)
chars_seqConvertEnvVars (BindingVC *b)
bool ProcessDirectory (void *cl, VestaSource::typeTag type, Arc arc, unsigned int index, Bit32 pseudoInode, ShortId filesid, bool master)
bool AddToNewStuff (OurClosure *cl, bool look_for_cores, Text label)
Text volatileDirName (const LongId &fsroot)
Val RunTool (const RunToolArgs &args, VestaSource *&rootForTool)
void DeleteRootForTool (VestaSource *rootForTool)
void CreateRootForDeriveds ()
void DeleteRootForDeriveds ()
ShortId CreateDerived ()
void PrimRunToolInit ()

Variables

static Text sigName ("signal")
static Text stowName ("stdout_written")
static Text stewName ("stderr_written")
static Text stdoName ("stdout")
static Text stdeName ("stderr")
static Text rootName ("root")
static Text coreName ("dumped_core")


Function Documentation

bool AddToNewStuff OurClosure cl,
bool  look_for_cores,
Text  label
 

Definition at line 235 of file PrimRunTool.C.

References BindingVC::AddBindingAssoc(), nodeinfo::arc, Text::chars(), VestaSource::deleted, OurClosure::dir, OurClosure::dir_path, Error(), OurClosure::found_core, VestaSource::fptag, VestaSource::immutableDirectory, VestaSource::immutableFile, IntToText(), VestaSource::list(), Basics::mutex::lock(), VestaSource::lookup(), SRPC::failure::msg, VestaSource::mutableFile, NEW, NEW_CONSTR, OurClosure::newstuff, OurClosure::nodeList, VRErrorCode::notFound, ListT< Value >::Null(), VRErrorCode::ok, outputMu, ListT< Value >::Pop(), ProcessDirectory(), SRPC::failure::r, VestaSource::shortId(), SourceOrDerived::shortIdToName(), VestaSource::type, nodeinfo::type, Basics::mutex::unlock(), valFalse, VestaSource::volatileDirectory, and VestaSource::volatileROEDirectory.

Referenced by RunTool().

chars_seq* ConvertEnvVars BindingVC b  ) 
 

Definition at line 183 of file PrimRunTool.C.

References chars_seq::append(), AssocVC::name, NEW_CONSTR, ListT< Value >::Null(), ListT< Value >::Pop(), and AssocVC::val.

Referenced by RunTool().

chars_seq* ConvertVals ListVC list  ) 
 

Definition at line 172 of file PrimRunTool.C.

References chars_seq::append(), ListVC::elems, NEW_CONSTR, ListT< Value >::Null(), and ListT< Value >::Pop().

Referenced by RunTool().

void core_match_init  ) 
 

Definition at line 98 of file PrimRunTool.C.

References VestaConfig::get_Text(), VestaConfig::is_set(), Basics::mutex::lock(), NEW_CONSTR, outputMu, and Basics::mutex::unlock().

ShortId CreateDerived  ) 
 

Definition at line 753 of file PrimRunTool.C.

References Error(), VestaSource::insertMutableFile(), Basics::mutex::lock(), NullShortId, VRErrorCode::ok, outputMu, VestaSource::replaceDiff, rootForDeriveds, VestaSource::shortId(), and Basics::mutex::unlock().

Referenced by RunTool(), TextVC::Sid(), and TextVC::TextC::TextC().

void CreateRootForDeriveds  ) 
 

Definition at line 735 of file PrimRunTool.C.

References Text::chars(), create_tool_directory_server(), VDirSurrogate::createVolatileDirectory(), GetNewHandle(), VRErrorCode::ok, rootForDeriveds, SRPC::this_host(), and toolDirServerIntfName.

Referenced by main().

void DeleteRootForDeriveds  ) 
 

Definition at line 746 of file PrimRunTool.C.

References VDirSurrogate::deleteVolatileDirectory(), VRErrorCode::ok, and rootForDeriveds.

Referenced by main().

void DeleteRootForTool VestaSource rootForTool  ) 
 

Definition at line 729 of file PrimRunTool.C.

References VDirSurrogate::deleteVolatileDirectory(), and VRErrorCode::ok.

Referenced by RunToolFromCache().

void PrimRunToolInit  ) 
 

Definition at line 779 of file PrimRunTool.C.

References DepPath::Extend(), and RunToolHostInit().

Referenced by StartEval().

bool ProcessDirectory void *  cl,
VestaSource::typeTag  type,
Arc  arc,
unsigned int  index,
Bit32  pseudoInode,
ShortId  filesid,
bool  master
 

Definition at line 198 of file PrimRunTool.C.

References nodeinfo::arc, nodeinfo::index, NEW, and nodeinfo::type.

Referenced by AddToNewStuff(), and RunTool().

Val RunTool const RunToolArgs args,
VestaSource *&  rootForTool
 

Definition at line 338 of file PrimRunTool.C.

References DepPathTbl::DPS::Add(), AddToNewStuff(), DirInfo::b, BooleanVC::b, ValC::cacheit, Text::chars(), DirInfo::child_lookup, FS::Close(), DirInfo::coarseDep, RunToolArgs::command_line, ConvertEnvVars(), ConvertVals(), coreName, create_tool_directory_server(), CreateDerived(), VDirSurrogate::createVolatileDirectory(), RunToolCalls::Delete(), DirInfos::dep, OurClosure::dir, OurClosure::dir_path, DirInfos::dirInfoTbl, RunTool::do_it(), RunToolArgs::dot, ValC::dps, RunTool::Tool_result::dumped_core, Error(), VestaSource::errorCodeString(), RunToolArgs::existing_writable, FdCache::flush(), OurClosure::found_core, RunToolArgs::fp_content, VestaConfig::get_Text(), GetNewHandle(), getSigMsg(), IntToText(), DirInfo::isRoot, TextVC::Length(), LongId::length(), chars_seq::length(), VestaSource::list(), RunToolArgs::loc, Basics::mutex::lock(), VestaSource::longid, BindingVC::Lookup(), BindingVC::LookupNoDpnd(), VestaSource::makeFilesImmutable(), SourceOrDerived::Fatal::msg, SRPC::failure::msg, NEW, NEW_CONSTR, OurClosure::newstuff, Table< K, V >::Iterator::Next(), OurClosure::nodeList, NullShortId, IntegerVC::num, VRErrorCode::ok, ok(), SourceOrDerived::open(), outputMu, DirInfo::path, pauseAfterTool, pauseAfterToolError, pauseAfterToolSignal, pauseBeforeTool, RunToolArgs::platform, ProcessDirectory(), ListT< Value >::Push(), Table< K, V >::Default::Put(), RunToolCalls::Put(), SRPC::failure::r, rootName, runToolCalls, RunToolDone(), RunToolHost(), SourceOrDerived::shortIdToName(), TextVC::Sid(), RunToolArgs::signal_treatment, sigName, RunTool::Tool_result::sigval, RunTool::Tool_result::status, RunToolArgs::status_treatment, stdeName, RunToolArgs::stderr_treatment, RunTool::Tool_result::stderr_written, RunToolArgs::stdin_data, stdoName, RunToolArgs::stdout_treatment, RunTool::Tool_result::stdout_written, stewName, stopOnError, stowName, SRPC::this_host(), ThreadLabel(), toolDirServerIntfName, TypePK, Basics::mutex::unlock(), valTBinding, LongId::value, volatileDirName(), and RunToolArgs::wd_name.

Referenced by RunToolFromCache(), and RunToolServer().

Text ToolCommandLineAsText const RunToolArgs args  ) 
 

Definition at line 157 of file PrimRunTool.C.

References Text::Empty(), ListT< Value >::Null(), and ListT< Value >::Pop().

Referenced by RunToolFromCache().

Text volatileDirName const LongId fsroot  ) 
 

Definition at line 328 of file PrimRunTool.C.

References VestaConfig::get_Text(), and LongId::getParent().

Referenced by RunTool().


Variable Documentation

Text coreName("dumped_core")
 

Referenced by RunTool().

Text rootName("root")
 

Referenced by RunTool(), and ReposRoots::Scan().

Text sigName("signal")
 

Referenced by RunTool().

Text stdeName("stderr")
 

Referenced by RunTool().

Text stdoName("stdout")
 

Referenced by RunTool().

Text stewName("stderr_written")
 

Referenced by RunTool().

Text stowName("stdout_written")
 

Referenced by RunTool().


Generated on Mon May 8 00:49:02 2006 for Vesta by  doxygen 1.4.2