Commit 0a4ae554 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bc38458d
...@@ -85,11 +85,9 @@ static error _pathError(const char *op, const string &path, int syserr) { ...@@ -85,11 +85,9 @@ static error _pathError(const char *op, const string &path, int syserr) {
// mm:: // mm::
namespace mm { namespace mm {
// map_into memory-maps f.fd[offset +size) as into [addr +size). // map_into memory-maps f.fd[offset +size) into [addr +size).
// prot is PROT_* from mmap(2). // prot is PROT_* from mmap(2).
// flags is MAP_* from mmap(2); MAP_FIXED is added to flags. // flags is MAP_* from mmap(2); MAP_FIXED is added automatically.
//
// XXX split from File?
error map_into(void *addr, size_t size, int prot, int flags, const os::File &f, off_t offset) { error map_into(void *addr, size_t size, int prot, int flags, const os::File &f, off_t offset) {
void *addr2; void *addr2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment