[前][次][番号順一覧][スレッド一覧]

ruby-changes:38296

From: naruse <ko1@a...>
Date: Fri, 24 Apr 2015 07:58:22 +0900 (JST)
Subject: [ruby-changes:38296] naruse:r50377 (trunk): * win32/win32.c (dupfd): use _set_osfhnd.

naruse	2015-04-24 07:58:05 +0900 (Fri, 24 Apr 2015)

  New Revision: 50377

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50377

  Log:
    * win32/win32.c (dupfd): use _set_osfhnd.
    
    * win32/win32.c (rb_w32_wopen): use _set_osflags.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50376)
+++ ChangeLog	(revision 50377)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Apr 24 06:37:07 2015  NARUSE, Yui  <naruse@r...>
+
+	* win32/win32.c (dupfd): use _set_osfhnd.
+
+	* win32/win32.c (rb_w32_wopen): use _set_osflags.
+
 Thu Apr 24 05:38:01 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c (gc_mark_roots): fox to work PRINT_ROOT_TICKS.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 50376)
+++ win32/win32.c	(revision 50377)
@@ -4113,7 +4113,7 @@ dupfd(HANDLE hDup, char flags, int minfd https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4113
     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 ofla https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L6100
 	    flags |= FAPPEND;
 
 	_set_osfhnd(fd, (intptr_t)h);
-	_osfile(fd) = flags | FOPEN;
+	_set_osflags(fd, flags | FOPEN);
 
 	MTHREAD_ONLY(LeaveCriticalSection(&_pioinfo(fd)->lock));
       quit:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]