Hello David
David Chisnall schrieb:
I think calling mmap directly is the wrong solution here. You should be
using valloc() with the requested size rounded up to the nearest page
size, and then use mprotect to set it as executable. Note that most
sane operating systems (and Vista) are moving
On 29 Jun 2008, at 08:54, David Ayers wrote:
Hello David
David Chisnall schrieb:
I think calling mmap directly is the wrong solution here. You
should be
using valloc() with the requested size rounded up to the nearest page
I'm not sure what advantage valloc() has over mmap() ... all the
On Sun, 29 Jun 2008 09:54:56 +0200, David Ayers [EMAIL PROTECTED] said:
Hello David David Chisnall schrieb:
I think calling mmap directly is the wrong solution here. You should
be using valloc() with the requested size rounded up to the nearest
page size, and then use mprotect to set it as
Hubert Chathi schrieb:
On Sun, 29 Jun 2008 09:54:56 +0200, David Ayers [EMAIL PROTECTED] said:
Hello David David Chisnall schrieb:
I think calling mmap directly is the wrong solution here. You should
be using valloc() with the requested size rounded up to the nearest
page size, and then
On Sun, 29 Jun 2008 23:11:44 +0200, David Ayers [EMAIL PROTECTED] said:
Hubert Chathi schrieb:
Heh. My man page for memalign says:
,
| The obsolete function memalign() allocates size bytes and returns a
| pointer to the allocated memory. The memory address will be a multiple
| of