From f150a381db5b51552b714e9a5893654cd056962c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 12 Sep 2015 05:23:22 +0000 Subject: 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 --- include/ruby/win32.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit v1.2.3