FAUST compiler  0.9.9.6b8
Functions
files.hh File Reference
#include <string>
Include dependency graph for files.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int cholddir ()
 Switch back to the previously stored current directory. More...
 
int mkchdir (std::string dirname)
 
int makedir (std::string dirname)
 
void getCurrentDir ()
 

Function Documentation

int cholddir ( )

Switch back to the previously stored current directory.

Definition at line 40 of file files.cpp.

References gCurrentDir.

41 {
42  if (chdir(gCurrentDir.c_str()) == 0) {
43  return 0;
44  } else {
45  perror("cholddir");
46  exit(errno);
47  }
48 }
static string gCurrentDir
Room to save current directory name.
Definition: files.cpp:34
void getCurrentDir ( )

Definition at line 87 of file files.cpp.

References FAUST_PATH_MAX, and gCurrentDir.

88 {
89  char buffer[FAUST_PATH_MAX];
90  gCurrentDir = getcwd(buffer, FAUST_PATH_MAX);
91 }
static string gCurrentDir
Room to save current directory name.
Definition: files.cpp:34
#define FAUST_PATH_MAX
int makedir ( std::string  dirname)
int mkchdir ( std::string  dirname)