diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-25 04:34:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-25 04:34:00 +0000 |
commit | d64d462f7ad6fd1f8f182b8a9ceb2a63e26adf37 (patch) | |
tree | 01b2d6c3d9f2ed3ac42c1ece4871137c5dd04625 /io.c | |
parent | b6c007ac856be8756e2b6fb6f4403232a0e04618 (diff) | |
download | ruby-d64d462f7ad6fd1f8f182b8a9ceb2a63e26adf37.tar.gz |
* 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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |