From 3ae3cd741d4ac85e2cd53c588318afb582412fd9 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 29 Oct 2011 02:33:28 +0000 Subject: * include/ruby/intern.h (rb_cloexec_open): declared. * io.c (fd_set_cloexec): extracted from rb_fd_set_cloexec. (rb_cloexec_open): new function. (sysopen_func): use rb_cloexec_open. (rb_sysopen_internal): use rb_update_max_fd instead of rb_fd_set_cloexec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index cf31b8e3ab..5f8d1ae929 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -502,6 +502,7 @@ void rb_write_error2(const char*, long); void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds); int rb_pipe(int *pipes); int rb_reserved_fd_p(int fd); +int rb_cloexec_open(const char *pathname, int flags, mode_t mode); #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd) void rb_update_max_fd(int fd); void rb_fd_set_cloexec(int fd); -- cgit v1.2.3