Jakub Jelinek wrote:

On Sun, Aug 10, 2003 at 07:06:58PM -0500, Warren Turkal wrote:

@@ -1003,6 +993,8 @@
       break;
    }

+    r128_drm_page_size = getpagesize();
+

sysconf (_SC_PAGESIZE) is the standardized way of querying page size.

I seem to recall some discussion about this a few months ago. There are some portability issues with both getpagesize and sysconf(_SC_PAGESIZE). Because of that, XFree86 has a wrapper function called xf86getpagesize. There also seems to be a #define that aliases getpagesize to xf86getpagesize, so I'm not sure if the wrapper should be used or if getpagesize should be used. Either way, I'm sure that sysconf(_SG_PAGESIZE) should *not* be used directly.



_______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel

Reply via email to