Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
bc4a30e4
Commit
bc4a30e4
authored
Jan 08, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9efdbc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
wcfs/internal/_wcfs.pxd
wcfs/internal/_wcfs.pxd
+2
-0
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+4
-0
No files found.
wcfs/internal/_wcfs.pxd
View file @
bc4a30e4
...
...
@@ -99,10 +99,12 @@ cdef extern from "wcfs/internal/wcfs.h" namespace "wcfs" nogil:
error
resync
"_ptr()->resync"
(
Tid
at
)
cppclass
_FileH
:
size_t
blksize
pair
[
Mapping
,
error
]
mmap
(
int64_t
blk_start
,
int64_t
blk_len
)
# `VMA *vma=nil` not exposed
cppclass
FileH
(
refptr
[
_FileH
]):
# FileH.X = FileH->X in C++
size_t
blksize
"_ptr()->blksize"
pair
[
Mapping
,
error
]
mmap
"_ptr()->mmap"
(
int64_t
blk_start
,
int64_t
blk_len
)
cppclass
_Mapping
:
...
...
wcfs/internal/_wcfs.pyx
View file @
bc4a30e4
...
...
@@ -113,6 +113,10 @@ cdef class PyFileH:
pywmmap
.
fileh
=
pywfileh
return
pywmmap
property
blksize
:
def
__get__
(
PyFileH
pywfileh
):
return
pywfileh
.
wfileh
.
blksize
# XXX for tests
property
pinned
:
def
__get__
(
PyFileH
pywfileh
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment