зеркало из https://github.com/github/ruby.git
* process.c (redirect_open): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f6b1dd28c9
Коммит
3bf92fb10d
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Apr 9 22:19:19 2015 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* process.c (redirect_open): Removed.
|
||||||
|
|
||||||
Thu Apr 9 21:38:20 2015 Tanaka Akira <akr@fsij.org>
|
Thu Apr 9 21:38:20 2015 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* internal.h (rb_execarg_parent_end): Declared.
|
* internal.h (rb_execarg_parent_end): Declared.
|
||||||
|
|
10
process.c
10
process.c
|
@ -2505,20 +2505,10 @@ redirect_close(int fd)
|
||||||
return ret;
|
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
|
#else
|
||||||
#define redirect_dup(oldfd) dup(oldfd)
|
#define redirect_dup(oldfd) dup(oldfd)
|
||||||
#define redirect_dup2(oldfd, newfd) dup2((oldfd), (newfd))
|
#define redirect_dup2(oldfd, newfd) dup2((oldfd), (newfd))
|
||||||
#define redirect_close(fd) close(fd)
|
#define redirect_close(fd) close(fd)
|
||||||
#define redirect_open(pathname, flags, perm) open((pathname), (flags), (perm))
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Загрузка…
Ссылка в новой задаче