summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpzummer <lpzummer@gmail.com>2015-10-19 16:46:39 +0500
committerlpzummer <lpzummer@gmail.com>2015-10-19 16:46:39 +0500
commit9e95d471f7685d00c542b94c0b2e3a214b817ae9 (patch)
tree01bc11f848a61bc206f1750e19be90145a1240a4
parent27d76e442d96139f9038d83d23275877fa3d3c9b (diff)
downloadfusepy-9e95d471f7685d00c542b94c0b2e3a214b817ae9.tar.gz
Add MIPS architecture.
-rw-r--r--README.rst2
-rw-r--r--fuse.py38
-rw-r--r--fusell.py38
3 files changed, 77 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index cbdd977..3789815 100644
--- a/README.rst
+++ b/README.rst
@@ -28,7 +28,7 @@ To get started download_ fusepy or just browse the source_.
fusepy requires FUSE 2.6 (or later) and runs on:
-- Linux (i386, x86_64, PPC)
+- Linux (i386, x86_64, PPC, MIPS)
- Mac OS X (Intel, PowerPC)
- FreeBSD (i386, amd64)
diff --git a/fuse.py b/fuse.py
index 7a03d61..d2cf659 100644
--- a/fuse.py
+++ b/fuse.py
@@ -155,6 +155,44 @@ elif _system == 'Linux':
('st_atimespec', c_timespec),
('st_mtimespec', c_timespec),
('st_ctimespec', c_timespec)]
+ elif _machine == 'mips':
+ c_stat._fields_ = [
+ ('st_dev', c_dev_t),
+ ('__pad1_1', c_ulong),
+ ('__pad1_2', c_ulong),
+ ('__pad1_3', c_ulong),
+ ('st_ino', c_ulong),
+ ('st_mode', c_mode_t),
+ ('st_nlink', c_ulong),
+ ('st_uid', c_uid_t),
+ ('st_gid', c_gid_t),
+ ('st_rdev', c_dev_t),
+ ('__pad2_1', c_ulong),
+ ('__pad2_2', c_ulong),
+ ('st_size', c_off_t),
+ ('__pad3', c_ulong),
+ ('st_atimespec', c_timespec),
+ ('__pad4', c_ulong),
+ ('st_mtimespec', c_timespec),
+ ('__pad5', c_ulong),
+ ('st_ctimespec', c_timespec),
+ ('__pad6', c_ulong),
+ ('st_blksize', c_long),
+ ('st_blocks', c_long),
+ ('__pad7_1', c_ulong),
+ ('__pad7_2', c_ulong),
+ ('__pad7_3', c_ulong),
+ ('__pad7_4', c_ulong),
+ ('__pad7_5', c_ulong),
+ ('__pad7_6', c_ulong),
+ ('__pad7_7', c_ulong),
+ ('__pad7_8', c_ulong),
+ ('__pad7_9', c_ulong),
+ ('__pad7_10', c_ulong),
+ ('__pad7_11', c_ulong),
+ ('__pad7_12', c_ulong),
+ ('__pad7_13', c_ulong),
+ ('__pad7_14', c_ulong)]
elif _machine == 'ppc':
c_stat._fields_ = [
('st_dev', c_dev_t),
diff --git a/fusell.py b/fusell.py
index d0bc25e..5c39ec7 100644
--- a/fusell.py
+++ b/fusell.py
@@ -118,6 +118,44 @@ elif _system == 'Linux':
('st_atimespec', c_timespec),
('st_mtimespec', c_timespec),
('st_ctimespec', c_timespec)]
+ elif _machine == 'mips':
+ c_stat._fields_ = [
+ ('st_dev', c_dev_t),
+ ('__pad1_1', c_ulong),
+ ('__pad1_2', c_ulong),
+ ('__pad1_3', c_ulong),
+ ('st_ino', c_ulong),
+ ('st_mode', c_mode_t),
+ ('st_nlink', c_ulong),
+ ('st_uid', c_uid_t),
+ ('st_gid', c_gid_t),
+ ('st_rdev', c_dev_t),
+ ('__pad2_1', c_ulong),
+ ('__pad2_2', c_ulong),
+ ('st_size', c_off_t),
+ ('__pad3', c_ulong),
+ ('st_atimespec', c_timespec),
+ ('__pad4', c_ulong),
+ ('st_mtimespec', c_timespec),
+ ('__pad5', c_ulong),
+ ('st_ctimespec', c_timespec),
+ ('__pad6', c_ulong),
+ ('st_blksize', c_long),
+ ('st_blocks', c_long),
+ ('__pad7_1', c_ulong),
+ ('__pad7_2', c_ulong),
+ ('__pad7_3', c_ulong),
+ ('__pad7_4', c_ulong),
+ ('__pad7_5', c_ulong),
+ ('__pad7_6', c_ulong),
+ ('__pad7_7', c_ulong),
+ ('__pad7_8', c_ulong),
+ ('__pad7_9', c_ulong),
+ ('__pad7_10', c_ulong),
+ ('__pad7_11', c_ulong),
+ ('__pad7_12', c_ulong),
+ ('__pad7_13', c_ulong),
+ ('__pad7_14', c_ulong)]
elif _machine == 'ppc':
c_stat._fields_ = [
('st_dev', c_dev_t),