[fpc-devel] msync

Victor Matuzenko vitek03 at gmail.com
Mon Jul 16 05:29:58 CEST 2018


Hi!

There is Fpmmap function in BaseUnix for POSIX's mmap:
https://www.freepascal.org/docs-html/rtl/baseunix/fpmmap.html

I want to mmap a file in writable mode. After some modifications done
I should to call POSIX's msync to garantee changes applied to the file:
http://pubs.opengroup.org/onlinepubs/000095399/functions/msync.html

But I can't find neither Fpmsync nor msync in fpc rtl.

1. How do I call msync?
2. Is there any reason to not provide msync in BaseUnix?
3. Can I send a patch adding Fpmsync to BaseUnix?

Thanks.

-- 
Victor Matuzenko (Виктор Матузенко)




More information about the fpc-devel mailing list