Re: mmap alignment.
Re: mmap alignment.
- Subject: Re: mmap alignment.
- From: Chris Sarcone <email@hidden>
- Date: Mon, 13 Feb 2006 15:52:20 -0800
Theo --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. However, the return address is not modulo 64k. How do I accomplish what I want?
Over-allocate (128k) chunk and manually align perhaps?
-- Chris ------------------ 6 Infinite Loop M/S 306-2MS Cupertino CA 95014 phone: (408) 974-4033 fax: (408) 862-7577 |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden