summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-09 13:19:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-09 13:19:47 +0000
commit3bf92fb10d9018937bea7a1ca9a471a9f070ffba (patch)
treebcbb89629ded85c8426ac9b78a22c517de7cf7a4 /process.c
parentf6b1dd28c9b765c361e228276bbd2e4fcd13687b (diff)
* process.c (redirect_open): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/process.c b/process.c
index cfa1415..2bb9577 100644
--- a/process.c
+++ b/process.c
@@ -2505,20 +2505,10 @@ redirect_close(int fd)
return ret;
}
-static int
-redirect_open(const char *pathname, int flags, mode_t perm)
-{
- int ret;
- ret = open(pathname, flags, perm);
- ttyprintf("open(\"%s\", 0x%x, 0%o) => %d\n", pathname, flags, perm, ret);
- return ret;
-}
-
#else
#define redirect_dup(oldfd) dup(oldfd)
#define redirect_dup2(oldfd, newfd) dup2((oldfd), (newfd))
#define redirect_close(fd) close(fd)
-#define redirect_open(pathname, flags, perm) open((pathname), (flags), (perm))
#endif
static int