From: SourceForge.net <no...@so...> - 2006-08-16 01:29:13
|
Support Requests item #1540497, was opened at 2006-08-15 17:25 Message generated for change (Comment added) made by zuxy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1540497&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Priority: 5 Submitted By: Zuxy (zuxy) Assigned to: Earnie Boyd (earnie) Summary: getpagesize() to return 64K Initial Comment: Currently getpagesize() returns 4K, the size of a physical page in Windows. However, according to the manpage, "the function getpagesize()returns the number of bytes in a page, where a 'page' is the thing used where it says in the description of mmap (2) that files are mapped in page-sized units". The counterpart of mmap() in Windows is CreateFileMapping () and MapViewOfFileEx(), whose memory allocation granularity is 64K, i.e. 16 times the physical page size. Since getpagesize() should only be used to determine the allocation granularity of a memory mapped object, should getpagesize() return 64K instead of 4K under Windows? ---------------------------------------------------------------------- >Comment By: Zuxy (zuxy) Date: 2006-08-16 09:29 Message: Logged In: YES user_id=1209337 getpagesize() isn't declared in any header but implemented in libgcc.a. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2006-08-15 19:32 Message: Logged In: YES user_id=15438 Where in MinGW or MS VC do you find getpagesize? MSDN only documents it as an Interix function in its UNIX Application Migration Guide. GetPageSize is a method in CSliderCtrl which is an MFC API and we don't support that either. Please attach a test case to show what you mean. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1540497&group_id=2435 |