summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:15:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:15:56 +0000
commit21f81885ab310f564fb60bfe7dcde816eeb11994 (patch)
treed5b3f4dc354405854a354ba1c80a0f333dc906cb /include/ruby/win32.h
parentb3ffb68b5bacd05af67c3b8b51c9209d184e3a60 (diff)
win32.c: rb_w32_dup2
* win32/win32.c (rb_w32_dup2): extract from rb_cloexec_dup2() and redirect_dup2(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 96b2f3f..070bab2 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -346,6 +346,7 @@ extern int rb_w32_access(const char *, int);
extern int rb_w32_uaccess(const char *, int);
extern char rb_w32_fd_is_text(int);
extern int rb_w32_fstati64(int, struct stati64 *);
+extern int rb_w32_dup2(int, int);
#ifdef __BORLANDC__
extern off_t _lseeki64(int, off_t, int);
@@ -734,6 +735,9 @@ extern char *rb_w32_strerror(int);
#undef times
#define times(t) rb_w32_times(t)
+
+#undef dup2
+#define dup2(o, n) rb_w32_dup2(o, n)
#endif
struct tms {