| 12 |
|
|
| 13 |
#include "mix3.h" |
#include "mix3.h" |
| 14 |
|
|
| 15 |
|
#ifdef WIN32 |
| 16 |
|
#include <io.h> |
| 17 |
|
#include <direct.h> |
| 18 |
|
#include <process.h> |
| 19 |
|
#define sleep(s) Sleep(s*1000) |
| 20 |
|
#define S_IWUSR _S_IWRITE |
| 21 |
|
#define S_IRUSR _S_IREAD |
| 22 |
|
#else |
| 23 |
#include <unistd.h> |
#include <unistd.h> |
| 24 |
|
#endif |
| 25 |
#include <fcntl.h> |
#include <fcntl.h> |
| 26 |
#include <time.h> |
#include <time.h> |
| 27 |
#include <string.h> |
#include <string.h> |
| 31 |
#include <stdarg.h> |
#include <stdarg.h> |
| 32 |
#include <assert.h> |
#include <assert.h> |
| 33 |
|
|
| 34 |
|
#if defined(S_IFDIR) && !defined(S_ISDIR) |
| 35 |
|
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
| 36 |
|
#endif |
| 37 |
|
|
| 38 |
static unsigned long namecounter = 0; |
static unsigned long namecounter = 0; |
| 39 |
|
|
| 40 |
int checkDirectory(char *dir, char *append, int create) { |
int checkDirectory(char *dir, char *append, int create) { |