Mercurial > hg > Game > Cerium
changeset 2055:c62fbe66f549 draft
hide st_mmap_t
author | Nozomi |
---|---|
date | Fri, 29 Jan 2016 19:51:40 +0900 |
parents | 2e7a6f40672f |
children | 1161466f4e1b 432d96650d55 |
files | TaskManager/ManyCore/FileMapReduce.cc TaskManager/ManyCore/FileMapReduce.h |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/ManyCore/FileMapReduce.cc Fri Jan 29 15:56:28 2016 +0900 +++ b/TaskManager/ManyCore/FileMapReduce.cc Fri Jan 29 19:51:40 2016 +0900 @@ -144,6 +144,11 @@ FileMapReduce::my_mmap(const char *filename, MapReduce *w) { /*マッピングだよ!*/ + typedef struct { + caddr_t file_mmap; + off_t size; + } st_mmap_t; + int map = MAP_PRIVATE; st_mmap_t st_mmap; struct stat sb;
--- a/TaskManager/ManyCore/FileMapReduce.h Fri Jan 29 15:56:28 2016 +0900 +++ b/TaskManager/ManyCore/FileMapReduce.h Fri Jan 29 19:51:40 2016 +0900 @@ -41,11 +41,6 @@ #define DATA_ID 0 -typedef struct { - caddr_t file_mmap; - off_t size; -} st_mmap_t; - class FileMapReduce { public: /* constructor */