28 #include <sys/types.h>
61 int status = mkdir(dirname.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
62 if (status == 0 || errno == EEXIST) {
63 if (chdir(dirname.c_str()) == 0) {
78 int status = mkdir(dirname.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
79 if (status == 0 || errno == EEXIST) {
int mkchdir(string dirname)
Create a new directory in the current one to store the diagrams.
int makedir(string dirname)
static string gCurrentDir
Room to save current directory name.
int cholddir()
Switch back to the previously stored current directory.