Tomoyuki Sahara
|
78fe65aec4
|
Merge branch 'master' of github.com:iij/mruby-io
|
2015-10-20 15:13:28 +09:00 |
|
MATSUMOTO, Ryosuke
|
238704592a
|
Fix buffer overflow of pos when file-size is too big
|
2015-10-19 19:24:39 +09:00 |
|
Tomoyuki Sahara
|
5fa3c39145
|
variables are not used on the platforms lack FD_CLOEXEC.
|
2015-08-27 09:56:17 +09:00 |
|
Tomoyuki Sahara
|
6c4d39412f
|
Merge pull request #30 from ksss/cloexec
Opened fd should be set FD_CLOEXEC by default
|
2015-08-26 17:37:21 +09:00 |
|
Blaž Hrastnik
|
8da787be72
|
Remove mrb_io_s_select typo.
Uncovered with a Coverity scan of our project using mruby-io. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844382&defectInstanceId=2515905&mergedDefectId=121921
|
2015-07-02 21:02:56 +02:00 |
|
Jared Breeden
|
c0738a74c6
|
Excluding wait call for windows
|
2015-04-05 17:21:02 -04:00 |
|
Tomoyuki Sahara
|
e92fd76248
|
wait for child processes when we close pipes. fixes #37.
|
2015-04-03 10:05:09 +09:00 |
|
Tomoyuki Sahara
|
3a97a453c4
|
rewrite IO.for_fd.
IO.for_fd should call IO#initialize to initialize the created object
properly. It cannot be implemented in Ruby.
|
2014-12-26 11:09:07 +09:00 |
|
Tomoyuki Sahara
|
c455544ee2
|
better error message.
|
2014-12-26 11:08:18 +09:00 |
|
TOMITA Masahiro
|
be9e203563
|
FIX: IO#sysread occurs SEGV
|
2014-12-15 20:24:01 +09:00 |
|
ksss
|
e61c469724
|
IO.popen fd set close_on_exec flag by default
|
2014-12-04 10:25:03 +09:00 |
|
ksss
|
9439b981d8
|
Opened fd should be set FD_CLOEXEC by default
|
2014-12-04 10:25:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b50093ad28
|
garbage collect when open(2) fails with ENFILE or EMFILE
|
2014-11-13 01:50:46 +09:00 |
|
jbreeden
|
9a2cbc4122
|
Correcting E_NOTIMP_ERROR reference
|
2014-08-03 16:45:46 -04:00 |
|
Tomoyuki Sahara
|
e60951a305
|
add IO#sync and IO#sync=
|
2014-07-29 10:55:02 +09:00 |
|
take_cheeze
|
689541d0fb
|
Fix type of argument passed to mrb_get_args.
|
2014-07-19 21:37:13 +09:00 |
|
Tomoyuki Sahara
|
fa39825b1b
|
refactor.
|
2014-07-09 10:01:33 +09:00 |
|
dreamedge
|
7e689e8680
|
Add IO#close_on_exec=
and a test on test/io.rb
|
2014-07-08 15:56:56 +09:00 |
|
dreamedge
|
59b7c4eaf0
|
add IO.close_on_exec?
|
2014-07-07 12:47:53 +09:00 |
|
Tomoyuki Sahara
|
d894de86f4
|
fd2 is valid if fd2 >= 0. fixes #18.
|
2014-06-10 10:22:50 +09:00 |
|
Tomoyuki Sahara
|
5aeb99ad49
|
fix mrb_raisef usage.
|
2014-04-21 11:14:40 +09:00 |
|
Tomoyuki Sahara
|
9c00de59ce
|
IO.for_fd can be written in Ruby.
|
2014-04-21 10:24:59 +09:00 |
|
Tomoyuki Sahara
|
99c67749ff
|
remove return statements after mrb_raise().
|
2014-04-21 09:06:46 +09:00 |
|
Tomoyuki Sahara
|
7d7a549a4f
|
remove io_open().
|
2014-04-18 11:32:38 +09:00 |
|
Tomoyuki Sahara
|
36045ea96f
|
IO#syswrite should raise an error if it's not opened for writing.
|
2014-04-18 11:20:55 +09:00 |
|
Tomoyuki Sahara
|
1c4f46f324
|
remove standard header files from io.h.
|
2014-04-17 16:29:27 +09:00 |
|
Tomoyuki Sahara
|
719452b8d2
|
remove unsed.
|
2014-03-14 10:47:54 +09:00 |
|
Paolo Bosetti
|
d9f3fd868a
|
Merge branch 'master' of https://github.com/iij/mruby-io into test
Conflicts:
src/io.c
|
2014-03-03 13:15:57 +01:00 |
|
Tomoyuki Sahara
|
f7c054bd39
|
quiet compiler.
|
2014-02-25 12:28:34 +09:00 |
|
Tomoyuki Sahara
|
e8706d4ee7
|
remove unused.
|
2014-02-25 12:23:15 +09:00 |
|
Tomoyuki Sahara
|
b9dff44582
|
Merge branch 'master' of github.com:iij/mruby-io
|
2014-02-25 12:20:52 +09:00 |
|
Tomoyuki Sahara
|
56a8c592dd
|
add IO.read
|
2014-02-25 12:19:52 +09:00 |
|
Akira Yumiyama
|
d28f042118
|
compatibility support (mruby/mruby, iij/mruby and 1.0.0)
- refs https://github.com/mruby/mruby/commit/36e234aa377d50d8ee425c7868e0651cf78e85cf
|
2014-02-22 20:45:07 +09:00 |
|
Tomoyuki Sahara
|
7fd585bae1
|
support older version.
|
2014-02-14 10:36:37 +09:00 |
|
Tomoyuki Sahara
|
40c52f58d0
|
Merge pull request #9 from matsumoto-r/support_mrb_get_module
Support mrb_module_get
|
2014-02-12 10:57:58 +09:00 |
|
Paolo Bosetti
|
ee2859de6e
|
Updated mrb_include_module call after mruby 1.0.0
|
2014-02-11 14:54:30 +01:00 |
|
Tomoyuki Sahara
|
b74458a486
|
remove _bless trick. closes #8.
|
2014-02-10 09:49:37 +09:00 |
|
MATSUMOTO Ryosuke
|
526608c8a2
|
Support mrb_module_ge
|
2014-02-08 17:38:41 +09:00 |
|
Paolo Bosetti
|
23afaf02dc
|
Made compatible with VisualStudio
|
2013-12-10 14:34:26 +01:00 |
|
Paolo Bosetti
|
5a59fd3a5c
|
Fix for compilation under Win/MinGW
|
2013-12-02 12:14:04 +01:00 |
|
Tomoyuki Sahara
|
1e8097a4b8
|
IO.sysopen raises an exception when open(2) fails. closes #6.
|
2013-11-16 05:14:07 +09:00 |
|
Paolo Bosetti
|
c608c26ab4
|
Merge branch 'master' of https://github.com/iij/mruby-io
|
2013-10-02 13:05:12 +02:00 |
|
Paolo Bosetti
|
49494a7367
|
Truncate file on File.open(file, "w")
|
2013-10-02 13:01:56 +02:00 |
|
Tomoyuki Sahara
|
8b48e2b4a4
|
syswrite must write to fd2 if it is properly set.
closes #3.
|
2013-09-30 11:56:15 +09:00 |
|
Tomoyuki Sahara
|
97899a6922
|
style
|
2013-09-30 11:18:22 +09:00 |
|
Tomoyuki Sahara
|
adb3bd6698
|
don't retry when we cannot fork(2).
EAGAIN indicates the system is under heavy load.
Retrying make things worse.
|
2013-09-30 10:55:09 +09:00 |
|
Tomoyuki Sahara
|
d75d23294d
|
fix descriptor leakage.
|
2013-09-30 10:36:29 +09:00 |
|
Tomoyuki Sahara
|
140da1c6ca
|
remove duplicated white spaces.
|
2013-09-26 18:31:02 +09:00 |
|
Paolo Bosetti
|
c4e3c46e86
|
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
|
2013-09-25 13:26:49 +02:00 |
|
Takashi Sogabe
|
4f3a749da1
|
Fix incorrect condition for pendig-IO
|
2013-06-26 15:24:23 +09:00 |
|