Nobuyoshi Nakada
cd94842922
[Bug #18892 ] Reset ARGF.lineno
after reading shebang
2022-07-07 11:33:07 +09:00
Nobuyoshi Nakada
5ef3c7ea2d
[Bug #18898 ] Fallback invalid external encoding to the default
2022-07-06 18:08:31 +09:00
Samuel Williams
d2166c09b0
Copy IO#wait*
methods from io-wait
gem to io.c
.
2022-06-25 21:17:13 +12:00
Nobuyoshi Nakada
a58611dfb1
Allow to just warn as bool expected, without an exception
2022-06-20 19:35:12 +09:00
S-H-GAMELINKS
420f3ced4d
Using is_ascii_string to check encoding
2022-06-17 12:02:50 +09:00
Samuel Williams
425a46131a
Handle case where write result is zero.
2022-06-13 16:12:18 +12:00
Jeremy Evans
27eb36596a
Stop ignoring 4th positional argument to IO.#{foreach,readlines}
...
Fixes [Bug #18771 ]
2022-06-09 08:22:06 -07:00
Samuel Williams
6b0131db6f
Make Kernel#p
completely uninterruptible.
2022-05-28 15:44:18 +12:00
Samuel Williams
753d305503
Tidy up usage of write_lock.
2022-05-28 15:44:18 +12:00
Samuel Williams
1589ac6291
Improve handling of zero length writes.
2022-05-28 15:44:18 +12:00
Samuel Williams
4efccd28e4
Improve consistency of io_binwritev_internal
implementaiton.
2022-05-28 15:44:18 +12:00
Samuel Williams
ac499bb511
Improve error handling in finish_writeconv
.
2022-05-28 15:44:18 +12:00
Samuel Williams
c6cd9e180e
Better handling of error
.
2022-05-28 15:44:18 +12:00
machty
585e97142d
Always allocate write_lock
2022-05-28 15:44:18 +12:00
Samuel Williams
15ebfe2849
Make io_binwritev
atomic.
2022-05-28 15:44:18 +12:00
Samuel Williams
ce23cfa518
Make io_binwrite
atomic.
2022-05-28 15:44:18 +12:00
Samuel Williams
952ff7fbb3
Fix out of bounds read.
2022-05-25 21:50:53 +12:00
David Rodríguez
ec7b42eb77
[DOC] Add a note to clarify binary flags to IO.new
...
Try to make it more clear that the `File::BINARY` integer flag, and the
`b` string suffix are not equivalent.
2022-05-20 17:23:45 +09:00
Burdette Lamar
ac75c710cc
Link from printf methods to format spec doc ( #5886 )
2022-05-05 09:01:12 -05:00
Jean Boussier
4fcc7e2d7c
Fix ARGF#lineno to return Integer as documented
...
[Bug #18753 ]
2022-04-25 12:39:14 +02:00
Peter Zhu
54b53e2c8f
[ci skip] Fix docs
2022-04-13 10:43:23 -04:00
Burdette Lamar
70415071e8
Fix some RDoc links ( #5778 )
2022-04-08 14:25:38 -05:00
S-H-GAMELINKS
3607657e1c
[DOC] Fix linux kernel commit links
2022-04-07 09:46:05 +09:00
Burdette Lamar
7be4d900f0
[DOC] Enhanced RDoc for String ( #5751 )
...
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).
2022-04-02 14:26:49 -05:00
Nobuyoshi Nakada
729b9a8543
[DOC] Fix broken links to encodings.rdoc
...
Also prefers class name based references than file name based
references.
2022-04-02 15:06:12 +09:00
Nobuyoshi Nakada
42a0bed351
Prefix ccan headers ( #4568 )
...
* 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>
2022-03-30 20:36:31 +13:00
Burdette Lamar
7f93b7dc88
[DOC] Fix formatting for What's Here in IO ( #5719 )
...
* 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
2022-03-25 15:43:46 -05:00
Burdette Lamar
4bdb4a1873
Close files in examples in io.c ( #5615 )
2022-03-01 12:07:54 -06:00
Burdette Lamar
26ffda2fd2
[DOC] Enhanced RDoc for some encoding methods ( #5598 )
...
In String, treats:
#b
#scrub
#scrub!
#unicode_normalize
#unicode_normalize!
#encode
#encode!
Also adds a note to IO.new (suggested by @jeremyevans).
2022-02-25 13:12:59 -06:00
Burdette Lamar
bec3a1f15a
Enhanced RDoc for io.c ( #5573 )
...
Links to options doc added/improved; in particular, new links to new section "Encoding Options" in encoding.rdoc. Minor inconsistencies ironed out.
2022-02-18 16:17:51 -06:00
Burdette Lamar
e9a2b30744
Enhanced RDoc concerning command injection ( #5537 )
...
Clarifies security vulnerabilities for commands.
Treats:
Kernel.system
Kernel.` (backtick)
IO.popen
IO.read
IO.write
IO.binread
IO.binwrite
IO.readlines
IO.foreach
2022-02-18 06:46:04 -06:00
Nobuyoshi Nakada
50c972a1ae
[DOC] Simplify operator method references
2022-02-12 12:38:36 +09:00
Peter Zhu
f53f49197f
[DOC] Replace with IO@Modes
2022-02-07 09:52:06 -05:00
Peter Zhu
9b3115ff64
[DOC] Remove extra period
2022-02-07 09:52:06 -05:00
Peter Zhu
a12e2f9aa5
[DOC] Remove extra closing curly bracket
2022-02-07 09:52:06 -05:00
Peter Zhu
a32e5e1b97
[DOC] Use RDoc link style for links in the same class/module
...
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
2022-02-07 09:52:06 -05:00
Peter Zhu
f9a2802bc5
[DOC] Use RDoc link style for links to other classes/modules
...
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
2022-02-07 09:52:06 -05:00
Peter Zhu
ecd469fad0
[DOC] Fix links in documentation for File and IO
...
Fixes some typos and dead links.
2022-02-07 09:52:06 -05:00
Burdette Lamar
3e6c6c74dd
{DOC] Enhanced RDoc for io.c ( #5529 )
...
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.
2022-02-05 14:05:27 -06:00
Burdette Lamar
06a28ec4d4
[DOC] Enhanced RDoc for io.c ( #5527 )
...
Treats:
IO.binread (abbreviated to be like IO.binwrite).
IO.write
IO.binwrite
IO.copystream
IO#external_encoding
IO#internal_encoding
IO#set_encoding
2022-02-04 16:26:49 -06:00
Burdette Lamar
46f6575157
[DOC] Enhanced RDoc for io.c ( #5511 )
...
Treats:
IO.foreach
IO.readlines
IO.read
IO.binread
2022-02-04 06:55:10 -06:00
Burdette Lamar
99a65e80d5
[DOC] Enhanced RDoc for io.c ( #5460 )
...
Treats:
Kernel#readline
Kernel#readlines
Kernel#`cmd`
IO#advise
IO.select
IO#ioctl
IO#fcntl
Kernel#syscall
IO.pipe
2022-01-30 16:17:53 -06:00
Yuta Saito
7ee786388a
[wasm] wasm/missing.{c,h}: add missing libc stubs for wasi-libc
2022-01-19 11:19:06 +09:00
Burdette Lamar
ab85c5e979
[DOC] Enhanced RDoc for io.c ( #5451 )
...
Treats:
IO#reopen
IO#printf
Kernel#printf
IO#print
Kernel#print
IO#putc
IO.new
IO#set_encoding_by_bom
IO.for_fd
2022-01-18 06:25:26 -06:00
Masataka Pocke Kuwabara
28fad7764e
Tweak IO documentation for IO.write('|cmd')
and so on [ci skip]
2022-01-17 00:26:08 +09:00
Burdette Lamar
e40f79daa3
Enhanced RDoc for io.c ( #5444 )
...
Treated:
IO#open
IO#sysopen
#open
IO#putc
IO#puts
#p
Kernel#display
2022-01-14 18:33:06 -06:00
Burdette Lamar
6dc4c942a3
File rdoc ( #5438 )
...
Treats:
File introduction
File.open
File.new
2022-01-13 18:00:24 -06:00
Burdette Lamar
faf79d3a25
Enhanced RDoc for IO.popen ( #5430 )
...
* Enhanced RDoc for IO.popen
2022-01-12 17:08:30 -06:00
Burdette Lamar
d920535d1b
Enhanced RDoc for IO ( #5425 )
...
Treats:
#pread
#pwrite
#binmode
#binmode?
2022-01-10 17:02:48 -06:00
Burdette Lamar
6931d70e6e
Enhanced RDoc for IO ( #5424 )
...
Treats:
#sysseek
#syswrite
#sysread
2022-01-10 15:14:36 -06:00