summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/src/file.c
AgeCommit message (Collapse)Author
2020-03-08Small refactoring on #4952Yukihiro "Matz" Matsumoto
Fix the argument of `mrb_file_is_absolute_path()`.
2020-03-08Traditional, UNC, and Device Is Absolute?Reckordp
2020-03-08Evaluate all type pathReckordp
2020-03-07Add absolute path for UNCReckordp
2020-03-07Fix typoReckordp
2020-03-07Merge the update suggested by @mattn; ref #4950Yukihiro "Matz" Matsumoto
2020-03-07Merge pull request #4950 from Reckordp/masterYukihiro "Matz" Matsumoto
Absolute path for windows
2020-03-07Absolute path for windowsReckordp
2020-01-31Add explicit casting in `file.c` to silence warnings.Yukihiro "Matz" Matsumoto
2020-01-28Merge pull request #4873 from dearblue/open-flagsYukihiro "Matz" Matsumoto
Support bit flags for `IO.open`
2020-01-06Avoid Boxing/Unboxing of file descriptors; ref #4872Yukihiro "Matz" Matsumoto
2020-01-06Merge branch 'file-size-truncate' of https://github.com/dearblue/mruby into ↵Yukihiro "Matz" Matsumoto
dearblue-file-size-truncate
2019-12-14Support bit flags for `IO.open`dearblue
Note that this bit flags are not compatible with the native flags defined in `#include <fcntl.h>`.
2019-12-14Implement `File#size` and `File#truncate`dearblue
2019-12-14Remove unnessesary branchesdearblue
2019-11-01Fix argument specs to `File`KOBAYASHI Shuji
2019-10-10Silence double free warnings by `mrb_local_free()`.Yukihiro "Matz" Matsumoto
The warnings were detected by cppcheck.
2019-08-07Reorganize `mrb_string_value_cstr` and related functions.Yukihiro "Matz" Matsumoto
`mrb_string_value_cstr` and `mrb_string_value_len`: obsolete `mrb_string_cstr`: new function to retrieve NULL terminated C string `RSTRING_CSTR`: wrapper macro of `mrb_string_cstr`
2019-08-05Use new specifiers/modifiers of `mrb_vfromat()`KOBAYASHI Shuji
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back.
2019-05-10Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod`KOBAYASHI Shuji
2019-05-06Avoid using `mrb_str_to_cstr` if possibleKOBAYASHI Shuji
Because it always allocate new string. Replace with the followings: - Use `RSRING_PTR` if string is guaranteed to be null-terminated. - Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't modified.
2018-11-19Remove implicit conversion using `to_str` method; fix #3854Yukihiro "Matz" Matsumoto
We have added internal convenience method `__to_str` which does string type check. The issue #3854 was fixed but fundamental flaw of lack of stack depth check along with fibers still remains. Use `MRB_GC_FIXED_ARENA` for workaround.
2018-08-13Try to fix a fragile `File#mtime` test.Yukihiro "Matz" Matsumoto
2018-07-02Support MRB_WITHOUT_FLOAT to mruby-ioYusuke Endoh
2018-06-19Merge pull request #4047 from kou/stop-to-use-freed-valueYukihiro "Matz" Matsumoto
Stop to use freed value
2018-06-19Stop to use freed valueKouhei Sutou
2018-06-19Fix wrong free functionKouhei Sutou
mrb_locale_free() should be used for the return value of mrb_locale_from_utf8().
2018-01-30add File#mtimeYasuhiro Matsumoto
2017-12-13Remove VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-13fix path localesYasuhiro Matsumoto
2017-12-13Reduce VC++ type mismatch warnings.Yukihiro "Matz" Matsumoto
2017-12-13Merge pull request #3886 from mattn/io-windowsYukihiro "Matz" Matsumoto
implement popen/flock on Windows
2017-12-13fix build for MSVCYasuhiro Matsumoto
2017-12-12implement flock on WindowsYasuhiro Matsumoto
2017-12-12fixed mruby-io so that the test passes on cygwin窪山 翔士
2017-12-08Reduce compiler warnings from `mruby-io` gem.Yukihiro "Matz" Matsumoto
2017-12-07Add type cast to `readline(2)` return value.Yukihiro "Matz" Matsumoto
2017-12-07Add 'mrbgems/mruby-io/' from commit '3c8e1f94c44252c836f79a48bb17726da28e2756'Yukihiro "Matz" Matsumoto
git-subtree-dir: mrbgems/mruby-io git-subtree-mainline: 10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7 git-subtree-split: 3c8e1f94c44252c836f79a48bb17726da28e2756