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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
fcccbfc6
Commit
fcccbfc6
authored
Oct 25, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
63acc55c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+12
-2
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
fcccbfc6
...
@@ -58,21 +58,31 @@ static string h(uint64_t v); // v -> 016x hex representation
...
@@ -58,21 +58,31 @@ static string h(uint64_t v); // v -> 016x hex representation
#define h_(v) (h(v).c_str())
#define h_(v) (h(v).c_str())
static
error
mmap_zero_into_ro
(
void
*
addr
,
size_t
size
);
static
error
mmap_zero_into_ro
(
void
*
addr
,
size_t
size
);
// XXX ok?
// XXX ok?
struct
IContext
{
struct
IContext
{
virtual
chan
<
structZ
>
done
()
=
0
;
virtual
chan
<
structZ
>
done
()
=
0
;
virtual
error
err
()
=
0
;
virtual
error
err
()
=
0
;
};
};
#if 0
interface(Context) {
ifunc(chan<structZ> done());
ifunc(error err());
};
I<io::Reader>(f)
// XXX wrap T* as IContext
// XXX wrap T* as IContext
template<typename T>
template<typename T>
class
Context
{
class Context
: public IContext
{
T *obj;
T *obj;
public:
public:
Context(T *obj) : obj(obj) {}
chan<structZ> done() { return obj->done(); }
chan<structZ> done() { return obj->done(); }
error err() { return obj->err(); }
error err() { return obj->err(); }
};
};
#endif
struct
Conn
;
struct
Conn
;
struct
_File
;
struct
_File
;
...
...
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