mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (statfs_fsid): remove statfs.f_fsid because it doesn't return
meaningful value portably. http://togetter.com/li/658517 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62713618f0
commit
297fe29fa9
3 changed files with 5 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Apr 23 14:10:50 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* file.c (statfs_fsid): remove statfs.f_fsid because it doesn't return
|
||||
meaningful value portably. http://togetter.com/li/658517
|
||||
|
||||
Wed Apr 23 11:03:41 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/stringio/stringio.c (strio_write): use rb_str_append to
|
||||
|
|
17
file.c
17
file.c
|
@ -5529,22 +5529,6 @@ statfs_ffree(VALUE self)
|
|||
return LL2NUM(get_statfs(self)->f_ffree);
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* st.fsid -> integer
|
||||
*
|
||||
* Returns filesystem id.
|
||||
*
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
statfs_fsid(VALUE self)
|
||||
{
|
||||
return rb_integer_unpack(&get_statfs(self)->f_fsid,
|
||||
1, sizeof(get_statfs(self)->f_fsid),
|
||||
0, INTEGER_PACK_2COMP|INTEGER_PACK_NATIVE_BYTE_ORDER);
|
||||
}
|
||||
|
||||
#ifdef HAVE_STRUCT_STATFS_F_FSTYPENAME
|
||||
/*
|
||||
* call-seq:
|
||||
|
@ -6164,7 +6148,6 @@ Init_File(void)
|
|||
rb_define_method(rb_cStatfs, "bavail", statfs_bavail, 0);
|
||||
rb_define_method(rb_cStatfs, "files", statfs_files, 0);
|
||||
rb_define_method(rb_cStatfs, "ffree", statfs_ffree, 0);
|
||||
rb_define_method(rb_cStatfs, "fsid", statfs_fsid, 0);
|
||||
rb_define_method(rb_cStatfs, "fstypename", statfs_fstypename, 0);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -396,7 +396,6 @@ class TestFile < Test::Unit::TestCase
|
|||
assert_kind_of Integer, st.bavail
|
||||
assert_kind_of Integer, st.files
|
||||
assert_kind_of Integer, st.ffree
|
||||
assert_kind_of Integer, st.fsid
|
||||
begin
|
||||
assert_kind_of String, st.fstypename
|
||||
rescue NotImplementedError
|
||||
|
|
Loading…
Reference in a new issue