there is a function memalign_ that makes a call to memalign that is not protected by our config variables that determine if memalign is available. Not sure what we want to do in that case. For FreeBSD memalign and posiz_memalign do not exist however malloc aligns on page boundries if size is >= pgsize.