mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Mention rb_io_fdopen() takes ownership of the FD
This commit is contained in:
parent
c3ffa7106b
commit
3fa5b4be19
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ VALUE rb_io_puts(int argc, const VALUE *argv, VALUE io);
|
|||
* @param[in] fd Target file descriptor.
|
||||
* @param[in] flags Flags, e.g. `O_CREAT|O_EXCL`
|
||||
* @param[in] path The path of the file that backs `fd`, for diagnostics.
|
||||
* @return An allocated instance of ::rb_cIO.
|
||||
* @return An allocated instance of ::rb_cIO with the autoclose flag set.
|
||||
* @note Leave `path` NULL if you don't know.
|
||||
*/
|
||||
VALUE rb_io_fdopen(int fd, int flags, const char *path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue