aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-28 15:21:04 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-28 15:21:04 +0000
commit9f3170663638393b60e39828b1b39e06201e8a7b (patch)
treeec97af310e18d9dd3b9bcb21697bc445fd714fe4 /win32
parent2fcd15d45d983469a2a67bbdb78da2ff1fc7bce4 (diff)
downloadruby-9f3170663638393b60e39828b1b39e06201e8a7b.tar.gz
* win32/win32.c (set_pioinfo_extra): use MSVCRT's open() and close().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 8827f3b593..7d5fbda63a 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1715,13 +1715,13 @@ set_pioinfo_extra(void)
{
int fd;
- fd = open("NUL", O_RDONLY);
+ fd = _open("NUL", O_RDONLY);
for (pioinfo_extra = 0; pioinfo_extra <= 64; pioinfo_extra += sizeof(void *)) {
if (_osfhnd(fd) == _get_osfhandle(fd)) {
break;
}
}
- close(fd);
+ _close(fd);
if (pioinfo_extra > 64) {
/* not found, maybe something wrong... */