summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-12 05:23:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-12 05:23:22 +0000
commitf150a381db5b51552b714e9a5893654cd056962c (patch)
tree54c9c3ef3676f32b26ddb8a7b56eda1e6fdf4cb5 /include/ruby/win32.h
parent78f7e342d156ee139aec307225e7c37e17cef1ff (diff)
win32.c: more fcntl
* win32/win32.c (fcntl): implement F_GETFD, F_SETFD, and F_DUPFD_CLOEXEC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 0d07745eda..c26aa9d4f9 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -577,15 +577,14 @@ extern char *rb_w32_strerror(int);
#endif
#define F_DUPFD 0
-#if 0
#define F_GETFD 1
#define F_SETFD 2
+#if 0
#define F_GETFL 3
#endif
#define F_SETFL 4
-#if 0
+#define F_DUPFD_CLOEXEC 67
#define FD_CLOEXEC 1 /* F_GETFD, F_SETFD */
-#endif
#define O_NONBLOCK 1
#undef FD_SET