[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: As i suspected, unaligned access



>   *boggle* malloc(3) should *always* return a naturally aligned
> block. smail doesn't happen to ship with it's own memory allocator,
> does it? Alternatively, could it be allocating a larger chunk of
> memory and then splitting it up inside the program into multiple
> structures? If you can't get it to work any other way, try using
> memalign(3).

So I too would suspect.  I need to spend more time looking through the
code.  It is possible they are allocating a block, putting their data
at the head of it, and passing a pointer to the 'user' section of the
data block.  

I don't have a man page on memalign.  What is it?


Reply to: