summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 04:16:11 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 04:16:11 +0000
commitb2a1af15474219c75d2447b0213e20f1e60b3dc1 (patch)
tree765fb5f496cfe4ea2cdcdac6992a1f3e94b80c42 /include/ruby
parent92a8bfacd9e22062bf30ca4cb996af8f5e25b7b5 (diff)
* win32/win32.c (setfl): extract from fcntl().
* win32/win32.c (dupfd): new function to support F_DUPFD. base on a patch written by akr. * win32/win32.c (fcntl): use above functions. * include/ruby/win32.h (F_DUPFD): define. [experimental] * include/ruby/win32.h (F_SETFL): change the value to correspond with other platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/win32.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index bba38dcf4a..b0150b6a19 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -569,7 +569,12 @@ extern char *rb_w32_strerror(int);
# define EREMOTE WSAEREMOTE
#endif
-#define F_SETFL 1
+#define F_DUPFD 0
+//#define F_GETFD 1
+//#define F_SETFD 2
+//#define F_GETFL 3
+#define F_SETFL 4
+//#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */
#define O_NONBLOCK 1
#undef FD_SET