--- ray/src/common/paths.h 1992/09/21 12:02:07 2.3 +++ ray/src/common/paths.h 1996/06/24 10:01:11 2.8 @@ -13,12 +13,13 @@ #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" #endif +extern char *fixargv0(); #else #ifdef AMIGA @@ -32,18 +33,20 @@ #ifndef DEFPATH #define DEFPATH ";/ray/lib" #endif +#define fixargv0(a0) (a0) #else #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" #endif +#define fixargv0(a0) (a0) #endif #endif @@ -56,3 +59,10 @@ #endif extern char *mktemp(), *getenv(); + +#ifdef BSD +extern char *getwd(); +#else +extern char *getcwd(); +#define getwd(p) getcwd(p, sizeof(p)) +#endif