}
int
-fstat(int fd, struct stat *sb)
+fstat(intptr_t fd, struct stat *sb)
{
BY_HANDLE_FILE_INFORMATION info;
return -1;
}
- rval = fstat((int)h, sb);
+ rval = fstat((intptr_t)h, sb);
CloseHandle(h);
if (attr & FILE_ATTRIBUTE_DIRECTORY &&
// process terminates we can
// detect eof.
// ugly but convert WIN32 HANDLE to FILE*
- int rfd = _open_osfhandle((long)hChildStdoutRdDup, O_RDONLY | O_BINARY);
+ int rfd = _open_osfhandle((intptr_t)hChildStdoutRdDup, O_RDONLY | O_BINARY);
if (rfd >= 0) {
bpipe->rfd = _fdopen(rfd, "rb");
}
CloseHandle(hChildStdinRd); // close our read side so as not
// to interfre with child's copy
// ugly but convert WIN32 HANDLE to FILE*
- int wfd = _open_osfhandle((long)hChildStdinWrDup, O_WRONLY | O_BINARY);
+ int wfd = _open_osfhandle((intptr_t)hChildStdinWrDup, O_WRONLY | O_BINARY);
if (wfd >= 0) {
bpipe->wfd = _fdopen(wfd, "wb");
}
return result;
}
+#ifndef MINGW64
int
utime(const char *fname, struct utimbuf *times)
{
}
return rval;
}
+#endif
#if 0
int