<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all, <div class=""><br class=""></div><div class="">I’ve moved past signal handling for now and have reached file mapping for my book on the guts of LibreOffice - <a href="https://www.gitbook.com/book/chrissherlock1/inside-libreoffice/details" class="">https://www.gitbook.com/book/chrissherlock1/inside-libreoffice/details</a></div><div class=""><br class=""></div><div class=""><div class="">As I’ve been reading through how we handle file mapping, I’ve noticed we do something a bit unusual for finding the page size on BSD systems. From what I can see, OpenBSD, NetBSD, FreeBSD, OS X and DragonflyBSD all supports sysconf() now. However, we have some special cased code in sal/osl/unx/file.cxx that is used by the file mapping API when it gets the pagesize of the system. Currently it is special casing out the BSDs to use getpagesize(), and everything else that is POSIX compliant uses sysconf(_SC_PAGESIZE). </div><div class=""><br class=""></div><div class="">However, I checked out the latest man pages for all the BSDs, and they all seem to support sysconf(_SC_PAGESIZE). Is there any reason we are checking the platform and using getpagesize() for the BSDs now?</div><div class=""><br class=""></div><div class="">I’ve submitted a gerrit change in case there is no good reason:</div><div class=""><br class=""></div><div class=""><a href="https://gerrit.libreoffice.org/#/c/39120/" class="">https://gerrit.libreoffice.org/#/c/39120/</a></div><div class=""><br class=""></div><div class="">If anyone would like to review it, would be great. </div><div class=""><br class=""></div><div class="">Chris</div></div></body></html>