--- ray/src/common/paths.h 1992/10/09 10:26:17 2.4 +++ ray/src/common/paths.h 1996/06/24 10:01:11 2.8 @@ -13,8 +13,8 @@ #define CASEDIRSEP case '/': case '\\' #define PATHSEP ';' #define MAXPATH 128 -#define TEMPLATE "c:\\tmp\\rtXXXXXX" -#define TEMPLEN 15 +#define TEMPLATE "rtXXXXXX" +#define TEMPLEN 8 #define ULIBVAR "RAYPATH" #ifndef DEFPATH #define DEFPATH ";c:/ray/lib" @@ -40,8 +40,8 @@ extern char *fixargv0(); #define DIRSEP '/' #define PATHSEP ':' #define MAXPATH 256 -#define TEMPLATE "/tmp/rtXXXXXX" -#define TEMPLEN 13 +#define TEMPLATE "/usr/tmp/rtXXXXXX" +#define TEMPLEN 17 #define ULIBVAR "RAYPATH" #ifndef DEFPATH #define DEFPATH ":/usr/local/lib/ray" @@ -59,3 +59,10 @@ extern char *fixargv0(); #endif extern char *mktemp(), *getenv(); + +#ifdef BSD +extern char *getwd(); +#else +extern char *getcwd(); +#define getwd(p) getcwd(p, sizeof(p)) +#endif