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 boundary, which must be a power of two.
>> `----
>> and implies that posix_memalign should be used instead.  From what I
>> can gather, "ptr=valloc(size)" is equivalent to
>> "posix_memalign(&ptr,sysconf(_SC_PAGESIZE),size)", but don't quote me
>> on that.

> I'm on lenny... so one could consider that a bug in the vmalloc man
> page... would you care to open a bug report?

I don't really know anything about those functions, so I'm not sure what
I would write in such a bug report.

Hubert


_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to