site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Feb 13, 2006, at 6:52 PM, Chris Sarcone wrote: Theo -- --Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'd like to mmap a 64k and have the resulting address be aligned on a 64k boundary. I'm trying with: mmap((void *)65536, 65536, PROT_NONE, MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_ALIGN, -1, 0); Darwin does not appear to support MAP_ALIGN (A cursory glance at SUS does not reveal any requirement for it - though other OSes do support it). File an enhancement request via http:// bugreporter.apple.com for this feature to be considered for a future OS release. Such an enhancement request should be easy to implement - as the underlying Mach VM supports that kind of alignment via the vm_map() SPI. But unless you are already tied to Mach interfaces for some reason, I don't suggest using vm_map() directly. It's easy enough to do the alignment in your own software as a workaround. This email sent to site_archiver@lists.apple.com