Tomoyuki Sahara
|
14031bdf44
|
Merge pull request #11 from pbosetti/master
Can build on VisualStudio, revised.
|
2014-03-14 10:41:56 +09:00 |
|
Paolo Bosetti
|
39bd240116
|
Fixed bug in File.expand_path() on Windows (forever recursive loop)
|
2014-03-07 16:47:18 +01:00 |
|
Paolo Bosetti
|
7ff049457f
|
Added File.foreach method.
Improved error management in File.new (Errno can be undefined)
|
2014-03-04 10:43:46 +01: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
|
daa65c15de
|
add dummy IO#flush for better compatibility with CRuby.
|
2014-02-12 16:33:34 +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 |
|
Tomoyuki Sahara
|
f10b73efa7
|
move license terms to the bottom.
|
2014-02-03 12:35:02 +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
|
a613bce3f2
|
Merge branch 'master' of https://github.com/iij/mruby-io
|
2014-01-07 13:51:38 +01:00 |
|
Tomoyuki Sahara
|
8cee36b1b5
|
Catch Errno::ENFILE too.
When system file descriptor table is full, errno is set to
ENFILE instead of EMFILE. They are similar but different.
|
2013-12-13 15:49:32 +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
|
87d878292d
|
Try GC when Too many open files (revert a part of 1e8097a).
|
2013-11-16 16:04:31 +09:00 |
|
Tomoyuki Sahara
|
e44da8a6cc
|
test for #6.
|
2013-11-16 05:44:04 +09: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
|
93edd26b3e
|
fix typo...
|
2013-10-09 00:35:22 +09:00 |
|
Tomoyuki Sahara
|
005f01f2fc
|
fix RSTRING_PTR usage.
|
2013-10-03 12:18:39 +09:00 |
|
Tomoyuki Sahara
|
bf4c226232
|
Merge pull request #4 from pbosetti/master
Truncate the file to zero length on opening when "w" mode is set
|
2013-10-02 17:08:24 -07: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 |
|
Tomoyuki Sahara
|
e2b0606752
|
Merge pull request #2 from pbosetti/master
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
|
2013-09-25 18:21:27 -07:00 |
|
Paolo Bosetti
|
c4e3c46e86
|
Catch up with API changes on mrb_intern() -> mrb_intern_cstr()
|
2013-09-25 13:26:49 +02:00 |
|
Tomoyuki Sahara
|
47a610e688
|
use array parameter on IO.open.
|
2013-08-30 19:09:36 +09:00 |
|
Tomoyuki Sahara
|
713aa48cf9
|
STDERR's file descriptor is 2.
closes #1
|
2013-08-30 17:04:40 +09:00 |
|
Tomoyuki Sahara
|
9dc875f246
|
add cmd (command output expression).
|
2013-08-23 16:00:08 +09:00 |
|
Tomoyuki Sahara
|
5e8021bedb
|
tests for File.socket? and File.symlink?
|
2013-08-08 14:00:02 +09:00 |
|
Tomoyuki Sahara
|
c49541058c
|
use lstat(2) to check if it's a symlink
|
2013-08-08 13:58:47 +09:00 |
|
Takashi Sogabe
|
4f3a749da1
|
Fix incorrect condition for pendig-IO
|
2013-06-26 15:24:23 +09:00 |
|
Akira Yumiyama
|
5625e44371
|
add method: IO#select
|
2013-06-02 15:25:14 +09:00 |
|
Akira Yumiyama
|
1272df7cb6
|
fix IO#eof? method (consider the read buffer)
|
2013-06-02 13:24:34 +09:00 |
|
Akira Yumiyama
|
0a21d9ec92
|
bufix of mrb_file__gethome()
|
2013-05-12 14:58:12 +09:00 |
|
Akira Yumiyama
|
e277079616
|
update run_test.rb
|
2013-05-12 14:50:31 +09:00 |
|
Akira Yumiyama
|
55b6ef43c5
|
add return value check of fseek
|
2013-05-12 14:23:48 +09:00 |
|
Akira Yumiyama
|
14e1992ed0
|
add null check
|
2013-05-12 14:15:00 +09:00 |
|