HPCToolkit
FileUtil.cpp File Reference
#include <sys/param.h>
#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <cstdarg>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <string>
#include "FileUtil.hpp"
#include "diagnostics.h"
#include "StrUtil.hpp"
#include "Trace.hpp"
#include <lib/support-lean/OSUtil.h>
Include dependency graph for FileUtil.cpp:

Go to the source code of this file.

Namespaces

 FileUtil
 

Functions

string FileUtil::basename (const char *fName)
 
string FileUtil::rmSuffix (const char *fName)
 
string FileUtil::dirname (const char *fName)
 
bool FileUtil::fnmatch (const std::vector< std::string > &patternVec, const char *string, int flags)
 
bool FileUtil::isReadable (const char *path)
 
bool FileUtil::isDir (const char *path)
 
int FileUtil::countChar (const char *path, char c)
 
static void cpy (int srcFd, int dstFd)
 
void FileUtil::copy (const char *dst,...)
 
void FileUtil::move (const char *dst, const char *src)
 
int FileUtil::remove (const char *file)
 
int FileUtil::mkdir (const char *dir)
 
std::pair< string, bool > FileUtil::mkdirUnique (const char *dirnm)
 
const char * FileUtil::tmpname ()
 

Function Documentation

◆ cpy()

static void cpy ( int  srcFd,
int  dstFd 
)
static

Definition at line 219 of file FileUtil.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: