aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
Commit message (Collapse)AuthorAgeFilesLines
* Update `Fiber::Scheduler` documentation. (#6562)Samuel Williams2022-10-151-3/+1
|
* Introduce `Fiber::Scheduler#io_select` hook for non-blocking `IO.select`. ↵Samuel Williams2022-10-151-0/+9
| | | | (#6559)
* Copy `IO#timeout` on `IO#dup`. (#6546)Samuel Williams2022-10-151-0/+1
|
* Ignore failure to set nonblock mode. (#6524)Samuel Williams2022-10-111-2/+2
|
* Try `nil` as default for 'default timeout'. (#6509)Samuel Williams2022-10-081-9/+14
|
* Add IO#timeout attribute and use it for blocking IO operations. (#5653)Samuel Williams2022-10-071-71/+265
|
* [DOC] Integrate io_streams.rdoc into io.c (#6491)Burdette Lamar2022-10-061-14/+33
| | | Integrate io_streams.rdoc into io.c
* [DOC] RDoc changes for IO (#6458)Burdette Lamar2022-10-021-363/+66
| | | | | | Moves Expect library doc into io.c. Changes certain links to local sections, now pointing to sections in doc/io_streams.rdoc. Removes local sections now superseded by sections in doc/io_streams.rdoc.
* [ci skip] Fix typos in documentation in io.cPeter Zhu2022-09-161-2/+2
|
* [Win32] Negative length `IO#sysread`Jeremy Bopp2022-09-111-1/+2
| | | | | | Raise `ArgumentError` in `IO#sysread` on Windows when given a negative length. Fixes [Bug #18880]
* [Bug #5317] Use `rb_off_t` instead of `off_t`Nobuyoshi Nakada2022-09-081-82/+74
| | | | Get rid of the conflict with system-provided small `off_t`.
* Raise ArgumentError for IO.foreach with limit of 0Jeremy Evans2022-08-251-0/+2
| | | | | | Makes behavior consistent with IO.readlines. Fixes [Bug #18767]
* [DOC] Mention Windows text mode EOF marker interpretationAlan Wu2022-08-051-2/+4
| | | | | | | | | I don't think this is super well known so it's worth mentioning as it can be a pitfall. See: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [DOC] Clarify that `IO.read` uses text modeAlan Wu2022-08-051-1/+5
| | | | | | See: https://bugs.ruby-lang.org/issues/18882#note-13 [Bug #18882]
* [DOC] Cross references for `ARGF`Nobuyoshi Nakada2022-07-281-61/+61
|
* Fix documentation for ARGF.inplace_mode{,=}Jeremy Evans2022-07-271-7/+8
| | | | | | | The value affects the name of the backup file created, not the name of the file modified (as the file is modified in place). Fixes [Bug #18920]
* Adjust styles [ci skip]Nobuyoshi Nakada2022-07-271-2/+4
|
* [DOC] IO#eofKaíque Kandy Koga2022-07-231-1/+1
| | | | Use IO#eof? instead of I#eof?
* Do not chomp trailing line separator IO#each with nil separator and chompJeremy Evans2022-07-211-1/+0
| | | | | | | nil separator means no sepator, so chomp should not remove a line separator. Partially Fixes [Bug #18770]
* Expand tabs [ci skip]Takashi Kokubun2022-07-211-1813/+1813
| | | | [Misc #18891]
* Revert "Do not chomp trailing line separator IO#each with nil separator and ↵Jeremy Evans2022-07-211-0/+1
| | | | | | | | chomp" This reverts commit 04f86ad0b5d2fe4711ff300d855228a6aed55f33. This is causing CI issues, reverting for now.
* Do not chomp trailing line separator IO#each with nil separator and chompJeremy Evans2022-07-211-1/+0
| | | | | | | nil separator means no sepator, so chomp should not remove a line separator. Partially Fixes [Bug #18770]
* [DOC] Fix documentation for ARGF#readlinesPeter Zhu2022-07-151-4/+4
| | | | [Bug #18909]
* [DOC] Fix typo in documentation for IO#readlinesPeter Zhu2022-07-141-1/+1
|
* [Bug #18892] Reset `ARGF.lineno` after reading shebangNobuyoshi Nakada2022-07-071-0/+6
|
* [Bug #18898] Fallback invalid external encoding to the defaultNobuyoshi Nakada2022-07-061-1/+3
|
* Copy `IO#wait*` methods from `io-wait` gem to `io.c`.Samuel Williams2022-06-251-0/+217
|
* Allow to just warn as bool expected, without an exceptionNobuyoshi Nakada2022-06-201-2/+2
|
* Using is_ascii_string to check encodingS-H-GAMELINKS2022-06-171-1/+1
|
* Handle case where write result is zero.Samuel Williams2022-06-131-0/+6
|
* Stop ignoring 4th positional argument to IO.#{foreach,readlines}Jeremy Evans2022-06-091-2/+2
| | | | Fixes [Bug #18771]
* Make `Kernel#p` completely uninterruptible.Samuel Williams2022-05-281-3/+3
|
* Tidy up usage of write_lock.Samuel Williams2022-05-281-68/+17
|
* Improve handling of zero length writes.Samuel Williams2022-05-281-12/+14
|
* Improve consistency of `io_binwritev_internal` implementaiton.Samuel Williams2022-05-281-5/+3
|
* Improve error handling in `finish_writeconv`.Samuel Williams2022-05-281-11/+12
|
* Better handling of `error`.Samuel Williams2022-05-281-13/+20
|
* Always allocate write_lockmachty2022-05-281-0/+3
|
* Make `io_binwritev` atomic.Samuel Williams2022-05-281-62/+83
|
* Make `io_binwrite` atomic.Samuel Williams2022-05-281-88/+124
|
* Fix out of bounds read.Samuel Williams2022-05-251-2/+1
|
* [DOC] Add a note to clarify binary flags to `IO.new`David Rodríguez2022-05-201-1/+7
| | | | Try to make it more clear that the `File::BINARY` integer flag, and the `b` string suffix are not equivalent.
* Link from printf methods to format spec doc (#5886)Burdette Lamar2022-05-051-6/+12
|
* Fix ARGF#lineno to return Integer as documentedJean Boussier2022-04-251-1/+1
| | | | [Bug #18753]
* [ci skip] Fix docsPeter Zhu2022-04-131-1/+1
|
* Fix some RDoc links (#5778)Burdette Lamar2022-04-081-9/+10
|
* [DOC] Fix linux kernel commit linksS-H-GAMELINKS2022-04-071-4/+4
|
* [DOC] Enhanced RDoc for String (#5751)Burdette Lamar2022-04-021-11/+11
| | | | | | Adds to doc for String.new, also making it compliant with documentation_guide.rdoc. Fixes some broken links in io.c (that I failed to correct yesterday).
* [DOC] Fix broken links to encodings.rdocNobuyoshi Nakada2022-04-021-11/+11
| | | | | Also prefers class name based references than file name based references.
* Prefix ccan headers (#4568)Nobuyoshi Nakada2022-03-301-5/+5
| | | | | | | | | | | | | * Prefixed ccan headers * Remove unprefixed names in ccan/build_assert * Remove unprefixed names in ccan/check_type * Remove unprefixed names in ccan/container_of * Remove unprefixed names in ccan/list Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>