Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
cpp-ethereum
libethash
mmap.h
Go to the documentation of this file.
1
/*
2
This file is part of ethash.
3
4
ethash is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
9
ethash is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with ethash. If not, see <http://www.gnu.org/licenses/>.
16
*/
21
#pragma once
22
#if defined(__MINGW32__) || defined(_WIN32)
23
#include <sys/types.h>
24
25
#define PROT_READ 0x1
26
#define PROT_WRITE 0x2
27
/* This flag is only available in WinXP+ */
28
#ifdef FILE_MAP_EXECUTE
29
#define PROT_EXEC 0x4
30
#else
31
#define PROT_EXEC 0x0
32
#define FILE_MAP_EXECUTE 0
33
#endif
34
35
#define MAP_SHARED 0x01
36
#define MAP_PRIVATE 0x02
37
#define MAP_ANONYMOUS 0x20
38
#define MAP_ANON MAP_ANONYMOUS
39
#define MAP_FAILED ((void *) -1)
40
41
void
* mmap(
void
* start,
size_t
length,
int
prot,
int
flags,
int
fd
, off_t offset);
42
void
munmap(
void
* addr,
size_t
length);
43
#else // posix, yay! ^_^
44
#include <sys/mman.h>
45
#endif
46
47
fd
#define fd(x)
Definition:
rijndael.cpp:172
Generated on Mon Oct 22 2018 15:15:27 for Fabcoin Core by
1.8.11