* io.c (io_cntl): F_DUPFD is platform dependent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-10-25 04:34:00 +00:00
parent b6c007ac85
commit d64d462f7a
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Oct 25 13:33:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_cntl): F_DUPFD is platform dependent.
Sun Oct 25 10:19:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local

2
io.c
View File

@ -7237,9 +7237,11 @@ io_cntl(int fd, unsigned long cmd, long narg, int io_p)
# else
retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg);
# endif
# if defined(F_DUPFD)
if (!io_p && retval != -1 && cmd == F_DUPFD) {
UPDATE_MAXFD(retval);
}
# endif
#else
if (!io_p) {
rb_notimplement();