diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-06-06 20:46:01 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-06-06 20:46:01 +0000 |
commit | 78ca93b2f10499e0c8f5629d5003d2ede85f4e71 (patch) | |
tree | a9a9b726f59eb13da4722fdba8535394524e5e5b /rtl/bsd | |
parent | 3f65b75eb75ac913ed483a9e15f596f0bfd01f37 (diff) | |
download | fpc-78ca93b2f10499e0c8f5629d5003d2ede85f4e71.tar.gz |
+ add fpmprotect function to complete fpmmap/fpmunmap
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@42181 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/bsd')
-rw-r--r-- | rtl/bsd/ossysc.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtl/bsd/ossysc.inc b/rtl/bsd/ossysc.inc index ef788cde77..ef38d5092c 100644 --- a/rtl/bsd/ossysc.inc +++ b/rtl/bsd/ossysc.inc @@ -470,6 +470,12 @@ begin end; +Function Fpmprotect(start:pointer;len:size_t;prot:cint):cint; [public, alias : 'FPC_SYSC_MPROTECT']; +begin + Fpmprotect:=do_syscall(syscall_nr_mprotect,TSysParam(start),TSysParam(len),TSysParam(prot)); +end; + + { Interface to Unix ioctl call. Performs various operations on the filedescriptor Handle. |