DIR *
win32_opendir(char *filename)
{
+ dTHX;
DIR *p;
long len;
long idx;
}
}
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(path, wbuffer, sizeof(wbuffer), GETINTERPMODE());
res = _wstat(wbuffer, (struct _stat *)buffer);
}
DllExport char *
win32_getenv(const char *name)
{
+ dTHX;
static char *curitem = Nullch; /* XXX threadead */
static WCHAR *wCuritem = (WCHAR*)Nullch; /* XXX threadead */
static DWORD curlen = 0, wCurlen = 0;/* XXX threadead */
WCHAR wBuffer[MAX_PATH];
DWORD needlen;
+
if (USING_WIDE()) {
if (!wCuritem) {
wCurlen = 512;
WCHAR* wCuritem;
WCHAR* wVal;
int length, relval = -1;
- if(name) {
+ if (name) {
if (USING_WIDE()) {
+ dTHX;
length = strlen(name)+1;
New(1309,wCuritem,length,WCHAR);
A2WHELPER(name, wCuritem, length*2, GETINTERPMODE());
int rc;
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(filename, wbuffer, sizeof(wbuffer), GETINTERPMODE());
rc = _wutime(wbuffer, (struct _utimbuf*)times);
}
filename = "NUL";
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(mode, wMode, sizeof(wMode), GETINTERPMODE());
A2WHELPER(filename, wBuffer, sizeof(wBuffer), GETINTERPMODE());
return _wfopen(wBuffer, wMode);
{
WCHAR wMode[MODE_SIZE];
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(mode, wMode, sizeof(wMode), GETINTERPMODE());
return _wfdopen(handle, wMode);
}
path = "NUL";
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(mode, wMode, sizeof(wMode), GETINTERPMODE());
A2WHELPER(path, wBuffer, sizeof(wBuffer), GETINTERPMODE());
return _wfreopen(wBuffer, wMode, stream);
*/
if (IsWinNT()) {
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(oname, wOldName, sizeof(wOldName), GETINTERPMODE());
A2WHELPER(newname, wNewName, sizeof(wNewName), GETINTERPMODE());
bResult = MoveFileExW(wOldName,wNewName,
path = "NUL";
if (USING_WIDE()) {
+ dTHX;
A2WHELPER(path, wBuffer, sizeof(wBuffer), GETINTERPMODE());
return _wopen(wBuffer, flag, pmode);
}