sdottaka
|
24007b80b4
|
Fix broken build for Visual C++
|
2014-11-22 17:48:59 +09:00 |
|
ksss
|
a44ada616e
|
Implement FileTest.size
- File.size delegate to FileTest.size
- File.size more faster by reading i-node value
|
2014-11-16 14:55:45 +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 |
|
Tomoyuki Sahara
|
1768ee02e5
|
remove extra ';'.
|
2014-07-22 23:55:25 +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 |
|
windwiny
|
dc61ef1c65
|
compatible 32 bit windows
|
2014-05-07 20:33:12 +08:00 |
|
Julien Ammous
|
9a1b25bdd8
|
raise an error for flock on solaris
|
2014-04-28 15:40:04 +02: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
|
a11780f4f1
|
file.c depends on mruby/ext/io.h now.
|
2014-04-17 16:18:26 +09:00 |
|
Tomoyuki Sahara
|
a3e1e535dc
|
function declarations should be in a header file.
|
2014-04-17 16:13:18 +09:00 |
|
Tomoyuki Sahara
|
10be4cbb2c
|
file.c does not depend on mruby/ext/io.h.
|
2014-04-17 15:56:11 +09:00 |
|
Julien Ammous
|
cd168c6f32
|
solaris does not have flock
|
2014-04-10 19:26:55 +02: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
|
a2af349959
|
Now the drive letter is returned as leading path element by File#dirname on Windows
|
2014-01-13 17:29:57 +01: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 |
|
Tomoyuki Sahara
|
005f01f2fc
|
fix RSTRING_PTR usage.
|
2013-10-03 12:18:39 +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
|
b4f0a68fba
|
add File#flock.
|
2013-09-30 10:17:21 +09:00 |
|
Tomoyuki Sahara
|
140da1c6ca
|
remove duplicated white spaces.
|
2013-09-26 18:31:02 +09:00 |
|
Tomoyuki Sahara
|
e27fb544df
|
suppress a warning and fix a possible segv.
|
2013-09-26 10:59:40 +09:00 |
|
Paolo Bosetti
|
c4e3c46e86
|
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
|
2013-09-25 13:26:49 +02:00 |
|