22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include "file.h"
/*
** On Windows, include the Platform SDK header file.
*/
#ifdef _WIN32
# include <direct.h>
# include <windows.h>
|
>
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include "file.h"
extern char **environ;
/*
** On Windows, include the Platform SDK header file.
*/
#ifdef _WIN32
# include <direct.h>
# include <windows.h>
|
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
|
rc = 2;
}
}else{
rc = 1;
}
return rc;
#else
return clearenv();
#endif
}
/*
** Like fopen() but always takes a UTF8 argument.
**
** This function assumes ExtFILE. In other words, symbolic links
|
>
>
>
>
|
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
|
rc = 2;
}
}else{
rc = 1;
}
return rc;
#else
#ifdef HAVE_CLEARENV
return clearenv();
#else
environ = NULL;
#endif
#endif
}
/*
** Like fopen() but always takes a UTF8 argument.
**
** This function assumes ExtFILE. In other words, symbolic links
|