Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_alloc_wx.h @ 202:030fbb70aa1b
- changed allocwx code:
* to introduce a call allowing to switch the written page to be executable (e.g. using mprotect)
* changed mmap based code so page is always W^X
author | Tassilo Philipp |
---|---|
date | Mon, 20 Mar 2017 23:12:58 +0100 |
parents | 3e629dc19168 |
children | f5577f6bf97a |
comparison
equal
deleted
inserted
replaced
201:136409adbdd1 | 202:030fbb70aa1b |
---|---|
33 | 33 |
34 #ifdef __cplusplus | 34 #ifdef __cplusplus |
35 extern "C" { | 35 extern "C" { |
36 #endif | 36 #endif |
37 | 37 |
38 DCerror dcAllocWX(DCsize size, void** p); | 38 DCerror dcAllocWX (DCsize size, void** p); |
39 void dcFreeWX (void* p, DCsize size); | 39 DCerror dcInitExecWX(void* p, DCsize size); |
40 void dcFreeWX (void* p, DCsize size); | |
40 | 41 |
41 #ifdef __cplusplus | 42 #ifdef __cplusplus |
42 } | 43 } |
43 #endif | 44 #endif |
44 | 45 |