diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-12 05:23:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-12 05:23:22 +0000 |
commit | 69bc2a06e522e7c9527c221d451eaf21a594870e (patch) | |
tree | 54c9c3ef3676f32b26ddb8a7b56eda1e6fdf4cb5 /include/ruby/win32.h | |
parent | d85fbda67c3452430c15c12f8b69a27537ac438a (diff) | |
download | ruby-69bc2a06e522e7c9527c221d451eaf21a594870e.tar.gz |
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.h | 5 |
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 |