aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-23 22:58:05 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-23 22:58:05 +0000
commitcc622e2ac5f72f229daa29fc5e24ae7f92dae150 (patch)
tree2cf35e4e1ef6be1f6326f69529ef9ebd164066b7 /win32
parent62c2b2e80a03c6f4e5a304bcf113e6f3a9d6cbee (diff)
downloadruby-cc622e2ac5f72f229daa29fc5e24ae7f92dae150.tar.gz
* win32/win32.c (dupfd): use _set_osfhnd.
* win32/win32.c (rb_w32_wopen): use _set_osflags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50377 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 21d59d41ba..8a19ca0c27 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4113,7 +4113,7 @@ dupfd(HANDLE hDup, char flags, int minfd)
save_errno = errno;
while (filled > 0) {
int fd = fds[--filled];
- _osfhnd(fd) = (intptr_t)INVALID_HANDLE_VALUE;
+ _set_osfhnd(fd, (intptr_t)INVALID_HANDLE_VALUE);
close(fd);
}
errno = save_errno;
@@ -6100,7 +6100,7 @@ rb_w32_wopen(const WCHAR *file, int oflag, ...)
flags |= FAPPEND;
_set_osfhnd(fd, (intptr_t)h);
- _osfile(fd) = flags | FOPEN;
+ _set_osflags(fd, flags | FOPEN);
MTHREAD_ONLY(LeaveCriticalSection(&_pioinfo(fd)->lock));
quit: