Functions | |
void | create_dir (char *, int) |
FILE * | create_file (char *, int) |
int | def (FILE *, FILE *, int) |
int | inf (FILE *, FILE *) |
int | is_end_of_archive (const char *) |
void | md5_File (std::string, char *) |
int | parseoct (const char *, size_t) |
void | Untar (FILE *, const char *) |
int | Unzip (std::string, std::string) |
int | verify_checksum (const char *) |
void | zerr (int) |
void spu::create_dir | ( | char * | pathname, |
int | mode | ||
) |
Definition at line 204 of file SherpackUtilities.cc.
References eostools::mkdir(), NULL, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by create_file(), and Untar().
FILE * spu::create_file | ( | char * | pathname, |
int | mode | ||
) |
Definition at line 230 of file SherpackUtilities.cc.
References create_dir(), f, NULL, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by Untar().
int spu::def | ( | FILE * | source, |
FILE * | dest, | ||
int | level | ||
) |
Definition at line 13 of file SherpackUtilities.cc.
References assert(), CHUNK, recoMuon::in, GenerateHcalLaserBadRunList::out, runTheMatrix::ret, and fireworks::void.
int spu::inf | ( | FILE * | source, |
FILE * | dest | ||
) |
Definition at line 69 of file SherpackUtilities.cc.
References assert(), CHUNK, recoMuon::in, GenerateHcalLaserBadRunList::out, runTheMatrix::ret, and fireworks::void.
Referenced by Unzip().
int spu::is_end_of_archive | ( | const char * | p | ) |
void spu::md5_File | ( | std::string | filename, |
char * | result | ||
) |
Definition at line 481 of file SherpackUtilities.cc.
References ztee::fd, relval_2017::k, SiPixelLorentzAngle_cfi::read, and tmp.
Referenced by spf::SherpackFetcher::Fetch().
int spu::parseoct | ( | const char * | p, |
size_t | n | ||
) |
Definition at line 178 of file SherpackUtilities.cc.
References i, gen::n, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by Untar(), and verify_checksum().
void spu::Untar | ( | FILE * | a, |
const char * | path | ||
) |
Definition at line 261 of file SherpackUtilities.cc.
References create_dir(), create_file(), f, is_end_of_archive(), relval_2017::k, NULL, parseoct(), and verify_checksum().
Referenced by spf::SherpackFetcher::Fetch().
int spu::Unzip | ( | std::string | infile, |
std::string | outfile | ||
) |
Definition at line 154 of file SherpackUtilities.cc.
References recoMuon::in, inf(), GenerateHcalLaserBadRunList::out, runTheMatrix::ret, SET_BINARY_MODE, and zerr().
Referenced by spf::SherpackFetcher::Fetch().
int spu::verify_checksum | ( | const char * | p | ) |
Definition at line 247 of file SherpackUtilities.cc.
References gen::n, and parseoct().
Referenced by Untar().
void spu::zerr | ( | int | ret | ) |
Definition at line 129 of file SherpackUtilities.cc.
Referenced by MultiFileBlob::expand(), MultiFileBlob::finalized(), FileBlob::getUncompressedBlob(), FileBlob::read(), Unzip(), FileBlob::write(), and MillePedeFileExtractor::writeGzipped().