Added tmpwork functions

This commit is contained in:
Michiel Broek 2005-12-03 14:06:30 +00:00
parent 97a1a26752
commit 1ffccd820f

View File

@ -70,6 +70,7 @@ int create_tmpwork(void)
if (! is_tmpwork) {
temp = calloc(PATH_MAX, sizeof(char));
getcwd(buf, PATH_MAX);
snprintf(temp, PATH_MAX, "%s/tmp/arc%d", getenv("MBSE_ROOT"), (int)getpid());
if (! mkdirs(temp, 0755))