14 |
|
|
15 |
|
#ifdef _WIN32 |
16 |
|
#include <io.h> |
17 |
< |
#include <direct.h> /* getcwd(), chdir(), etc. */ |
17 |
> |
#include <direct.h> /* getcwd(), chdir(), _mkdir(), etc. */ |
18 |
|
|
19 |
|
#define access _access |
20 |
+ |
#define mkdir(dirname,perms) _mkdir(dirname) |
21 |
|
#define PATH_MAX _MAX_PATH |
22 |
+ |
#define NULL_DEVICE "NUL" |
23 |
|
#define DIRSEP '/' |
24 |
|
#define ISDIRSEP(c) ((c)=='/' || (c)=='\\') |
25 |
|
#define ISABS(s) ((s)!=NULL \ |
41 |
|
/* <io.h> only does half the work for access() */ |
42 |
|
#ifndef F_OK |
43 |
|
#define F_OK 00 |
42 |
– |
#define X_OK 01 |
44 |
|
#define W_OK 02 |
44 |
– |
#define R_OK 04 |
45 |
|
#endif |
46 |
+ |
#ifndef R_OK |
47 |
+ |
#define X_OK 01 |
48 |
+ |
#define R_OK 04 |
49 |
+ |
#endif |
50 |
|
/* to make the permissions user specific we'd need to use CreateFile() */ |
51 |
|
#ifndef S_IRUSR |
52 |
|
#define S_IRUSR _S_IREAD |
75 |
|
|
76 |
|
#ifdef AMIGA |
77 |
|
|
78 |
+ |
#define NULL_DEVICE "NIL:" |
79 |
|
#define DIRSEP '/' |
80 |
|
#define ISABS(s) ((s)!=NULL && (ISDIRSEP(s[0]))) |
81 |
|
#define PATHSEP ';' |
100 |
|
#define PATHSEP ':' |
101 |
|
#define CURDIR '.' |
102 |
|
#define DEFAULT_TEMPDIRS {"/var/tmp", "/usr/tmp", "/tmp", ".", NULL} |
103 |
< |
#define TEMPLATE "/usr/tmp/rtXXXXXX" |
103 |
> |
#define TEMPLATE "/tmp/rtXXXXXX" |
104 |
|
#define TEMPLEN 17 |
105 |
|
#define ULIBVAR "RAYPATH" |
106 |
|
#ifndef DEFPATH |