rfuse 1.2.3 → 2.0.0.ffilibfuse
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/{CHANGES.md → CHANGELOG.md} +6 -0
- data/README.md +14 -42
- data/lib/rfuse/flock.rb +31 -0
- data/lib/rfuse/gem_version.rb +20 -0
- data/lib/rfuse/rfuse.rb +318 -0
- data/lib/rfuse/stat.rb +43 -0
- data/lib/rfuse/statvfs.rb +33 -0
- data/lib/rfuse/version.rb +1 -1
- data/lib/rfuse.rb +375 -590
- metadata +28 -30
- data/ext/rfuse/bufferwrapper.c +0 -48
- data/ext/rfuse/bufferwrapper.h +0 -10
- data/ext/rfuse/context.c +0 -80
- data/ext/rfuse/context.h +0 -5
- data/ext/rfuse/extconf.rb +0 -17
- data/ext/rfuse/file_info.c +0 -144
- data/ext/rfuse/file_info.h +0 -13
- data/ext/rfuse/filler.c +0 -61
- data/ext/rfuse/filler.h +0 -15
- data/ext/rfuse/helper.c +0 -97
- data/ext/rfuse/helper.h +0 -15
- data/ext/rfuse/intern_rfuse.c +0 -79
- data/ext/rfuse/intern_rfuse.h +0 -22
- data/ext/rfuse/pollhandle.c +0 -54
- data/ext/rfuse/pollhandle.h +0 -10
- data/ext/rfuse/rfuse.c +0 -2007
- data/ext/rfuse/rfuse.h +0 -3
- data/ext/rfuse/rfuse_mod.c +0 -12
- data/ext/rfuse/ruby-compat.h +0 -39
data/ext/rfuse/rfuse.h
DELETED
data/ext/rfuse/rfuse_mod.c
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#include "rfuse.h"
|
2
|
-
#include "filler.h"
|
3
|
-
#include "file_info.h"
|
4
|
-
#include "context.h"
|
5
|
-
|
6
|
-
void Init_rfuse() {
|
7
|
-
VALUE mRFuse=rb_define_module("RFuse");
|
8
|
-
file_info_init(mRFuse);
|
9
|
-
context_init(mRFuse);
|
10
|
-
rfiller_init(mRFuse);
|
11
|
-
rfuse_init(mRFuse);
|
12
|
-
}
|
data/ext/rfuse/ruby-compat.h
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
#ifdef HAVE_RUBY_ENCODING_H
|
2
|
-
#include <ruby/encoding.h>
|
3
|
-
#define rb_filesystem_encode(STR) (rb_enc_associate(STR,rb_filesystem_encoding()))
|
4
|
-
#else
|
5
|
-
#define rb_filesystem_encode(STR)
|
6
|
-
#endif
|
7
|
-
|
8
|
-
#ifndef HAVE_RB_ERRINFO
|
9
|
-
#define rb_errinfo() ruby_errinfo
|
10
|
-
#endif
|
11
|
-
|
12
|
-
#ifndef HAVE_RB_SET_ERRINFO
|
13
|
-
#define rb_set_errinfo(v) /*no-op*/
|
14
|
-
#endif
|
15
|
-
|
16
|
-
/* SIZET macros from ruby 1.9 */
|
17
|
-
#ifndef SIZET2NUM
|
18
|
-
#if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
|
19
|
-
# define SIZET2NUM(v) ULL2NUM(v)
|
20
|
-
# define SSIZET2NUM(v) LL2NUM(v)
|
21
|
-
#elif SIZEOF_SIZE_T == SIZEOF_LONG
|
22
|
-
# define SIZET2NUM(v) ULONG2NUM(v)
|
23
|
-
# define SSIZET2NUM(v) LONG2NUM(v)
|
24
|
-
#else
|
25
|
-
# define SIZET2NUM(v) UINT2NUM(v)
|
26
|
-
# define SSIZET2NUM(v) INT2NUM(v)
|
27
|
-
#endif
|
28
|
-
#endif
|
29
|
-
|
30
|
-
#ifndef NUM2SIZET
|
31
|
-
#if defined(HAVE_LONG_LONG) && SIZEOF_SIZE_T > SIZEOF_LONG
|
32
|
-
# define NUM2SIZET(x) ((size_t)NUM2ULL(x))
|
33
|
-
# define NUM2SSIZET(x) ((ssize_t)NUM2LL(x))
|
34
|
-
#else
|
35
|
-
# define NUM2SIZET(x) NUM2ULONG(x)
|
36
|
-
# define NUM2SSIZET(x) NUM2LONG(x)
|
37
|
-
#endif
|
38
|
-
#endif
|
39
|
-
|