libarchive-ruby-swig 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/libarchive-ruby-swig/entry.cpp +2 -2
- data/ext/libarchive-ruby-swig/entry.h +183 -4
- data/ext/libarchive-ruby-swig/extconf.rb +1 -1
- data/ext/libarchive-ruby-swig/reader.h +8 -1
- data/ext/libarchive-ruby-swig/writer.h +8 -0
- data/lib/libarchive_rs.rb +20 -3
- metadata +4 -5
- data/lib/libarchive_doc.rb +0 -478
@@ -113,7 +113,7 @@ void Entry::set_devminor(unsigned int devminor)
|
|
113
113
|
|
114
114
|
unsigned long Entry::atime()
|
115
115
|
{
|
116
|
-
archive_entry_atime(_entry);
|
116
|
+
return archive_entry_atime(_entry);
|
117
117
|
}
|
118
118
|
|
119
119
|
void Entry::set_atime(unsigned long atime)
|
@@ -128,7 +128,7 @@ void Entry::clear()
|
|
128
128
|
|
129
129
|
Entry *Entry::clone()
|
130
130
|
{
|
131
|
-
new Entry(archive_entry_clone(_entry));
|
131
|
+
return new Entry(archive_entry_clone(_entry));
|
132
132
|
}
|
133
133
|
|
134
134
|
unsigned long Entry::dev()
|
@@ -23,78 +23,257 @@ class Entry
|
|
23
23
|
Entry(struct archive_entry *entry);
|
24
24
|
virtual ~Entry();
|
25
25
|
|
26
|
+
#ifdef SWIG
|
27
|
+
%feature("autodoc", "Indicates if Entry is a regular file") is_file;
|
28
|
+
#endif
|
26
29
|
bool is_file();
|
30
|
+
|
31
|
+
#ifdef SWIG
|
32
|
+
%feature("autodoc", "Indicates if Entry is a directory") is_directory;
|
33
|
+
#endif
|
27
34
|
bool is_directory();
|
35
|
+
|
36
|
+
#ifdef SWIG
|
37
|
+
%feature("autodoc", "Indicates if Entry is a symlink") is_symbolic_link;
|
38
|
+
#endif
|
28
39
|
bool is_symbolic_link();
|
40
|
+
|
41
|
+
#ifdef SWIG
|
42
|
+
%feature("autodoc", "Indicates if Entry is a block device node") is_block_special;
|
43
|
+
#endif
|
29
44
|
bool is_block_special();
|
45
|
+
|
46
|
+
#ifdef SWIG
|
47
|
+
%feature("autodoc", "Indicates if Entry is a character device node") is_character_special;
|
48
|
+
#endif
|
30
49
|
bool is_character_special();
|
50
|
+
|
51
|
+
#ifdef SWIG
|
52
|
+
%feature("autodoc", "Indicates if Entry is a fifo") is_fifo;
|
53
|
+
#endif
|
31
54
|
bool is_fifo();
|
55
|
+
|
56
|
+
#ifdef SWIG
|
57
|
+
%feature("autodoc", "Indicates if Entry is a UNIX domain socket") is_socket;
|
58
|
+
#endif
|
32
59
|
bool is_socket();
|
60
|
+
|
61
|
+
#ifdef SWIG
|
62
|
+
%feature("autodoc", "Indicates if Entry is a hardlink") is_hardlink;
|
63
|
+
#endif
|
33
64
|
bool is_hardlink();
|
34
65
|
|
66
|
+
#ifdef SWIG
|
67
|
+
%feature("autodoc", "Returns the filetype bits for Entry") filetype;
|
68
|
+
#endif
|
35
69
|
unsigned int filetype();
|
70
|
+
|
71
|
+
#ifdef SWIG
|
72
|
+
%feature("autodoc", "Use one of the <code>Archive::ENTRY_*</code> to specify the filetype of the Entry.") set_filetype;
|
73
|
+
#endif
|
36
74
|
void set_filetype(unsigned int filetype);
|
37
75
|
|
76
|
+
#ifdef SWIG
|
77
|
+
%feature("autodoc", "Device major number of device on which this Entry resided. "
|
78
|
+
"This field will not be available in most cases and is, in "
|
79
|
+
"any case, platform-specific") devmajor;
|
80
|
+
#endif
|
38
81
|
unsigned int devmajor();
|
82
|
+
|
83
|
+
#ifdef SWIG
|
84
|
+
%feature("autodoc", " Sets the device major number of the device on which "
|
85
|
+
"this Entry resides. This field will not be availabla "
|
86
|
+
"in most cases and is, in any case, platform-specific") set_devmajor;
|
87
|
+
#endif
|
39
88
|
void set_devmajor(unsigned int devmajor);
|
40
89
|
|
90
|
+
#ifdef SWIG
|
91
|
+
%feature("autodoc", "Device minor number of device on which this Entry resided. "
|
92
|
+
"This field will not be available in most cases and is, in "
|
93
|
+
"any case, platform-specific") devminor;
|
94
|
+
#endif
|
41
95
|
unsigned int devminor();
|
96
|
+
|
97
|
+
#ifdef SWIG
|
98
|
+
%feature("autodoc", " Sets the device minor number of the device on which "
|
99
|
+
"this Entry resides. This field will not be availabla "
|
100
|
+
"in most cases and is, in any case, platform-specific") set_devminor;
|
101
|
+
#endif
|
42
102
|
void set_devminor(unsigned int devminor);
|
43
103
|
|
104
|
+
#ifdef SWIG
|
105
|
+
%feature("autodoc", "Returns the atime of the saved Entry as a timestamp since epoch") atime;
|
106
|
+
#endif
|
44
107
|
unsigned long atime();
|
108
|
+
|
109
|
+
#ifdef SWIG
|
110
|
+
%feature("autodoc", "Sets the atime of Entry to the given timestamp since epoch") set_atime;
|
111
|
+
#endif
|
45
112
|
void set_atime(unsigned long atime);
|
46
113
|
|
114
|
+
#ifdef SWIG
|
115
|
+
%feature("autodoc", "Resets the Entry") clear;
|
116
|
+
#endif
|
47
117
|
void clear();
|
48
118
|
|
49
|
-
#ifdef SWIG
|
50
|
-
%
|
51
|
-
#endif
|
52
|
-
|
119
|
+
#ifdef SWIG
|
120
|
+
%feature("autodoc", "Returns an exact clone of Entry") clone;
|
121
|
+
#endif
|
53
122
|
Entry *clone();
|
54
123
|
|
124
|
+
#ifdef SWIG
|
125
|
+
%feature("autodoc", "Device id of the device on which entry resided. "
|
126
|
+
"This is usually unused and, in any case, platform-specific") dev;
|
127
|
+
#endif
|
55
128
|
unsigned long dev();
|
129
|
+
|
130
|
+
#ifdef SWIG
|
131
|
+
%feature("autodoc", "Sets the device id of the device on which "
|
132
|
+
"entry resided. This is usually unused and, "
|
133
|
+
"in any case, platform-specific") set_dev;
|
134
|
+
#endif
|
56
135
|
void set_dev(unsigned long dev);
|
57
136
|
|
137
|
+
#ifdef SWIG
|
138
|
+
%feature("autodoc", "Group id of Entry") gid;
|
139
|
+
#endif
|
58
140
|
unsigned long gid();
|
141
|
+
|
142
|
+
#ifdef SWIG
|
143
|
+
%feature("autodoc", "Sets the group id of Entry") set_gid;
|
144
|
+
#endif
|
59
145
|
void set_gid(unsigned long gid);
|
60
146
|
|
147
|
+
#ifdef SWIG
|
148
|
+
%feature("autodoc", "Group name of Entry") gname;
|
149
|
+
#endif
|
61
150
|
const char *gname();
|
151
|
+
|
152
|
+
#ifdef SWIG
|
153
|
+
%feature("autodoc", "Set group name of Entry") set_gname;
|
154
|
+
#endif
|
62
155
|
void set_gname(const char *gname);
|
63
156
|
|
157
|
+
#ifdef SWIG
|
158
|
+
%feature("autodoc", "Path of file this entry was hardlinked to") hardlink;
|
159
|
+
#endif
|
64
160
|
const char *hardlink();
|
161
|
+
|
162
|
+
#ifdef SWIG
|
163
|
+
%feature("autodoc", "Sets the path to the file this entry is hard-linked to") set_hardlink;
|
164
|
+
#endif
|
65
165
|
void set_hardlink(const char *hardlink);
|
66
166
|
|
167
|
+
#ifdef SWIG
|
168
|
+
%feature("autodoc", "Inode of Entry") ino;
|
169
|
+
#endif
|
67
170
|
unsigned long ino();
|
171
|
+
|
172
|
+
#ifdef SWIG
|
173
|
+
%feature("autodoc", "Sets the inode of Entry") set_ino;
|
174
|
+
#endif
|
68
175
|
void set_ino(unsigned long ino);
|
69
176
|
|
177
|
+
#ifdef SWIG
|
178
|
+
%feature("autodoc", "Permission bits and filetype of entry") mode;
|
179
|
+
#endif
|
70
180
|
int mode();
|
181
|
+
|
182
|
+
#ifdef SWIG
|
183
|
+
%feature("autodoc", "Sets filetype and permission bits of Entry") set_mode;
|
184
|
+
#endif
|
71
185
|
void set_mode(int mode);
|
72
186
|
|
187
|
+
#ifdef SWIG
|
188
|
+
%feature("autodoc", "Returns the mtime of Entry as a timestamp since epoch") mtime;
|
189
|
+
#endif
|
73
190
|
unsigned long mtime();
|
191
|
+
|
192
|
+
#ifdef SWIG
|
193
|
+
%feature("autodoc", "Sets the mtime of Entry to given timestamp since epoch") set_mtime;
|
194
|
+
#endif
|
74
195
|
void set_mtime(unsigned long mtime);
|
75
196
|
|
197
|
+
#ifdef SWIG
|
198
|
+
%feature("autodoc", "Number of hard links to Entry") nlink;
|
199
|
+
#endif
|
76
200
|
unsigned int nlink();
|
201
|
+
|
202
|
+
#ifdef SWIG
|
203
|
+
%feature("autodoc", "Sets the number of hardlinks to Entry") set_nlink;
|
204
|
+
#endif
|
77
205
|
void set_nlink(unsigned int nlink);
|
78
206
|
|
207
|
+
#ifdef SWIG
|
208
|
+
%feature("autodoc", "Returns the pathname of Entry") pathname;
|
209
|
+
#endif
|
79
210
|
const char *pathname();
|
211
|
+
|
212
|
+
#ifdef SWIG
|
213
|
+
%feature("autodoc", "Sets the pathname of Entry") set_pathname;
|
214
|
+
#endif
|
80
215
|
void set_pathname(const char *pathname);
|
81
216
|
|
217
|
+
#ifdef SWIG
|
218
|
+
%feature("autodoc", "The dev major number of the device represented by Entry") rdevmajor;
|
219
|
+
#endif
|
82
220
|
unsigned int rdevmajor();
|
221
|
+
|
222
|
+
#ifdef SWIG
|
223
|
+
%feature("autodoc", "Sets the dev major number of the device represented by Entry") set_rdevmajor;
|
224
|
+
#endif
|
83
225
|
void set_rdevmajor(unsigned int rdevmajor);
|
84
226
|
|
227
|
+
#ifdef SWIG
|
228
|
+
%feature("autodoc", "The dev minor number of the device represented by Entry") rdevminor;
|
229
|
+
#endif
|
85
230
|
unsigned int rdevminor();
|
231
|
+
|
232
|
+
#ifdef SWIG
|
233
|
+
%feature("autodoc", "Sets the dev minor number of the device represented by Entry") set_rdevminor;
|
234
|
+
#endif
|
86
235
|
void set_rdevminor(unsigned int rdevminor);
|
87
236
|
|
237
|
+
#ifdef SWIG
|
238
|
+
%feature("autodoc", "Size of the Entry. In case Entry is a symlink, "
|
239
|
+
"returns the size of the symlink's target name") size;
|
240
|
+
#endif
|
88
241
|
unsigned long size();
|
242
|
+
|
243
|
+
#ifdef SWIG
|
244
|
+
%feature("autodoc", "Sets the size of the Entry. In case Entry is "
|
245
|
+
"a symlink, this should be the length of the string set with <code>symlink=</code>") set_size;
|
246
|
+
#endif
|
89
247
|
void set_size(unsigned long size);
|
90
248
|
|
249
|
+
#ifdef SWIG
|
250
|
+
%feature("autodoc", "Returns the target of a symlink Entry") symlink;
|
251
|
+
#endif
|
91
252
|
const char *symlink();
|
253
|
+
|
254
|
+
#ifdef SWIG
|
255
|
+
%feature("autodoc", "Sets the target of a symlink Entry") set_symlink;
|
256
|
+
#endif
|
92
257
|
void set_symlink(const char *symlink);
|
93
258
|
|
259
|
+
#ifdef SWIG
|
260
|
+
%feature("autodoc", "Returns the numeric user id of Entry") uid;
|
261
|
+
#endif
|
94
262
|
unsigned long uid();
|
263
|
+
|
264
|
+
#ifdef SWIG
|
265
|
+
%feature("autodoc", "Sets the numeric user id of Entry") set_uid;
|
266
|
+
#endif
|
95
267
|
void set_uid(unsigned long uid);
|
96
268
|
|
269
|
+
#ifdef SWIG
|
270
|
+
%feature("autodoc", "Returns the Entry owner's username") uname;
|
271
|
+
#endif
|
97
272
|
const char *uname();
|
273
|
+
|
274
|
+
#ifdef SWIG
|
275
|
+
%feature("autodoc", "Sets the Entry owner's username") set_uname;
|
276
|
+
#endif
|
98
277
|
void set_uname(const char *uname);
|
99
278
|
|
100
279
|
#ifdef SWIG
|
@@ -22,7 +22,7 @@ end
|
|
22
22
|
|
23
23
|
if swig = find_executable('swig')
|
24
24
|
`#{swig} -c++ -ruby -features autodoc=0 libarchive.i`
|
25
|
-
$distcleanfiles
|
25
|
+
$distcleanfiles += [ 'libarchive_wrap.cxx', 'libarchive_wrap_doc.cxx' ]
|
26
26
|
else
|
27
27
|
$stderr.write "You need SWIG to compile this extension.\n"
|
28
28
|
exit 1
|
@@ -23,6 +23,10 @@ class Reader
|
|
23
23
|
public:
|
24
24
|
Reader(struct archive *ar);
|
25
25
|
virtual ~Reader();
|
26
|
+
|
27
|
+
#ifdef SWIG
|
28
|
+
%feature("autodoc", "Releases all resources associated with the Reader object") close;
|
29
|
+
#endif
|
26
30
|
void close();
|
27
31
|
|
28
32
|
#ifdef SWIG
|
@@ -39,8 +43,11 @@ class Reader
|
|
39
43
|
#endif
|
40
44
|
|
41
45
|
#ifdef SWIG
|
46
|
+
%feature("autodoc", "Use <code>Archive::read_open_filename</code> instead") read_open_filename;
|
42
47
|
%newobject read_open_filename(const char *filename, const char *cmd);
|
48
|
+
%feature("autodoc", "Use <code>Archive::read_open_memory</code> instead") read_open_memory;
|
43
49
|
%newobject read_open_memory(const char *string, int length, const char *cmd);
|
50
|
+
%feature("autodoc", "Returns the next Entry meta data object in the Archive") next_header;
|
44
51
|
%newobject next_header();
|
45
52
|
#endif
|
46
53
|
|
@@ -59,8 +66,8 @@ class Reader
|
|
59
66
|
private:
|
60
67
|
struct archive *_ar;
|
61
68
|
char *_buf;
|
62
|
-
char *_archive_content;
|
63
69
|
int _buf_size;
|
70
|
+
char *_archive_content;
|
64
71
|
};
|
65
72
|
|
66
73
|
#endif
|
@@ -54,6 +54,10 @@ class Writer
|
|
54
54
|
public:
|
55
55
|
Writer(struct archive *ar);
|
56
56
|
virtual ~Writer();
|
57
|
+
|
58
|
+
#ifdef SWIG
|
59
|
+
%feature("autodoc", "Releases all resources associated with the Writer object") close;
|
60
|
+
#endif
|
57
61
|
void close();
|
58
62
|
|
59
63
|
#ifdef SWIG
|
@@ -70,6 +74,7 @@ class Writer
|
|
70
74
|
#endif
|
71
75
|
|
72
76
|
#ifdef SWIG
|
77
|
+
%feature("autodoc", "Use Archive::write_open_filename instead") write_open_filename;
|
73
78
|
%newobject write_open_filename(const char *filename,
|
74
79
|
const char *cmd, int format);
|
75
80
|
%newobject write_open_filename(const char *filename,
|
@@ -82,6 +87,9 @@ class Writer
|
|
82
87
|
static Writer *write_open_filename(const char *filename,
|
83
88
|
int compression, int format);
|
84
89
|
|
90
|
+
#ifdef SWIG
|
91
|
+
%feature("autodoc", "Write Entry meta data to Archive") write_header;
|
92
|
+
#endif
|
85
93
|
void write_header(Entry *entry);
|
86
94
|
|
87
95
|
void write_data_helper(const char *string, int length);
|
data/lib/libarchive_rs.rb
CHANGED
@@ -12,6 +12,23 @@ require 'archive'
|
|
12
12
|
|
13
13
|
module Archive
|
14
14
|
|
15
|
+
##
|
16
|
+
#
|
17
|
+
# Thrown on problems with opening or processing an archive.
|
18
|
+
#
|
19
|
+
class Error < StandardError
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
#
|
24
|
+
# This class is not meant to be used directly. It exists for the sole purpose
|
25
|
+
# of initializing the <code>Archive::ENTRY_*</code> constants in a
|
26
|
+
# platform-independent way.
|
27
|
+
#
|
28
|
+
class Stat
|
29
|
+
private_class_method :new
|
30
|
+
end
|
31
|
+
|
15
32
|
ENTRY_FILE = Stat.type_file
|
16
33
|
ENTRY_DIRECTORY = Stat.type_directory
|
17
34
|
ENTRY_SYMBOLIC_LINK = Stat.type_symbolic_link
|
@@ -105,9 +122,9 @@ module Archive
|
|
105
122
|
|
106
123
|
##
|
107
124
|
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
# before the actual data.
|
125
|
+
# Creates a new Entry. An Entry holds the meta data for an item stored in
|
126
|
+
# an Archive, such as filetype, mode, owner, etc. It is typically populated
|
127
|
+
# by a call to <code>copy_stat</code>. It is written before the actual data.
|
111
128
|
#
|
112
129
|
def new_entry()
|
113
130
|
entry = self.new_entry_helper
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libarchive-ruby-swig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Koch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-07 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -29,7 +29,6 @@ extra_rdoc_files: []
|
|
29
29
|
|
30
30
|
files:
|
31
31
|
- lib/libarchive_rs.rb
|
32
|
-
- lib/libarchive_doc.rb
|
33
32
|
- ext/libarchive-ruby-swig/stat.cpp
|
34
33
|
- ext/libarchive-ruby-swig/stat.h
|
35
34
|
- ext/libarchive-ruby-swig/entry.cpp
|
data/lib/libarchive_doc.rb
DELETED
@@ -1,478 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# This file is part of "libarchive-ruby-swig", a simple SWIG wrapper around
|
3
|
-
# libarchive.
|
4
|
-
#
|
5
|
-
# Copyright 2011, Tobias Koch <tobias.koch@gmail.com>
|
6
|
-
#
|
7
|
-
# libarchive-ruby-swig is licensed under a simplified BSD License. A copy of the
|
8
|
-
# license text can be found in the file LICENSE.txt distributed with the source.
|
9
|
-
#
|
10
|
-
|
11
|
-
#
|
12
|
-
module Archive
|
13
|
-
|
14
|
-
##
|
15
|
-
#
|
16
|
-
# Thrown on problems with opening or processing an archive.
|
17
|
-
#
|
18
|
-
class Error < StandardError
|
19
|
-
end
|
20
|
-
|
21
|
-
##
|
22
|
-
#
|
23
|
-
# This class is not meant to be used directly. It exists for the sole purpose
|
24
|
-
# of initializing the <code>Archive::ENTRY_*</code> constants in a
|
25
|
-
# platform-independent way.
|
26
|
-
#
|
27
|
-
class Stat
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def self.new()
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class Entry
|
36
|
-
|
37
|
-
##
|
38
|
-
#
|
39
|
-
# Is Entry a regular file?
|
40
|
-
#
|
41
|
-
def is_file
|
42
|
-
end
|
43
|
-
|
44
|
-
##
|
45
|
-
#
|
46
|
-
# Is Entry a directory?
|
47
|
-
#
|
48
|
-
def is_directory
|
49
|
-
end
|
50
|
-
|
51
|
-
##
|
52
|
-
#
|
53
|
-
# Is Entry a symbolic link?
|
54
|
-
#
|
55
|
-
def is_symbolic_link
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
#
|
60
|
-
# Is Entry a block device?
|
61
|
-
#
|
62
|
-
def is_block_special
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
#
|
67
|
-
# Is Entry a char device?
|
68
|
-
#
|
69
|
-
def is_character_special
|
70
|
-
end
|
71
|
-
|
72
|
-
##
|
73
|
-
#
|
74
|
-
# Is Entry a fifo?
|
75
|
-
#
|
76
|
-
def is_fifo
|
77
|
-
end
|
78
|
-
|
79
|
-
##
|
80
|
-
#
|
81
|
-
# Is Entry a socket?
|
82
|
-
#
|
83
|
-
def is_socket
|
84
|
-
end
|
85
|
-
|
86
|
-
##
|
87
|
-
#
|
88
|
-
# Is Entry a hardlink?
|
89
|
-
#
|
90
|
-
def is_hardlink
|
91
|
-
end
|
92
|
-
|
93
|
-
##
|
94
|
-
#
|
95
|
-
# Returns the filetype bits for entry.
|
96
|
-
#
|
97
|
-
def filetype
|
98
|
-
end
|
99
|
-
|
100
|
-
##
|
101
|
-
#
|
102
|
-
# Use one of the <code>Archive::ENTRY_*</code> to specify the filetype of
|
103
|
-
# the Entry.
|
104
|
-
#
|
105
|
-
def set_filetype(filetype)
|
106
|
-
end
|
107
|
-
|
108
|
-
##
|
109
|
-
#
|
110
|
-
# Device major number of device on which this Entry resided. This field
|
111
|
-
# will not be available in most cases and is, in any case,
|
112
|
-
# platform-specific.
|
113
|
-
#
|
114
|
-
def devmajor
|
115
|
-
end
|
116
|
-
|
117
|
-
##
|
118
|
-
#
|
119
|
-
# Sets the device major number of the device on which this Entry resides. This
|
120
|
-
# field will not be availabla in most cases and is, in any case,
|
121
|
-
# platform-specific.
|
122
|
-
#
|
123
|
-
def set_devmajor(devmajor)
|
124
|
-
end
|
125
|
-
|
126
|
-
##
|
127
|
-
#
|
128
|
-
# Device minor number of device on which this Entry resided. This field
|
129
|
-
# will not be available in most cases and is, in any case,
|
130
|
-
# platform-specific.
|
131
|
-
#
|
132
|
-
def devminor
|
133
|
-
return numeric_result
|
134
|
-
end
|
135
|
-
|
136
|
-
##
|
137
|
-
#
|
138
|
-
# Sets the device minor number of the device on which this Entry resides. This
|
139
|
-
# field will not be availabla in most cases and is, in any case,
|
140
|
-
# platform-specific.
|
141
|
-
#
|
142
|
-
def set_devminor(devminor)
|
143
|
-
end
|
144
|
-
|
145
|
-
##
|
146
|
-
#
|
147
|
-
# Returns the atime of the saved Entry as a timestamp since epoch.
|
148
|
-
#
|
149
|
-
def atime
|
150
|
-
end
|
151
|
-
|
152
|
-
##
|
153
|
-
#
|
154
|
-
# Sets the atime of the saved Entry from a timestamp.
|
155
|
-
#
|
156
|
-
def atime(atime)
|
157
|
-
end
|
158
|
-
|
159
|
-
##
|
160
|
-
#
|
161
|
-
# Resets the Entry.
|
162
|
-
#
|
163
|
-
def clear
|
164
|
-
end
|
165
|
-
|
166
|
-
##
|
167
|
-
#
|
168
|
-
# Returns an exact clone of Entry.
|
169
|
-
#
|
170
|
-
Entry *clone();
|
171
|
-
|
172
|
-
##
|
173
|
-
#
|
174
|
-
# Device id of the device on which entry resided. This is usually unused
|
175
|
-
# and, in any case, platform-specific.
|
176
|
-
#
|
177
|
-
def dev
|
178
|
-
end
|
179
|
-
|
180
|
-
##
|
181
|
-
#
|
182
|
-
# Sets the device id of the device on which entry resided. This is usually
|
183
|
-
# unused and, in any case, platform-specific.
|
184
|
-
#
|
185
|
-
def set_dev(dev)
|
186
|
-
end
|
187
|
-
|
188
|
-
##
|
189
|
-
#
|
190
|
-
# Group id of the Entry.
|
191
|
-
#
|
192
|
-
def gid
|
193
|
-
end
|
194
|
-
|
195
|
-
##
|
196
|
-
#
|
197
|
-
# Sets the group id of the Entry.
|
198
|
-
#
|
199
|
-
def set_gid(gid)
|
200
|
-
end
|
201
|
-
|
202
|
-
##
|
203
|
-
#
|
204
|
-
# Group name of the Entry.
|
205
|
-
#
|
206
|
-
def gname
|
207
|
-
end
|
208
|
-
|
209
|
-
##
|
210
|
-
#
|
211
|
-
# Sets the group name of the Entry.
|
212
|
-
#
|
213
|
-
def set_gname(gname)
|
214
|
-
end
|
215
|
-
|
216
|
-
##
|
217
|
-
#
|
218
|
-
# Path of file this entry was hardlinked to.
|
219
|
-
#
|
220
|
-
def hardlink
|
221
|
-
end
|
222
|
-
|
223
|
-
##
|
224
|
-
#
|
225
|
-
# Sets the path to the file this entry is hard-linked to.
|
226
|
-
#
|
227
|
-
def set_hardlink(path)
|
228
|
-
end
|
229
|
-
|
230
|
-
##
|
231
|
-
#
|
232
|
-
# Inode of Entry.
|
233
|
-
#
|
234
|
-
def ino
|
235
|
-
end
|
236
|
-
|
237
|
-
##
|
238
|
-
#
|
239
|
-
# Sets the inode of Entry.
|
240
|
-
#
|
241
|
-
def set_ino(ino)
|
242
|
-
end
|
243
|
-
|
244
|
-
##
|
245
|
-
#
|
246
|
-
# Permission bits and filetype of entry
|
247
|
-
#
|
248
|
-
def mode
|
249
|
-
end
|
250
|
-
|
251
|
-
##
|
252
|
-
#
|
253
|
-
# Sets the permission bits (and/or filetype) of Entry.
|
254
|
-
#
|
255
|
-
def set_mode(mode)
|
256
|
-
end
|
257
|
-
|
258
|
-
##
|
259
|
-
#
|
260
|
-
# Returns the mtime of the saved Entry as a timestamp since epoch.
|
261
|
-
#
|
262
|
-
def mtime
|
263
|
-
end
|
264
|
-
|
265
|
-
##
|
266
|
-
#
|
267
|
-
# Sets the mtime of the saved Entry from a timestamp.
|
268
|
-
#
|
269
|
-
def set_mtime(mtime)
|
270
|
-
end
|
271
|
-
|
272
|
-
##
|
273
|
-
#
|
274
|
-
# Number of hard links to this Entry.
|
275
|
-
#
|
276
|
-
def nlink
|
277
|
-
end
|
278
|
-
|
279
|
-
##
|
280
|
-
#
|
281
|
-
# Sets the number of hard links to this Entry.
|
282
|
-
#
|
283
|
-
def set_nlink(num_links)
|
284
|
-
end
|
285
|
-
|
286
|
-
##
|
287
|
-
#
|
288
|
-
# Returns the pathname of this Entry.
|
289
|
-
#
|
290
|
-
def pathname
|
291
|
-
end
|
292
|
-
|
293
|
-
##
|
294
|
-
#
|
295
|
-
# Sets the pathname of this Entry.
|
296
|
-
#
|
297
|
-
def set_pathname(pathname)
|
298
|
-
end
|
299
|
-
|
300
|
-
##
|
301
|
-
#
|
302
|
-
# The dev major number of the device this Entry represents.
|
303
|
-
#
|
304
|
-
def rdevmajor
|
305
|
-
end
|
306
|
-
|
307
|
-
##
|
308
|
-
#
|
309
|
-
# Sets the dev major number of the device this Entry represents.
|
310
|
-
#
|
311
|
-
def set_rdevmajor(devmajor)
|
312
|
-
end
|
313
|
-
|
314
|
-
##
|
315
|
-
#
|
316
|
-
# The dev minor number of the device this Entry represents.
|
317
|
-
#
|
318
|
-
def rdevminor
|
319
|
-
end
|
320
|
-
|
321
|
-
##
|
322
|
-
#
|
323
|
-
# Sets the dev minor number of the device this Entry represents.
|
324
|
-
#
|
325
|
-
def set_rdevminor(devminor)
|
326
|
-
end
|
327
|
-
|
328
|
-
##
|
329
|
-
#
|
330
|
-
# Size of the Entry. In case Entry is a symlink, returns the size of
|
331
|
-
# symlink's target name.
|
332
|
-
#
|
333
|
-
def size
|
334
|
-
end
|
335
|
-
|
336
|
-
##
|
337
|
-
#
|
338
|
-
# Sets the size of the Entry. In case Entry is a symlink, this should
|
339
|
-
# be the length of the string set with <code>symlink=</code>.
|
340
|
-
#
|
341
|
-
def set_size()
|
342
|
-
end
|
343
|
-
|
344
|
-
##
|
345
|
-
#
|
346
|
-
# Returns the rarget of a symlink Entry.
|
347
|
-
#
|
348
|
-
def symlink
|
349
|
-
end
|
350
|
-
|
351
|
-
##
|
352
|
-
#
|
353
|
-
# Sets the target of a symlink Entry.
|
354
|
-
#
|
355
|
-
def set_symlink(path)
|
356
|
-
end
|
357
|
-
|
358
|
-
##
|
359
|
-
#
|
360
|
-
# The user id of this Entry.
|
361
|
-
#
|
362
|
-
def uid
|
363
|
-
end
|
364
|
-
|
365
|
-
##
|
366
|
-
#
|
367
|
-
# Sets the user id of this Entry.
|
368
|
-
#
|
369
|
-
def set_uid(uid)
|
370
|
-
end
|
371
|
-
|
372
|
-
##
|
373
|
-
#
|
374
|
-
# The owner name of this entry.
|
375
|
-
#
|
376
|
-
def uname
|
377
|
-
end
|
378
|
-
|
379
|
-
##
|
380
|
-
#
|
381
|
-
# Sets the owner name of this Entry.
|
382
|
-
#
|
383
|
-
def set_uname(uname)
|
384
|
-
end
|
385
|
-
|
386
|
-
private
|
387
|
-
|
388
|
-
def self.new()
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
class Reader
|
393
|
-
|
394
|
-
##
|
395
|
-
#
|
396
|
-
# Use <code>Archive::read_open_filename</code> instead.
|
397
|
-
#
|
398
|
-
def self.read_open_filename(filename, cmd = nil)
|
399
|
-
end
|
400
|
-
|
401
|
-
##
|
402
|
-
#
|
403
|
-
# Use <code>Archive::read_open_memory</code> instead.
|
404
|
-
#
|
405
|
-
def self.read_open_memory(string, cmd = nil)
|
406
|
-
end
|
407
|
-
|
408
|
-
##
|
409
|
-
#
|
410
|
-
# Releases all resources associated with the Reader object.
|
411
|
-
#
|
412
|
-
def close()
|
413
|
-
end
|
414
|
-
|
415
|
-
##
|
416
|
-
#
|
417
|
-
# Returns the next Entry meta data object in the Archive.
|
418
|
-
#
|
419
|
-
def next_header()
|
420
|
-
end
|
421
|
-
|
422
|
-
private
|
423
|
-
|
424
|
-
def read_data_helper(len)
|
425
|
-
end
|
426
|
-
|
427
|
-
def self.new()
|
428
|
-
end
|
429
|
-
|
430
|
-
end
|
431
|
-
|
432
|
-
class Writer
|
433
|
-
|
434
|
-
##
|
435
|
-
#
|
436
|
-
# Use Archive::write_open_filename instead.
|
437
|
-
#
|
438
|
-
#
|
439
|
-
def self.write_open_filename(filename, compression, format)
|
440
|
-
end
|
441
|
-
|
442
|
-
##
|
443
|
-
#
|
444
|
-
# Releases all resources associated with the Writer object.
|
445
|
-
#
|
446
|
-
def close()
|
447
|
-
end
|
448
|
-
|
449
|
-
##
|
450
|
-
#
|
451
|
-
# Creates a new Entry. An Entry holds the meta data for an item stored in
|
452
|
-
# an Archive, such as filetype, mode, owner, etc. It is typically populated
|
453
|
-
# by a call to <code>copy_stat</code>. It is written before the actual data.
|
454
|
-
#
|
455
|
-
def new_entry()
|
456
|
-
end
|
457
|
-
|
458
|
-
##
|
459
|
-
#
|
460
|
-
# Write Entry meta data to Archive.
|
461
|
-
#
|
462
|
-
def write_header(entry)
|
463
|
-
end
|
464
|
-
|
465
|
-
private
|
466
|
-
|
467
|
-
def self.new()
|
468
|
-
end
|
469
|
-
|
470
|
-
def new_entry_helper()
|
471
|
-
end
|
472
|
-
|
473
|
-
def write_data_helper()
|
474
|
-
end
|
475
|
-
|
476
|
-
end
|
477
|
-
|
478
|
-
end
|