summaryrefslogtreecommitdiff
path: root/io.c
AgeCommit message (Collapse)Author
2022-05-28Make `io_binwritev` atomic.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/5419
2022-05-28Make `io_binwrite` atomic.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/5419
2022-05-25Fix out of bounds read.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/5940
2022-05-20[DOC] Add a note to clarify binary flags to `IO.new`David Rodríguez
Try to make it more clear that the `File::BINARY` integer flag, and the `b` string suffix are not equivalent. Notes: Merged: https://github.com/ruby/ruby/pull/5923 Merged-By: nobu <nobu@ruby-lang.org>
2022-05-05Link from printf methods to format spec doc (#5886)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-25Fix ARGF#lineno to return Integer as documentedJean Boussier
[Bug #18753] Notes: Merged: https://github.com/ruby/ruby/pull/5841
2022-04-13[ci skip] Fix docsPeter Zhu
2022-04-08Fix some RDoc links (#5778)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-07[DOC] Fix linux kernel commit linksS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5768
2022-04-02[DOC] Enhanced RDoc for String (#5751)Burdette Lamar
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). Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-02[DOC] Fix broken links to encodings.rdocNobuyoshi Nakada
Also prefers class name based references than file name based references.
2022-03-30Prefix ccan headers (#4568)Nobuyoshi Nakada
* 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> Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-03-25[DOC] Fix formatting for What's Here in IO (#5719)Burdette Lamar
* Fix formatting for What's Here in IO * Repair formatting in What's Heres in numeric.c * Fix formatting for What's Here in IO Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-01Close files in examples in io.c (#5615)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-25[DOC] Enhanced RDoc for some encoding methods (#5598)Burdette Lamar
In String, treats: #b #scrub #scrub! #unicode_normalize #unicode_normalize! #encode #encode! Also adds a note to IO.new (suggested by @jeremyevans). Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-18Enhanced RDoc for io.c (#5573)Burdette Lamar
Links to options doc added/improved; in particular, new links to new section "Encoding Options" in encoding.rdoc. Minor inconsistencies ironed out. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-18Enhanced RDoc concerning command injection (#5537)Burdette Lamar
Clarifies security vulnerabilities for commands. Treats: Kernel.system Kernel.` (backtick) IO.popen IO.read IO.write IO.binread IO.binwrite IO.readlines IO.foreach Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-12[DOC] Simplify operator method referencesNobuyoshi Nakada
2022-02-07[DOC] Replace with IO@ModesPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-07[DOC] Remove extra periodPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-07[DOC] Remove extra closing curly bracketPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-07[DOC] Use RDoc link style for links in the same class/modulePeter Zhu
I used this regex: (?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2 Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-07[DOC] Use RDoc link style for links to other classes/modulesPeter Zhu
I used this regex: ([A-Za-z]+)\.html#(?:class|module)-[A-Za-z]+-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2 Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-07[DOC] Fix links in documentation for File and IOPeter Zhu
Fixes some typos and dead links. Notes: Merged: https://github.com/ruby/ruby/pull/5530
2022-02-05{DOC] Enhanced RDoc for io.c (#5529)Burdette Lamar
Changes parameter name from simple opts to open_opts or enc_opts when appropriate; leaves the name unchanged when more than one kind of option is allowed. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-04[DOC] Enhanced RDoc for io.c (#5527)Burdette Lamar
Treats: IO.binread (abbreviated to be like IO.binwrite). IO.write IO.binwrite IO.copystream IO#external_encoding IO#internal_encoding IO#set_encoding Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-04[DOC] Enhanced RDoc for io.c (#5511)Burdette Lamar
Treats: IO.foreach IO.readlines IO.read IO.binread Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-30[DOC] Enhanced RDoc for io.c (#5460)Burdette Lamar
Treats: Kernel#readline Kernel#readlines Kernel#`cmd` IO#advise IO.select IO#ioctl IO#fcntl Kernel#syscall IO.pipe Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-19[wasm] wasm/missing.{c,h}: add missing libc stubs for wasi-libcYuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/5407
2022-01-18[DOC] Enhanced RDoc for io.c (#5451)Burdette Lamar
Treats: IO#reopen IO#printf Kernel#printf IO#print Kernel#print IO#putc IO.new IO#set_encoding_by_bom IO.for_fd Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-17Tweak IO documentation for `IO.write('|cmd')` and so on [ci skip]Masataka Pocke Kuwabara
Notes: Merged: https://github.com/ruby/ruby/pull/5450
2022-01-14Enhanced RDoc for io.c (#5444)Burdette Lamar
Treated: IO#open IO#sysopen #open IO#putc IO#puts #p Kernel#display Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-13File rdoc (#5438)Burdette Lamar
Treats: File introduction File.open File.new Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-12Enhanced RDoc for IO.popen (#5430)Burdette Lamar
* Enhanced RDoc for IO.popen Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-10Enhanced RDoc for IO (#5425)Burdette Lamar
Treats: #pread #pwrite #binmode #binmode? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-10Enhanced RDoc for IO (#5424)Burdette Lamar
Treats: #sysseek #syswrite #sysread Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-10[DOC] Enhanced RDoc for IO (#5422)Burdette Lamar
Revises much of the introductory material. Also treats: #close_on_exec #close #closed? #close_read #close_write Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-09Move IO write buffer allocation into function.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/5418 Merged-By: ioquatix <samuel@codeotaku.com>
2022-01-06Enhanced RDoc for IO (#5402)Burdette Lamar
Treats: #ungetc #isatty #close_on_exec? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-05Enhanced RDoc for IO (#5395)Burdette Lamar
Treats: #getc #readchar #getbyte #readbyte #ungetbyte Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-04Enhanced RDoc for IO (#5381)Burdette Lamar
Treats: #lineno #lineno= #readline #readlines #each_line #each_byte #each_char #each_codepoint Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-01-01Negative RBOOL usageNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5385
2022-01-01Fix incorrect minimum read length. (#5353)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-12-30Enhanced RDoc for IO (#5367)Burdette Lamar
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. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-12-29`ioctl_narg_len` is used only when ioctl(2) is availableNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5368
2021-12-25Prefer to use RTEST when checking result of `rb_io_wait`. (#5341)Samuel Williams
* Prefer to use RTEST when checking result of `rb_io_wait`. * Consistently use false for signifying no events ready. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-12-24Adjust styles [ci skip]Nobuyoshi Nakada
2021-12-24Improvements to `rb_io_wait` return value handling and internal ↵Samuel Williams
implementation. (#5340) Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-12-23[DOC] Enhanced RDoc for IO (#5324)Burdette Lamar
Treats #gets. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-12-22[DOC] Enhanced RDoc for IO (#5321)Burdette Lamar
Treats: #readpartial #read Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>