CMS 3D CMS Logo

RemoteFile.cc File Reference

#include "Utilities/StorageFactory/interface/RemoteFile.h"
#include "Utilities/StorageFactory/src/Throw.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <sys/wait.h>
#include <sys/types.h>
#include <cerrno>
#include <cassert>
#include <spawn.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static std::string join (char **cmd)


Function Documentation

static std::string join ( char **  cmd  )  [static]

Definition at line 12 of file RemoteFile.cc.

References p, HLT_VtxMuL3::result, and size.

Referenced by RemoteFile::get().

00013 {
00014   size_t size = 0;
00015   for (char **p = cmd; p && p[0]; ++p)
00016     size += 1 + strlen(*p);
00017 
00018   std::string result;
00019   result.reserve (size);
00020 
00021   for (char **p = cmd; p && p[0]; ++p)
00022   {
00023     if (p != cmd)
00024       result += ' ';
00025     result += *p;
00026   }
00027 
00028   return result;
00029 }


Generated on Tue Jun 9 17:56:01 2009 for CMSSW by  doxygen 1.5.4