aboutsummaryrefslogtreecommitdiffstats
path: root/ext/io/nonblock/nonblock.c
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/io-nonblock] Don't define nonblock methods if they are defined by core.Samuel Williams2023-10-231-0/+7
| | | | https://github.com/ruby/io-nonblock/commit/5d3991859c
* [ruby/io-nonblock] Use the correct pattern for the fallback of ↵Benoit Daloze2023-05-301-1/+2
| | | | | | | | rb_io_descriptor() * See https://github.com/ruby/io-console/pull/43/commits/d1d9aef45ceb14365fdf0ebee3e5ea06f27da682 https://github.com/ruby/io-nonblock/commit/dadb42422b
* [ruby/io-nonblock] Remove usage of IO internals.Samuel Williams2023-05-281-25/+38
| | | | | | (https://github.com/ruby/io-nonblock/pull/11) https://github.com/ruby/io-nonblock/commit/caa2b94d19
* [ruby/io-nonblock] Revert "Remove usage of IO internals."Samuel Williams2023-05-281-31/+23
| | | | | | This reverts commit https://github.com/ruby/io-nonblock/commit/9772b6dcb63c. https://github.com/ruby/io-nonblock/commit/08cabf78e1
* [ruby/io-nonblock] Remove usage of IO internals.Samuel Williams2023-05-281-23/+31
| | | | https://github.com/ruby/io-nonblock/commit/9772b6dcb6
* Revert "* expand tabs. [ci skip]"Nobuyoshi Nakada2022-07-301-14/+14
| | | | This reverts commit 0d842fecb4f75ab3b1d4097ebdb8e88f51558041.
* * expand tabs. [ci skip]git2022-07-301-14/+14
| | | | | Tabs were expanded because the file did not have any tab indentation in unedited lines. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
* [ruby/io-nonblock] Revert tab expansionNobuyoshi Nakada2022-07-301-14/+14
|
* Expand tabs [ci skip]Takashi Kokubun2022-07-211-14/+14
| | | | [Misc #18891]
* [ruby/io-nonblock] Rename `io_nonblock_mode` and extract `set_fcntl_flags`Nobuyoshi Nakada2022-05-201-9/+14
| | | | https://github.com/ruby/io-nonblock/commit/22f08574df
* io.nonblock returns the block's value [ci skip]Kazuhiro NISHIYAMA2022-04-261-2/+2
|
* add description for IO.nonblock=.Tanaka Akira2022-04-241-0/+40
|
* Improve line covearge of ext/io/nonblock/nonblock.c from 54.5% to 95.5%mame2017-09-041-1/+1
| | | | | | Not so good test, but it would be better than nothing, I guess... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* nonblock.c: just yield if the flag is not changednobu2015-05-181-4/+6
| | | | | | | | | | * ext/io/nonblock/nonblock.c (io_nonblock_set): return whether nonblock flag was changed. * ext/io/nonblock/nonblock.c (rb_io_nonblock_block): nothing to restore but just yield unless nonblock flag is changed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/win32/win32.h (rb_w32_set_nonblock): newusa2014-11-101-1/+4
| | | | | | | | | | | | | | | | | | | | function to support nonblock-mode of pipes. * win32/win32.c (rb_w32_read): nonblock-mode pipe returns ERROR_NO_DATA if there is no data, but also returns it if remote-end is closed. * win32/win32.c (rb_w32_write): if cannot to write any data, it may be blocking. * io.c (rb_io_set_nonblock): use rb_w32_set_nonblock for Windows. * ext/io/nonblock/nonblock.c (rb_io_nonblock_set): use ruby's API when setting nonblock-mode. * test/ruby/test_io.rb: test nonblock pipes on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/nonblock/nonblock.c: [DOC] Document io/nonblock by reprahzzak2013-10-161-0/+23
| | | | | | | | [Fixes GH-418] https://github.com/ruby/ruby/pull/418 based on the original discussion from documenting-ruby/ruby#18 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/nonblock/nonblock.c: use rb_cIO instead of VALUEzzak2013-10-161-5/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/nonblock/nonblock.c (io_nonblock_set): Avoid F_SETFL ifkosaki2011-04-041-2/+8
| | | | | | | | | | | we're not changing the O_NONBLOCK bit. F_SETFL is an expensive operation since it needs to affect all processes with the same file object. The patch is written by Eric Wong. [ruby-core:35556] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/nonblock: moved from ext/io/wait/lib.nobu2009-07-141-0/+108
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e