diff options
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r-- | include/ruby/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index aac7846537..3e035c114d 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -671,6 +671,15 @@ VALUE rb_io_set_write_io(VALUE io, VALUE w); void rb_io_set_nonblock(rb_io_t *fptr); /** + * Returns an integer representing the numeric file descriptor for + * <em>io</em>. + * + * @param[in] io An IO. + * @retval int A file descriptor. + */ +int rb_io_descriptor(VALUE io); + +/** * This function breaks down the option hash that `IO#initialize` takes into * components. This is an implementation detail of rb_io_extract_modeenc() * today. People prefer that API instead. |