On Mon, 11 Aug 2003, Ian Romanick 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.
Agreed. Both getpagesize() and sysconf have portability issues. One on older systems, the other on newer systems. I can't remember the specific, but HPUX had an issue with one I recall. I'd have to hunt down the manual I found that indicated this however. This should be dealt with in a very nice way by xf86getpagesize() more or less. There are some fixes that need to happen, at least from 4.3.0 codebase (not sure about current CVS head), but they need to be done in a clean manner. I intend to go through everywhere in the server and clean up anything I find at some point, and then send a proper patch in to fix it all, unless someone beats me to it. The mailing list archives have comments from other developers from the last time this topic came up. -- Mike A. Harris _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
