Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Enhanced RDoc for IO (#5395) | Burdette Lamar | 2022-01-05 | 1 | -46/+65 | |
| | | | | | | | | | | Treats: #getc #readchar #getbyte #readbyte #ungetbyte | |||||
* | Enhanced RDoc for IO (#5381) | Burdette Lamar | 2022-01-04 | 1 | -100/+208 | |
| | | | | | | | | | | | | | Treats: #lineno #lineno= #readline #readlines #each_line #each_byte #each_char #each_codepoint | |||||
* | Negative RBOOL usage | Nobuyoshi Nakada | 2022-01-01 | 1 | -1/+1 | |
| | ||||||
* | Fix incorrect minimum read length. (#5353) | Samuel Williams | 2022-01-01 | 1 | -6/+2 | |
| | ||||||
* | Enhanced RDoc for IO (#5367) | Burdette Lamar | 2021-12-30 | 1 | -75/+154 | |
| | | | | | | | | | | | | | | | | | Adds sections to class RDoc: Lines Line Separator Line Limit Line Number Revises example text file t.txt to: Include paragraphs (separated by double line separator). Avoid being too long. Revises examples that use the changed example file. There are several other methods that will point to the added sections. | |||||
* | `ioctl_narg_len` is used only when ioctl(2) is available | Nobuyoshi Nakada | 2021-12-29 | 1 | -0/+2 | |
| | ||||||
* | Prefer to use RTEST when checking result of `rb_io_wait`. (#5341) | Samuel Williams | 2021-12-25 | 1 | -1/+1 | |
| | | | | | * Prefer to use RTEST when checking result of `rb_io_wait`. * Consistently use false for signifying no events ready. | |||||
* | Adjust styles [ci skip] | Nobuyoshi Nakada | 2021-12-24 | 1 | -3/+6 | |
| | ||||||
* | Improvements to `rb_io_wait` return value handling and internal ↵ | Samuel Williams | 2021-12-24 | 1 | -8/+19 | |
| | | | | implementation. (#5340) | |||||
* | [DOC] Enhanced RDoc for IO (#5324) | Burdette Lamar | 2021-12-23 | 1 | -24/+76 | |
| | | | Treats #gets. | |||||
* | [DOC] Enhanced RDoc for IO (#5321) | Burdette Lamar | 2021-12-22 | 1 | -97/+125 | |
| | | | | | | | Treats: #readpartial #read | |||||
* | Empty and return the buffer if zero size is given [Bug #18421] | Nobuyoshi Nakada | 2021-12-22 | 1 | -2/+6 | |
| | | | | In `IO#readpartial` and `IO#read_nonblock`, as well as `IO#read`. | |||||
* | Refactor setup_narg and extract finish_narg | Nobuyoshi Nakada | 2021-12-21 | 1 | -32/+27 | |
| | ||||||
* | [DOC] Enhanced RDoc for IO (#5307) | Burdette Lamar | 2021-12-20 | 1 | -49/+77 | |
| | | | | | | | | | | | | | Treated: #sync #sync= #fsync #fdatasync #fileno #pid #inspect #to_io | |||||
* | [DOC] Enhanced RDoc for IO (#5304) | Burdette Lamar | 2021-12-19 | 1 | -94/+136 | |
| | | | | | | | | | | | | | | Treated: ::try_convert #write #<< #flush #tell #seek #pos= #rewind #eof | |||||
* | [DOC] Addition to IO introduction (#5299) | Burdette Lamar | 2021-12-19 | 1 | -0/+253 | |
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> | |||||
* | Introduce io_result wrapper for passing `[-errno, size]` in VALUE. | Samuel Williams | 2021-12-18 | 1 | -65/+56 | |
| | ||||||
* | Do not use `fcopyfile` if appending to non-empty file [Bug #18388] | Nobuyoshi Nakada | 2021-12-05 | 1 | -0/+7 | |
| | | | | | `fcopyfile` appends `src` to `to` and then truncates `to` to it's original size. | |||||
* | [win32] Transcode input from console [Bug #18353] | Nobuyoshi Nakada | 2021-12-01 | 1 | -0/+12 | |
| | | | | | On Windows, as the input from console is encoded in the active code page, convert the input to the internal encoding. | |||||
* | Don't allow `fd == -1` to propagate to system calls. | Samuel Williams | 2021-11-11 | 1 | -4/+10 | |
| | ||||||
* | size_t is not for file size | Nobuyoshi Nakada | 2021-11-10 | 1 | -2/+4 | |
| | ||||||
* | IO::Buffer for scheduler interface. | Samuel Williams | 2021-11-10 | 1 | -157/+201 | |
| | ||||||
* | [Feature #18290] Remove all usages of rb_gc_force_recycle | Peter Zhu | 2021-11-08 | 1 | -1/+1 | |
| | | | | | This commit removes usages of rb_gc_force_recycle since it is a burden to maintain and makes changes to the GC difficult. | |||||
* | Fix typo | Nobuyoshi Nakada | 2021-10-26 | 1 | -5/+5 | |
| | ||||||
* | process.c: Add Process._fork (#5017) | Yusuke Endoh | 2021-10-25 | 1 | -1/+1 | |
| | | | | | | | | | | * process.c: Add Process._fork This API is supposed for application monitoring libraries to hook fork event. [Feature #17795] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> | |||||
* | EWOULDBLOCK is always defined since 74ba9c248890 | Nobuyoshi Nakada | 2021-10-24 | 1 | -7/+7 | |
| | ||||||
* | Extract io_again_p to check if EAGAIN or EWOULDBLOCK | Nobuyoshi Nakada | 2021-10-24 | 1 | -6/+12 | |
| | ||||||
* | suppress warnings by parenthesizing unclear expressions | Nobuyoshi Nakada | 2021-10-24 | 1 | -4/+4 | |
| | ||||||
* | Reuse ractor stderr | Nobuyoshi Nakada | 2021-10-07 | 1 | -7/+9 | |
| | ||||||
* | Adjust styles [ci skip] | Nobuyoshi Nakada | 2021-10-07 | 1 | -5/+8 | |
| | ||||||
* | Using NIL_P macro instead of `== Qnil` | S.H | 2021-10-03 | 1 | -1/+1 | |
| | ||||||
* | [DOC] Use `unpack1` instead of `unpack(template)[0]` [ci skip] | Kazuhiro NISHIYAMA | 2021-09-23 | 1 | -1/+1 | |
| | ||||||
* | Using RB_BIGNUM_TYPE_P macro | S-H-GAMELINKS | 2021-09-11 | 1 | -1/+1 | |
| | ||||||
* | Fix Marshal.dump(closed_io) to raise TypeError and allow encoding on closed IO | Lars Kanis | 2021-08-22 | 1 | -4/+2 | |
| | | | | | | | Mashalling a closed IO object raised "closed stream (IOError)" before instead of TypeError. This changes IO#(in|ex)ternal_encoding to still return the encoding even if the underlying FD is closed. Fixes bug #18077 | |||||
* | `popen()` is not available on emscripten | Nobuyoshi Nakada | 2021-08-16 | 1 | -1/+5 | |
| | ||||||
* | Fix ARGF.read(length) short read [Bug #18074] | Csaba Henk | 2021-08-10 | 1 | -2/+1 | |
| | ||||||
* | Reduce chance to receive EBADF when closing an IO from another thread. | Samuel Williams | 2021-08-08 | 1 | -19/+27 | |
| | ||||||
* | Using RBOOL macro | S.H | 2021-08-02 | 1 | -12/+7 | |
| | ||||||
* | Define functions using rb_wait_for_single_fd [Bug #18046] | Nobuyoshi Nakada | 2021-08-01 | 1 | -0/+12 | |
| | ||||||
* | io.c: Clarify the behavior of `IO.read` when called as `File.read` | Yusuke Endoh | 2021-07-16 | 1 | -17/+59 | |
| | | | | | Ditto to `IO.binread`, `IO.write`, `IO.binwrite`, `IO.foreach`, and `IO.readlines`. | |||||
* | process.c: Call rb_thread_atfork in rb_fork_ruby | Yusuke Endoh | 2021-07-15 | 1 | -1/+0 | |
| | | | | | | | | All occurrences of rb_fork_ruby are followed by a call rb_thread_fork in the created child process. This is refactoring and a potential preparation for [Feature #17795]. (rb_fork_ruby may be wrapped by Process._fork_.) | |||||
* | [DOC] add notes and examples for pipe [ci skip] | Nobuyoshi Nakada | 2021-06-30 | 1 | -7/+19 | |
| | ||||||
* | Check if closed after each yield [Bug #17661] | Nobuyoshi Nakada | 2021-06-27 | 1 | -1/+3 | |
| | ||||||
* | Introduced RUBY_CRLF_ENVIRONMENT to simplify repeated condition | Nobuyoshi Nakada | 2021-06-24 | 1 | -8/+14 | |
| | ||||||
* | Rework `sysread` to use blocking `read_internal_locktmp`. | Samuel Williams | 2021-06-22 | 1 | -12/+6 | |
| | ||||||
* | Deprecate and rework old (fd) centric functions. | Samuel Williams | 2021-06-22 | 1 | -34/+48 | |
| | ||||||
* | Direct io for accept, send, sendmsg, recvfrom, and related methods. | Samuel Williams | 2021-06-22 | 1 | -0/+36 | |
| | ||||||
* | What's Here for Numeric and Comparable | Burdette Lamar | 2021-06-21 | 1 | -2/+5 | |
| | ||||||
* | Adjust styles [ci skip] | Nobuyoshi Nakada | 2021-06-17 | 1 | -3/+6 | |
| | | | | | | | | | * --braces-after-func-def-line * --dont-cuddle-else * --procnames-start-lines * --space-after-for * --space-after-if * --space-after-while | |||||
* | Removed redundant NUM2IOCTLREQ definition [Bug #17759] | Nobuyoshi Nakada | 2021-06-16 | 1 | -1/+0 | |
| | | | | Fix up c2d9967f78d2e6f93f8d9876c2b3ab25aa6b86e7. |