Namespaces | Functions
OSspecific.H File Reference

Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be replaced or emulated on other systems. More...

Include dependency graph for OSspecific.H:

Go to the source code of this file.

Namespaces

 Foam
 

Functions

pid_t pid ()
 
pid_t ppid ()
 
pid_t pgid ()
 
bool hasEnv (const std::string &envName)
 
string getEnv (const std::string &envName)
 
bool setEnv (const word &name, const std::string &value, const bool overwrite)
 
bool env (const std::string &envName)
 
string hostName (bool full=false)
 
string domainName ()
 
string userName ()
 
bool isAdministrator ()
 
fileName home ()
 
fileName home (const std::string &userName)
 
fileName cwd ()
 
fileName cwd (bool logical)
 
bool chDir (const fileName &dir)
 
bool mkDir (const fileName &pathName, mode_t mode=0777)
 
bool chMod (const fileName &name, const mode_t mode)
 
mode_t mode (const fileName &name, const bool followLink=true)
 
fileName::Type type (const fileName &name, const bool followLink=true)
 
bool exists (const fileName &name, const bool checkGzip=true, const bool followLink=true)
 
bool isDir (const fileName &name, const bool followLink=true)
 
bool isFile (const fileName &name, const bool checkGzip=true, const bool followLink=true)
 
off_t fileSize (const fileName &name, const bool followLink=true)
 
time_t lastModified (const fileName &name, const bool followLink=true)
 
double highResLastModified (const fileName &, const bool followLink=true)
 
fileNameList readDir (const fileName &directory, const fileName::Type type=fileName::FILE, const bool filtergz=true, const bool followLink=true)
 
bool cp (const fileName &src, const fileName &dst, const bool followLink=true)
 
bool ln (const fileName &src, const fileName &dst)
 
bool mv (const fileName &src, const fileName &dst, const bool followLink=false)
 
bool mvBak (const fileName &src, const std::string &ext="bak")
 
bool rm (const fileName &file)
 
bool rmDir (const fileName &directory, const bool silent=false)
 
unsigned int sleep (const unsigned int sec)
 
void fdClose (const int fd)
 
bool ping (const std::string &destName, const label port, const label timeOut)
 
bool ping (const std::string &host, const label timeOut=10)
 
int system (const std::string &command, const bool bg=false)
 
int system (const UList< string > &command, const bool bg=false)
 
int system (const CStringList &command, const bool bg=false)
 
void * dlOpen (const fileName &libName, const bool check=true)
 
void * dlOpen (const fileName &libName, std::string &errorMsg)
 
label dlOpen (std::initializer_list< fileName > libNames, const bool check=true)
 
bool dlClose (void *handle)
 
void * dlSymFind (void *handle, const std::string &symbol, bool required=false)
 
void * dlSym (void *handle, const std::string &symbol)
 
void * dlSymFound (void *handle, const std::string &symbol)
 
fileNameList dlLoaded ()
 

Detailed Description

Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be replaced or emulated on other systems.

Original source file OSspecific.H

InNamespace Foam

Source files

Definition in file OSspecific.H.